Ask HN: As a programmer, how do you know if you're a good one or not?
I always want to be a better version of myself, but it's unclear how to quantify my quality. In sporting, there're many stats about athletes to look at. In academia, you can look at some indirect indexes about your research quality. But as a programmer at work, I often receive feedbacks from 1 or 2 persons at most. It's easy to think that I'm good enough, when the truth may be not.
So, as a programmer, how do you quantify or estimate how good you are?
Thank you,
100 comments
[ 2.7 ms ] story [ 155 ms ] threadStart a project by "hitting the ground running" and writing code. Fail to write documentation unless under external pressure. Deeply aware of the powerful and superior features of your favorite languages. Have a considered view that long term systems maintenance irrelevant to most software design. Frequently roll performance optimizations in to your code.
If so, you are probably a bad programmer.
Not trying to be sardonic, just want to know how to improve my programming skills.
They're tools. They're not rock bands. Don't get caught up in fanboy-ism.
2. Read more code.
3. Write more code.
4. If your code which you wrote few years back looks bad to you, then you are on right path.
5. How much you understand the core concepts. New languages and frameworks are more of an glitter.
6. You want to be better version of yourself, then your progess is your stats you need look at. How many books did you read year on year? How much code you read year on year ? How much code you wrote ? How much fun you had :)
7. Adding, if you can think of the future maintainer of your code in mind and code, then you are lot better than many programmers out there in business.
8. Try to be a clean code enthusiast.
What if the recent stuff looks bad too? :)
"The only true wisdom is knowing that you know nothing"
Problem is - hubris is generally considered a virtue.
In all seriousness, though: I’ve learned that it’s better to just accept that sometimes you’ll do really good or exceptional work, sometimes you’ll do awful work, and most of the time you’ll do work that’s pretty good and gets the job done but isn’t perfect.
Did I introduce new bugs?
Are people using my building blocks to add features or working around them/ redoing them?
These are not good metrics. I have researched this and it seems there is no good way to measure coding improvement except subjective measurements.
However, i'm a get shit done developer, while i've been doing this 14 years and know my area very well, i dont know it nearly as well as someone who has rigorously studied it and has been doing it for only 3-5 years. What i can do is deliver, and thats whats valuable to businesses.
So, is "good" an academic measurement or a business one? Its all context.
If you lose the passion, and get bored with what you do, you're not going to care, and that's a worse fate than even staying still skill-wise. It's a very common fate for those who have to work at this 8 (or likely more) hours a day, nearly every day of the week for years or decades.
So I'd just try to keep the flame alive, focus on always doing what you genuinely enjoy, and not sweat the rest.
As others have suggested, it's useful to look at code that you wrote 3, 6, 12 months ago and ask yourself: do I understand this? Could I write it better now? What would I do differently now? You might try keeping track of these reflections in a journal.
You know you're a good programmer if the things you build "just work." It should be near impossible to find flaws in your solutions. This is actually rare. Most developers I've worked with will declare something "done" well before all of the flaws have been worked out.
The number of open issues in most OSS repos would make me hold my tongue before saying something so farfetched.
How do you quantify, "just works?" For a large enough project, perfection, or even just getting pretty close to it, ends up being pretty expensive.
It should be near impossible to find flaws in your solutions.
I had a boss who declared he could find a bug in any page of code, so long as you let him lawyer the specs in great enough detail. Granted, we were working in a pretty complex domain, but as far as I could see, he was always right about that.
As Matt Easton keeps saying: "Context!"
Maybe the company you're working for finds it much more valuable to do lots of iterations so they can tinker with the product and keep refining it. In that case, it might be even better than "perfection" if the things you build mostly work, but that you can respond to change and bugfix requests quickly. (Without introducing regressions.)
If you're explaining stuff to people, you're the smartest guy in the room, and you should find a place to work where you're the dumbest guy in the room.
I've had to follow behind such programmers who wrote their code with the primary goal of getting done as fast as possible never expecting to have to come back to it. It's literally the worst code that exists.
Usually they no longer work at the same place they created such code, because later they were asked to maintain it. That's why I got the job. Usually we start over.
If you miss deadlines then you are failing at your job.
I don't necessarily think that it's the "biggest" but I'll agree it's certainly one of the problems. I think I'd put "unclear specifications" as the biggest problem.
I've seen a lot of code delivered on time to meet the deadline that clearly was not ready but was delivered anyway. I've never the temerity to say, "I told you so," but I thought it. There's a balance to be had. Sometimes the deadline and the customer requirements and future maintainability cannot all be satisfied. Something has to give.
Sounds like they were bad at that part
So, for myself, the thing I pay attention to is my ease of expressing the things I want to create. I also pay attention to my ability to produce things with certain "qualities" correctness, simplicity, and how modular and composable my code is. There is no objective measure of those things and my understanding of those things constantly expands. I learn these things through by my own experience and looking at what other people are doing and having in depth discussions about programming ( and outside of programming ).
So I have no idea how good I am, but I have confidence in what things I can create and confidence in my ability to learn more.
Someone may or may not be a good programmer depending on a whole bunch of factors, the project being built, their familiarity with the codebase, familiarity with the technologies used, how happy they feel in their job, how happy in their personal life, if they really like the project they are working on, whether they get time/space to concentrate. It goes on and on.
There's no answer to "is person X a good programmer" within context and even then it's purely subjective.
Could also mean you write unreadable code and, by extension, unmaintainable code.
> You're the go to person by the boss.
Could also mean you write unreadable code.
In this situation, I think the context is when a colleague is asking for help with their own code/writing a new feature and wants input from someone well-versed.
However, depending on the stage of the project, getting asked for help may be a red flag for me.
If it occurs too often, it can mean the following: - incompetent co-workers - someone did a terrible job documenting - modules, packages, functions, etc. do not provide a good abstraction layer for the task(s) they perform
> I read a study that measured the efficiency of locomotion for various species on the planet. The condor used the least energy to move a kilometer. And, humans came in with a rather unimpressive showing, about a third of the way down the list. It was not too proud a showing for the crown of creation. So, that didn’t look so good. But, then somebody at Scientific American had the insight to test the efficiency of locomotion for a man on a bicycle. And, a man on a bicycle, a human on a bicycle, blew the condor away, completely off the top of the charts. https://www.brainpickings.org/2011/12/21/steve-jobs-bicycle-... https://youtube.com/watch?v=0lvMgMrNDlg
> ... There need be no real danger of it ever becoming a drudge, for any processes that are quite mechanical may be turned over to the machine itself. https://wikiquote.org/wiki/Alan_Turing
Your four points on effectiveness happen to me on a daily basis, but I tend to see them as annoyances, mind you, I rarely refuse to help and advice. This gives a whole new light and meaning to all those interruptions.
But there's also the 10x dev that can help others be 10x more effective. Those types see a problem, and write an insanely useful tool.
Also, welcome to thinking like a manager.
> Do I solve more problems than I create?
Who judges what constitutes a problem? How do you know when you've created a problem?
> Do I see simple solutions to complex problems?
Define 'simple'.
> Can I refactor terrible code to more easily maintained code?
Define 'terrible'. How does one know what code is more easily maintained?
> Can I avoid terribly written code in the first place?
See above.
> Can I effectively communicate with people in order to get the answers I need without wasting their time with needless questions?
What constitutes "effective" communication? What are "needless" questions?
I generally agree with the questions, but I would imagine most programmers could read them and think, "I must be pretty effective."
What's wrong with that?
> So, as a programmer, how do you quantify or estimate how good you are?
Zero code has zero bugs, and zero maintenance cost.
Oof, yeah, that's rough. It's hard to say something conclusive with little data, and most of the data is likely biased (yourself). I'd recommend finding opportunities to work with other devs. Open source is a good path forward.
Otherwise, estimating your performance is super hard. Are you right more often than you're wrong? When you're wrong, do you consistently fix your flaws? Are you learning? Are you contributing more and more business value? These are all very opaque questions, and even if you answer all of them you're likely to have gaps.
Get more data!
However if you truly do always want to be improving your ability as a software engineer, then you are in luck, this field is so vast and deep that you can easily spend more than a lifetime improving! Finding out how and measuring it is another matter.
If every change to the code feels like adding another twist to the maze, then you're not a good programmer.