Fitzwilliam的专栏

Losers always whine about their best; Winners go home and fuck the prom queen.

[Design Pattern] Template Method Pattern

The Template Method Pattern defines the skeleton of an algorithm in a method, deferring some steps to subclasses. Template Method lets subclasses red...

2007-08-29 10:43:00

阅读数:1062

评论数:0

[Design Pattern] Thread Local Session Pattern

  The Thread Local Session pattern makes use of the java.lang.ThreadLocal class to create a Session that is accessible from a single application thre...

2007-03-23 18:39:00

阅读数:960

评论数:0

[Design Pattern] Service Locator Pattern

 How JNDI lookups are accomplished can vary from vendor to vendor. In addition, repeated JNDI lookups can be expensive.Each time a user needs a servi...

2007-03-23 18:10:00

阅读数:2389

评论数:0

[读书笔记-- Learning UML 2.0, OReilly, April 2006] Activity diagram

3.1. Activity Diagram EssentialsFigure 3-2. Activity diagrams model dynamic behavior with a focus on processes; the basic elements of activity diagra...

2007-03-12 17:54:00

阅读数:1469

评论数:0

[读书笔记-- Learning UML 2.0, OReilly, April 2006] Use case diagram

  读书笔记:Learning UML 2.0, OReilly, April 2006 (一)Use case diagram Rule of thumb to specify a Use Case:A use case is something that provides some measu...

2007-03-08 18:44:00

阅读数:1375

评论数:0

[读书笔记]about Exceptions

  Ø        Exceptions identify errors that arise in your program.Ø        Exceptions are objects of subclasses of the Throwable class.Ø        Java i...

2006-12-20 14:05:00

阅读数:609

评论数:0

[读书笔记]版本控制模式------With SubVersion

Common Branching PatternsVersion control is most often used for software development, so heres a quick peek at two of the most common branching/mergi...

2006-08-16 11:09:00

阅读数:891

评论数:0

[读书笔记][Effective Java]不要在精确计算中使用float和double类型

在精确计算,尤其是有关金钱的商业运算中,不能使用float和double类型。 看如下的例子:商店里某种糖果的价格是0.1元,0.2元,0.3元, …… 依此类推,一直到1.00元。现在你手中有1元钱。你想买一些糖果,假设你从1角的糖果开始依次买,一种价格的买一颗。计算一下一共可以买多少颗糖果,最...

2006-08-11 10:50:00

阅读数:1928

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