News for hackers. Stuff that matters.
Re:Let’s Get Excited About Maintenance by artursapek on Sunday July 23, 2017 @10:33PM (#14835517)
Automated formatting like gofmt is great, and I'm a huge proponent of it. But code is so temporary that it makes no sense to spend man-hours making it look pretty.
Re:Let’s Get Excited About Maintenance by dasil003 on Sunday July 23, 2017 @11:27PM (#14835684)
One-off script sure, but for core product code I disagree. It's temporary in the grand scheme of things yes, but how many times will it be read before it is gone? Taking a couple extra minutes to clean things up and standardizing style pays dividends in readability, and traceability via git-blame, etc. Same goes for extended commit messages that explain the approach taken.

It's not a question of sinking tons of hours into this stuff, if you're using good tools it just becomes the way you work. Could you gain 5% efficiency by just blasting out the ugliest code you can? Yes maybe, but if it's actively developed code you could easily cost future developers much more.