随笔分类 -  study note

[Study Note] 产品经理的视角
摘要:在百度文库里面看到了这个文档,可惜没有积分不能下载,简单摘录如下。 产品运营体系综述 产品是什么 任何事物存在,都是因为它们被需要。 “存在就是被需要” 任何东西都可以被看作“产品”。它的好坏取决于被需要的程度,以及它满足外界需要的程度。 成功的人必是很好的满足大众需要的人。这和好坏无关 不被需要的东西,渐渐淡出历史而消亡,或者转化为新的被需要的方式 产品,就是一系列符合用户需要的功能的组合... 阅读全文

posted @ 2010-04-25 22:03 zhaorui 阅读(1138) 评论(0) 推荐(0)

[Study Note] Design and Testability 20100425
摘要:[Jeremy’s Fourth Law of TDD: Keep Your Tail Short] When you pull a class off the shelf, what else is coming with it? – Stuart Holloway My First Foray into TDD Bombed Move all of the persistence out i... 阅读全文

posted @ 2010-04-25 19:37 zhaorui 阅读(281) 评论(0) 推荐(0)

[Study Note] Design and Testability 20100423
摘要:[Jeremy’s Third Law of TDD: Test Small Before Testing Big] Test Driven Development is an important and valueable tool to achieve rapid feedback cycles, but only if write and test software in small pi... 阅读全文

posted @ 2010-04-24 00:58 zhaorui 阅读(162) 评论(0) 推荐(0)

[Study Note] Design and Testability 20100417
摘要:为了整齐好看,文章的题目略有改动 Jeremy’s rules of TDD Isolate the Ugly Stuff Push, Don’t Pull Test small before testing big Avoid a long tail Favor composition over inheritance Go declarative whenever possible Don’... 阅读全文

posted @ 2010-04-20 00:46 zhaorui 阅读(188) 评论(0) 推荐(0)

[Study Note] Patterns of Enterprise Application Architecture
摘要:Martin Fowler 的 Patterns of Enterprise Application Architecture 被无数的人奉为经典,我一直都没有看过原著。最近在学习 TDD 的时候经常会看到其中的一些模式,从 Martin Fowler 的网站上可以找到这一篇关于企业应用架构模式的简介,顺手学习一下。因为全部的企业应用架构模式比较多,所以我打算集腋成裘。 [A short sum... 阅读全文

posted @ 2010-04-17 00:32 zhaorui 阅读(260) 评论(0) 推荐(0)

[Study Note] Design and Testability 20100412
摘要:[Unit Testing Business Logic without Tripping Over the Database] reasons to avoid data access calls inside unit tests for the business logic Tests with database calls will execute significantly slowe... 阅读全文

posted @ 2010-04-17 00:12 zhaorui 阅读(169) 评论(0) 推荐(0)

[Study Note] Design and Testability 20100411
摘要:[Succeed with TDD by designing with TDD] I don;t care how good you think your design is. If I can’t walk in and write a test for an arbitrary method of yours in five minutes its not as good as you thi... 阅读全文

posted @ 2010-04-12 01:05 zhaorui 阅读(165) 评论(0) 推荐(0)

[Study Note] Design and Testability 20100410
摘要:之前在4月1日的时候,开始看 Jeremy D.Miller 的一些关于 TDD 和 Unit Test 的文章,结果没看两篇,就先去补课了。到今天为止,看完了几篇 Patterns in Practice 系列的文章,然后回过头来,开始看 Design and Testablity。 似乎 TDD Design Starter Kit 这个系列文章的先后顺序有点乱,至少我看到了两个版本——TD... 阅读全文

posted @ 2010-04-10 17:32 zhaorui 阅读(190) 评论(0) 推荐(0)

[Study Note] Patterns in Practice 20100406
摘要:[Persistence Patterns] Domain Models a domain model is an object model of the domain that incorporates both behavior and data. the role of database and data access code in system: The database is the... 阅读全文

posted @ 2010-04-07 00:00 zhaorui 阅读(191) 评论(0) 推荐(0)

[Study Note] Patterns and Practices in NHibernate
摘要:在 NHibernate Forge 上,Patterns&Practices 栏目里面只有两篇文章,我感兴趣的是其中一篇:NHibernate and the Unit of Work Pattern。[Identity Field, Equality and Hash Code]“The identity field saves a database ID field in... 阅读全文

posted @ 2010-04-06 00:00 zhaorui 阅读(225) 评论(0) 推荐(0)

[Study Note] Patterns in Practice 20100403
摘要:[Object Role Stereotypes] Responsibility-Driven Design CRC Cards, Class or Candidate/Responsibility/Collaborators Responsibility-Driven Design (RDD) Objects are not just simple bundles of logic and... 阅读全文

posted @ 2010-04-03 22:56 zhaorui 阅读(181) 评论(0) 推荐(0)

[Study Note] Patterns in Practice 20100404
摘要:[Cohesion And Coupling]keep things that have to change together as close together in the code as possible. Allow unrelated things in the code to change independently (also know as orthogonality). Mini... 阅读全文

posted @ 2010-04-03 10:40 zhaorui 阅读(236) 评论(0) 推荐(0)

[Study Note] Patterns in Practice 20100402
摘要:这一系列文章是 Jeremy Miller 在 MSDN Magazine 上从 June, 2008 开始的一个专栏,大概是每两个月一篇吧。其中 2008 年的四篇文章关注一些 software design fundamentals 基本的设计理念,学习一下。 [The Open Closed Principle] Agile Software Development Principles... 阅读全文

posted @ 2010-04-02 12:37 zhaorui 阅读(161) 评论(0) 推荐(0)

[Study Note] TDD: Consistent test structure (测试代码的结构一致性)
摘要:在 codebetter 上看到 Mark Needham 的一篇文章 TDD: Consistent test structure,对于测试代码的结构进行了探讨。在以下的两个结构相近/内容相反的测试函数中有什么不同么? [代码][代码]只要留意代码,就能看出第二段测试代码中使用 Inline 将变量 aFoo 直接赋值为 null,然后传递了进去。Needham 的同事 Damian 说,Inl... 阅读全文

posted @ 2010-04-01 20:56 zhaorui 阅读(162) 评论(0) 推荐(0)

[Study Note] Dependency Injection and Inversion of Control
摘要:之前,一直没有搞明白这两个概念,这次原本打算学习一下 StructureMap,结果被迫补课,总算是对它们多少有了一点印象。 出来混,总是要还的。 [Before you use an IoC tool, some concepts to know first] well designed Object Oriented systems are composed of many object... 阅读全文

posted @ 2010-03-30 23:06 zhaorui 阅读(232) 评论(0) 推荐(0)

[Study Note] Maintainable MVC Series
摘要:注:随笔是2010年3月份写的,当时不知道怎么就保存成了草稿而一直没有发布。并没有完成整个系列,回过头来,我似乎也看不太明白了,现在(2013年6月)发布一下,算是纪念吧,不过,我把发布时间改成了2012年[Maintainable MVC Series: Introduction]这篇Introduction中最吸引我的是关于 web application 的架构。PRESENTATION: Views, Controllers, Form Model, View Model, Handlers, Mappers, (Domain Model)DOMAIN: Services, (Doma 阅读全文

posted @ 2010-03-29 19:32 zhaorui 阅读(249) 评论(0) 推荐(0)

导航