r/learnprogramming • • Jun 28 '18

Hands down the best place to learn Javascript for beginners.

javascript.info I have tried learning JS from a lot of places online but when I came across this site everything changed for me. All of the contents are well curated and topics are explained in simple terms along with figures sometimes to explain the concept.

edit: The complete course on Javascript is open source.

You can contribute to it from here: Github Page for Javascript.info

1.6k Upvotes

93 comments sorted by

73

u/zyzzogeton Jun 28 '18

You have to put http:// protocol identifier in your ()'s...

like this [javascript.info](http://javascript.info)

31

u/yankexe Jun 28 '18

solved, thanks :)

7

u/totemcatcher Jun 28 '18

javascript.info

Just testing without

[javascript.info](//javascript.info)

edit: lies

3

u/ACoderGirl Jun 29 '18

That's a nifty shorthand syntax for "keep the protocol that I'm already on". The initial two slashes does make it an absolute URL instead of a relative one, though. After, all, <a href="example.com">Test</a> would actually point to a file named example.com relative to the current location, totally different from <a href="http://example.com">Test</a>, which would point to a specific domain.

Reddit actually does allow relative paths, though. But it's kinda weird. It seems that they allow paths relative to the root location (except the root itself, which would be the reddit homepage), but nothing else. Standalone anchors are allowed. My guess is that they allowed paths relative to the root because it lets them easily link to subreddits and threads. Presumably there just wasn't a reason to make it work for the root path itself. The fact that it happens to allow links like /rules to work would just be a harmless inclusion.

Not sure why they'd allow anchors. Perhaps those were always intended for more meta purposes? Many subs use them for spoiler tags, after all. Or maybe they just didn't see a reason to disallow it? In a user unfriendly sense, it makes sense to disallow the rest of inputs (eg, example.com), since then we can't differentiate between a relative and absolute link and it'd be easier for the user if they could copy the test instead of having to go to it first (or right click > copy link).

Test

[Test](#anchor)

Test

[Test](/)

Test

[Test](/rules)

Test

[Test](/does-not-exist)

Test

[Test](does-not-exist)

Test

[Test](/r/learnprogramming/comments/8uglyv/hands_down_the_best_place_to_learn_javascript_for/)

1

u/totemcatcher Jun 29 '18

Thank you for bringing mine attention to this. It looks like snudowns implementation is shortened (for good reason), but has lots of convenience features. I didn't find much documentation outside of this sourcecode and lots of posts of people asking how to reddit. :)

Markdown doesn't have a very strict specification for protocol or how relative links are handled, so the implementation that reddit uses just leaves // as is (so your browser can handle it) and simply ignores a link without a slash in it -- effectively ignoring local directory relative references (like your second "does-not-exist" example). This also makes a lot of sense for reddit. This one was interesting to me since I happen to be working with lots of markdown files with exactly that type of local reference. This does work with the lib I'm using, so... sssssafe! :D

2

u/LacidOnex Jun 29 '18

I'm learning a lot about Reddit formatting today.

1

u/ilI1il1Ili1i1liliiil Nov 15 '18

The Python counterpart to this site is http://learnival.com/

54

u/apugoneappu Jun 28 '18

https://www.freecodecamp.org is way too underrated!

34

u/yankexe Jun 28 '18

FCC is totally awesome! It brushes you up from a complete beginner and prepares you up to a job interview, and that too for FREE! But with too many contents, it might be overwhelming for someone who wants a crash course on JS. The Odin Project is also a great starter which covers all the basics of JS and even some popular Front-End libraries like React, Angular and Vue.

10

u/[deleted] Jun 28 '18

I love fCC. With that said, the gap between the exercises and the projects can be a bit too large.

8

u/BetterPhoneRon Jun 28 '18

I think that gap is what makes you a good developer, it teaches you to do your own research. But I can see how people can be put off by that as they might quit when exercises get tougher.

I personally struggled with the most basic front end projects and almost gave up. I then signed up for Colt Steele's Web Developer Bootcamp which really helped solidify what FCC had taught me so far and also taught me many new concepts.

So a combination of FCC and Colt Steele's Web Developer Bootcamp is what works for me really well.

3

u/[deleted] Jun 28 '18

Yep. I'm not that good yet, but I'm learning to research and leverage other resources for these projects. Even scrolling through codepen is fair-game in my book, as long as I put in my own personal touch I'm happy :)

6

u/apugoneappu Jun 28 '18

That was intentional, I guess.

27

u/owen800q Jun 28 '18 edited Jun 28 '18

Free code academy is a good online learning resources Try to read these two free ebooks

Eloquent JavaScript

You don't know JS

25

u/[deleted] Jun 28 '18 edited Nov 23 '18

deleted 0.0317 What is ^^^this?

12

u/yankexe Jun 28 '18

yes, I agree, I have given it a try and was lost with few topics in.

6

u/dandmcd Jun 28 '18

Eloquent JS is for people who already have a vague idea of programming, perhaps coming from another language background. Not for true beginners. It's a good intermediate source to reinforce what you have learned though.

YDKJS doesn't even pretend to be for beginners.Those books are too advanced, IMO.

5

u/spore_777_mexen Jun 28 '18

Yup, and Eloquent JavaScript author just finished editing the 3rd edition. The digital version can be read for free and the paperback will be available in October (iirc).

It's a good read.

15

u/LjSpike Jun 28 '18

TBH I don't really get along with code academy that great. I prefer referencing W3Schools for a lot of stuff. This javascript.info place looks like it might be for me though. Nice and neat and some code snippets around the place.

3

u/thejemmeh Jun 28 '18

I'm brushing up on javascript with codecademy right now and I actually don't think their new course is very good for a beginner programmer. They gloss over a lot of core concepts like variables and functions imo. I actually really liked their old course for it, but it's for ES5.

1

u/SwevenEleven Jun 28 '18

Thanks for the tip!

1

u/[deleted] Jun 28 '18

I used FCA, and it really helped me with structuring the JS code. I got right to where it starts bumping into CSS. I need a computer so I can get back in to it.

1

u/phun_2016 Jun 28 '18

Eloquent Javascript 2nd edition is good for the first few chapters only.

1

u/[deleted] Jun 28 '18

Is “you don’t know JS” available for free on Apple Book / iBook whatever they call it now?

1

u/[deleted] Jun 28 '18

It's for free on github.

-1

u/[deleted] Jun 28 '18

Tbh even though eloquent JavaScript is recommended for people with a math/cs background, I found it too slow to read since I just wanted to know how to hack together a web app, not all the intricacies of JavaScript

Not only that but most of the information about the language that wasn't syntax I could already infer most/know due to my knowledge of how c based languages work

2

u/DiamondxCrafting Jun 28 '18

Something for python perhaps?

1

u/ilI1il1Ili1i1liliiil Nov 15 '18

The Python counterpart to OP's site is Learnival

72

u/Spasmochi Jun 28 '18 edited Jun 28 '18

I'd also recommend Khan Academy to absolute newbies. Very friendly material and a great interface.

EDIT: I linked "Khan Academy" to the computing page on the site.

EDIT 2: Also, Khan Academy does offer content for intermediate JS learners.

17

u/marsmermaids Jun 28 '18

Seconding as an absolute newbie.

6

u/orionsgreatsky Jun 28 '18

That’s great too

2

u/[deleted] Jun 29 '18

The instructor for their CS courses is wonderful. Makes coding feel whimsical, creative, and fun!

2

u/Spasmochi Jun 29 '18

Couldn't agree more! Her apparent enthusiasm is really engaging.

1

u/monsto Jun 28 '18

Khan Academy has a JS course? Sheeeeit

1

u/Spasmochi Jun 29 '18

I'd definitely recommend checking it out. It has material aimed at different levels of competency and a good sql section as well.

1

u/xDeucEy Jun 29 '18

It's odd actually. I've used khanacademy for some math stuff in the past, but I didn't even bother looking at the computer science section. My gf, who has absolutely zero familiarity with anything computer science related (she's a teacher), just randomly decided to do some of the courses on there because she knows it's what I do for a living and she couldn't stop lol. It was actually interesting seeing her understand how to use functions and draw snowmen haha.

28

u/CowboyBoats Jun 28 '18

The Ninja Code section is some funny shit.

Make the code as short as possible. Show how smart you are.

Let subtle language features guide you.

For instance, take a look at this ternary operator '?':

// taken from a well-known javascript library
i = i ? i < 0 ? Math.max(0, len + i) : i : 0;

Cool, right? If you write like that, the developer who comes across this line and tries to understand what is the value of i is going to have a merry time. Then come to you, seeking for an answer.

Tell him that shorter is always better. Initiate him into the paths of ninja

14

u/TheAmorphous Jun 28 '18

Whoaaaa. Double ternary. All the way...

3

u/andrazte Jun 29 '18

One of the comments said that he found the material great and is willing to follow NONE of them. That really made me laugh.

12

u/[deleted] Jun 28 '18

Another one I took and loved is Practical Javascript from Watchandcode.com

2

u/codinglearner Jun 28 '18

i second this

1

u/bluey89 Jun 28 '18

Watchandcode.com

Does it give you confidence in building your own apps or are you mostly coding and copying along?

2

u/[deleted] Jun 28 '18

It does! After the course, I built my first Javascript app without any hand holding and it was so great. Would have linked it but then there goes my identity. Take the course, I promise you won't regret it.

2

u/tanahtanah Jun 29 '18

Do you buy the monthly subscription?

1

u/[deleted] Jun 29 '18

No but only because I can't afford it

1

u/bluey89 Jun 29 '18

You could also pm it, I'd love to check it out but understand if you wanna stay private. I started this morning on your recommendation and am 76% through, thanks for the motivation!

Planning to do the paid course after, it seems doable in < 1 month though it is a lot of content. If anyone has first hand experience on the paid course I'd love to hear them.

1

u/[deleted] Jun 29 '18

How are you finding it so far? Kudos to you on being so motivated.

1

u/bluey89 Jul 03 '18

Loving it! He's a great teacher.

1

u/[deleted] Jul 03 '18

Awesome!!

4

u/barbietattoo Jun 28 '18

Add another to my resources bookmarks, thanks

2

u/shadowbluffy1 Jun 28 '18

Bookmarking

12

u/Ciubotsel Jun 28 '18

And never coming back

2

u/shadowbluffy1 Jun 28 '18

HAHA joke is on you , you made me come back

1

u/[deleted] Jun 28 '18

Story of my Life

1

u/K_is_for_Karma Jun 28 '18

How long did it take you to complete this?

2

u/yankexe Jun 28 '18

almost a month and a half for part 1 and part 2

2

u/Ghost-17 Jun 28 '18

Hello fellow classmate! I totally agree with you.

2

u/perky_coder Jun 28 '18

Thanx for sharing this info, I have picked up reading JS from eloquent java script, and found it decent.

2

u/emile_il Jun 28 '18

Watch and Code by Gordon Zhu is great if you know the fundamentals and want to build something while gaining a deeper understanding of the concepts.

2

u/SteveDougson Jun 28 '18

The site is even better hands on keyboard

2

u/balherian Jun 29 '18

Any of you guys know of some equivalent in Python?

1

u/[deleted] Jun 28 '18

This looks cool; I'm going to check it out now. Cheers, min.

1

u/_scoobydoob Jun 28 '18

Would also recommend this series of free books on github for a more in depth overview of how JavaScript works as a programming language.

https://github.com/getify/You-Dont-Know-JS/blob/master/es6%20%26%20beyond/README.md

1

u/aberaha Jun 28 '18

lynda.com has some pretty good Javascript courses.

1

u/[deleted] Jun 29 '18

I’ll add this to my bookmarks and check it out when I have time tomorrow. One resource that has worked great for me is codecademy. Its not a free resource but I find the constant programming and building off previous topics really drives home what the current section is about. One resource is never enough, though!

1

u/atomicfunc Jun 29 '18

In my opinion this is the best book to understanding and learning js: https://www.amazon.com/gp/aw/d/1593275404/ref=dbs_a_w_dp_1593275404 Very simple and understanding content with code examples. I reccomend this book.

1

u/Fireche Jun 28 '18

Just leaving a comment here so I can check it out later. Looks good :)

