top | item 25542290

Ask HN: I want to know how to code. What's the best way for me to start?

9 points| ThisIsMeEEE | 5 years ago | reply

My school don't offer much, is there any way or maybe a free way?

18 comments

order
[+] gostsamo|5 years ago|reply
Choose either python or javascript. Python is nice to work with, javascript is easy to observe in the browser. Both languages are useful and rich.

Whatever you choose, find some tutorials online and start. At least for python, I usually recommend "Automate the Boring Stuff with Python" or "Learn Python the Hard Way", however, you can find many more.

The two other things you will need are a code editor and some understanding of the command line. VS code is a good editor, though notepad++ might be okay as well, because it has less features and would be easy to begin with. The command line is a different than the usual way to rund programs, but it is not all that difficult for the basic stuff you will need on the start.

Good luck and never be ashamed to ask questions.

[+] ThisIsMeEEE|5 years ago|reply
Thank you and appreciate it, I was about to ask that and thanks for explaining.

But what about the code editor, can you recommend one?

[+] NiagaraThistle|5 years ago|reply
Traversy Media on Youtube. This guy is a GREAT teacher and has a LOT of free videos you can learn from: Intros to HTML, CSS, Javascript, and real world mini-projects to show you how to build things you can use yourself or in a portfolio. Mostly short videos (less than an hour) and a really easy person to learn from. He taught himself to code and really knows how to explain what might be complex topics in Web Dev and more to people who have never coded before.

https://www.youtube.com/channel/UC29ju8bIPH5as8OGnQzwJyA

Good luck!

[+] st1x7|5 years ago|reply
Harvard's CS50 course is by far the best complete-beginner resource - https://www.youtube.com/playlist?list=PLhQjrBD2T381L3iZyDTxR...

It's completely free, it's accessible for people from various backgrounds, you get exposed to quite a few different concepts and tools, David Malan is a great teacher and there are some really helpful online communities around the course.

In addition to this youtube playlist, if you search youtube and google, you can find their lectures for the same course from other years, their official website, their edx version, subreddits and other helpful resources.

[+] ThisIsMeEEE|5 years ago|reply
Thank you so much! Will watch this video definitely.
[+] moonfleet|5 years ago|reply
Speaking as someone who never had formal education, I recommend starting with Python. It’s easy and fun to work with. You can pick up basics of programming in two weeks. After that I’d suggest diving into HTML, CSS and JavaScript. Once you get the hang of these technologies, you go on to exploring anything that tickles your fancy.
[+] peschu|5 years ago|reply
https://doc.rust-lang.org/stable/book/

Edit: I prefer a more practical approach and then dive deeper into needed topics and theoretical background about general concepts. But everyone learns a bit different.

[+] neximo64|5 years ago|reply
You're going to suggest someone start with rust. Really?
[+] st1x7|5 years ago|reply
Give OP a moment to say hi before trying to convert them to the cult.
[+] Aztar|5 years ago|reply
freecodecamp is very beginner friendly and starts from scratch. Start with HTML/CSS and then Javascript.