<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆-12  評論-0  文章-1  trackbacks-0
      2012年2月27日
    the super keyword in java generic programming is used to declare a template of a specific type. e.g.
    List<? super MyClass> list = new LinkedList<AnyTypeDerivedByMyClass>();
    posted @ 2012-12-31 15:35 Sam Zheng 閱讀(245) | 評論 (0)編輯 收藏
    int (*test(char *(*)(void)) (int); declares a function named "test" which accepts a pointer to a function accepting no parameter and returning a char pointer, the function "test" returns a pointer to a function which accepts a integer parameter and returns a integer.
    Note: a declaration declares either a variable(pointer) or function(pointer), if its name is followed by left parentheses, it is a function, otherwise it is a variable(pointer).
    posted @ 2012-09-20 14:38 Sam Zheng 閱讀(129) | 評論 (0)編輯 收藏
    if you don't feel comfortable with your code, it's time to refactor/re-think about it.
    posted @ 2012-08-31 11:36 Sam Zheng 閱讀(162) | 評論 (0)編輯 收藏
    don't get trapped when reading source code of a complex module, first figure out what the module does/its main functionality and its interfaces, once you get into details, you cannot see the module as a whole and forget its main functionality, if you recognize you are trapped in details, try to come out and focus on interfaces, top->down->top->down
    posted @ 2012-08-15 16:07 Sam Zheng 閱讀(156) | 評論 (0)編輯 收藏
    The crucial part in design/programming, is to break down complex things, anything should be easy when broken down to manageable pieces, and, only when broken down, can it be easy. when doing so, the most important thing is to think about the granularity and the relationship between every pieces/modules, again, reasonability.
    posted @ 2012-04-18 12:10 Sam Zheng 閱讀(147) | 評論 (0)編輯 收藏
    when analyzing/programming, think about reasonability against requirements
    posted @ 2012-04-17 12:55 Sam Zheng 閱讀(315) | 評論 (0)編輯 收藏
    1. what does the program/module/class/method do?
    2. what is its input, if any?
    3. what is its output, if any?
    for a class, understanding its lifecycle is crucial:
    1. how is it created? by who? from a factory? what are the parameters required to create it?
    2. does it have any enforced lifecycle methods? e.g. initialize, dispose..., who is responsible to call these methods, in which order?
    3. what it can do at each stage of its lifecycle?
    4. who is going to use it/what is its client?

    posted @ 2012-03-09 10:52 Sam Zheng 閱讀(238) | 評論 (0)編輯 收藏
    An interface or a class should only do things that it knows, never do things it is not sure about. to define the responsibility of an interface/class clearly and precisely is critical.
    posted @ 2012-02-27 14:12 Sam Zheng 閱讀(171) | 評論 (0)編輯 收藏
    主站蜘蛛池模板: 亚洲 另类 无码 在线| 伊人免费在线观看| 无遮免费网站在线入口| 亚洲AV无码国产丝袜在线观看 | 五月婷婷在线免费观看| 日本精品久久久久久久久免费| 国产精品久久免费| 亚洲国产精品嫩草影院久久| 亚洲无人区码一二三码区别图片| 114一级毛片免费| 亚洲自国产拍揄拍| 免费被黄网站在观看| 亚洲综合伊人久久综合| 中文字幕的电影免费网站| 日本亚洲免费无线码| 亚洲综合偷自成人网第页色 | 高清国语自产拍免费视频国产| 亚洲一线产品二线产品| 午夜爱爱免费视频| 美女露100%胸无遮挡免费观看| 久99精品视频在线观看婷亚洲片国产一区一级在线 | 亚洲精品成人无限看| 在线播放免费人成毛片乱码| 四虎影院免费在线播放| 国产亚洲福利精品一区二区| 狠狠亚洲狠狠欧洲2019| 91在线手机精品免费观看| 狠狠色香婷婷久久亚洲精品| 无码欧精品亚洲日韩一区夜夜嗨 | 亚洲AV无码精品色午夜果冻不卡 | 亚洲欧美日韩一区二区三区 | 在线播放国产不卡免费视频 | 国产真人无遮挡作爱免费视频| CAOPORN国产精品免费视频| 亚洲欧洲日韩国产综合在线二区| 99久久免费国产香蕉麻豆| 亚洲AV成人无码网天堂| 亚洲国产第一站精品蜜芽| 最近中文字幕免费mv视频7| 一级毛片免费不卡直观看| 亚洲欧洲一区二区|