3 ms·
My contrarian view on this: 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 do
by BurningFrog 5y ago
My contrarian view on this:
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.
- commandlinefan 5y ago> 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.
- BurningFrog 5y agoI have programmed professionally since 1984. Never had to predict by the hour, but occasionally by day/week. 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.
- oauea 5y agoCool, how do you get there? And you realize some work is simply non-trivial?
- deepsun 5y agoSometimes you cannot write an easy code -- e.g. low-level heavily optimized code.
- adkadskhj 5y ago> If you need extreme focus to work with your code, that code is garbage. 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?
- hashkb 5y agoMaybe you should collaborate with someone instead of insisting that you must be left alone without interruptions to succeed. Or maybe you (aren't garbage but) need more practice.
- jk20 5y agoWhy do you assume that developers cannot collaborate?
- adkadskhj 5y agoI don't know - two people getting interrupted frequently seem to be multiplying by zero to 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?
- BurningFrog 5y agoMy experience is that two heads are far superior to one for solving coding problems!
- adkadskhj 5y agoAgree with that, definitely
- hashkb 5y ago
- mrfredward 5y agoFor a very basic CRUD app I tend to agree with you. 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.
- theknocker 5y ago>I have never solved a difficult problem on my own
- Mike86534 5y agoOne of the dumbest comments I've read on HN. Congrats. Not all programming work involves tweaking little bits and pieces of an existing basic web application. I'm working on low level stuff right now, in my own codebase which is very clear and well organized, and I really have to concentrate hard on solving problems I've never worked on before.