Advice for Students  ·  September 30, 2020

So this coding thing… How do I start?

Mingjie Jiang, Community Member

Disclaimer: Im no expert in programming. Im here to share my experience with programming, with the hope that this would help a few more beginners find their own path.

Hi there, Im Mingjie, and Ive been working with CodeDay for almost three years! During the past three years of running events, mentoring students, and hearing from different mentors, I found out that one of the most frequently asked questions by beginner students is… Which language should I learn first? While this article wont answer that question completely, Id like to share how I got started with this programming thing.

This could be a very long piece to read… but please bear with me (obligatory go bears!) as I tell my story.

Contrary to what a lot of people who know me personally believed, I didnt grow up thinking that computer science is my destiny. Thanks to my mom who was getting her accounting certificate online yes, online, and that was like more than a decade ago at the time, I had access to a very old IBM Aptiva computer when I was 8. I didnt do much with it, though, mostly because my parents didnt want me going online so the only toys on that computer that I can play with were PowerPoint 2000 (Word, Excel, and Access didnt look as fun as PowerPoint), Windows Media Player (mostly for the visualizer), and Paint. But even though I had almost zero access to online resources (not that there was a lot of those back then), I still somehow managed to create a little maze game with PowerPoint animations and events. It was janky, and it took me about an entire summer to get almost everything I wanted working.

IBM Aptiva computer

(Image Caption: IBM Aptiva, from the Computer History Museum)

Then my parents decided that since I was very good at computers, so what better options are there than sending me to an after school class that taught me how to write programs? (I wrote briefly about this culture in China in my blog about my education.)

Little did they know, that course almost completely destroyed my interest in computers at all. Every Saturday, I would sit in a small computer lab with 20+ other kids of my age, looking at one of those boring, 8-bit colored screens. We were taught how to program in Pascal, and since there obviously wasnt VS Code or Repl.it at the time, we had to code inside a very boring looking compiler called Turbo Pascal.

code screen of Turbo Pascal 7.0

(Image Caption: Turbo Pascal 7.0 from Wikipedia)

I hated that experience. Of course, I was too young to start thinking about my career choices, but I just knew that I wouldve hated my life if this is what I have to do all day. I even wonder if my teacher, a middle-aged man who almost seemed to be living in that computer lab, actually liked programming at all to me, it was too boring of a task for anyone.

Things didnt get better for the computer-nerd side of me, even after I went to middle school when a helpful friend pulled me into creating a tech club that failed miserably. But one thing I did like was writing, so as I wrote more and more, wanting to have an online blog where I can keep records of my random pieces of journaling.

Initially, I was just like everyone else I wrote on commercial platforms like Weibo (literally microblogs, a Chinese combination of Twitter and Facebook). But as I wrote more, I figured that these platforms were really bad at keeping track of my work. There was no tagging, no categorization, and I couldnt even search for something I wrote previously unless I knew exactly when I wrote the piece.

So I started looking for alternatives. Honestly, there werent many of those because of the limited internet access in China (anything that uses Google APIs is off the charts, so that leaves… nothing). As I looked more into self-hosted solutions, I found WordPress, the platform with way too many installation tutorials on the internet.

And me being me, instead of starting to write and publish more articles right away with the default theme, I found myself in the middle of a dark corner in WordPresss theme development documentations. And you know what happens next after an entire year of trialing different themes, attempting to modify small chunks of PHP here and there, breaking the site completely, re-installing WordPress completely, and starting all over again, I wrote a total of zero pieces, but I fell back in love with making custom things with code. It felt cool a few lines of non-human-readable code can generate a webpage that can be published to anyone on the internet. This is something that math, sciences, music, or anything theyve been teaching at school cant do.

poorly drawn digital image of Mingjie on a floating computer with WordPress open
Here’s a picture of happy me!

Since then, I started learning to write websites bit by bit starting from using frameworks like Bootstrap and writing static sites, to learning how to render things on the client-side with JavaScript, then to NodeJS and databases. These became handy to me, as I have always found myself working for and with very small teams who need software solutions that everyone can access everywhere.

