Deepesh > Deepesh's Quotes

Showing 1-5 of 5
sort by

  • #1
    “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, Java Concurrency in Practice

  • #2
    “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

  • #3
    “Whenever more than one thread accesses a given state variable, and one of them might write to it, they all must coordinate their access to it using synchronization.”
    Brian Goetz, Java Concurrency in Practice

  • #4
    “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

  • #5
    “Locking can guarantee both visibility and atomicity; volatile variables can only guarantee visibility.”
    Brian Goetz, Java Concurrency in Practice



Rss
All Quotes



Tags From Deepesh’s Quotes