sp4ceman
Well-Known Member
- Joined
- Jul 11, 2011
- Messages
- 418
- Reaction score
- 0
i said a ****ty but WORKING product is better than nothing.
if you give me the choice of a dev sitting for 3 days analyzing and over analyzing a problem and a dev sitting for 3 days and pushing out something thats messy or smelly code BUT solves the problem i will take the code smell every time. especially if its a relatively small sprint. you can't go terribly wrong in 3 days if you're writing code that actually solves the problem, which means you can always fix it up.
i come from a tdd background and much of what i say is in that mindset. things like code spikes and the notion that you get it working ugly and then refactor are all vested in tdd. when i say ugly code im talking about worrying about things like base classes, inheritance, interfaces, method names, extraction of logic etc. basically just go into zen mode for an hour, write what you can then stop yourself when you reach a milestone or requirement and then clean it up. don't get out of the zone in your logic just to worry about a method name, or if it fits some pattern or whatever. but, make sure cleaning up and refactoring is part of your "coding process" that only you see.
im not advocating shipping this out. its advice meant to stop someone who is worrying so much about architecture, design, patterns, etc that he can't actually begin writing anything. this was the scenario as i understood it that was described in the op
if you give me the choice of a dev sitting for 3 days analyzing and over analyzing a problem and a dev sitting for 3 days and pushing out something thats messy or smelly code BUT solves the problem i will take the code smell every time. especially if its a relatively small sprint. you can't go terribly wrong in 3 days if you're writing code that actually solves the problem, which means you can always fix it up.
i come from a tdd background and much of what i say is in that mindset. things like code spikes and the notion that you get it working ugly and then refactor are all vested in tdd. when i say ugly code im talking about worrying about things like base classes, inheritance, interfaces, method names, extraction of logic etc. basically just go into zen mode for an hour, write what you can then stop yourself when you reach a milestone or requirement and then clean it up. don't get out of the zone in your logic just to worry about a method name, or if it fits some pattern or whatever. but, make sure cleaning up and refactoring is part of your "coding process" that only you see.
im not advocating shipping this out. its advice meant to stop someone who is worrying so much about architecture, design, patterns, etc that he can't actually begin writing anything. this was the scenario as i understood it that was described in the op