-4

u/SixFigureGuy Jun 28 '18

Is there any reason to deep dive into JavaScript, when typescript seems to be the growing natural replacement? At this point I’m willing to hire someone with typescript experience even if they’ve never used JavaScript.

5

u/[deleted] Jun 28 '18

What is type script?

6

u/[deleted] Jun 28 '18

Typescript is a programming language that transpiles to Javascript (that means you write TS, and then run a command that transforms it into JS; browsers don't natively understand TS). Its main feature over JS is adding static typing, which makes it easier to catch errors at compile time (while you're writing code) instead of at run time (while the code is running).

1

u/dandmcd Jun 28 '18

There arent any strictly typescript beginner courses for one. 2nd, if you learn JavaScript to an intermediate level, typescript takes no more than a couple hours to get a decent understanding of the differences.

1

u/yankexe Jun 28 '18 edited Jun 28 '18

exactly. You have to start somewhere with JS ¯_(ツ)_/¯

3

u/LimbRetrieval-Bot Jun 28 '18

You dropped this \


To prevent anymore lost limbs throughout Reddit, correctly escape the arms and shoulders by typing the shrug as ¯\\_(ツ)_/¯ or ¯\\_(ツ)_/¯

^^Click here to see why this is necessary

-1

u/eggn00dles Jun 28 '18

