News for hackers. Stuff that matters.
Re:Write code that is easy to delete, not easy to extend by Ronsenshi on Sunday February 14, 2016 @02:34PM (#11099614)
I suppose I'm similar to the way you write code. However I'd like to note that this 10%-70% in my case (and may be true for you) is applied only in cases when I'm implementing something very unfamiliar to me.

If I'm working on some familiar problem or in a familiar area I tend to write nice, clean code from the beginning. As I have more and more experience in various areas it reduces number of times when I have to do this process of dirty code->refactor.

Re:Write code that is easy to delete, not easy to extend by manyxcxi on Wednesday February 17, 2016 @12:37AM (#11115582)
That's definitely true for me. If I'm writing a traditional web app using a language or framework I'm very familiar with then there the difference between 10% and 100% in cleanliness is nearly negligible. But those aren't the interesting projects. When I look at my code and it looks like shit and I've got notes and commented out blocks I feel happy because I'm working on something that my brain can't just spit out a complete answer for. It also feels even nicer to be near the end and see how nice it all looks once my thoughts have formed into a solution.