Re:Reading code is a skill (2020)
by Jtsummers on Monday September 20, 2021 @05:06PM
(#28598994)
Yep. There is a limit to what bad code, just like bad prose, can tell you without having to restructure it yourself or risk losing your sanity to discover in the existing presentation. I've had colleagues whose code was totally functional and worked to achieve the desired result, and totally incomprehensible without a great deal of effort. Rewriting and reorganizing into a more sensible flow (aka, refactoring) was the only way to discern the real meaning behind the code. Code reviews are helpful here, to keep code like that out of production and give feedback so less code like that gets written in the first place.
[ Parent
| on HN ]
Re:Reading code is a skill (2020)
by refenestrator on Monday September 20, 2021 @06:54PM
(#28600082)
Today's code-reviewed perfection is tomorrow's mess, unless you refactor as the domain drifts away from the original model.
Code reviews can only enforce existing practices and style, rethinking architecture is a different matter.