`
leonzhx
  • 浏览: 793674 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Item 47: Know and use the libraries

阅读更多

1.  When inputted an Integer.MIN_VALUE, Math.abs will also return Integer.MIN_VALUE.

 

2.  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.

 

3.  A second advantage of using the libraries is that you don’t have to waste your time writing ad hoc solutions to problems that are only marginally related to your work.

 

4.  A third advantage of using standard libraries is that their performance tends to improve over time, with no effort on your part.

 

5.  A final advantage of using the standard libraries is that you place your code in the mainstream. Such code is more easily readable, maintainable, and reusable by the multitude of developers.

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics