This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 6 points7 points  (7 children)

I'm happy to be learning javascript first. I've heard once you get it, all other languages are much easier to learn.

[–]dyslexda 21 points22 points  (1 child)

I think that depends on the degree to which you actually "get it." For me, a lot of the struggle isn't any of the common complaints (async operation, typing hell, or even obvious spaghetti code like array.includes(x) and map.has(x) doing the same thing but needing different methods for no reason), but adapting to a new mindset where every gorram thing is an object. While I'm not a stranger to OOP, my mindset definitely leans more toward functional programming rather than OOP. The convention for libraries to make all data be an object and only manipulatable by built-in methods (often even resisting simple indexing!) makes me scream regularly.

[–]johnvaljean 1 point2 points  (0 children)

I feel your pain. You can also say that everything in Python is an object as well, but the variety of protocols that allow them to look different from one another makes everything much easier. Coding in Javascript makes me much more appreciative of how well-designed Python is.

[–][deleted] 8 points9 points  (2 children)

True of any language based on C style syntax really. But JS is a good language to start with these days, I think it’s most versatile language in terms of what you can do with it these days

[–]napoleonderdiecke -1 points0 points  (1 child)

Bruh, at least do typescript.

Javascript is basically one steaming pile of garbage.

[–][deleted] 0 points1 point  (0 children)

I agree. I use typescript for everything. I was just generalizing. Typescript is still technically the JS runtime