路宁(luning)的博客

  • 谨慎地创建和使用工具类 - [Software Development]

    2008-11-02

    Utility, Helper, Common常被用来给静态的工具类命名,我一看到这样的东西就不由地皱眉头,不是说工具类没有用,而是因为看到太多工具类的误用了。下面是我在工作中遇到的两个例子。

    有一次,看到下面的Java代码:

    public void doSomething(){
    if(StringUtil.isEmpty(this.value)){
    // do this way ...
    }
    else{
    // do that way ...
    }
    }

    代码使用了StringUtil,觉得奇怪,难道内建的String功能不够强大,还要搞出个StringUtil?直觉告诉我,isEmpty是多余的,一定是哪里做错了什么......

    Tag:软件开发 设计 工具类 工具函数
    luning published this at 15:36:43 | 阅读全文 | Comment0 | Edit | 分享 0
  • Aggregate in Domain Driven Development - [Software Development]

    2008-01-26

    The ppt for technical session I gaved in office:
    http://luning12.blogbus.com/files/12068109220.ppt
    ...
    Tag:DDD 软件开发 Aggregate 领域驱动开发
    luning published this at 13:05:22 | 阅读全文 | Comment0 | Edit | 分享 0
共1页 1

My Profile

luning

我是路宁,ThoughtWorks公司咨询师,做过几年.NET方面的开发,对敏捷和精益很感兴趣。
  • RSS EMail Me

Latest logs

  • Share DOM Fixtures between JavaScript Unit Tests
  • Manage Mock Dependencies of Controllers with IoC Container
  • The Waste from Very Fat to Very Lean's Perspective
  • A Misleading Analogy between Software Development and Manufacturing
  • Selenium Test Powered by jQuery.parcel
  • Remove the Noisy Thread.Sleep and WaitForCondition from Selenium Tests
  • Code Snippet to Log All Events as They Are Triggered
  • A Quick Check of Javascript Code Quality
  • Implement Object Builder for Testing in a .NET Object Initializer Style
  • 看过《丰田现场管理方式》,30年前出版的书
全部日志>>

Comments

  • taowen:http://taowen.github.com/bay...
  • dewwind88:呵呵,我信!我也是自己深有同感~-网络上的陌生人,搜索到...
  • sean xu:项目忙完了吗?好像很久没写精益方面的文章了:)...
  • 菜头:good summary ^.^
  • luning:你是说如何确定适合自己team的switch频率吧,多尝...
  • jackie chen:LN,想问问:怎样计算switch pair rate ...
  • sabrina:路子分析的很有道理哦!...
  • sabrina:虽然我不是很懂技术,但是能看出你的用心,加油哦!...
  • ncholas ren:where is the 'continue...'
  • laura:不错,好好学习!

Categories

  • Lean[21]
  • Software Development[2]
  • Agile[15]
  • Life[1]
  • Economics[3]
  • Misc[0]
  • Test[7]
  • Javascript[3]

Tag

  • 敏捷[32]
  • 精益[29]
  • Agile[22]
  • 软件开发[19]
  • Lean[15]
More..

Links

  • Michael Chen’s Blog
  • Tao Wen’s Blog
  • Moxie’s Blog
  • Li Jian’s Blog
  • 王宇
  • Visit Counter: