One Crazy Trick to Become a Programmer
Tags: tutorial, beginners, javascript, react
Published: 2020-09-27 03:56:15

I generally despise "How To Become A Programmer" articles.  They're chock-full of useless bromides and pointless anecdotes. They're like the endless stream of "How To Lose Weight" articles that purport to show you "that one simple secret" that will somehow solve all your problems (with no effort or sacrifice on your part).  In other words, most "How To Become A Programmer" articles are complete and utter crapola.   

And yet... this is my "How To Become A Programmer" article.  

Why???  

This year's foray into blogging has exposed me to some interesting readers.  Specifically, there've been a few individuals who've reached out to me, apropos of nothing, to solicit my advice on "how to become a programmer".  And as much as I don't actually feel "worthy" of such a query, I _have_ tried to provide the best-possible answer.  

And yet... I feel like my one-on-one answers are somehow lacking.  So I'm gonna try to rectify that - as best as I can - right here in this article.
<br/><br/>

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/spd2t9h9beod45nzymc3.jpg)
## Acting (Like A Programmer)
Programming's a little like acting, in that it seems as though a great many people assume they can do it.  They _believe_ they can do it.  They're _eager_ to do it.  But they can't quite figure out how to get paid to do it.

This is because programming, like acting, has what economists call a "low barrier to entry".  Do you wanna be an actor?  Great!  Stand up on the first stage you can find and start hollering Shakespeare.  No one may _appreciate_ your acting.  And they almost certainly won't pay you for it.  But even if you're standing all by your lonesome, spitting sonnets into the void, you are, on some basic level, "acting".

Do you wanna be a programmer?  Great!  Open your browser's dev tools, or go to one of the many online, realtime, coding IDEs that are available, and start cranking out some code.  No one may _care_ about what you're coding.  And anyone who knows the craft may wince at the sight of your noob logic.  But even if your buggy code barely works and doesn't really do much of anything, you are, on some basic level, "programming".

Like any endeavor with a low barrier to entry, there are many people trying their hand at acting and programming.  And there are many people who can't quite figure out how to make a living at either.  

Also, like any endeavor with a low barrier to entry, a great many people claim to be actors (and programmers).  But when you inspect their actual activities, they're more likely to be seen as _waiters_ or _bartenders_ or _delivery drivers_.  Because those jobs pay (something).  While many would-be actors (and programmers) aren't really getting paid much (or anything) for their desired profession.

So how do you break into the glorious (and lucrative) field of programming?  Well... you're in luck.  Because I'm about to drop the Mother Of All Secrets on you.  I'm about to whisper the magic formula in your ear.  Are you ready???
<br/><br/>

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/x26m8o5979h5810sbiw0.jpg)
## Write More Code
Did you catch it???  Maybe you thought that section header was just meant to be a synopsis of some deeper, broader point.  Maybe you absent-mindedly skimmed over it.  So I'll give you the secret again:
<br/>

**WRITE MORE CODE.**
<br/>

I'm not trying to be snide.  Nor am I deaf to the struggles one faces when trying to get that first _paying_ coding gig.  But I mean it when I say that the best possible answer to breaking into the professional coding ranks is as "basic" as this one simple mantra:<br/><br/>

> _Write more code._

<br/>I know there are all kinds of exasperated retorts dancing through your mind right now.  So let's have a little conversation about it:
<br/><br/>

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/pa1p9dq9yti0ulngyd45.jpg)
## The Aspiring-Coder Debate
**Aspiring Coder:** I absolutely _want_ to write more code.  But I can't find anyone who'll take a chance by hiring me, so that I can, indeed, write more code.

**Me:** I'm sorry.  Maybe the acoustics in this room are a bit dodgy.  Or maybe I didn't enunciate.  So let me be clear.  I didn't tell you to write more code _for your next/first employer_.  I told you to write more code.  _Period._

**Aspiring Coder:** What would I possibly code if I don't first have a job _as a programmer_??

**Me:** If you need to ask that question, you first need to be very honest with yourself and determine whether you really want to be a programmer at all.  Just as a dancer can dance without having a gig on Broadway, a programmer can program without having a formal employer to pay for that code.  Furthermore, if someone tells me that they're a "dancer" - but they haven't danced at all in the last year, then I truly question whether they are, in any way, a dancer.  And if someone hasn't recently written code (for _anyone_), then I truly question whether they are, in any way, a programmer.

**Aspiring Coder:** OK.  I get that.  But my goal is to be a _paid_ programmer.  I want programming to be my _career_ - not my _hobby_.

**Me:** Yes.  And I want to be the world's greatest pop star.  But if my approach is to wait for a music label to sign me - before I've spent countless hours honing my musical chops on my own - then I'm gonna be waiting for a _verrrrry_ long time.

**Aspiring Coder:** But I've _been_ honing my skills!  _I went to a code camp!_

**Me:** Get out.  Get out of my office right now.

**Aspiring Coder:** _What?!_  What did I do???

**Me:** OK, maybe you don't have to get out.  And I'm not trying to downplay your epic code-camp experience.  But saying that you went to a code camp is like saying that you spent last weekend at a "law camp", and now you're ready to start trying legal cases.

**Aspiring Coder:** So the code camp was a waste of my time (and/or money)?

**Me:** Of course not.  Code camps are a relatively recent innovation.  And they can provide great value - for complete noobs and experienced coders alike.  A solid code camp can expose you to a great many concepts in an abbreviated period of time - all in an atmosphere where there are a great many people around to help you learn quickly.  But even the Greatest Code Camp In The World is still limited to the skills that you can acquire/practice over _hours_ or _days_.  Employers need skills that have been practiced for (at a _minimum_) months, if not years.

**Aspiring Coder:** But I also have a computer science degree!

**Me:** Oy vey.  Don't get me started on the Comp Sci majors.

**Aspiring Coder:** That was four years of my life!  And a whole lot of my parents' money!  Now you're discarding those credentials out-of-hand??

