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!
101 comments
[ 101 ms ] story [ 1316 ms ] threadWith 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.
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.
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.
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.
Loops are pretty easy to understand...
If you understand it, you're fine.
Otherwise, go back to the beginning.
I'm fine with C now though.
If it takes you years to grasp all those things like the majority of us, then that's fine too.
From what I hear in MIT they give you the complete scheme language at the first lecture.
He asked about aptitude.
If so, you will be good at programming. If not, you most likely won't.
Quality comes only from quantity. And quantity can only happen if your efforts result in bruises you can tolerate.
On the other hand, it is harder to make your monitor explode while trying out fancy graphics effects...
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 ;))
Not everyone has that choice, as making a living and doing what you love are sometimes mutually exclusive. Casey Neistat washed dishes before he got into making viral videos. Einstein worked as a patent clerk. Dreamtheater's Mike Mangini worked in IT to pay the bills before finding a way to make a living doing what he loved.
TL;DR: find a way to pay the bills to make time to do what really matters to you
source: https://www.ige.ch/en/about-us/einstein/einstein-at-the-pate...
Take that as you will.
TL;DR: It may be worth programming even if you don't like it, because it pays well. Also, life sometimes deals shitty cards.
I'm in the same boat!
I increasingly believe I may have an attention deficit disorder on top of diagnosed depression I'm dealing with
Have you tried exercising, getting enough sleep, eating healthier, doing more "outside" or social activities and/or testing out nootropics like citicoline/noopept? All of these have helped me greatly! BTW, highly recommend checking out The Healthy Programmer book: https://pragprog.com/book/jkthp/the-healthy-programmer
life sometimes deals shitty cards
Virtual manly hug mate!
Oh, the usual stuff ;). Tried all of these at various points; haven't noticed much difference, but I think I might not have tried enough. Going item-by-item:
- Exercising: probably not enough; the amounts I did didn't really affect much (except weight), but I'm going to try again, at a gym this time.
- I have problems going to sleeping due to depression and anxiety (I constantly feel I haven't done enough yet, so I can't go to sleep yet), combined with being generally a night person (after day spent with people I really appreciate the late hours without any face-to-face distractions). But when I finally fall asleep, no force on Earth or in Heaven can wake me before I get my 7-8 hours. Which annoys my employers.
- I try, but I just don't like green food :(. Cutting out sugar from diet did wonders to my weight and dental health, but didn't improve mood issues.
- I'm a very social person, people call bullshit on me when they hear me describing myself as an introvert (I usually send them this classic then: [0]). I frequent various events, both as an attendee and speaker, help run a local Hackerspace and have uncanny ability to serve as a translator between technical and untechnical people.
- Piractem & noopept - little to no noticeable effects. Nicotine (pure, in gums, I'm not a smoker) - helps stay up a little longer and improves my alcohol tolerance. Adrafinil - does wonders when I need to skip a night's sleep or feel the stress-induced tiredness during the day. I didn't try anything else.
> BTW, highly recommend checking out The Healthy Programmer book
Thanks, I'll check it out! I highly respect the Pragmatic Bookshelf for Pragmatic Programmer and Pragmatic Thinking and Learning. The book you linked is one hell of an expense, but if it could help, then I guess it may be worth it.
> Virtual manly hug mate!
* hug *
#HNTherapy
[0] - http://imgur.com/76HUN
The feeling I have is more of a "I've done so little today and there's still so much to do, I can't go to sleep yet".
So yeah, I've worked for several companies where I've absolutely loathed the project, but that's what I was assigned to do, so I have to program for it, even though it bores me to tears.
Even when I was making games for a living, I sometimes ended up working on games that I knew were awful, but I wasn't in a position where I could switch to something else easily (I live in the Midwest, where gamedev jobs are scarce anyway, which is one reason why I got out of that industry anyway).
What do I want to work on? Whatever game or app concept I came up with that excites me at the moment.
Who's going to pay me good money to do that? No one.
So instead I'm currently working in an enterprise environment to help pay down my school loans while working on my own stuff with what little energy I have after work hours.
I've seen plenty of people in the past (less so in the recent past) that did the job, weren't well-suited or it, didn't particularly like it, but they did it anyway. Why? Money. The kind of money that has you ordering stuff on Amazon and never once asking yourself if you have the money for it. You quit balancing your checkbook years ago. That kind of money. Not bathing in $100 bills kind of money, but enough coming in every year that you don't sweat small financial details. You don't do that on the median US income of $50K/year.
You claim if you hated it, you'd "drop it immediately". I don't know you, so maybe you would. But before you commit to that answer, recall that your annual pay might very well get cut in half or more. No more BMW leases for you. Now, maybe that's fine for you (and admittedly, if I could be a professional musician but only making half what I make, I'd take it in a heartbeat; don't need a BMW that badly).
But I knew plenty of folks in 80s (back when programming was the "hot new thing") that got into it because it paid well. They hated the job (probably because they weren't very good at it), but when the kids come and the spouse has become accustomed to a certain lifestyle, it's hard to give it up.
Once you start being serious about it there might be bad days or weeks as in any other profession.
What I actually love is scripting / automating repetitive tasks... Still programming, but somewhat different in satisfaction (for me anyway)
I'm interested in the practical aspects of programming, like being able to create something that produces value out of nothing. That's something I can get excited about. I'm not stupid; with enough thought I can solve a lot of Codingbat-esque problems. But it feels like high school math class.
The act of trying to build something that works is an incredible learning experience, and will teach you a lot about whether or not programming is something you should pursue.
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
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.
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.
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.
1. https://projecteuler.net/
Math-heavy but interesting
2. Clojure koans (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)
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).
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."
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.
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. :)
You might have OCD.
Neurosis don't have much to do with mastery of programming IMO.
http://codeup.com/can-a-simple-algebra-test-predict-programm...
Previous hn discussion: https://news.ycombinator.com/item?id=8741868
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.
> 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.
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.
You described your friend's childhood drawings as "a little less "hurried", as she obviously loved doing it and spent more time on a drawing", and I think this is the key. She liked drawing as a kid, which made her draw more than her peers, she got better at it and because people generally like doing things the more the better they're at them, a positive feedback loop started.
It also suggests a practical approach to get good at something: sit down, practice, and ignore the discomfort you'll be feeling at the beginning. Many people considered talented simply didn't have that initial discomfort, so they drifted into a skill early, whereas for non-talented it is a barrier to entry.
I have another acquaintance who's a musician (an actual musician, unlike me -- I'm just a programmer who likes playing the drums). The guy obviously had a lot of practice, especially as he graduated a famous music academy so he had to play the violin a lot.
That being said, he started taking violin lessons when he was 6, but by that time he could play it pretty well. Having realized that he can't remember the songs he was inventing, he even developed his own rudimentary notation system (when he was about four), with horizontal lines whose length indicated direction and a combination of dots and relative heights to indicate pitch relative to the first note of the song, so that he only had to remember where to start from. His violin technique was also remarkably good. When he started giving violin lessons himself, he struggled with understanding the first gripes of beginners a lot more than he'd expected. For instance, he never realized it takes so long to learn how to properly angle the bow when playing the second and third string of the violin (they're at almost equal height with respect to the base of the resonance box, so most beginners will unintentionally stroke both at the same time). Not only did he not remember having that problem, he literally never really imagined that someone could have that problem.
He's one of those people who does have an innate talent; there are a lot of techniques that he never learned, nor really "discovered" through an iterative process, he just figured out it would sound good if he did <something>, and it did. His brain was wired in a manner that's favourable to playing the violin and to music in general.
Needless to say, he still had to practice a lot -- he had to learn "proper" notation, he's constantly refining his rhythm and coordination, he had to learn how to play in an orchestra, and it's not like he could play any piece, no matter how difficult, from the very beginning. But there were things which his mind and his body could do without being taught, or which, at least, they discovered a lot more quickly than others did. They weren't enough to make him an orchestra-level musician from the moment he set his tiny three year-old hand on a violin, but they are certainly enough to set him apart from a lot of musicians of his age and experience.
That's why I was asking for a problem. I need one that will tell me if I have the right brain wiring/mind. "If you can't do this without outside help in X minutes, you should quit learning to program." Not incredibly easy like FizzBuzz, but not incredibly difficult. Somewhere in the middle.
I think there is a mindset issue at play here. Instead of thinking "Wow, that person is such an elite hacker, I wish I had been born with that talent." think of it as "Wow, it was amazing how they came up with that solution. I want to learn how they did it so I can do the same.".
Stated different, ask people their process. If they came up with a solution that was much better than yours, ask them how they came about it. It may look like they've magically came up with a solution, but they do have a mental process that brought them to it. Find out what it is, internalize it and make it your own.
No. They train. They study symptoms, and causes, and treatments. They learn about how symptom X is caused by disease Y, and is usually treated by medicine Z.
But medicine Z doesn't work in all cases, it's only 75% effective. So you might need to try medicine Z2 instead. etc.
And they they do this, over and over and over, adding in new knowledge of symptoms, treatments, effectiveness, etc. They do this on paper, and they do this in a controlled, supervised environments until they can demonstrate enough mastery to be able to demonstrate that they know enough of this body of knowledge of problems and solutions to be trusted to apply it on their own.
Programming is no different. Answers don't magically spring, unbidden, from some secret programming organ in your brain - you need to learn the established patterns for solving different types of problems. Then, you need to apply them to different situations.
Right now, you're frustrated because you don't have a very big 'bag of tricks' yet. You've only learned a couple of 'solution patterns'. You said that some problems are easy - right? Well, they're easy because you've already added those to your 'bag of tricks'. You've learned the patterns that solve those particular problems.
The ones that are hard? That's because you haven't learned those patterns yet. Once you do, they'll be easy too.
So, looking up solutions for how to solve these 'hard' problems isn't cheating - it's learning. You're learning new solutions.
As time goes by, your library of problem->solutions will get bigger and bigger, allowing you to solve more types of problems.
So, don't think of it 'ZOMG - I'm so dumb! I can't magically come up with the solution to this type of problem that I haven't encountered before!'
Instead, think of it as 'Hmm. That's interesting. Here's a new category of problem that I haven't solved before. The existing solutions that I have in my toolkit aren't solving it, so let's go learn a new solution pattern. Then I can add it to my toolkit for future problems.'
I'll continue learning. Getting problems right and watching those tests light up green on Codingbat is a very nice feeling. I do get genuinely upset and frustrated when I can't figure out a problem, though. I'm not sure whether that means I hate coding or like it deep down.
I get the same feeling, but I get it about plenty of other things.
I love coding, but I don't love it on a daily basis while I'm working, and I certainly don't love getting stuck on a problem I can't solve. I do love the moment I get it working, though.
One hack I'd suggest for fulfilling the craving of doing things "from scratch" when you're frustrated at a particular problem is to go back to one you already solved, but pick some class or method or set of methods of Java's library you used and make your own version. New problem! Data structures can be the most common. Used a java.util.Stack object? Write your own Stack class. Instead of `int Integer.parseInt(String);`, write your own. Try a hash map when you're a little more experienced. Pretty much everyone with the hunger writes their own string class eventually (usually in C++). Or try to solve the whole problem again in a language that gives you less, like C. It's good practice for college and tech interviews too. Too boring? Waste of time? Good, you'll appreciate it's there next time so that you don't have to keep reinventing the wheel and can just use it as you go about inventing some new thing made of wheels. The only danger is if your appetite is totally consumed, you'll swing the other way always searching and waiting for the right set of already-built dependencies you just have to glue together, and even then you could just hope for a framework that does that, your tolerance for exerting any programming effort for 'boring' stuff will go away, and everything will be 'boring'. That's not a great state to be in if you have aspirations of building rather than simply using.
https://projecteuler.net/
As your knowledge increases, you'll gradually run into fewer problems that you can't solve in pseudo-code, but you're not SUPPOSED to be able to solve any problem in code when you start.
The mere fact that you even have a few ideas to try is testament to your aptitude.
Keep on trucking, you'll get there.
It's the same thing for almost everything you decide to do, if you take the needed amount of time to practice something every single day, eventually you will get really good at it.
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.
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.
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.
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.