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

1

u/black-eagle23 May 15 '20

I'm at chapter 7 of eloquent javascript, and it's really frustrating and I don't understand and don't have any clue how code works. May be I should take your advise and start coding my own projects. Overall, thank you for your motivation! This times I really need it.

2

u/donfontaine12 May 15 '20 edited May 16 '20

I'm doing Chapter 7, too. The robot exercise. Eloquent Javascript isn't for beginners. I know a little Javascript but It isn't my first language. I have to refer to Mozilla's MDN Javascript reference each exercise. This book isn't easy.

Did you understand each chapter? Did you complete each exercise? How close is your solution is to his? Which chapter was the 1st chapter you didn't understand?

I'm having problems, too. I read Chapter 7 twice and I'm entering all the code along the way. Breaking down everything I don't understand. I understanding things a little bit better now but if I can't finish the exercises, I'm going back to read Chapter 5 and up.

I'll probably have to type up the code ten times or more to get the gist of what's going on. Sometimes I skim through the chapter reading without typing up any code. This is the book will confuse me fast if I don't stop and put more effort into it.

2

u/black-eagle23 May 16 '20

The first chapter I didn't understand was High-Order Functions. But I read it again and again, code it, experiment with it. Now I can easily understand, what filter, map and reduce do. Similarly I don't understand The Secret Life of Objects. I don't get it how his Matrix works, but I understand how his Matrix iterator works. Even though I don't fully understand 6th Chapter, I was curious what is Project Chapter. And it was really frustrating, I don't understand how any code works in this Chapter.

Regarding exercises, I do all of it. If I tried my best and can't solve it, I just look at the solution.

But I'm agree with your opinion, this book is really hard to "conquer". But I hope it would worth it. I'm very curious to get to the Project Chapter where he creates a game. Unfortunately I should read again chapter 6th and 7th. I will refer to MDN more often as you do. May be it will help me.

Thank you, for letting me know that I'm not an idiot, who can't understand a simple book. I hope we will not give up on this book and on the programming as a whole, and we will be a good web devs soon. I wish good luck in your journey!

2

u/donfontaine12 May 16 '20 edited May 16 '20

I've read Amazon reviews about Chapter 5 and up is when things really get complex and it wasn't beginner friendly. But this was like the best selling book on Javascript so I wanted to try any way.

And right now, it's getting tough but I don't want to give up yet. I stopped coding for 2 weeks after reading Chapter 7 because I was confused and I just read it again yesterday. After I completed the exercises for Chapter 5 - Higher Order Function, comparing my code to his, I realized how thick my code looked and his being as few lines as humanly possible. That's when I knew I had to refer to a Javascript reference since I wasn't familiar with all the methods.

Like for his Flattening exercise, he used reduce and concat, which are array methods. So when the next exercise comes up and it mentions, we're using maps, I'll go to Maps in MDN and read it and all its methods to figure which ones I can use to solve the problems.

Also, I had trouble with the arrow functions, r => r {blah, blah, blah...}, which I didn't even know the name of. I found it watching a Youtube video then I read arrow functions until I got it.

If you don't understand the Matrix, maybe take a day, a week or how ever long to doing simple Matrix tutorials until they become second nature. It may take a month to finish 1 chapter, but you'll understand it better. If you have trouble with a specific question you just need a clearer explanation on, post it to StackOverflow, the Javascript subreddit and etc. Post the same question on multiple websites and forums so you can get a lot of answers and go through each one. There are really some helpful people out there and it's only a click away.

If you realized it's still too hard, you may want to do a beginner's tutorial for Javascript so you can build a firmer foundation. Because you could finish reading a chapter and barely understand any of it. You don't want to go 4 or 5 chapters you don't understand because they build on each other.

This book is really kicking my ass but if I finish this book, I'll know it'll make me a better programmer. The thing with programming, you'll have to put in a lot of work to finally to get it to click. I remember reading a post a few years ago about how a programmer got really good quick and it was treating programming like an exercise at the gym. You don't understand concat array method, you do 10, 20 or so reps on that specific exercise until they become muscle memory. You type up a concat example, delete and retype again, again and again. So next time, that problem shows up, you can bring it up with a snap of a finger. I never took the advice until I met this book, so good luck and happy coding.

2

u/black-eagle23 May 16 '20

Thank you for your support. I very like your example with the gym and I try to implement your advices in my workflow. No one said that to be programmer will be easy task. And there are a lot of work to do to become one. I wish you best luck too. :)

2

u/donfontaine12 May 16 '20

You're welcome. A year from you can be a great programmer. Good luck.