<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年3月9日
    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 閱讀(242) | 評論 (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 閱讀(126) | 評論 (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 閱讀(158) | 評論 (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 閱讀(153) | 評論 (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 閱讀(142) | 評論 (0)編輯 收藏
    when analyzing/programming, think about reasonability against requirements
    posted @ 2012-04-17 12:55 Sam Zheng 閱讀(312) | 評論 (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 閱讀(236) | 評論 (0)編輯 收藏
    主站蜘蛛池模板: 无码人妻久久一区二区三区免费丨| 亚洲国产成人久久一区二区三区| 国产V片在线播放免费无码| 日韩精品无码人妻免费视频| 亚洲av一本岛在线播放| 中文字幕无码不卡免费视频| 国产色在线|亚洲| 成人毛片免费观看视频大全| 亚洲av无码一区二区三区在线播放| 日韩视频在线免费观看| 国产亚洲精品国产福利在线观看| 国产特级淫片免费看| 怡红院亚洲红怡院在线观看| 一本色道久久88亚洲综合| 日本特黄特色AAA大片免费| 国产亚洲美日韩AV中文字幕无码成人| 国产日韩久久免费影院| 亚洲色图国产精品| 久久国内免费视频| 国产青草亚洲香蕉精品久久 | 69堂人成无码免费视频果冻传媒| va天堂va亚洲va影视中文字幕| 在线成人a毛片免费播放| 美女视频黄.免费网址| 亚洲情综合五月天| 波多野结衣中文字幕免费视频| 亚洲中文字幕无码av在线| 国产成人免费高清在线观看| 美女巨胸喷奶水视频www免费| 亚洲成人在线网站| 国产免费午夜a无码v视频| 黄色网址免费在线观看| 久久狠狠爱亚洲综合影院| 亚洲国产一区二区视频网站| 日韩免费无码一区二区三区| 亚洲一卡2卡3卡4卡5卡6卡| 国产aⅴ无码专区亚洲av麻豆 | 中文字幕亚洲综合精品一区| 在线a人片天堂免费观看高清| 精品一区二区三区高清免费观看| 亚洲欧洲日产国码二区首页|