- 博客(10)
- 收藏
- 关注
how to load class in jvm?
1, class loader could inherit the classes object from its parent class loader, e.g. bootstrap class loader.2, when use loader to load class, e.g. Class.forName("Foo");it will check the class is ...
2009-11-05 23:57:13 83
jQuery Common Coding and Plugin development tips
jQuery Common Coding tips:1, less code by chain coding2, Use data method instead of storing data inside the DOM. [code="js"] $('selector').data('meaningfullname', 'this is the data I am stor...
2009-10-30 15:05:07 100
Regular Expressions
Should we do RegEx or not?*pros:save time and less effortsless code*cons:sometimes heavyweight or involves heavy processingcomplicated RegEx hidden bugs, hard to read/writeIn a word, w...
2009-10-30 10:13:56 64
js练习题:数组除重
请给Array本地对象增加一个原型方法,它的用途是删除数组条目中重复的条目(可能有多个),返回值是一个仅包含被删除的重复条目的新数组。[code="js"] var hashCode = function(element){ return element.sort().toSource(); } ...
2009-10-29 21:08:47 131
原创 Outlook常用快捷键
做为一个java coder,除了eclipse, firefox,也是Outlook的重度使用者。熟用以下快捷键是request code review, reply code review的制胜法宝。创建邮件。 Ctrl+Shift+M创建便笺。 Ctrl+Shift+N新建MO文档。 Ctrl+Shift+H检查姓名。 Ctrl+K面板切换。 ...
2009-10-29 09:43:47 731
Efficient JavaScript Coding Convention[待续]
Efficient JavaScript coding1, 尽可能选择高效的methode.g. 如果没有必要,可以不用regular expressionString.indexOf, String.lastIndexOf > String.match, String.search, String.replace2, 面对large loop就要斤斤计较2.1 Cre...
2009-10-27 23:21:47 65
use less code to deliver high quality product
Less Code == [Less Bugs,Better Readability,Less programmers to hire, Less organizational communication costs, Less maitain cost]Less Code != [Higher Productivity,Better Performance]1, import stati...
2009-10-27 15:17:39 126
欲善事先利器:javascript 常备工具总结
按使用频率排名:1,IDE个人首选aptana IDE,因为用惯了eclipse快捷键。根据个人喜好,可选intelJ,gvim2,debugger熟记debugger的快捷键是高效coding的关键之一。FF当属firebug,IE除了IE8的debugger没有一个好鸟。3,API doc熟练翻阅各种API电子书,HTML 和 jscript的电子书是必备的,根...
2009-10-26 23:32:23 118
Concrete Javascript Pattern
传统的client side js MVC 结构:Model:json object - mapping with PO from server sideView:HTML + CSSController:Page object - 负责页面初始化逻辑(验证、事件绑定、json数据渲染到DOM),提交时,获取DOM的数据组装json。Concrete Javascr...
2009-10-25 23:58:58 117
修正screw.unit在IE下显示问题的bug
solution:所有的$(html)用法,给html的内容加上关闭标签,否则IE不支持[code="js"]$('')//refactor into$('')//or$('')[/code]-------------------------[url=http://github.com/nkallen/screw-unit]screw.unit[/url]...
2009-10-25 20:19:37 87
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人