On Prototyping

Clearly, application prototyping uses a different set of technologies than production-grade development. Even though they overlap - and in fact the same framework can be used for both - it is often preferable to write quick-and-dirty code in one way, and "permanent" production code in another. In fact, when iterating quickly, it makes sense to write a component with the expectation that it will be thrown away. Write it in order to rewrite it from scratch later - and that is still faster and higher quality than writing it "well" the first time.

Case in point: test-driven development (TDD) may be unnecessary and detrimental during quick development. There is also the converse side of the argument: if you get stuck... write some tests. Or if the code became completely unmanageable, un-twine it by writing tests. The tester mentality is a good one, and it helps to get one un-stuck, and it definitely helps writing long-term maintainable code. However if you know the code may be thrown out or rewritten, or even rewritten more than once - than test-driven may be ineffective and should be abandoned.
 

Related Articles

comments

Please log in to post comments:  
Login with Google
On 2026-04-19 admin said:

Contrary to popular belief, quick-and-dirty prototyping can often create more technical debt than it solves, as it bakes poor practices into the team's habits and makes real refactoring less likely, not more. Sometimes aiming for thoughtful, maintainable code from day one creates more long-term speed, not less.