r/learnprogramming • u/[deleted] • 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. :)
26
u/wasmachien May 15 '20 edited May 16 '20
Some tips from my side:
Start simple. Don't think you can just go and create a video game or a social networking site. Those are the results of a lot of work, usually by a lot of people. Instead, make a simple static webpage. Make a console app that tells you the weather forecast. Or a script that performs some boring, tedious task for you automatically.
Don't be afraid to make mistakes. Because you will. Make sure to save your early work somewhere, so you can look back at it later and realize you've made progress.
Don't try to understand everything. Sometimes you just need to do or use something without knowing what happens inside.
Don't be afraid to ask for help. But know that asking for help is also a skill. If your questions are to the point, you will get more help. Don't ask why your program crashes. Ask why
Be critical with regard to your study materials. There is a lot of crap on the internet. Some areas move very quickly, which makes old stuff outdated. Books are often better. I like the Head First series if you are starting with little or no knowledge.
Start with the basics. Don't start with Android apps before you know what Java and object oriented programming are.
Big problems can usually be split up in small problems. Small problems are usually easier to solve, and easier to ask questions about if you can't figure it out yourself.
Most problems have been solved before, by people smarter than you or me. Don't try to reinvent the wheel (unless for fun or practice). E.g.: do not try to figure out yourself how to store passwords securely. Just google "storing passwords <your programming language>".
Learn how to use a debugger. A big part of programming is figuring out why your program doesn't work the way you want it to. A good debugger makes this 1000 times easier.
Practice practice practice. Doesn't matter if it's useful or not.
Googling is a skill. Also, read the docs.
Once you have the basics down, try to move on to more complicated systems. Create a website with a front end and a backend. Try to understand how you can tie those things together.
Learn design patterns. Once you advance, you will notice that programming is not so hard. The hard part is making sure that your program can later be extended easily without messing everything up.
Make sure you keep having fun.