**Me:** Not at all.  But a computer science degree is a longer (and, if you're in the US, far more expensive) version of a code camp.  It's a nice... _primer_.  It will expose you to some moderately-useful concepts that you'll... _occasionally_ use in a real-life programming job.  But if I'm the hiring manager (and I've frequently _been_ the hiring manager) and your only real qualification is your bachelors degree, well... you're probably not even _remotely_ hire-able to me. 

**Aspiring Coder:** This is depressing me.  What else am I supposed to do to get potential employers to notice me??

**Me:** Maybe your short-term memory is misfiring, so allow me to suggest (yet again): _Write more code._

**Aspiring Coder:** _Ughh!_  Again with the "write more code" mantra!  What am I supposed to code if I don't have a programming _job_???

**Me:** I've never met a top-notch dev who's ever had any trouble with that question.  In fact, most of the devs I know have more "I'd really like to build..." side projects floating around in their mind than they'd ever get the time to actually program.  Soooo many of life's little problems scream out (to "programmer types") for new apps that could be built to solve those problems - if only someone would take the time...

**Aspiring Coder:** So lemme get this straight.  You want me to spend gobs of my own free time writing code for personal projects?  Projects for which I'll probably never be paid a dime??

**Me:** Well, that would certainly satisfy the core requirement to: **Write more code.**

**Aspiring Coder:** I have _bills_.  _Commitments._  I can't just go off to a cabin in the woods and spend the rest of my life coding on free projects.

**Me:** Look.  No one ever said this was gonna be easy.  (At least, I _hope_ no one said that to you.  If they did, you might wanna consider showing up on their doorstep at 3AM and punch them in the face.)  And no one expects you to live in a cardboard box until the magical day that someone hires you to be a formal "programmer".  When you're trying to break in, it's quite possible that you'll need to be paid for _something else_ for a while.  Just like the aspiring actor who waits tables for a few years, there's nothing wrong with being an aspiring programmer - while you do something else in your "day job".

**Aspiring Coder:** This is all easy for you to say.  You've got a cushy job and a firm foothold in the career.  And now that _you've_ achieved that status, you think that _I_ should have to do endless "free work" just to prove my worth??

**Me:** You can do whatever you want.  There are, in fact, _some_ people who come straight out of college - or straight out of code camps - and land great programming jobs.  But I'm here to tell you that those people usually land those gigs because they can exhibit skills that were acquired "above and beyond" their courses or their code camp assignments.

**Aspiring Coder:** And then they can get a choice job like yours??

**Me:** Maybe.  But I'd be careful how you define a "choice job".

**Aspiring Coder:** What are you driving at?

**Me:** I won't deny that I make a very nice salary nowadays.  Probably more than I ever imagined I'd make when there was no grey in my beard.  And my annual pay may, on the surface, look quite generous.

**Aspiring Coder:** "On the surface"??

**Me:** Right.  Because you may look at nothing more than my annual salary and think, "Oh, man... That's where _I_ want to be."  But don't kid yourself.  My current salary is, essentially, _back pay_ for the many long _years_ I've spent working FOR FREE.

**Aspiring Coder:** Wait.  Your previous employers didn't pay you??  They had you working _for free_???

**Me:** No.  Of course not.  But nearly all of the skills for which I've been offered fat salaries have been acquired through _hundreds_, and even _thousands_, of hours of completely UNPAID work.  Most of that work was done entirely for myself, as I tinkered with new technologies.  Still more of it was done for "businesses" I intended to launch - and then they went nowhere and I was never (directly) paid for any of that effort.  For example, I've had the mantle of "React Developer" now for the last 2-3 years.  But I easily spent more than 1,000 hours doing React development _for myself_, _for free_, before anyone ever formally brought me onboard as a "React Developer".  In fact, if you added up all of the money I've earned in my career, and you divided it by the raw number of hours I've spent in all programming-like endeavors, I fear that my overall hourly wage would come out to be quite... _measly_.

**Aspiring Coder:** Wait...  You're saying that, if I truly want to become a professional (meaning: _paid_) programmer, I must first invest countless hours in _unpaid_ work. And that, even then, I will probably end up earning a very poor "hourly wage" when _all_ of my effort is weighed against _all_ of my earnings?  And if that _is_ what you're saying, why in the hell would I ever want to pursue this career???

**Me:** If you have to ask yourself that question, then you probably _don't_ want to pursue this career.  Trust me.  What I'm trying to get across in this whole discussion is that programming isn't so much a _skill_ - like knowing how to rebuild a carburetor or how to cut hair.  Programming is more akin to _a way of thinking_.  It can be a bit of a... _compulsion_.  I don't program for free (meaning: for myself) every single day.  But even after a quarter century in this field, I still end _many_ of my work days by "flipping over" to my personal projects - and continuing to write _more_ code.  _For free._  I can't help myself.  It's truly **_my life_**.  You don't _need_ to have that same mindset to be a successful coder.  But if you think that coding is a skill that you pick up over a coupla weekends and then you get a lucrative job, well... I might have some bad news for you.  I have no doubt that, even when I'm 90, and I'm long-since retired, I'll still find myself occasionally opening up my IDE and cranking out some code - even though no one will be paying me anything for it. 
<br/><br/>

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/xmamvzwxam0jb02lrpwc.jpg)
## Dreaming In Code
It's a bit of a cliché' to speak about prodigies who "dream in code".  But I'm here to tell you that it's not hyperbole, or some kinda urban legend.  When I'm nose-down on a particularly tough problem - one with which I've been wrestling for days - I still sometimes sit up in the middle of the night.  When that happens, my beloved will ask, "What's wrong?"  And I reply, "I just solved it."  Then I go downstairs to my computer and I crank out the solution that I just worked out in my unconscious/dreaming mind.

You don't have to obsess over code on that (possibly unhealthy) level.  But if you want to truly entrench yourself in this career field, my advice to you is that programming can't just be "that thing you do from 9AM through 5PM".  It must be something about which you're _passionate_.  It's gotta be something that you do _for fun_.  In your free time.  When no one else is watching.  

In short, if you wanna become a really kick-ass programmer - the kinda programmer to whom companies offer high salaries - there is really only one way that I know to get there.  You must relentlessly:
<br/>

**WRITE MORE CODE.**
<br/>

If you do that.  If you have the _mindset_ to do that.  If you're _motivated_ to do that - without an immediate promise of riches... you might just find that (eventually) the riches have a way of coming anyway.

I sincerely wish you nothing but the greatest of success in your own programming endeavors.  And if you've found an easier way to "punch that clock" and break into this career field, then... I applaud you.  But for me, the "formula" for success has always been quite simple.  I just keep: Writing. More. Code.