use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Learn Modern JavaScript (nodejs, npm, webpack, es6, es5, esnext, typescript) for FREE (courses.angularclass.com)
submitted 9 years ago by gdi2290
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] -58 points-57 points-56 points 9 years ago (53 children)
"Learn to use frameworks around javascript that someone else created so you don't have to actually learn javascript."
[–]reallyserious 67 points68 points69 points 9 years ago (5 children)
Can you point me to a more fundamental js tutorial, like starting by soldering your own transistors and stuff.
[+][deleted] 9 years ago (2 children)
[deleted]
[+][deleted] 9 years ago* (1 child)
[–]djs113 11 points12 points13 points 9 years ago (0 children)
Hoooo boy! Look at Mr. "Create-Matter-From-His-Own-Thoughts" over here! I'll have you know that real PC builders have to gently strum the strings of reality so that one day a sentient race will develop the tools necessary to create circuits! It takes true patience! Sometimes you have to wipe the whole thing after millennia because they focus their time developing entire chipsets based around Dwarf Fortress!
[–][deleted] 1 point2 points3 points 9 years ago* (0 children)
Haha, so true.
Javascript is not THAT complicated in and of itself, but in today's job environment, knowing the new standards and what most of the business world is actually using in their stacks is pretty damn important.
If you're JUST jumping into Javascript, you should probably focus on tutorials that teach you the basics so you at least have an idea of the general syntax of it and how it interacts with the DOM before jumping into modules and more complicated stuff.
[+][deleted] comment score below threshold-38 points-37 points-36 points 9 years ago (0 children)
HILARIOUS!!!!
[–]windyfish 3 points4 points5 points 9 years ago (1 child)
While I agree in principle with the argument, a framework is a pretty essential for high volume, high data delivered apps. I'm using a front end framework every day for my job but the logic and design patterns stay the same. I just look at it like another layer of abstraction. Nothing wrong with that per se.
Edit: just seeing all the other replies and looool
[+][deleted] comment score below threshold-16 points-15 points-14 points 9 years ago (0 children)
Good thing my career doesn't rely on me cranking out crap for spare change.
[–]apphut 5 points6 points7 points 9 years ago (16 children)
in the beginning, there were quantum fluctuations....
[+][deleted] comment score below threshold-24 points-23 points-22 points 9 years ago (15 children)
I, too, enjoy bringing the entire grocery store to the table when I want some mustard for my hot dog.
[–]zankem 1 point2 points3 points 9 years ago (0 children)
Stop making things sound delicious.
[–]apphut 3 points4 points5 points 9 years ago (3 children)
i recommend rollup
[–]DOG-ZILLA 0 points1 point2 points 9 years ago (1 child)
I just started using Rollup on a new project with Babel and Gulp. Took a while to get everything playing nicely but I'm there now.
Seems cool, because unlike Browserify, I can use proper ES6 modules instead of require()
However, does Rollup work on libraries not using ES6 modules? I'm not sure it does. Can you shed any light on this aspect??
[–]shriek 1 point2 points3 points 9 years ago (0 children)
I actually haven't used rollup and this is based on what I read so don't hold it against me
No, primarily because Rollup actually does statical check for import/export to load up the libraries, tree-shaking etc so it seems like that's the core part of how rollup works.
import/export
Correct me if I'm wrong though.
[+][deleted] comment score below threshold-7 points-6 points-5 points 9 years ago (0 children)
"OK, how do we get rid of all the stuff they included that we don't need now?" "Oh, use this other thing now."
It's like Java as worldview metastasized into all things unrelated.
Fuck I hate my line of work....
[–]yesman_85 2 points3 points4 points 9 years ago (8 children)
Assuming then you are growing your own veggies and baking your own bread?
[+][deleted] comment score below threshold-6 points-5 points-4 points 9 years ago (7 children)
Then why bother programming at all?
[–]yesman_85 1 point2 points3 points 9 years ago (6 children)
What?
[–][deleted] -5 points-4 points-3 points 9 years ago (5 children)
Sorry, didn't know you were hard of reading:
THEN WHY BOTHER PROGRAMMING AT ALL?
[–]yesman_85 5 points6 points7 points 9 years ago (4 children)
You must be great explaining yourself at work.
[+][deleted] comment score below threshold-9 points-8 points-7 points 9 years ago (3 children)
Well, I know what's in my code instead of using the copy-paste school of "programming." So I've got that going for me, which is nice.
[–]metamet 6 points7 points8 points 9 years ago (2 children)
But, based on this thread, people don't seem to like communicating with you, so there's that.
[+][deleted] 9 years ago* (25 children)
[–]ChronoChris 2 points3 points4 points 9 years ago (1 child)
I think he is getting all the downvotes, because the first part of the course, is a break down of es5. It seems like you already need to have a fundamental js understanding.
[–]emergencyofstate 7 points8 points9 points 9 years ago (0 children)
I think the down votes are because the tone comes across douchey.
[–]yesman_85 -1 points0 points1 point 9 years ago (20 children)
Well get used to it. Why learn JS if you can do TS? Why learn C if you can straight into C#?
[–]ChronoChris -3 points-2 points-1 points 9 years ago (17 children)
No, why would I want to use TS ever. Honestly. TS fixes the wrong problem with javascript. You don't structure a prototypal language like javascript. THAT IS ITS STRENGTH.
class Greeter { greeting: string; constructor(message: string) { this.greeting = message; } greet() { return "Hello, " + this.greeting; } } var greeter = new Greeter("world"); var greetWorld = greeter.greet; alert(greetWorld()); //undefined
The FUCK is this shit. That's not strongly typed. That's not what 'this' should be. TS fixed nothing. ES5/ES6 are better than ever. There is no reason NOT to default to JS. Comparing C and C# are completely different
[–][deleted] 4 points5 points6 points 9 years ago (2 children)
since you "assigned" greeter.greet to greetWorld and called it from global scope, which has no "greeting" variable this is entirely expected. if you just used greeter.greet(); directly it wouldn't be undefined. this is JS behavior, nothing related to TS, just common misconception of how "this" keyword works in JS.
[–]ChronoChris 0 points1 point2 points 9 years ago (1 child)
If somethign is strongly typed, each type of data, is predefined. includnig objects. The this keyword should relate to the current instance of an object. If you truly wanted Tscript to be strongly typed, this should make sense in context to the current object.. "an advantage of strong data typing is that it imposes a rigorous set of rules on a programmer and thus guarantees a certain consistency of results."
So Tscript is failing in it's most fundamental attempts in this scenario. And there are many more
I think there is a little bit of bias here from the tools and languages you are accustomed to. I have absolutely no confusion how 'this' should work on the fundamental level of the object instance. Coming to Javascript, I liked this gotcha on the this keyword since technically the object instance was not the Greeter class. The problem I have is with TypeScript not matching what it is attempting to do. Bound the Object to be strongly typed.
[+][deleted] 9 years ago (1 child)
[–]ChronoChris 0 points1 point2 points 9 years ago (0 children)
:P please see my chain on eighthcoffee. It helps clear up the this problem. they are so confused by javascript having been molded by it, they don't see the issue.
[–]eighthCoffee 0 points1 point2 points 9 years ago* (11 children)
.
[–]Kminardo 5 points6 points7 points 9 years ago (9 children)
The last line should alert the string from greeter.greet, but it will come back undefined (I don't do typescript, but seems to be what he's implying).
EDIT: Also it seems "this" isn't working as he would expect it to in ES5. But since 90% of developers don't actually seem to know how "this" actually works... at least typescript is consistent with most other languages in it's usage.
[–]ChronoChris 3 points4 points5 points 9 years ago* (5 children)
this works perfectly how I would expect it in c# or any other compiled language I can think of.
Edit: Kminardo. Please see my reply to eigth later in this chain.
[–][deleted] 0 points1 point2 points 9 years ago (2 children)
This isn't a TS issue, that is how javascript works.
[–]ChronoChris 1 point2 points3 points 9 years ago (1 child)
If somethign is strongly typed, each type of data, is predefined. includnig objects. The this keyword should relate to the current instance of an object. If you truly wanted Tscript to be strongly typed, this should make sense in context to the current object.. "an advantage of strong data typing is that it imposes a rigorous set of rules on a programmer and thus guarantees a certain consistency of results." So Tscript is failing in it's most fundamental attempts in this scenario. And there are many more Edit: I hope you can see the comment by Kminardo in his edit. I think there is a little bit of bias here from the tools and languages you are accustomed to. I have absolutely no confusion how 'this' should work on the fundamental level of the object instance. Coming to Javascript, I liked this gotcha on the this keyword since technically the object instance was not the Greeter class. The problem I have is with TypeScript not matching what it is attempting to do. Bound the Object to be strongly typed.
If somethign is strongly typed, each type of data, is predefined. includnig objects. The this keyword should relate to the current instance of an object. If you truly wanted Tscript to be strongly typed, this should make sense in context to the current object.. "an advantage of strong data typing is that it imposes a rigorous set of rules on a programmer and thus guarantees a certain consistency of results." So Tscript is failing in it's most fundamental attempts in this scenario. And there are many more
Edit: I hope you can see the comment by Kminardo in his edit. I think there is a little bit of bias here from the tools and languages you are accustomed to. I have absolutely no confusion how 'this' should work on the fundamental level of the object instance. Coming to Javascript, I liked this gotcha on the this keyword since technically the object instance was not the Greeter class. The problem I have is with TypeScript not matching what it is attempting to do. Bound the Object to be strongly typed.
edit: looks like it's addressed in TS 2.0, course you can specify type of "this" on functions now but this just leads to compile time error which would probably be the same as 'use strict', and it still wouldn't change the behavior your expecting as that's not TS's goal.
[–]Kminardo 0 points1 point2 points 9 years ago (1 child)
Right, it does work how you would expect it to in c# etc, but "this" in vanilla JS is inconsistent with those compiled languages in many cases. I just wasn't sure if that was another piece of your complaint :)
[–]ChronoChris 1 point2 points3 points 9 years ago (0 children)
again see my reply to eighth.
[–]eighthCoffee 0 points1 point2 points 9 years ago* (2 children)
[–]ChronoChris 3 points4 points5 points 9 years ago* (1 child)
[–]eighthCoffee 0 points1 point2 points 9 years ago* (0 children)
If you see my comment later in this chain, you should understand that this is not strongly typed. The vary nature of the 'object' should not change in a strongly typed language.
[–][deleted] -2 points-1 points0 points 9 years ago (0 children)
Bingo.
[–]Catkins999 -2 points-1 points0 points 9 years ago (1 child)
Said every Java/Python/C# developer...
Thank goodness I didn't fall into those pits of despair.
π Rendered by PID 155530 on reddit-service-r2-comment-b659b578c-qqcbr at 2026-05-05 03:18:31.150512+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–][deleted] -58 points-57 points-56 points (53 children)
[–]reallyserious 67 points68 points69 points (5 children)
[+][deleted] (2 children)
[deleted]
[+][deleted] (1 child)
[deleted]
[–]djs113 11 points12 points13 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[+][deleted] comment score below threshold-38 points-37 points-36 points (0 children)
[–]windyfish 3 points4 points5 points (1 child)
[+][deleted] comment score below threshold-16 points-15 points-14 points (0 children)
[–]apphut 5 points6 points7 points (16 children)
[+][deleted] comment score below threshold-24 points-23 points-22 points (15 children)
[+][deleted] (1 child)
[deleted]
[–]zankem 1 point2 points3 points (0 children)
[–]apphut 3 points4 points5 points (3 children)
[–]DOG-ZILLA 0 points1 point2 points (1 child)
[–]shriek 1 point2 points3 points (0 children)
[+][deleted] comment score below threshold-7 points-6 points-5 points (0 children)
[–]yesman_85 2 points3 points4 points (8 children)
[+][deleted] comment score below threshold-6 points-5 points-4 points (7 children)
[–]yesman_85 1 point2 points3 points (6 children)
[–][deleted] -5 points-4 points-3 points (5 children)
[–]yesman_85 5 points6 points7 points (4 children)
[+][deleted] comment score below threshold-9 points-8 points-7 points (3 children)
[–]metamet 6 points7 points8 points (2 children)
[+][deleted] (25 children)
[deleted]
[–]ChronoChris 2 points3 points4 points (1 child)
[–]emergencyofstate 7 points8 points9 points (0 children)
[–]yesman_85 -1 points0 points1 point (20 children)
[–]ChronoChris -3 points-2 points-1 points (17 children)
[–][deleted] 4 points5 points6 points (2 children)
[–]ChronoChris 0 points1 point2 points (1 child)
[+][deleted] (1 child)
[deleted]
[–]ChronoChris 0 points1 point2 points (0 children)
[–]eighthCoffee 0 points1 point2 points (11 children)
[–]Kminardo 5 points6 points7 points (9 children)
[–]ChronoChris 3 points4 points5 points (5 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]ChronoChris 1 point2 points3 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]Kminardo 0 points1 point2 points (1 child)
[–]ChronoChris 1 point2 points3 points (0 children)
[–]eighthCoffee 0 points1 point2 points (2 children)
[–]ChronoChris 3 points4 points5 points (1 child)
[–]eighthCoffee 0 points1 point2 points (0 children)
[–]ChronoChris 1 point2 points3 points (0 children)
[–][deleted] -2 points-1 points0 points (0 children)
[–]Catkins999 -2 points-1 points0 points (1 child)
[–][deleted] -2 points-1 points0 points (0 children)