<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 閱讀(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)編輯 收藏
    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 閱讀(168) | 評論 (0)編輯 收藏
    主站蜘蛛池模板: 美女免费精品高清毛片在线视| 91亚洲一区二区在线观看不卡 | 国产免费av片在线播放| 久久精品亚洲视频| 一个人看的www免费高清| 成人免费看片又大又黄| 久久国产精品亚洲一区二区| 人妻免费久久久久久久了| 在线播放高清国语自产拍免费 | 美女内射毛片在线看免费人动物| 久久精品国产亚洲7777| 国产成人亚洲综合无| 在线不卡免费视频| 亚洲人成网站看在线播放| 37pao成人国产永久免费视频 | 亚洲AV无码一区二区三区牲色| 国产成人精品免费视频动漫| 亚洲国产一区在线| 精品免费视在线观看| 国精无码欧精品亚洲一区| 国产免费一区二区三区免费视频| 夜色阁亚洲一区二区三区| 狠狠综合亚洲综合亚洲色| 国产在线a不卡免费视频| 亚洲日韩在线中文字幕综合| 日本久久久免费高清| 亚洲精品无播放器在线播放| 精品无码国产污污污免费| 亚洲精品动漫免费二区| 日韩免费视频播放| 免费观看四虎精品成人| 夜色阁亚洲一区二区三区| 一级黄色毛片免费看| 亚洲中文久久精品无码| 青柠影视在线观看免费高清| 亚洲av综合av一区| 四虎精品视频在线永久免费观看| 亚洲av无码一区二区三区天堂古代| 日本一区二区三区免费高清| 亚洲精品乱码久久久久蜜桃| 亚洲成a人在线看天堂无码|