2 ms·
Most of my code is "throw-away" code :| In the sense that even if it's about the best code I can produce right now, in a couple months I'll have learned so muc
by Hexstream 19y ago
Most of my code is "throw-away" code :|
In the sense that even if it's about the best code I can produce right now, in a couple months I'll have learned so much and improved the rest of the system incrementally so much that my formerly-best code I will need to throw away (as in refactor or even rewrite).
- phaedrus 19y agoDocument it anyway! Although it might seem like a waste of time to write about something that will change, the fact is that all software is potentially throw-away code. That's the "soft" in software - you can and should change it if it needs to change. If didn't document things that might change, you'll either never document or you will be loathe to change code that has been documented. Instead, just look at both the code and the documentation as a working sketch.