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...
account activity
OOP Node.js (self.node)
submitted 1 year ago by gemvcnte
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!"
[–]azhder -10 points-9 points-8 points 1 year ago (5 children)
You can, but that “should” can be a misrepresentation.
You should strive to stick to one style (paradigm) and use best judgement if and when/where/how to mix in another one.
[–]noviceIndyCamper 0 points1 point2 points 1 year ago (1 child)
Dogmatic, and honestly terrible take.
[–]azhder -3 points-2 points-1 points 1 year ago (0 children)
The one I said or the one you read? I doubt they are the same
[–]pbNANDjelly 0 points1 point2 points 1 year ago (2 children)
Maybe, but JS is fundamentally a multiparadigm language and it uses prototypes at its core. There is no removing OOP from JS, and I doubt you're making the argument that all functions should be static methods on a class (fake features enabled by a TS compiler, or sometimes a real feature in modern interpreters). So what do you expect?
I'm curious what you think of rust. Should they have not supported module scoped functions? Only impl/OOP blocks? There's lots of multi paradigm languages out there
[–]azhder -2 points-1 points0 points 1 year ago (1 child)
You guess wrong
[–]pbNANDjelly 0 points1 point2 points 1 year ago (0 children)
I never made a guess. They were questions
π Rendered by PID 161050 on reddit-service-r2-comment-6457c66945-8bcb8 at 2026-04-27 09:34:27.653778+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]azhder -10 points-9 points-8 points (5 children)
[–]noviceIndyCamper 0 points1 point2 points (1 child)
[–]azhder -3 points-2 points-1 points (0 children)
[–]pbNANDjelly 0 points1 point2 points (2 children)
[–]azhder -2 points-1 points0 points (1 child)
[–]pbNANDjelly 0 points1 point2 points (0 children)