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

 



Forgot your password?
typodupeerror
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:36% Read your link. They buy nuclear from Swede (Score 3, Informative) 206

No, in most years, Norway produces more electric energy (virtually 100% renewable) than it consumes. See the first table in https://en.wikipedia.org/wiki/....

The 36% number comes from the Guarantees of Origin scam. It's an economic system which disconnects the production and consumption of energy from the buying and selling of it. It basically allows renewable energy to produce double the amount of clean conscience, for the same amount of clean energy:

  • Norwegians feel good, because they use locally produced clean energy.
  • Germans feel good because they pay a premium for Norwegian clean energy.

Also, I suspect that the "67.5% of gross final consumption" includes stuff like gas for vehicles, wood for heating, etc, not just electricity, which makes it meaningless in this discussion.

Comment Re:Java 9? meh... (Score 2) 115

I think you'll still find that most libraries retain java 7 compatibility. Luckily that does not generally prevent you from utilizing java 8 features in application code, even when interfacing with those libraries. E.g. libraries accepting references to single-method interfaces for callbacks will happily accept a lambda expression instead. To the JVM they're indistinguishable after all.

One example that comes to mind is Spark framework (http://sparkjava.com/) which I like for its almost naive simplicity. Great for throwing together a microservice on short notice.

Comment Re:They'll just move to Rust. (Score 2) 115

It's not about the language. It's the APIs that matter. Rust couldn't be less relevant.

And frankly J2EE doesn't matter that much either. I haven't seen a purebred J2EE application inn ages. There may exist EJB2 monstrosities deep in the server catacombs of large banks, but nowadays when people say enterprise java, they really just mean java code serving http-requests and running batch-jobs, with a gazillion of 3rd party libraries throw in.

Comment Java 9? meh... (Score 3, Informative) 115

I make a decent living off writing Java code, and after Java 8 came out I started liking it, not just tolerating it. Lambdas and method references, which I thought would be a nice-to-have, has turned it into a completely new language, streams are great, the multi-threading support is not too shabby and the new time API was loooong overdue.

When reading the linked list (no pun) of new features though, all I can say is "meh"...

Stuff like HTTP/2, TIFF and JSON support should be external, upgradable, libraries. Its a common theme that the standard java libraries fall into disuse after a while, because external library writers do a much better job of implementing the same concepts. JDBC, Date/Calendar, XML processing, HTTP are just a few examples.

My key takeaway from this is that I'm a bit tempted to start using _ as an identifier name, just to fuck over any future maintainers of my code.

Comment Re:Proof the EU is Working (Score 2) 496

Some EU bureaucrat woke up one day and decided to buy Ebbw Vale a new clock and a statue, was that how it happened? It wasn't someone local that asked for that money and decided how to spend it, I'm sure. Luckily you wont see any more of that filthy EU money landing on your doorstep from now on. Fixed that problem real good, didn't you.

Slashdot Top Deals

In English, every word can be verbed. Would that it were so in our programming languages.

Working...