Item 59: Know and use the libraries

The takeaway from this section is “Don’t reinvent the wheel!”. The author explains the pitfalls of most developers fall into by giving random number generation example. Check the library before you try an ad hoc solution.

  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. The performance of standard libraries tends to improve over time, with no effort on your part.
  3. You don’t have to waste your time writing ad hoc solutions to problems that are only marginally related to your work.

Leave a Reply

Your email address will not be published. Required fields are marked *