2 ms·
Extreme Programming had this idea of doing "the simplest thing that could possibly work". Don't get hung up on lots of architecture or design; make something s
by AnimalMuppet 12y ago
Extreme Programming had this idea of doing "the simplest thing that could possibly work". Don't get hung up on lots of architecture or design; make something simple that works. But of course, that doesn't work for long - the requirements get more sophisticated, and the simplest thing no longer works. Then you have to refactor/redesign/rearchitect. And that's OK, because now you know which direction to do it in. But don't do more than you need for now, because you don't know which direction to do "more" in.
Design up front for reuse is, in essence, premature optimization.
- pan69 12y agoI guess that's sort of true but often you know what direction you will be heading, just not now. I see it like a game of chess, you want to be able to at least predict the next few moves and cater your architecture towards that. However, this is an acquired skill that takes practise. I also think there is a difference between architecture and features where keeping it simple as possible is more about the features and less about the architecture, i.e. keep the features as simple as possible but have your architecture cater for the future.
- collyw 12y ago"the simplest thing that could possibly work". I would say that is common sense after writing software for over 12 years. Not specific to extreme programming.
- pluma 12y agoIt's also at the base of TDD: if you don't understand a problem, write exploratory code, then throw it away, write the specification (i.e. tests) for the parts you understand, then write the minimal code that satisfies the tests, iterate until you hit the next bit you don't understand, repeat. And the entire "build one to throw away, then build the real thing" (i.e. prototype first) ideology is also tooting the same horn. Except that one is much harder to explain to non-programmers because they think "if it works, why throw it away?".