Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!


Forgot your password?
Slashdot Deals: Cyber Monday Sale! Courses ranging from coding to project management - all eLearning deals 25% off with coupon code "CYBERMONDAY25". ×

Comment Re:Odd thoughts: (Score 1) 285

One thing nice about Powershell is that you can truncate options as long as they're not abmiguous. So you can make -Recursive be -Rec, or even -R, as long as there's not also a -Recreate or -Recover options. That seems to be a nice middle-ground.

Sounds good and cool but what is happening if "Recursive" is the only option now and tomorrow not (adding a new option/functionality Recover)? Your script which was running fine before will create an ambigous command and stop working in the new version of the shell.

Comment Re:Verbosity is easy? (Score 3, Informative) 414

A Stream is not a String. A Stream is a pipe which can serve you bytes as soon as some of them available.
If the InputStream.toString() will give you the full content of the stream you will have some very nasty errors. Eg. A beginner wants to read a file using a stream and is doing a toString() suddenly all the file will be loaded into memory into a big String eating all the memory. Another beginner listens to a tcp port using a stream does a toString() and suddenly the thread hangs until the client closes the channel. Plus you need a reader on top of the stream to have proper String encoding. Stream is for binary Reader is for strings.

“I find it extremely annoying to have to cast things into the right object type” This is by design, Java is strongly typed. If you find yourself casting too much then is something wrong with your code style or the library that you are using.

Comment Re:An Old Story (Score 1) 386

Multiple inheritance is a broad topic. It's needed, but how much and how easy you can avoid it's a matter of balance. Interfaces do it well in Java and C#. You do have some duplicate code but you avoid ambigous calls to methods.

Operator overloading is a can of worms. Perfect good tutorial are showing complex numbers (and one of the few places you need). Worst gotchas are in c++ overloading operators plus impicit casting. Eg.

list array;
list += 2;

Will add 2 to the list or add an empty list with 2 guaranted spaces to the array? Last time I checked (loong time ago) it was the last. Clean code with a lot of gotchas.

Comment Re:An Old Story (Score 1) 386

You should think of them not as training wheels but as safety belts. It does not matter how good you are at driving safety belt should be mandatory even for a F1 driver driving a van.

You are not upgrading computers to run the same version of the program at the same speed.You are upgrading because you are using a new version of the program which is doing vastly more on an operating system which is able to do vastly more and yes, indeed, some programmers are using a new framework witch makes abstraction layers over abstraction layers to do everything "universal", "reusable" and "future proof".

I agree that many programmers should now more about under the hood mechanisms but this is valid for everybody, including drivers, plumbers and electricians.

Comment Re:I like the new maps.. (Score 1) 372

I think if Jobs was still here he'd have slapped people around, re-negotiated with Google, and quickly have a patch issued to revert the maps. We'll see if apple continues to stumble in this very un-apple like manner.

Are you speaking about Steve Jobs? He will just say you are in the wrong position.

Comment Re:For great justice... maybe? (Score 1) 550

Unfortunately it looks like she couldn't live with the results of her bad decision. I feel zero sympathy for this girl.

Than the punishment is adequate (barely), only a "cyber sentence" angainst a "cyber bully". Let's see how is he living with the result of his decisions.

There it's more to speak about the age, the impact of accessibility of very easy communication/sharing of feelings on the net for the young persons, education and others but this discussion will never end

My only problem is to accept the vigilante act or not, and if yes how trusty it is.

Comment Re:It's their business model... (Score 1) 377

An "essential tool" as you said in the first comment implies that "must" be part of the full solution, a must have. My problem with GM does not consist in fear of glowing green in the dark but is bunch of more long term problems:
1. Patents/monopoly of food. ./ is full of it
2. Effects on surrounding culture/nature
3. Posibility of a mistake
Selective breeding is having a risk also but is a risk mitigated by the time. The chance of something going wrong suddenly is much lower, and cand even give your body time to adapt in time.
Now let's say that somebody having almost a monoply in seeds, is playing with GM and screw up big time. How many people will be affected, what are your chances that your body adapts in few years.
All of this only for having a small tool, when the real problems of feeding the planet lays in corupt governments, inneficiency, wars, poverty and "don't give a shit as long as is no gain" attitude of the western world?

Comment Re:It's their business model... (Score 1) 377

I did not see any consensus in any of the articles. Even the second one the most pro GM food warns that is not the "full solution". GM can be a small tool only (a dangerous one from ny point of vie for various reason).
In many places a tractor, a road and a water suply will make wonders. If you read also the articles you'll notice the biggest problem is not a resistant crop but the poverty that stops making investition in infrastructure.
Developed countries can generate their own food without problems, the developing countries despite their big not used places can not.

Diplomacy is the art of saying "nice doggy" until you can find a rock.