Software Engineering

Notes on XP — No.15: Design Strategy

1. Always have the simplest thing that could possibly work(that can make all the test cases run)    2. Design through refactoring    a.Implement the first story, then the second, then remove the duplicated codes    b.Refactoring should be done step by step (Incremental Change) 3.Why XP suggests we only design for today? Won’t it …

Notes on XP — No.15: Design Strategy Read More »

Notes on XP — No.10: Practices (2)

Pair Programming Collective Ownership — Everybody can change any part of the system, via Pair Programming Continuous Integration — hour-basis 40-Hour Week — If you are not fresh or rested, you can’t perform other practices well On-Site Customer — He can help you development software better and sonner. The advantage of this will outweight of …

Notes on XP — No.10: Practices (2) Read More »

Notes on XP — No.6: Four Values

There are Four core values for XP    1. Communication         The more you communicate, the less you make a mistake    2. Simplicity         The simpler the system is, the less you have to communicate    3. Feedback         a. Feedback from tests         b. Feedback from people         The more feedback you have,the …

Notes on XP — No.6: Four Values Read More »

Notes on XP — No.5: Software process is like driving a car

" Driving is about constantly paying attention, making a little correction this way, a little correction that way", said Kent Beck’s mum. Note that the driver of a software project is the customer. The customer should keep his eyes on the road, that is the system under developing. So what do we programmers do? We …

Notes on XP — No.5: Software process is like driving a car Read More »

PowerMock 下,调用JAR包中的Class的getResourceAsStream()会出问题

  If     1. a JUnit test is run with PowerMock,     2. and this test calls "this.getClass().getResourceAsStream()",     3. and this test class is loaded in a jar file, instead of being loaded as a single file   Then     A "java.net.MalformedURLException" will be thrown at this.getClass().getResourceAsStream() when this test is invoked.