Item 47 - Know and use the libraries

From Effective Java 2/e by Joshua Bloch

Advantages

  1. By using a standard library, you take advantage of the knowledge of the experts who wrote it and the experience of those who used it before you
  2. You don’t have to waste your time writing ad hoc solutions to problems that are only marginally related to your work
  3. Their performance tends to improve over time, with no effort on your part
  4. Libraries also tend to gain new functionality over time
  5. You place your code in the mainstream

Posted by The Finest Artist

Previous
Previous

Item 46 - Prefer for-each loops to traditional for loops

Next
Next

Item 48 - Avoid float and double if exact answers are required