So now that I am finished telling my clich story, lets go back to the question I posed first what should you learn first?

Programming isnt just a simple course like algebra that you learn at school. Unless you explicitly learn it the conceptual way which is what I am doing now, but not everyone has to do that it is always heavier on the application side. Languages, on the other end, are like the tools you use to tackle the specific problems that you face now and then.

There is a very common metaphor that I really liked: “programming languages are like various forms of sharp tools”. When were you taught how to use a knife? Did you learn how to use a bread knife, steak knife, and a Swiss knife all separately, or did you learn them all the same way?

Then think about this: if you already knew how to use a chainsaw, are you going to cut a loaf of bread with it? Well, it accomplishes the same task, doesnt it? And are you going to chop down a tree with a bread knife? Or filet down a fish with a screwdriver (idiot sandwich warning)? 

Various knives and tools affiliated with different coding languages. an incredibly elaborate Swiss army knife with about 50 tools is C++, safety scissors is JavaScript, plastic butter knife is Java and C Sharp, broken wooden spoon is PHP (without MySQL), a Turkey saw blade is Ruby, kids Swiss army knife is Pascal, Katana is Perl, broken metal fork is Lisp, Metal spoon is Visual Basic, a bunch of mushrooms and swirl designs are Haskell, a chainsaw is Python, a swiss army knife with a USB drive in it is C, doctors precision blades are Assembly, Cobra is a basic knife, and a fork is Delphi. This alt text is very descriptive thank you for listening.

(Image Caption: Devrant summarizing my entire blog in a picture)

Programming languages work the same way. Once youve fully mastered one language completely, youre going to know something about every other language there is. Some languages may have an extra handle, an electric motor, or even a screwdriver attached to it at its bottom, but it wont take much effort to go through all these extra features. But some languages are also very specific at their uses: Python is like a chain-saw, as it works very well chopping down large trees; JavaScript is like a pair of scissors, as it has very specific targets and works very well for these tasks yet no other; C is like a Swiss Army knife, as it can sometimes drive through hardware if you need it to, etc.

Every now and then, youre going to encounter some tasks that youll have to solve with a specific language. For me, my first task was to cut open a blog with a pair of scissors. But very obviously, I couldnt use the same pair of scissors to analyze large chunks of data like Im doing now with my research project, nor can I use that for traversing through databases extensively. So as time passed, I started learning how to use more specific knives like Python and SQL.

Comic of a person at a desk saying "Lisp is over half a century old and it still has this perfect timeless air about it" next panel says "I wonder if the cycles will continue forever. A few codes from each new generation re-discovering the Lisp arts" and the last panel has someone approaching this person talking saying "these are your father's parentheses. Elegant weapons for a more.... civilized age"

(Image Caption: XKCD)

So, one last time, in case you havent been figuring out where Im going with this… What language should you learn first?

It really depends on what you want to do with your programming skills. Ive seen people having incredible success starting off with learning to write JavaScript on websites, and there are also developed college courses like Berkeleys CS 61A and Harvards CS50 starting beginners off with Python, C, or SQL.

But you should always start with something youre comfortable with I was forced to start with a Swiss Army knife that I cant properly handle, and that almost made me want to quit using knives forever (and to be honest, I still dont quite get how to use all the tools… Im talking about a Swiss Army knife). If all the object-oriented programming stuff is getting you less and less oriented, or if React.js is just making you react like youre having a brain-freeze (hehe)… try something simpler. Read a projects documentation and source code on GitHub, build something simple like a personal website that randomly generates memes with your pictures, a link shortener that rick rolls people by chance, or a todo list that consistently remind you how much more work you have left in the week… In the end, youre learning how to use a tool, so dont stress too much if you arent able to lift a heavy chain-saw yet.

If you have any more questions, feel free to chat with me at any time! Just shoot an email to mingjie@codeday.org.

Happy hacking!

If you liked this post, an easy way to support our work is to follow us on LinkedIn or Twitter. We often post volunteer and mentor opportunities.



Follow us on LinkedIn or Twitter