I write more Ruby than JavaScript. In Ruby, every expression returns an object, so explicit return statements are rarely used. In JavaScript, I always forget to explicitly return something from a function.
This by itself isn't really confusing, but then I get confused between:
returnsomething()
and:
returnfunction(){something()}
Something about the scoping of function calls still hasn't clicked for me yet in JS, so I always end up trying a variety of return statements until the code executes as intended. This would probably all make perfect sense if I wrote JS more often, but as an occasional dabbler this is what eats up my time.
I'm Niño Ross Rodriguez, a Senior UX Developer with nine years of industry experience, specializing in developing pixel perfect websites quickly without sacrificing code quality.
How so much effort can be put into such a sh*t language.
People don't like JavaScript, they like what they can do with JavaScript. And the only reason that's a lot is because it is required to know JS if you want to make a web page (pretty much). So, most people know JS, therefore more stuff get created in JS, therefore we are stuck with it for even longer.
Just the fact that you have programming languages like Coffeescript shows that JS in itself sucks.
But, don't get me wrong, what you can with JavaScript is absolutely awesome.
Tech decisions seem to frequently feel perfect today, but totally wrong a year from now, in a way I've never seen elsewhere. Rapid evolution is great, but exhausting...
Top comments (11)
This is.
The most confusing part for me by far is determine whether some style of doing things is still the right way. Change is confusing.
Return statements.
I write more Ruby than JavaScript. In Ruby, every expression returns an object, so explicit return statements are rarely used. In JavaScript, I always forget to explicitly return something from a function.
This by itself isn't really confusing, but then I get confused between:
and:
Something about the scoping of function calls still hasn't clicked for me yet in JS, so I always end up trying a variety of return statements until the code executes as intended. This would probably all make perfect sense if I wrote JS more often, but as an occasional dabbler this is what eats up my time.
Having markup and css in JS
How so much effort can be put into such a sh*t language.
People don't like JavaScript, they like what they can do with JavaScript. And the only reason that's a lot is because it is required to know JS if you want to make a web page (pretty much). So, most people know JS, therefore more stuff get created in JS, therefore we are stuck with it for even longer.
Just the fact that you have programming languages like Coffeescript shows that JS in itself sucks.
But, don't get me wrong, what you can with JavaScript is absolutely awesome.
Don't learn it by reading learn it by practicing
The rate of change.
Tech decisions seem to frequently feel perfect today, but totally wrong a year from now, in a way I've never seen elsewhere. Rapid evolution is great, but exhausting...
I saw this on reddit, don't know if it's true but it made me laugh
It is true. Just tested it myself:
.
Paste this in the console and see it for yourself:
That you can't even tell which ESXXX version you're using by looking at the code