He advocates always using strict mode yet that's been debunked.

1

u/cheddarben Jun 28 '18

Have not taken the course, but isn't using strict an opinion? It is hard to debunk an opinion. An opinion that I think many great developers agree with.

I am not even saying he is wrong, but we dealing in some Sith shit right here.

1

u/eggn00dles Jun 28 '18

He's passing his opinion as a best practice.

Michael Haufe provided a more appropriate sample benchmark that seems to indicate that 'use strict'will not make our code run significantly faster (and may slow it down in some environments). 

Should probably leave opinionated code practices out of a starter course.

1

u/teknewb Jun 28 '18 edited Jun 28 '18

Just a beginner, but is speed the only goal?

For example, there are many great software developers that hate object-oriented programming like the plague and believe it should be an abolished practice, but OOP is introduced in all beginner-intermediate courses.

My understanding is execution speed is certainly not the primary concern of OOP.

So I'm curious if there is any other purpose for 'use strict' here.

1

u/eggn00dles Jun 28 '18

It's just not a hard and fast rule. None of the major style guides (Google, AirBnB) have an opinion either way on use strict.

If you use it with a legacy codebase that isn't using it, you'll break the entire app.

1

u/teknewb Jun 28 '18

Good to know, thanks.

1

u/teknewb Jun 28 '18

