« | September 2025 | » | 日 | 一 | 二 | 三 | 四 | 五 | 六 | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | | | | | |
| 公告 |
工作中的Janet.加油!
生活中的Janet.i-life
|
Blog信息 |
blog名称: 日志总数:30 评论数量:10 留言数量:0 访问次数:86043 建立时间:2005年8月31日 |

| |
java23种模式一点就通 文章收藏
janetvsfei 发表于 2006/3/2 11:37:22 |
创建型模式
FACTORY?人才市场:以往是要哪个人才,就找哪个人才,效率低,现在有了人才市场,我们只需 直接去人才市场挑一个好了;
BUILDER?生产流水线:以前是手工业作坊式的人工单个单个的生产零件然后一步一步组装做,好 比有了工业革命,现在都由生产流水线代替了。如要造丰田汽车,先制定汽车的构造如由车胎、方 向盘、发动机组成。再以此构造标准生产丰田汽车的车胎、方向盘、发动机。然后进行组装。最后 得到丰田汽车;
PROTOTYPE?印刷术的发明:以前只能临贴才能保持和别人的字迹基本相同,直从印刷技术发明, 从而保证了复制得和原物一模一样;
SINGLETON?唯一:以前是商标满天飞,相同的商标难免造成侵权,直从有商标保护法后,就保证 了不会再产生第家企业使用相同的商标; 结构型模式
ADAPTER?集众人之私,成一己之公:武当派张三丰会太极拳,少 |
|
[Java Tips]JOIN table 文章收藏
janetvsfei 发表于 2006/1/5 12:59:05 |
Tip time:
(Background: This database is used to keep track of scores for students in my classes.)
So in this case, I have three tables, one has student's "codename" (as posting their real name on the web is a no-no) and an index (there is more data in this table, but this is all you really need to know.) Then there's a table with the assignments, containing the assignment name, and an index for each assignment. Finally, there is a scores |
|
[Java Tips]My Favorite (Dead) Java Boilerplate 文章收藏
janetvsfei 发表于 2005/11/17 8:59:07 |
In the Java platform we have tended to focus on adding lots of power and flexibility. That's great, but sometimes that power and flexibility can get in the way of doing common tasks. As part of the Ease-of-Development initiative we have been focusing on simplifying common tasks and getting rid of unnecessary boilerplate code.
Here are my five of my favorite cleanups so far:
#1: Opening a Text File
In JDK 1.1 to 1.4, in order to open a simple text output fil |
|
Ant实践 网上资源
janetvsfei 发表于 2005/10/9 17:32:53 |
Ant实践
1. Ant是什么? 2. 安装Ant 3. 运行Ant 4. 编写build.xml 5. 内置task(internet) 6. EAR task(internet) 7. WAR task(internet) 8. JUnit task(internet)
--------------------------------------------------------------------------------
1.Ant是什么?--------------------------------------------------------------------------------
Ant是一种基于Java的build工具。理论上来说,它有些类似于(Unix)C中的make ,但没有make的缺陷。
既然我们已经有了make, gn |
|
AJAX 上手篇 网上资源
janetvsfei 发表于 2005/10/9 13:52:59 |
AJAX 上手篇
From MoztwWiki
這篇文章說明 AJAX 相關技術的基礎,並提供實例供您上手。本文編譯自 AJAX:Getting Started (http://developer.mozilla.org/en/docs/AJAX:Getting_Started |
|
|