Slashdot is powered by your submissions, so send in your scoop


Forgot your password?
DEAL: For $25 - Add A Second Phone Number To Your Smartphone for life! Use promo code SLASHDOT25. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. Check out the new SourceForge HTML5 internet speed test! ×

Comment Re:Lots of links to articles, phfft (Score 4, Interesting) 232

I'm sorry, but a program that's thousands of methods and small classes is not clearer than a program with fewer, larger, structures. Yes, write code for Humans, not machines, I agree. BUT remember your other programmers want to understand your program - not any one individual method - so making each method simple only moves the complexity into the interrelationships between methods, something considerably harder to understand.

What the author was implying is that you should take relatively straightforward components of a function and break them out as their own sub-functions with a very descriptive name, especially the inner workings of nested loops. If you take the inner loop and replace it with a function call that describes what the inner loop does, then your outer loop actually gets much easier to read, as it does not have the distraction of the gritty details of how the inner loop performs its duties. With properly written sub-functions, you can simply read the name and understand what it is doing without having to actually read the function at all. I have personally done code reviews on code that has been re-factored in this fashion, and the readability of the code is night and day.

Comment Re:AFK != IRL (Score 2) 151

you are describing a tort claim, not a federal crime at the end of the day we are still talking about minimal damages and harm. I think an argument for a simple assault may hold a little water but I am unaware of a federal statute that covers simple assault.

I have an epileptic son. Seizures are not the trivial things you seem to think they are. A grand mal seizure is often life threatening as it causes everything in the brain to go off kilter, including autonomic functions. When my son start having a seizure, he stops breathing, and if it goes on long enough, his heart stops beating. This has only happened once, and he had to be resuscitated. Most of the time, the lack of breathing induces hypoxia and that stops the seizure, but it is by no means a sure thing, as the hypoxia can prevent the normal resumption of autonomic functions after the seizure stops.

The instrument this assailant was using was a deadly weapon. That makes this assault with a deadly weapon, or attempted murder depending on what they decide his intent was. Any way you slice it, this guy belongs behind bars, if only to protect the general public from his overarching ignorance coupled with his complete indifference to the consequences of his actions, and his demonstrated ability to access and deploy deadly weapons.

Comment Re:AFK != IRL (Score 1) 151

simple assault is not a federal crime even if we were to stipulate that it applies here. The further claim that cyberstalking happened is also very weak. Stalking needs more than a few emails over a very short period of time.

Any crime that crosses state lines becomes an FBI matter. That is *why* the FBI exists. One of their primary purposes is to have jurisdiction when no single state agency would clearly have jurisdiction. Their purview has expanded a bit since the agency was created, but that is the basic idea behind it. The failure to do that fundamental job in all respects led to the creation of the DHS.

Comment Re:Goal post has not been moved (Score 4, Insightful) 624

Where the hell do you find the time or energy to do these things?

I'll try to be a gentle with this as I can. There are two fundamental things that need to be said here. First, unless you went to an ultra-competitive university, or were tracking a dual major / BS-MS program, Classes simply should not have taken that much effort. I know a lot of people who worked very hard for their degree, and most of them aren't worth much as employees go. Show me the kid who barely showed up to class at all and still graduated. Thats where I'll put my bet every time.

The second is that not all majors are created equal. If you have no idea what to go to school for, so you pick what seems like it will pay well, you might want to reconsider. In 5 years, the entire economic outlook can change dramatically. If you are very passionate about your chosen major, you can be successful even if the economy changes direction, but if you chose the major because you thought that was where the money is, you have chosen very poorly.

The Gentleman in the article who got his degree in mechanical engineering might or might not have had the wherewithal to know what was coming, but the reality is that the majority of mechanical engineers are employed by the transportation industry, and that industry is in the middle of an epic upheaval. The entire industry used to need huge numbers of mechanical engineers to design car, trucks, buses, planes, and every other damn thing. Now, CAD has gotten sophisticated enough that it has made the mechanical engineers out there 5 times more efficient meaning the companies only need 1/5 as many. Couple that with the impending transition from internal combustion to electric vehicles, and an entire generation of mechanical engineers has been trained for jobs that will never exist again.

TLDR: If you don't have passion for something then don't bother going to school for it. In todays economy all you will accomplish is six digit debt and no way to pay it off. Better to wait until you know what you want to do, and then go to school. You will be far better served, and might even be in a financial position to accomplish the job without sinking the first two decades of your career into soul crushing debt.

Comment Re:One word (Score 4, Interesting) 474

Something about less distance making for faster signaling

Actually, it has very little to do with the distance. The single biggest speed improvement in die shrink comes because the gate capacitances are smaller due to smaller footprint, and as such the gate charge / discharge time is shorter. The shorter distances does have a small effect as well, but the primary effect is due to the gate capacitance.

Comment Re:One word (Score 5, Insightful) 474

The problem is everyone is hell bent on smaller for the sake of performance. and it's stupid. dont make smaller, make bigger.

There are a whole host of problems with that.

First and foremost, physics strikes again with the speed of light. Pretty much all modern processing is done synchronously which means that it requires a clock signal that changes everywhere at the same time. As you expand that size of the processor, suddenly things get out of sync. There are ways to fight this, but they are tricky and dont scale well.

Second, As die size increases, Power consumption increases faster. All the current your processor draws passes through some parasitic resistance in getting there. The bigger the die, the more parasitic resistance. If you take a chip that draws 50 watts and put two of them on a die, the power draw is now 105 watts because the new chip draws more than 50 watts (it has to pull power through a slightly longer set of wires, as does the original one)

