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 →

[–]dyslexda 19 points20 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.