by BurningFrog · 5y ago · 0 comments
If you need extreme focus to work with your code, that code is garbage.
Well written and well factored code is easy to get work done in, and you don't need to keep a zillion things in mind to navigate it.
Of course, reality is that the code most people work in is some level of garbage, and maybe there isn't much you can do about that. Either because you're not in charge, or you don't have the skills to improve the code.
Don't have the skills or don't have the time? Predicting, down to the hour, how long every programming task will take before you undertake it has been a staple of programming professionally as long as I've been doing it. I have the skills to simplify a codebase to any level you can define, but I can't do it in an hour.
After I got into the agile/XP world ~15 years ago, there are no deadlines, and if I need to take a day to improve some code, I do.
I'm not saying this to brag about my great life, but to tell you there are other kinds of jobs out there.
That said, a good number of pro developers do not have the skills to write well factored code. Or the interest, frankly.
Maybe _i_ am garbage? Sometimes i need focus to solve the problem in a way that's easy to reason about. So no code exists, nothing you could critique, so perhaps your critique would be just about me?
Sometimes complex problems just require focused thought. Distractions detract focused thought. It's still possible to work through most problems when heavily distracted, but why the argument here? Legitimately, it baffles me. I do think devs over hype the importance of software development (generally speaking), but if an individual needs focus to solve a problem, be it math, software, economics, whatever - why would we argue that they don't actually need to be that focused?
But for anyone dealing with synchronization between threads/processes/machines, modeling engineering problems with large systems of equations, complex business domains, systems programming, actually implementing something from an algorithms textbook yourself, cryptography, or any problem that requires you to keep more than one or two things in your head at once to be solvable, focus is important.
And if the simple crud app mentioned before turns into spaghetti through no fault of your own, you'll still need to focus.
So I'm not going to shame anyone for saying they need to focus.