Third, cost. The single most important factor in processor cost is yield. Any given silicon wafer will have a certain number of defects on it that will render any chip at that location unusable. If you get on average two defects per wafer, and you have 100 chips on a wafer, then you get 98 good chips and two bad ones (98% yield) . If you have two defects per wafer and there are only 10 chips on that wafer, you get 8 good chips and two bad ones (80% yield) (gross over-simplification).

There are a whole cadre of other issues that chip designers and manufacturers have to deal with such as interconnects and shared resources, etc...

Comment Re:Instruction set (Score 1) 77

So if you write code to do a task, and then you write it again for someone else, is it not going to be nearly the same?

Hahahahaha, No.

There are multiple ways of solving, even simple, problems. Some are better than others. Some require a leap of intuition that most people simply will never have. Software patents are no better or worse than any other patents. *All* patents are stupid.

Comment Re:Zenimax ButtHurt (Score 1) 77

Zenimax got half a billion dollars and they're still butthurt?

They haven't got the money yet. Thats part of the issue. Oculus filed for an appeal, and as such do not have to pay the judgement until the appeal is over.

This is a pretty common tactic for a company, even if they know they will probably lose on appeal. The idea is to delay the payment as long as possible on the off chance that the plaintiff will simply fold up shop and go away. At the very least, they can enjoy a few more years of profits in the mean time which may or may not enable them to gain a greater market share, making the judgment easier to pay.

To counter that, the plaintiff files the injunction. Basically it is argued that the appeal is nothing more than a delaying tactic, and if the judge agrees, then there will be an injunction. This puts tremendous pressure on the defendant to simply pay up. If they don't think the appeal can be won, then they will simply give it up and pay up. If they do think they can win, then they have massive incentive to make sure the appeal happens fast. It effectively pulls the rug out of the "delay the inevitable loss" tactic. The down-side for the plaintiff is that the judge will never allow it unless (s)he believes the defendant is just stalling.

Comment Re:Biggest troll there is... (Score 2) 77

They never did anything even related to VR. Only because that one guy who used to work for them also worked on the side on VR, they claim his work is theirs. This is why contracts that says the company own EVERYTHING you make or work on while in employment, should be illegal.

There is a huge overlap between fast and powerful rendering engines and VR. Even while it was still Id, Carmack had an express interest in VR, and that was no small part of the value Id had when it was sold. For Carmack to subsequently leave and take that value with him to join a startup *using* much of the material he developed while at Id (note I said material, not knowledge), is simply unconscionable, and Carmack and Oculus are in deep shit as a result.

Comment Re:Not the whole story? (Score 1) 157

How? How to this help you to create a hole where there isn't one? And if there is one, shouldn't that be addressed first?

How about being able to intercept a plaintext password just after it has been typed by the user but before it has been encrypted for transmission to the next website? This can be especially effective in JS where users will visit many sites without closing their browser in between...

That took all of 5 seconds to come up with. Give me a couple hours and I'm sure I could figure out some real doozys.

Comment Re: Someone has been visited by an MS rep (Score 1) 557

SOME training would be necessary - and if that training took longer than an hour you've already spend more than the corporate license of Windows would have cost you.

If you are an admin, and users have trouble using a Linux setup that you put in front of them, then *YOU* are incompetent. Put icons on the desktop for all the things they will need to use (hint, there are only about half a dozen to a dozen), and done. They don't need to know how to use the menus, how to configure anything, or anything else that is OS specific. If they want to play music or any other "unsupported" application, then they can figure it out themselves (And they will).

The simple truth is that the windows 8 / 10 user interface is a greater departure from the windows 7 / XP user interface than almost any flavour of Linux is. That right there puts the lie to your assertions.

Comment Re:Linux is only free if your time is worth nothin (Score 4, Insightful) 557

Confirmed basement dweller. None of these are problems if you buy Enterprise versions..

Right, so the solution to the problem of Microsoft software getting in the way and reducing productivity is to..... Give them more money?

Where I come from we have a word for software like that.

Comment Re:Linux advocates refuse to learn (Score 1) 557

A typical Linux install, unaided by a visit from tech support (and endless rounds of downloads and compiles and patching and dependency resolving and package management goofiness), will not properly support many printers and scanners, will have sketchy ausio support, and will not play common media formats.

Funny you should mention that, My work PC just got upgraded to windows 10 last week, and on Friday I spent half the day trying to get two of the office Brother printers to print anything. I finally gave up and called tech support, I presume they will fix it on Monday.

Comment Re: It's not office. (Score 1) 557

I only use Libreoffice, and I like it. I woudn't say it's that buggy, I use use to write budgets and many things. But I would never say it is on pair with Ms Office

I have to agree. Most people I interact with (including almost every business) has no problems opening the files I send them (I have no idea what version of .doc Libreoffice uses and I don't care.) I have a machine around here somewhere that has office 2013 on it, and have the option of using it if it ever matters, but in 3 years of SOHO use, It has never been an issue. I don't do much fancy stuff except in the spreadsheet, but I don't have a good reason to be sending anyone anything with macros in it, and I sure as shit wouldn't trust a macro laden file in MS Office. Everything else behaves exactly as I would expect when saved in .xls format (which I do quite regularly).

The market will decide what to do with the loosers who keep spending way too much money on their tools. It might take 20 years, but in a capitalist society, you can only escape the bottom line for so long...

Slashdot Top Deals

Take an astronaut to launch.