隨筆-12  評論-0  文章-1  trackbacks-0
            2012年8月15日
          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 閱讀(244) | 評論 (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 閱讀(128) | 評論 (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 閱讀(160) | 評論 (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 閱讀(155) | 評論 (0)編輯 收藏
          主站蜘蛛池模板: 乌兰县| 象州县| 沙雅县| 兰坪| 汉阴县| 昭觉县| 贺州市| 彰化市| 五台县| 泸西县| 涿州市| 丹江口市| 张家口市| 祁门县| 布拖县| 万宁市| 湟中县| 正定县| 扎赉特旗| 炉霍县| 施秉县| 塘沽区| 揭东县| 保靖县| 望城县| 浏阳市| 泰来县| 泊头市| 寻甸| 金乡县| 康平县| 纳雍县| 禹州市| 化隆| 威远县| 朔州市| 宁乡县| 宁南县| 温宿县| 曲阳县| 兴国县|