I used to spend the vast amount of my time debugging. Fast forward a few years - Experience, good programming habits, and the gratuitous use of assertions. Now I spend a negligible amount of time debugging, and it never ceases to amaze me how frequently things just work the first time. Edit: I guess I want to say that there is one, and only one, bottom line: the relentless, ruthless pursuit of quality . It takes time…
Ask HN: Do you spend more time coding or debugging?
51–60 of 77 posts
Re: Ask HN: Do you spend more time coding or debugging?
#52I used to spend the vast amount of my time debugging. Fast forward a few years - Experience, good programming habits, and the gratuitous use of assertions. Now I spend a negligible amount of time debugging, and it never ceases to amaze me how frequently things just work the first time. Edit: I guess I want to say that there is one, and only one, bottom line: the relentless, ruthless pursuit of quality . It takes time…
Re: Ask HN: Do you spend more time coding or debugging?
#53I work in an environment where tests are unheard of. Most of the Javascript written is erring towards the "simple" side with many edge cases as it is all written for front-end web development. Things like calculating the size of the header, adding/removing classes based on certain user actions, managing Google Maps or having logic for complex forms.
Most things are several small (The most complex thing I've built is a pre-qualification form. Thank god for moment.js, because I never thought it would be so difficult to calculate if someone is between the ages of 40 and 82 (or will be 40 by October 15th of next year).
Re: Ask HN: Do you spend more time coding or debugging?
#54cough.NET Parallelismcough
Re: Ask HN: Do you spend more time coding or debugging?
#55Re: Ask HN: Do you spend more time coding or debugging?
#56Re: Ask HN: Do you spend more time coding or debugging?
#57So, they're all bugs, and in a sense, all coding is debugging. New-feature, regression, existing (from previous release), and escalation bugs. They're all basically the same thing: Identify the deficit, write a fix (includes what you might have meant by "debugging"), write tests to cover the changed behavior, check it in, deploy/release.
Re: Ask HN: Do you spend more time coding or debugging?
#58When I started, the bulk of my time was debugging my own code. I am gifted with the ability to write vast swathes of code in a short amount of time and when I was younger, it was vast swathes of shit code.
A little later into my career years 3.5-5, I spent more time coding and less time debugging. I designed my code better, used better patterns, and generally was just an all around better engineer.
I've come into the third stage of my career now where I spend a good portion of my time debugging junior engineers' code in a complex system I work on. In particular, my focus is usually in reliability and performance. I don't tend to debug the junior engineer one-off issues but rather the subtle regressions introduced by seemingly harmless changes.
In this third stage, I still write a lot of code, but much more of it is investigative and refinement over existing ideas with occasional injection of something wholly new.
Re: Ask HN: Do you spend more time coding or debugging?
#59I used to spend the vast amount of my time debugging. Fast forward a few years - Experience, good programming habits, and the gratuitous use of assertions. Now I spend a negligible amount of time debugging, and it never ceases to amaze me how frequently things just work the first time. Edit: I guess I want to say that there is one, and only one, bottom line: the relentless, ruthless pursuit of quality . It takes time…
"Quality? But how does that affect our bottom line?" :)
Re: Ask HN: Do you spend more time coding or debugging?
#60Neither. I spend most of my time procrastinating and/or day dreaming.
Same here. I often spend time wondering if it's simply that this field isn't for me, 40hrs a week kills my drive, or if it's a bigger issue like depression. Only thing I enjoy now are exercise and music.
Also, see if you can find some satisfaction in expanding your programming skills through reading and learning. Not sure your experience level here, but I would recommend that to anyone -- it has made a huge difference to me personally.