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