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

 



Forgot your password?
typodupeerror
×

Comment Re:Those Who Can, Do (Score 1) 234

Taking an old saying, and exhaustively expanding it to its logical conclusion, I come up with the following observed hierarchy of value.
Those who can, do.
Those who can't, become managers.
Those who can't manage, teach on the subject.
Those who can't teach, become consultants*.
Those who can't succeed in consulting, run for office.
Those who can't get elected, become lobbyists.
The problem is that everyone lower down than "those who can" incorrectly perceive the value hierarchy to be inverted to make themselves feel better.


* Insultants

Comment Dear Mr. Obama (Score 4, Interesting) 389

If the NSA had only been spying on terrorists we wouldn't even be having this conversation. (although it's not really a conversation, but you get my point)

Why would the NSA and CIA be spying on Congress? Is it someone's goal to set up the apparatus of a police state?

Why is the NSA spying on the EU Parliament? Are they looking for terrorists in Parliament?

See: TED How the NSA betrayed the world's trust — time to act
at: 4:30
also see at: 12:40 (or at 12:00 for better context) "I don't think they're looking for terrorists in Parliament."
(see at: 6:00 if you believe in encryption golden keys)

Comment Re:Easier to learn != easier to use (Score 1) 382

I like getters/setters in Java because in practice, the JVM compiles everything down to native code and aggressively inlines. So typical getters/setters cost nothing and are direct accesses to member variables. But it gives you the flexibility to later make the getter/setter do something else without affecting other code.

Suppose you were to change the getter/setter and then dynamically re-load the class at runtime in a running system. The JVM will immediately de-optimize (go back to interpreted bytecode) for all methods that now have stale inlined code (from the old version of the class). Dynamic profiling may then quickly reveal that the de-optimized code is (still, as it was before) an actual CPU hot spot, causing it to get re-compiled again, and if appropriate, to have those getters/setters inlined, or not.

The JVM compiler is like having a global -O 5 optimizer that can optimize globally across the actual code running on the machine, and the code generator of the compiler is tailored to your actual hardware and whatever instruction set extensions it might have.

The JVM as a runtime platform will probably outlast the Java language.

Comment Re:Delete YOUR email account... (Score 2, Funny) 173

Your never going too get you're weigh on this. Their are just two many people out they're using there words wrong too get to upset. Sew don't loose you're cool about it. You can sea mini common examples that exist of incorrect usage. People pick the write words two use according too there porpoises. But you'd have two be a fool to begin or end a sentence with the word "but". And only an idiot would begin or end a sentence with "and". And a preposition is a very bad word too end a sentence with.

Comment Re:Easier to learn != easier to use (Score 2) 382

While operator overloading can be used for good, it is far more often used to create huge messes. It makes the simplest expressions impossible to understand locally because now, everywhere there is an operator, you cannot be sure what is actually going on. IMO, operator overloading is evil, despite the good intentions.

I hear you about type erasure for generics.

Lambda statements in Java are a recent addition. But I hear you about first class functions. There are a lot of other languages that run on the JVM platform and are interoperable with Java. And many of these have first class functions. JavaScript (Nashorn), Clojure (a modern lisp with concurrency and immutable structures), Groovy, Scala and many others. And the interoperability is very real -- because they all pass around the very same underlying types and objects from the underlying runtime system.

I hear you about lack of properties and the annoyance of getters/setters. IDEs help, but its not the same thing. (like kissing your boyfriend through a veil)

Slashdot Top Deals

"No matter where you go, there you are..." -- Buckaroo Banzai

Working...