News for hackers. Stuff that matters.
Re:How to reduce the cognitive load of your code by JoeAltmaier on Tuesday March 29, 2016 @10:40AM (#11381761)
Isn't that just another philosophy? Lets be more charitable. Engineers are given limited time to do any job (time == money). So they do what they can. Mostly on a budget.
Re:How to reduce the cognitive load of your code by protonfish on Tuesday March 29, 2016 @10:51AM (#11381875)
The bad code I see isn't because someone was in a rush - it's because somebody spent a lot of time and effort to make it a mess. I swear 80% of developers don't know the difference between clear, elegant, readable, and modular code and a giant pile of mess. This is why I've stopped encouraging team members to refactor; the end result is most often worse.
Re:How to reduce the cognitive load of your code by st3v3r on Tuesday March 29, 2016 @01:45PM (#11383302)
Part of that is that any 3 developers will have 4 different opinions on what is clear, elegant, and modular, and what is a giant pile of mess.
Re:How to reduce the cognitive load of your code by Fargren on Tuesday March 29, 2016 @12:40PM (#11382742)
Have you tried doing code reviews? If a refactoring sucks you should be able to catch before it goes into master(or however your main branch is called), and educate the programmer. Teaching our coworkers to write better code is part of our jobs.