I should note that, without personally understanding the implications, I've seen some bootcamps (in their Precourse material) teaching this same best practice, so he's definitely not alone.

-1

u/A-dona-I Jun 28 '18

to the ones that are willing to pay a monthly fee, lynda. com and pluralsight are TOP F*****G NOTCH. those guys saved my life xd.

1

u/lance_klusener Jun 28 '18

Speifically what courses in pluralsight ?

2

u/[deleted] Jun 29 '18

For javascript I'd recommend Mark Zamoyta's Rapid Javascript Training, Rapid ES6 Training, Object-oriented Programming in JavaScript - ES6 and Jim Cooper's Javascript's Objects and Prototypes.

1

u/A-dona-I Jun 28 '18

there is an infinite library of courses, in every language, there are beginner intermediate and advanced courses in javascript as well... All you need to do is writing javascript in the searchbar, if that's what you are looking for.

3

u/teknewb Jun 28 '18

My problem with many online subscription website "tracks", "paths", or general libraries of videos is it's harder to quickly figure out the quality of specific videos, and how up to date they are.

In a field like web development, especially frontend, I really would prefer not to have my time wasted (using this word lightly, really just not as efficiently) on outdated material.

At least with books, we tend to have at least some publishers from who we can have fairly predictable expectations as far as quality, and I find I can more easily identify how up to date this specific material is (publication date, preview sections of book, etc.).

A good halfway point here is http://www.safaribooksonline.com for an example I would say, though it has a lot of room for improvement.

-1

u/NewCommonSensei Jun 28 '18

Is there something similar for just java

-5

u/ArmondDorleac Jun 28 '18

Serious question... Why are we still teaching java?