9 ms·
Ask HN: How can I tell if I have programming aptitude?
aptitude: a natural ability to do something.
What's the fastest way to tell if I'm cut out for, and should pursue programming?
I know a tiny bit of Java, and I can do FizzBuzz, basic recursion, logic exercises, etc. Can anyone suggest a few problems with max completion times for each that will let me know for sure?
Thanks!
- jeffmould 11y agoI don't think there is a test that is going to tell you that you should "pursue programming". It comes down to whether you enjoy programming or not, and if you can see yourself personally doing it as a career. I have seen people who are excellent coders and analytical thinkers, yet have no interest in programming as a career. They are much happier in project management and other roles. On the flip side, I have seen people that have a strong desire to be programmers, yet have little "aptitude" (as you define it above). However, they have found niches where they excel at programming by working hard and overcoming their own obstacles. With that said, there are many coding sites out there where you can compete against others. TopCoder and HackerRank are two that come to mind off the top of my head.
- greenyoda 11y ago"Can anyone suggest a few problems with max completion times for each that will let me know for sure?" I'm not sure if timed problems are a good way to assess yourself. Being able to solve programming problems quickly comes from (1) experience from having solved lots of problems before and (2) experience with your languages and environments. If you have a lot of aptitude but little experience, you may not be able to solve problems quickly. "What's the fastest way to tell if I'm cut out for, and should pursue programming?" I don't know if there's a fast way that can give you a meaningful answer. I'd suggest spending some time (at least several months) learning more about programming, working on some problems you're interested in, and seeing whether you become a better programmer over time.
- bradcomp 11y agoI think aptitude is overrated compared to overall drive / obsession. You should pursue programming if it's something you want to pursue. Do you like solving problems? How stoked are you when you figure out the cause of your bug? Would you pursue it even if it wasn't lucrative? Project Euler has some good puzzles, they are somewhat math related but cover a lot of interesting concepts and can be fun to work through.
- ksml 11y agoProject Euler does have a lot of good puzzles, but as parent comment says, they're more math related. If you don't like them (FWIW I never managed to get into them) you shouldn't necessarily think that programming isn't for you, as it can also be about building neat software that people use. As others have said here, you should try to get a feel for if you enjoy programming and what sorts of things you enjoy programming, because there is a lot you can do with it. If you don't like the math side, try building a simple app or web page and see if that interests you
- canicode 11y agoI'm definitely not obsessed with programming. I can force myself to practice regularly, though. All it takes is discipline. I wouldn't pursue it if it wasn't lucrative; that'd be irrational. But I'm not interested in money alone. I also want time, and the ability to create things that generate some sort of business value. Does an investment banker like what they do on a day-to-day basis? Plugging stuff into Excel? No, that's mind-numbing. But they get their satisfaction from seeing a deal that they participated in featured on WSJ. I also want a hard skill. Being an "idea guy," doesn't cut it.
- venomsnake 11y agoIf you can grasp pointers, recursion, asynchronous programming/callbacks in less than a week (as a concepts, not apply-able skills) you have it.
- dmichulke 11y agoPro tip: In order to understand recursion, you have to either just know it or know someone who understands it.
- venomsnake 11y agoNot at all. This is just basic mathematical induction in reverse. I think we learned it in 7th or 8th grade.
- unimpressive 11y agoI think he was making a meta-joke about recursion.
- fleitz 11y agoNot really, if you understand loops you understand recursion. Loops are pretty easy to understand...
- veddox 11y agoUnderstanding recursion: If you understand it, you're fine. Otherwise, go back to the beginning.
- abc_lisper 11y agoRecursion is Mathematical Induction, written as a program.
- i336_ 11y agoIt took me several years to grasp pointers after having fed on BASIC since I was 7 :/ I'm fine with C now though.
- 11y ago
- alexcason 11y agoDo you enjoy programming? If so, you will be good at programming. If not, you most likely won't.
- ak39 11y agoSeconded. Quality comes only from quantity. And quantity can only happen if your efforts result in bruises you can tolerate.
- sleepychu 11y agoThankfully most people no longer have to deal with 'segfault' related bruises! :-)
- TeMPOraL 11y agoOh they do, it's usually called "Null Pointer Exception" or "X is unbound"/"not an Y" these days, depending on one's particular taste for typing flavours :). On the other hand, it is harder to make your monitor explode while trying out fancy graphics effects...
- 762236 11y agoRight on. Enjoying it helps you accomplish the many hours that will bring you way beyond a natural. There is a lot of evidence that mastery is through practice --- not natural ability.
- teekert 11y agoExactly, this is THE question! Even if you were somehow very good at programming but you hatted it, would you choose it as a job? I'd drop it immediately, don't waste your precious time on it. This leaves one other option: If you loved it more than any other job but you sucked at it, what would you do? I'd say: Do yourself a favor and find a job where you do what you love. If you prove my advice to be bad, you'd be the first human who made it through childhood without the ability to get better by practice, so don't worry. (And certainly don't think you have be on the Linus/RMS level to do meaningful things.) (The options for sucking and hating and for loving and excelling are obvious ;))
- sleepychu 11y agoForget trying to work out if you have any 'natural' ability (though since programming is a man made invention you can work out if you have any natural ability in the field by testing your problem solving abilities). Get going with it. Find an open source project that interests you and contribute. There are a few things that are bad about github but as a platform it really allows you to find issues in software you're interested in, fix it and then submit that fix. If you work for someone that's ideally the situation you're in, you're working on a software problem that interests you implementing new features or fixing bugs and submitting them. HTH
- unimpressive 11y agoLots of people have said that you need to like programming. You don't necessarily need to enjoy programming. But if you're also not particularly interested in the results of programming, or the ways that you might get better results, it's probably not for you. I don't know of any particularly good tests for aptitude, I suspect general intelligence is probably more predictive than anything else.
- kansface 11y agoI read a study a while ago that addressed this exact problem - a CS professor gave an intro class a test on CS. The students who had a consistent view of how a computer works (no matter if it was wrong or not) turned into programmers. Everyone else failed. There was essentially no movement between the groups.
- cmadan 11y agoInteresting. Link to the study please?
- kansface 11y agoI just found it: http://www.eis.mdx.ac.uk/research/PhDArea/saeed/paper1.pdf http://www.eis.mdx.ac.uk/research/PhDArea/saeed/paper1.pdf
- smt88 11y agoThis study is biased toward students who already knew CS before taking the class, which is a substantial number. If someone can explain how this methodology makes sense, I'll start to buy the argument. People used to say women were less likely to have a "natural ability" at CS, despite the huge amounts of seminal CS work that women did in the 50s, 60s, and 70s. That changed when the Apple II came out, and it was marketed at boys. Boys practiced CS before college and basically drowned out the true newbies in their 101 classes. After schools realized this, they offered pre-101 catchup classes, and that has totally eliminated the gap that we saw before. I've still never seen anything to indicate that aptitude to program (as a job, not as a researcher or theorist) exists.
- DanBC 11y agoThe study was retracted by the author. He has said that he was wrong and that the paper was wrong.
- pcthrowaway 11y agoHere's Jeff Atwood on this: http://blog.codinghorror.com/separating-programming-sheep-from-non-programming-goats/ http://blog.codinghorror.com/separating-programming-sheep-fr... My problem with this idea is that if you have no idea if the thing on the left (when assigning) takes on the value of the thing on the right, or vice versa, it seems reasonable to answer different questions with different assumptions to cut your losses.
- dmichulke 11y agoThere's not really a way of measuring it but I used some different proxies such as 1. https://projecteuler.net/ https://projecteuler.net/ Math-heavy but interesting 2. Clojure koans (http://www.4clojure.com/ http://www.4clojure.com/) Here you're good if your solutions are close to the best solution - which is often short and readable (= elegant?) There are probably similar koans for other languages and I'd also strongly recommend a functional language (because it frees yourself from the shackles of imperative and OO thinking, but YMMV)
- boothead 11y agoYou will almost certainly feel like you're not cut out for programming when you start. Failing is a necessary part of the process, which will make you feel inadequate. My advice would be: don't compare yourself to external measures or compare your skill with other people. Focus on and enjoy the process of learning (because there's always more to learn).
- fleitz 11y agoThe longer you can exceed the max completion time the more aptitude you have for programming. It's a bit like zen... "If I work very hard and diligent how long will it take for me to find Zen." The Master thought about this, then replied, "Ten years." The student then said, "But what if I work very, very hard and really apply myself to learn fast -- How long then ?" Replied the Master, "Well, twenty years." "But, if I really, really work at it. How long then ?" asked the student. "Thirty years," replied the Master. "But, I do not understand," said the disappointed student. "At each time that I say I will work harder, you say it will take me longer. Why do you say that ?" Replied the Master," When you have one eye on the goal, you only have one eye on the path."
- hauget 11y ago"Can anyone suggest a few problems with max completion times for each that will let me know for sure?" I think how "good" you are at something is a very subjective thing... That said, have you tried programming competitions and projects like HackerRank, TopCoder, the ACM-ICPC, and Google's Code Jam? PS: if money is not your main motivation, I'd worry more about finding interesting questions/problems that you enjoy solving rather than questioning your aptitude for it.
- mkorfmann 11y agoDo you check the stove 3,4 times when leaving the house? Are you sometimes anxious, that you didn't properly shut the door after haveng left the house? I have this theory where people who do these things are good programmers, since they will check their commit a lot of times until it is perfect to push. But maybe this is more about mastery than having an aptitude for it. :)
- abc_lisper 11y agoI don't care much about things in the house, but I do check my commit a couple of times before pushing it in.
- unimpressive 11y ago> Do you check the stove 3,4 times when leaving the house? Are you sometimes anxious, that you didn't properly shut the door after haveng left the house? You might have OCD.
- onre 11y agoOn the other hand, if you're too much of a perfectionist, you might never get larger tasks done because of obsession to detail. Neurosis don't have much to do with mastery of programming IMO.
- msravi 11y agoAlgebra. http://codeup.com/can-a-simple-algebra-test-predict-programming-aptitude/ http://codeup.com/can-a-simple-algebra-test-predict-programm... Previous hn discussion: https://news.ycombinator.com/item?id=8741868 https://news.ycombinator.com/item?id=8741868
- gregjwild 11y agoI think it's probably something that's hard to assess like that. I've been learning to program on-and-off for about 2 years. It's only through sheer bloody-minded persistence that it is starting to see the pieces fall into place. There's plenty of different types of software development too; some require a stronger programming ability than others. If you enjoy solving problems, and making life easier for other people, then it's something you'll get to eventually with enough persistence.
- weland 11y agoHere's a little story that I tell to anyone who asks me this question. It's how I got it answered for me a long time ago. > How can I tell if I have programming aptitude? I have a friend who's a painter. She's a visual artist with a fair deal of success; she can actually live out of her art (and by that I mean she actually sells her paintings for a living, she doesn't just design logos to buy her a little time for her real occupation on Friday evenings). We were gathered at her house for a gig and waiting for the guitarist to show up (as usual), and while we were each rehearsing various bits and pieces, she sat on an armchair across from me and casually picked up a piece she had almost finished, and began applying some finishing touches. I'd never seen her painting before, so after I picked up my jaw from the floor, I passingly remarked that I'm a little envious on anyone who has a talent for drawing. (Background: my depth perception is basically shit because of a limp eye. The only reasonable drawings I ever made where in Geometry classes). Her reply was along the lines of dude, look, the ones who have a talent for this are the likes of Picasso and el Greco. Everyone else, even those of us who paint a lot better than anyone else you can find on the street, just practiced a lot. She then proceeded to show me a couple of things she had drawn when she was a kid, long before she decided she wanted to do that for a living. Surely enough, they looked much like any other kid's drawings. They were a little less "hurried", as she obviously loved doing it and spent more time on a drawing, but were otherwise indistinguishable from other childrens' drawings. Even later ones, from around the time when she had decided she really liked this, weren't exactly breathtaking. tl;dr: You have the "programmer aptitude" if: a) You're a frickin' genius who can talk to computers as if they were kindred spirits, but then I guess you wouldn't be asking this if you were, or b) You like programming enough that you can do a lot of it, and can tolerate spending that time looking at your programs with a critical eye and seeing where you failed and what you can improve. The pitfall in b) is that it will consistently make you feel like a failure, but hey, that's life man.
- jrapdx3 11y ago> ...I'm a little envious on anyone who has a talent for drawing. Among the artists I know, some have taught drawing at art schools. They've all said drawing and art talent are altogether separate matters. Drawing is about reproducing measurements, a skill anyone able to hold a pencil can learn. Geometry class might be a good start. > ... the ones whojust practiced a lot. have a talent for this are the likes of Picasso ... Everyone else ... just practiced a lot. Actually even the geniuses had to practice. For example, Van Gogh started painting when he was ~23, and the first couple of years he was quite bad at drawing. With practice he improved, and went on to produce 900 paintings in his short lifetime. Manet, the first French impressionist, was so bad starting off he had to cut out the good portions of paintings and sell those separately. Your a. and b. programmers aren't really distinct, many of the geniuses of the field speak about dismal "failures" from which they learned. It probably requires genius to see the truly important mistakes and how to do things better.
- mazeway 11y agoIf you believe you have it, you'll be much likely to have it.
- nulagrithom 11y agoGo build a simple web app. Right now. Pick a programming language out of a hat, set up a database, wire up a few buttons, add some logic, and shove it all up in some cloud. If you haven't given up in a month, you're cut out for it. Persistence and a willingness to constantly learn are more important than your ability to do mental gymnastics.
- mrits 11y agoWeb apps are boring. Build tetris.
- jrapdx3 11y agoI agree with all the comments saying there's no short cut to finding out if you have "aptitude" for programming (or anything else). The only way to know is to try it, assessing its suitability is very much an internal matter, really a judgement call. To cut through the noise, here's a suggestion: pick up a copy of "The Little Schemer", perhaps you'll find it at a library, or possibly on-line. It's a very easy and fun book to get into. Start answering the questions, if you're still at it past page 60 or so, you just might be a programmer. Get all the way through the book, then you definitely have the interest and ability. As a bonus, if you do pursue programming you will have learned some very useful things, and if you decide to do something else, you saved yourself a fair bit of anguish.
- marak830 11y agoWell a lot of these answers helped me feel better thanks guys. To op: for me i find sheer stubborness is how i code. Im not sure if that makes me a good programmer (i have only released one piece of software, took me 4 months to get to where i am, and a long way to go). I started out loving the results: in my softwares case, the computer understanding what i said and doing that action, then i began to really enjoy how i did it: i just finished expanding it internally to be able to listen to multiple things and perform those actions at the same time. For me, once i figured out what i wanted todo, not just exercises, that really drove me. I think ive learnt more in the last 4 months, than the previous 8 years of tinkering. I know your not asking how to code, but this is what is convincing me that i should be programming. Alas i an English teacher, but it pays the bills, and lets me program after work.
- galfarragem 11y agoAs an architect (houses) and an hobbyist programmer I see a lot of similarities between these activities: they are theoretically creative work but normally is not your creative aptitude that will land you a job. There are far less creative roles than boring ones..
- Delmania 11y agoYou're asking on HN. That tells me that you have the interest. The question becomes if you're willing to do the work. Are you willing to put in daily practice to learn coding? Even when the "passion" is gone? If so, you're cut out to be a programmer. Aptitude does not apply.
- sharemywin 11y agoLiked computer science in college because most of the grade was code not tests.
- bjourne 11y agoDo you think it is fun? If yes, you have it. If no, you don't.
- rayalez 11y agoJust ignore this question and don't worry about it. If you like it, and are ready to put in the effort - just keep learning and you will become a good programmer. There's no magical mysterious "talent", there's just intelligence, work ethics, and skill.
- aepearson 11y agoI had never heard of FizzBuzz before this exact moment. What a weird "test"...
- omarish 11y agoAptitude is very overrated. I think if you're curious enough to wonder if you're good enough / have natural "aptitude", you more than likely have enough "aptitude" to go with it and can pursue programming. I think pg has a quote online somewhere to the weight of "if you're spending time thinking about whether you're smart enough, you're most likely smart enough."
- Jach 11y agoThe quickest way: get your IQ tested. If you're north of 115 and have the desire for programming, you'll be fine, though your 130+ peers will probably do better. If south, but you still have desire, you can still produce value, maybe even become a very rich person or internet-famous, but you're unlikely to be a top tier programming god. If you don't have the desire in either case, what are you going to do instead? Consider doing that, but note programming is a pretty good gig even if you're just ok at it or don't like it that much. There are problem sets out there with time limits. You might even get some if you interview for jobs. But if they give a time limit of 2 hours and you solve it in 1, does that show aptitude? Maybe the average is 10 minutes! But then aptitude is more than just lines of code per hour, especially as the problems being solved become open ended and more complex. Maybe you too got the initial thing mostly working in ~10 minutes but spent the other 50 testing it and uncovering edge cases that would break your peers' quick solutions. So if you have a distribution of results you need to take them with a grain of salt, especially since experience can dominate aptitude so often. (http://ridiculousfish.com/blog/posts/old-age-and-treachery.html http://ridiculousfish.com/blog/posts/old-age-and-treachery.h...) I don't care what your IQ is or how fast you can type, if you start writing a parser from scratch to solve some problem that is trivially solved with regular expressions, the regex user will beat you. So if you're going to compare yourself to others, you need to try factoring out things like experience by comparing yourself to those with similar levels of experience. Programming competition prep at school is a great way to do it, since presumably you've all had about the same classes, are around the same age, and with many trial problems you can determine who is consistently doing well (aptitude) and who might have had good/bad runs simply due to having or not having a piece of knowledge. Another thing to try is a friendly 'competition' like Ludum Dare a few times. Your goal is to make the best game you can make in 48 hours. http://ludumdare.com/compo/ http://ludumdare.com/compo/ When it's done, you can compare with your peers, especially ones that look to have a similar level of experience and made similar decisions as you (language, libs, etc.).
- giaour 11y agoI don't believe an IQ would be a worthwhile investment for anyone trying to decide if a career path is for them. I'm sure many of the "top tier programming gods" you're thinking of are of slightly above average intelligence and just have exceptional communication skills.
- tmaly 11y agoprogramming like anything takes practice. You also have to enjoy problem solving. That's my short take on it.
- ljk 11y agoPretty good reading on this topic - https://terrytao.wordpress.com/career-advice/does-one-have-to-be-a-genius-to-do-maths/ https://terrytao.wordpress.com/career-advice/does-one-have-t...
- segmondy 11y agoDo you like puzzles? Do you like putting things together and taking them apart? Are you disciplined enough to organize lots of tiny little things into something big over a long period of time without getting bored and giving up? Can you see the forest and the leaves all at the same time? If you answered yes to all of this, then you have what it takes. I say this to anyone else that answered yes, I don't care if you know 0 programming, but if you can do the above, you have what it takes to become a very good programmer. Programming is about putting little things together, organizing them, and at the same time seeing the big picture (forest) while seeing the small pictures (leaf on a tree). It's not magic or difficult.
- readme 11y agoThere are a lot of sites out there that offer programming challenges you can try, but actually developing software and programming are two different things. If you can do all of what you said, then it doesn't matter how well you can solve a programming puzzle. You've got what it takes and what you need is time developing real software and mentors to help you grow.
- audleman 11y agoSomething to look for: what gives you that feeling of total bliss? I know I am a good programmer because when I finally solve the problem it feels good! My brain just releases all these bliss feelings and I go "oh my God, I nailed it!" That feeling only comes once every several hundred hours of programming. I am routinely faced with technical problems to solve that are completely overwhelming, and that means I have to slog through confusion for weeks on end. If I didn't have that desire to get to the end goal I would probably give up. I think you should look for what has given you that feeling in the past. If it's building something that works, lining up all the numbers (to 5 decimal places), or cracking a tough problem programming might be very fulfilling to you.
- crazypyro 11y agoExactly this. Whenever an interview asks about why I choose this career, I jump straight to talking about that feeling of success when something works after working at it for hours, days, etc.
- wrp 11y agoAmong psychologists studying the development of expertise, it is considered well established that outside of some rare and obvious cases, there is no such thing as aptitude. Skill is just a function of practice. It all depends on your willingness to put in the time.