The value of throwing code away

We had a discussion at work about “throw away” code. One of our developers was very against developing any code that would be thrown away afterwards. He referred to this as a waste. In my view sometimes the biggest gain can be in developing code that is meant to be thrown away. It can be used to try things and, more importantly, learn things that can shape the code that is kept. This article sums it up much more eloquently than I can.

A lot of developers also like to refactor existing code. This usually involves the removal of code they deem can be improved. In some ways, the initial code could be viewed as a prototype and hence it is fine to throw away that code … and at some point the code they have written will also be thrown away.

Links

Prototypes Are Worthless, But Prototyping Is Essential

Random Posts

Hyper-V on Windows 11 Home

I am dabbling with .NET Maui and developing an application for Android. Tied to that I have just changed laptop. On my previous laptop I had Windows 11 Pro but the new one has Windows 11 Home.


Read More

Stop reading ...

I read a lot but this post is about being encouraged to stop reading.


Read More

Prototyping is not always coding

Part of my current role is prototyping new features and algorithms to determine if and how they will work. It’s nice to do some hands on coding still.


Read More