Brian Goetz: Good practice
“Just as it is a good practice to make all fields private unless they need greater visibility, it is a good practice to make all fields final unless they need to be mutable.” —Brian Goetz.

seen from Germany

seen from Germany
seen from United States

seen from Brazil
seen from Venezuela
seen from Germany
seen from Iraq

seen from United States

seen from United States
seen from China

seen from Germany
seen from United States

seen from Japan

seen from Netherlands

seen from Germany

seen from Kazakhstan
seen from China

seen from Malaysia

seen from Japan
seen from United States
Brian Goetz: Good practice
“Just as it is a good practice to make all fields private unless they need greater visibility, it is a good practice to make all fields final unless they need to be mutable.” —Brian Goetz.

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Brian Goetz: Thread safety
“It is far easier to design a class to be thread-safe than to retrofit it for thread safety later.” ― Brian Goetz.
Sometimes abstraction and encapsulation are at odds with performance — although not nearly as often as many developers believe — but it is always a good practice first to make your code right, and then make it fast.
Brian Goetz, Java Concurrency in Practice
It is far easier to design a class to be thread-safe than to retrofit it for thread safety later.
Brian Goetz, Java Concurrency in Practice
After the link you can find a presentation by Brian Goetz (Java language architect at Oracle and one of the leaders of Project Lambda), which he did three weeks ago at JavaOne on Project Lambda. It covers a lot of details of how lambdas will work in Java, e.g. syntax, functional interfaces, collection stream abstraction and lazy collections, bulk operations on collections like foreach, map, filter etc., default extension methods, paralellism etc. Let me share two slides I've screenshot from the presentation:
This is a parallel sum operation over a collection, implemented using the fork/join framework. Don't worry if you can't read it, the main thing here is that the red lines are the actual logic of summing (=what we want to do), and black lines are boilerplate related to fork/join (=technical details of how we're doing it). The next slide shows the same, but implemented using the parallel collection streams of Project Lambda:
And In the heart of all this is the parallel counterpart of Iterator, the Spliterator!

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming