Ask HN: As a programmer, how do you know if you're a good one or not?
182 points| dvnguyen | 7 years ago
So, as a programmer, how do you quantify or estimate how good you are?
Thank you,
182 points| dvnguyen | 7 years ago
So, as a programmer, how do you quantify or estimate how good you are?
Thank you,
[+] [-] bb88|7 years ago|reply
[+] [-] hyperpallium|7 years ago|reply
> 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
[+] [-] hdkmraf|7 years ago|reply
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.
[+] [-] zumu|7 years ago|reply
> 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."
[+] [-] emmelaich|7 years ago|reply
[+] [-] acct1771|7 years ago|reply
[+] [-] xfitm3|7 years ago|reply
[+] [-] camel_gopher|7 years ago|reply
Zero code has zero bugs, and zero maintenance cost.
[+] [-] Hbthegreat|7 years ago|reply
[+] [-] gnahckire|7 years ago|reply
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.
[+] [-] smilesnd|7 years ago|reply
Only ever measure yourself against yourself. As long as you make sure you are a better programmer today then yesterday then you have nothing to worry about.
[+] [-] l0b0|7 years ago|reply
Expect to learn new things every day, and from every conceivable source: your fellow developers, junior and senior, of course, but also your PM (for example, prioritization, techniques to organize work), designers (information flow, HCI), business analysts (how the client ticks), etc.. Very likely everyone you ever worked with could teach you something, and you'll never have time to learn it all.
[+] [-] jakegarelick|7 years ago|reply
Stop trying to measure yourself or others, get in there and code.
[+] [-] _hardwaregeek|7 years ago|reply
[+] [-] lolc|7 years ago|reply
[+] [-] scarecrowbob|7 years ago|reply
In sports, for most people, staistics are meaningless. I climb 5.10 okay... am I good climber? I'm not world class, but I do stuff that I like.
I've been an academic. I know I was a bad one, because in retrospect I had to step away from a lot of my ideas and research... at the end, I didn't see value in the projects I was doing.
As a programmer... who knows. I don't usually have a lot of problems coming back to old projects and building new stuff. I don't have a lot of systems I put together breaking down and requiring work. I know that there are at least 10-20 other folks think I am good, because I've solved things for them and they have told me I am good.
But I just build CRUD apps, admin some linux servers, and put together custom code for WordPress. Some folks would look at that pile of day-to-day tech cruft and say that I am not even a "real" programmer (even if I do know how to implement a buffer with TTL and I've written toy mouse drivers and serial implementations).
All that comes down to this: it really comes down to you and your goals, and what you want to get out of your life. You are the only measure of what you consider to be a good person. Most of us are sane enough to peg that estimation to feedback we get from other people. But fundamentally the metrics are still our own.
[+] [-] keithnz|7 years ago|reply
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.
[+] [-] vi1rus|7 years ago|reply
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.
[+] [-] hnruss|7 years ago|reply
- You can compare yourself to other developers (there are plenty of qualities to compare)
- You can review your statistics (commit frequency, average file size, accuracy of time estimates)
- You can compete in programming competitions
- You can evaluate yourself using the Programmer Competency Matrix: https://sijinjoseph.com/programmer-competency-matrix/
Also, "Good" is subjective. Some programmers are "good" in certain contexts, but "not good" in others.
[+] [-] sizeofchar|7 years ago|reply
[+] [-] rammy1234|7 years ago|reply
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.
[+] [-] dintech|7 years ago|reply
What if the recent stuff looks bad too? :)
[+] [-] ams6110|7 years ago|reply
[+] [-] finaliteration|7 years ago|reply
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.
[+] [-] booleandilemma|7 years ago|reply
[+] [-] myWindoonn|7 years ago|reply
The most honest person here is https://news.ycombinator.com/item?id=18538092
[+] [-] oceanghost|7 years ago|reply
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.
[+] [-] spiralhead|7 years ago|reply
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.
[+] [-] stcredzero|7 years ago|reply
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.)
[+] [-] ravenstine|7 years ago|reply
The number of open issues in most OSS repos would make me hold my tongue before saying something so farfetched.
[+] [-] sanderjd|7 years ago|reply
[+] [-] TamDenholm|7 years ago|reply
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.
[+] [-] RantyDave|7 years ago|reply
* Does my code work?
* Does my code look after itself and its user when things don't go according to plan?
* Is my code simple?
* Can my code be maintained?
There are very serious sub-plots involving (ie) what does "work" mean? are simple and maintainable the same thing? But if you hit the four points above and don't fart in the office, you're good to go.
[+] [-] blakesterz|7 years ago|reply
[+] [-] octosphere|7 years ago|reply
1.) Does the code have a good bus factor i.e If the maintainer dies tomorrow by being knocked down by a bus, can other people pick up where he/she left off? Further research into the Bus Factor can be found here: https://www.youtube.com/watch?v=0SARbwvhupQ
2.) Is the code well documented? This is so obvious that it is painful to write this comment, but it is a very simple heuristic for determining capability. Documentation can include code comments.
3.) Is the code resilient to weird input? The code should perform well under heavy fuzzing and where possible, sanitize different input. It should be tested against this: https://github.com/minimaxir/big-list-of-naughty-strings
[+] [-] alex-|7 years ago|reply
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.
[+] [-] sahil-kang|7 years ago|reply
To encourage you, here are a couple of contributions I have to Linux and Hadoop:
https://github.com/torvalds/linux/commit/0bef71093d446165964... https://github.com/apache/hadoop/pull/114
If you read through the commit messages and look at the patches, I think you’ll find that reaching these clear milestones doesn’t take an unattainable amount of skill; just a bit of patience and curiosity.
[+] [-] sbinthree|7 years ago|reply
[+] [-] analog31|7 years ago|reply
1. Keep an eye on how big or elaborate my programs get before I lose control of them, and have to either stop development, start from scratch, or massively refactor in order to know what the heck is going on. Being able to maintain a larger program, or participate in a larger project, without doing too much damage, seems like a reasonable informal metric.
2. Look at programs that I've written months or years ago and critique my own work. A year-old program should hopefully look better than a decade-old program.
3. Try to stay abreast of improved programming techniques, incorporate them in my work, and have faith that my programs will gradually improve.
I just realized these things are not about how good I am, but about the rate of change of my skills.