r/learnprogramming • • May 15 '20

Learn to code TODAY! (Seriously)

Hi guys, I'd like to share my story with coding and when it really started. I know a lot of you guys is having the same struggles I did and I hope this helps.

At first, I didn't understand how some letters on a screen became a whole web store system. It was mystical to me. After some researches, I was told to learn HTML/CSS/SQL/JS/PHP. The starter kit for web development.

So I did, started to learn theories, syntax and when I (thought) finished, I was hopeless. Thinking: "ok, so now I know what is these things and how it works, but how the hell am I supposed to mix it up together and build something meaningful?".

I was stuck. I quit for some time, I didn't knew what was the next step, and searching on the web it looked to me that was a jump from the basics to building complex systems, and I was too dumb for this.

But then, the day that made me a true programmer became! And this is the tip that I thought it might help you guys:

To become a programmer, you have to program. Oh yeah, you already read this on other posts, but it sounds pretentious, right? Like, shut up dude, you already code, it's easy for you to say. Yes, I agree.

The thing is, besides learning syntax and other stuff, do an analysis of yourself. Where are you now? What you already know? What are the things you always see around but have no clue what it is? OOP? API? AWS? What is this? Take notes, search what it is, just to clear your mind. If you have all this information that is kinda blank on your head, it's just overwhelming you. Sounds more difficult than it actually is.

Then when you know what is your level at programming, start taking your own challenges, compatible to that level. Example: I was trying to create a CRUD (Create/Read/Update/Delete) system in Java with SQL, I tried to jump steps and went to youtube tutorials without knowing the basic syntax of both languages, it was frustrating. Then I got back to my "make-a-sum" console programs. After I learned the basics, I finally was able to understand that tutorials properly and then when I watched it again, became natural. It has a lot of things that I didn't knew, but having a solid background for what the tutor was speaking, I was able to study it afterwards.

So, to program: program (but not any or every challenge you found on the internet, but your own challenges, what you are capable to do).

The more I study the more I see is an endless road. The only point you can say: "Ok, now I'm am a programmer!" is when you take challenges and don't give up on them, and make it works. No matter how small is your project.

Search for the zone where is always slightly difficult.

You can become a programmer today, maybe a bad one, but you can start it today! Now, go build something with what you are capable, you'll be a great programmer soon. :)

1.9k Upvotes

144 comments sorted by

View all comments

2

u/[deleted] May 15 '20

Yeah, I agree. What really got me started after learning the syntax and OOP was to do projects of my own, not follow tutorials, but create things that are useful to me and help me learn, things that give me a sense of accomplishment.

At the beginning, it feels like there are 10 thousand things you need to learn, and it is kinda true, you need to know so many different things to create something really useful (json, APIs, csv, file handling, os, command line, etc, etc), but just learn the basics of one thing a day and in a few months you will have a giant toolset.

I don't need to be an expert on every technology, but if I have a basic understanding of a technology, I can start using those basics immediately and then once I need more advanced features, I can get a deeper understanding of it.

I started with a simple python blackjack program that used OOP and that helped me to learn a lot about classes, but then I felt that I needed to learn how to interact with the world outside of my computer, so I wrote a program that goes to my email inbox, looks for a certain email message, then put some of the contents on Twitter. I had to learn about base64, file handling, and both gmail and Twitter APIs, but now I have those tools in my toolset.

Then I started looking at job postings and I saw that most of them had Linux familiarity, so I took a Linux course, but instead of running Linux on a virtualbox like the course recommended, I decided to resurrect my old and almost unusable Sony Vaio laptop from 2007. I bought a SSD, upgraded the RAM and fully installed Linux in the laptop, it now runs like a beauty, so I basically gained a new computer.

Next, I wrote a program that looks for patterns on stocks and posts them on twitter daily. This program gets the data from a broker, updates 200+ csv files with the latest data, then goes through each file looking for patterns and tweets them out daily. It uses like 5 different technologies in it, requests, csv, pandas, APIs, and cron jobs. I would have never thought I would be capable of writing something like that when I was first starting, but here I am.

Now I am working on another project to tweet out stock levels for the day i.e. where a stock is likely to go during the day.

The reason I persevered and did not give up early on my projects is because they are not just some youtube/online tutorial, they are my own projects which I need/would benefit me personally. The satisfaction and accomplishment I feel from completing them is ten times greater than completing any tutorial.

TLDR:

Do projects that benefit you, that do something useful for you, learn by doing, and do for you.