“It is far easier to design a class to be thread-safe than to retrofit it for thread safety later.”

Brian Goetz

Brian Goetz - “It is far easier to design a class to be...” 1

Similar quotes

“Accessing shared, mutable data requires using synchronization; one way to avoid this requirement is to not share. If data is only accessed from a single thread, no synchronization is needed. This technique, thread confinement, is one of the simplest ways to achieve thread safety. When an object is confined to a thread, such usage is automatically thread-safe even if the confined object itself is not.”

Brian Goetz
Read more

“Each event touching another; like threads that design in concert, creating the fabric that is life.”

Don Bradley
Read more

“Once an object escapes, you have to assume that another class or thread may, maliciously or carelessly, misuse it. This is a compelling reason to use encapsulation: it makes it practical to analyze programs for correctness and harder to violate design constraints accidentally.”

Brian Goetz
Read more

“If memory is the thread of personal identity, history is the thread of community identity.”

Carter Lindberg
Read more

“He who holds me by a thread is not strong; the thread is strong.”

Antonio Porchia
Read more