3 ms·
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 th
by Jtsummers 5y ago
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.
- refenestrator 5y agoToday'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.