301 Quotes About Programming
- Author Brian Goetz
-
Quote
Debugging tip: For server applications, be sure to always specify the -server JVM command line switch when invoking the JVM, even for development and testing. The server JVM performs more optimization than the client JVM, such as hoisting variables out of a loop that are not modified in the loop; code that might appear to work in the development environment (client JVM) can break in the deployment environment (server JVM).
- Tags
- Share
- Author Brian Goetz
-
Quote
From the perspective of a class C, an alien method is one whose behavior is not fully specified by C. This includes methods in other classes as well as overrideable methods (neither private nor final) in C itself. Passing an object to an alien method must also be considered publishing that object. Since you can’t know what code will actually be invoked, you don’t know that the alien method won’t publish the object or retain a reference to it that might later be used from another thread.
- Tags
- Share
- Author Brian Goetz
-
Quote
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.
- Tags
- Share
- Author Brian Goetz
-
Quote
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.
- Tags
- Share
- Author Ron Lisle
-
Quote
I’ve learned over the past few years that comments should be considered smells.
- Tags
- Share
- Author Michael Feathers
-
Quote
Programming is the art of doing one thing at a time
- Tags
- Share
- Author Ellen Ullman
-
Quote
The corollary of constant change is ignorance. This is not often talked about: we computer experts barely know what we're doing. We're good at fussing and figuring out. We function well in a sea of unknowns. Our experience has only prepared us to deal with confusion. A programmer who denies this is probably lying, or else is densely unaware of himself.
- Tags
- Share
- Author Dr. Jacinta Mpalyenkana
-
Quote
The choices you make are descendants of your conditioning.
- Tags
- Share
- Author P.S. Jagadeesh Kumar
-
Quote
If the input string is not in the format, change the program, not the character
- Tags
- Share