r/learnwebdev • u/giantqtipz • Jan 12 '18
How to "think" more like a programmer?
Hi guys,
I'm an aspiring web developer. I took a part time course and have been learning on my own using online tools like treehouse, onemonth, codeschool.
I took a break from libraries and have been focusing on vanilla JS.
I feel like I won't be satisfied with my skills unless I can think fluidly and code kind of like this guy here
https://www.youtube.com/watch?v=LRnnNInjmN0
This way of coding and thinking is something that was never taught to me in any of the course I took. I just learned top to bottom. Is there a guide somewhere that can improve my code organizational abilities?
Ive watched other tutorials on tic tac toes, a card matching game, building a calculator, and it amazes me how the instructor manages to organize such complicated code logic.
Thanks guys!
3
u/tchened Jan 21 '18
In addition to what /u/4xDMG said (practice, practice, practice), a strategy often overlooked by beginners is to decompose the problem - break the problem into many different parts. Complex problems are really just a bunch of simple problems put together, so if you can break the complex problem down into lots of simple problems, it will make the problem-solving process much easier.
You can also try challenges on www.codewars.com to practice.
3
u/4xDMG Jan 12 '18
Practice. Try and write a simple app from scratch. Once it’s working you’ll probably have some idea of where you can improve the code to be structured in a better way. Also, put the code on GitHub and link to it on online communities like reddit or freeCodeCamp and ask for a code review.
Also, reading the code of popular libraries and blog posts has helped me a lot.