Ask HN: Can't code for hours since it became a job
I used to be able to code for hours in school.
Since I started working for money, this ability is gone.
The other day we played World of Warcraft in the office, and I realized I spent 4 hours in it without even noticing. It was perfectly easy.
Coding used to be like that. It's not anymore.
One thing that changed is that I was completely careless in school. It really didn't matter to me if I didn't do anything useful all week.
What do you think I should do? Try and change my perception of coding? Should I try and focus less on the reward?
26 comments
[ 3.1 ms ] story [ 69.8 ms ] threadI can't tell you how to like something more, but I can tell you that most people don't have fun or fulfilling jobs, and that's OK. The rest of your life might be enjoyable enough that it doesn't matter.
It's also OK if you look for a career change. Just because you loved coding and used to be easily absorbed by it doesn't mean it should be your career.
I have to do this every Monday.
Time is much more valuable than money, but society needs you to want money, appreciation and things so you feel it's a reward. :)
If my work can't capture my attention and use wisely the time I allocate to my group, it's going to be a negative experience for me.
As alluring the prospect, as someone who has been paid to twiddle their thumbs for a few hours -- it's not fun. It's boring and it feels wasteful.
In other words : I'd rather be at my own house doing nothing than sharing the experience with co-workers, cold lighting, and substantially less alcohol.
Take care of your recovery, have outside interests to programming and realize as you age your ability to recover slows down even more, but your abilities also change. Wisdom accumulated along the way make you able to use your energy wisely.
And that quote is both flippant, and exactly correct.
---
1) anxiety, impostor syndrome, uncertainty, vagueness, complexity, open loops, etc etc all conspire to create some analysis paralysis and the general sensation of everything else being more fun that we all know too well [0].
2) Be honest and figure out exactly what it is that is making your focus fall off
3) Start doing Test Driven Development. It's a decent enough habit in general, but for you specific problem it is golden because it a) forces you to define your problems better up front thereby decreasing your anxiety, and b) contains problems requiring less overall focus to complete your tasks.
--
[0] http://weknowmemes.com/wp-content/uploads/2012/03/the-intern...
For newer devs TDD is about removing obstacles to flow and clarifying action as much as the design/testing benefits. It won't solve genuine disinterest, but look at this threads title... it doesn't say "I find code boring" it says "I can't persist with coding any more".
Identify what matters to you in life, what you need to do to do it, and then do that. If programming is part of that, move through it. If it's not, do something else.
But don't wait till you "feel like it". that's a crappy driver. Stephen king writes every day, no matter how he feels. That's what separates the amateur from the professional.
A good book on this, is "the war of art" http://www.stevenpressfield.com/the-war-of-art/
It took me a while to learn how much distance there is between “it works” and “it doesn’t break”. When i was first learning to code the goal was “it works”. When i started getting paid to write software the goal became “it doesn’t break”, which slowed down my velocity a lot, which was discouraging.
Eventually “it doesn’t break” becomes the norm and you get faster and more comfortable. It just takes time.
It seems to me you may have never really hit rock bottom and known what it’s like to lack basic requirements.
This seems to me like an existential problem - you find world of Warcraft fun and passable but not Your work. Ask yourself why - not how to fix it. When you know why the action will be clear.
Vacations, sabbaticals, breaks are good. Though taking one is a luxury not afforded to many people in the world, it is not wrong to grasp an opportunity to do so when it presents itself. Doubling down on burnout doesn't make it go away.
Good luck.
To me, coding by myself can feel like tending to my own beautiful garden, while coding at a job feels more like working at a landfill.
The currently available prescriptions for add are extremely effective and even help you take pride and get focus in even menial tasks that previously were nearly impossible.
If it's affecting your work, it's probably worth talking to a psychiatrist.
https://medium.com/@robwolfpetersen/the-passion-problem-and-...
You need to find your drive/motivation. Some programmes are excited by technology - specific programming language or tech like ML/Cloud/OS. Others are creators that want to build things, deliver new features and seeing others benefiting from their work. There are people that code for money, selling their craft for as much as possible. There are even people that are more interested in teaching/mentoring.
When you find out what motivate you. Then it is "just" matter of finding a right place.