3 ms·
What this post says: "throw away the first draft of your code" What every HN commenter is replying to: "throw away your code" -- I've written software profes
by Benjammer 3y ago
What this post says: "throw away the first draft of your code"
What every HN commenter is replying to: "throw away your code"
--
I've written software professionally for 14 years and just last week I wrote code for ~3 days and then decided I was on the wrong track, and checked out main and made a totally new branch, spent ~1.5 days re-writing my feature in a totally different way. I had come to realize the new way would be easier to write, MUCH easier to test, and a bit more maintainable long-term. Nothing wrong with throwing away un-merged code if you decide that merging isn't the right decision, and feel you have learned valuable lessons to inform the re-write.