代码改变世界

阅读排行榜

JavaScript Patterns 5.4 Module Pattern

2014-06-26 09:41 by 小郝(Kaibo Hao), 401 阅读, 收藏,
摘要: This post introduces how to use the module pattern to limit the access scope of the methods of object or constructor in the module. 阅读全文

Effective Java 54 Use native methods judiciously

2014-04-17 20:29 by 小郝(Kaibo Hao), 401 阅读, 收藏,
摘要: Think twice before using native methods. Rarely, if ever, use them for improved performance. If you must use native methods to access low-level resources or legacy libraries, use as little native code as possible and test it thoroughly. A single bug in the native code can corrupt your entire application. 阅读全文

Effective Java 50 Avoid strings where other types are more appropriate

2014-04-13 18:41 by 小郝(Kaibo Hao), 400 阅读, 收藏,
摘要: Avoid the natural tendency to represent objects as strings when better data types exist or can be written. Used inappropriately, strings are more cumbersome, less flexible, slower, and more error-prone than other types. Types for which strings are commonly misused include primitive types, enums, and aggregate types. 阅读全文

Effective C# 学习笔记(十一)尽量缩减函数体的大小,提高运行效率

2011-07-04 20:32 by 小郝(Kaibo Hao), 400 阅读, 收藏,
摘要: 给你的方法函数瘦身吧,这样才能跑得更快 :) 阅读全文

Effective Java 05 Avoid creating unnecessary objects

2014-02-27 19:31 by 小郝(Kaibo Hao), 398 阅读, 收藏,
摘要: When using Adapter pattern don't created an new object of the backing object since there is no need for the specific state of the Adapter object.Prefer primitives to boxed primitives, and watch out for unintentional autoboxing. 阅读全文

Effective Java 03 Enforce the singleton property with a private constructor or an enum type

2014-02-25 21:57 by 小郝(Kaibo Hao), 398 阅读, 收藏,
摘要: When implement the singleton pattern please decorate the INSTANCE field with "static final" and decorate the constructor with "private". 阅读全文

Big O Complexity Chart (From: bigocheatsheet.com)

2020-10-19 09:56 by 小郝(Kaibo Hao), 396 阅读, 收藏,
摘要: The Big O cheat sheet for data structure and Array sorting algorithm. 阅读全文

Effective Java 60 Favor the use of standard exceptions

2014-04-24 17:11 by 小郝(Kaibo Hao), 396 阅读, 收藏,
摘要: Reuse must be based on semantics, not just on name. Also, feel free to subclass an existing exception if you want to add a bit more failure-capture information (Item 63). 阅读全文

关于敏捷开发

2009-09-10 23:41 by 小郝(Kaibo Hao), 396 阅读, 收藏,
摘要: 今天读了篇文章蛮有意思的请看敏捷开发(名字起得很帅,很忽悠人)原则 括号里面加了自己的理解笔记原文出处:冯瑞涛的博客 阅读全文

Effective Java 10 Always override toString() method

2014-03-05 18:24 by 小郝(Kaibo Hao), 392 阅读, 收藏,
摘要: Advantage Provide meaningful of an object info to client. Disadvantage Constrain the ability of changing the toString() implementation since this will affect the client who use this formatted string as persistence. 阅读全文
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 21 下一页