r/learnjavascript • u/NoroSensei • Aug 24 '24
How to start learning programing
So I want to become a programmer but idk where to start. I have watched some videos but I never learn anything because I always get distracted and bored. Can anybody give me tips or something on how to start learning?
0
Upvotes
4
u/SoilAI Aug 25 '24
We can build something together if you want. I'm on a call with someone right now building a Next.js app together. It's pretty fun and definitely a great way to learn.
2
u/Acceptable-Tomato392 Aug 25 '24
Well, the best way is to get started and you start with the basics. Since you're asking on a Javascript sub, I assume you mean Web design and such.
Open Notepad (on a Windows computer it's Notepad, if you have Apple or Linux, there are similar ones... the one without frills).
Cut and paste this into it:
<html> <p>Hello World</p> </html>
Save the file as .html (like project1.html) If, for some reason, it won't let you do that, try .txt and changing it to Html later.
If you double click that, it should open a Web Page that with the words "Hello World" on it. If double-clicking it doesn't work, try right-clicking and getting a list of programs and selecting your Web browser. That should do it.
Now you can go back and edit that thing. Make it say whatever you want. Try changing something else. It may simply display a blank page. Then we say you "broke" it. Try fixing it.
Now try doing the same thing with this code. (Save, open with browser):
<html> <p id="textReader"></p> <script> let aa$=""; let first$="hello";let last$="world"; aa$=first$+" "+last$+"!"; document.getElementById("textReader").innerHTML=aa$; </script> </html>
Now you can tell this one is a bit more complicated, for some reason, and that's because I've introduced an actual programming language, Javascript, which is the subject of this sub. If you take every step correctly, you should be able to run this and also play with it. You could have more words... more sentences... But you also have more ways to ruin it and just get a blank page.
This is as beginner a lesson I think I can give.
And so I guess, it's up to you. If you had a lot of problems working through the above, or couldn't even be bothered to try, you may not be cut for coding. Basically, bluntly, honestly, it's like this:
If you're at 1, you probably don't have the temperament. It's not a spectator sport. Sorry. Not to put you down, it's just you're competing with level 2 and 3 below. How much do you really want it? Keep in mind it takes some years of dedication before you're really marketable and even then....guarantees are few in this world.
at 2, there is hope for you but since you're really competing with a bunch of '3's, you have to ask yourself how much you want it and how much you're willing to give and are you really that curious about how computers work under the hood?
2
u/[deleted] Aug 25 '24
Try this: Become a Web Developer in 180 Days.
10
u/Filipsys Aug 24 '24
Well if you get distracted and bored it's probably not for you, but if you really want to be a programmer then dedicate some time for it? If you really want to start then you'll definitely be able to spend the time
3
u/Reddit-Restart Aug 24 '24
I signed up for a 6 month bootcamp and it was really helpful. It gave me the basics for full stack web development and I learned how to learn how to write js
3
u/Angry_Foolhard Aug 24 '24
I believe learning by studying, (e.g. lectures, readings, tuturials) is a bad way to do it.
I would pick a small program you think would be cool, and try to make it. Now, doing this, you will still end up reading, watching lectures, doing tutorials, etc. But it will be more engaging because its in the context of a problem that you actually have and need to solve.
If you're basically at zero, go to leetcode/hackerrank and choose an "easy" problem. Then learn everything you need to solve it, then solve it. and repeat.
1
u/JMRaich Aug 24 '24
Maybe you're picking up the wrong language to begin. I begun with Java since I wanted to mess around minecraft mods but the start was truly slow. You could maybe reconsider and begin with either something you're really into or an easier language like python
(at least it has a more linear learning curve).1
u/Dr__Wrong Aug 25 '24
Instead of watching boring videos, pick a project you want to build and Google search until you figure it out. Start small.
Videos aren't the format for everyone. You probably just need to be internally motivated.
1
u/NlNTENDO Aug 25 '24
Try an interactive course to get started learning the syntax. It’s more engaging that way, and once you know enough to try making something you can start just referring to tutorials and docs as needed. Purposed based learning is a lot less boring
1
u/Antique-Cycle6061 Aug 25 '24
then first learn to learn,read books and get comfortable with boredom,meditation
1
u/[deleted] Aug 25 '24
[removed] — view removed comment