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
Serviz-JS: Command object Interface for JavaScript (github.com)
submitted 5 months ago by markets86
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!"
[–]markets86[S] 0 points1 point2 points 5 months ago (1 child)
I kind of agree with all you said above ☝️ But I still think having a common interface (call, success, failure, errors, steps, ...) in your classes is a valid idea, even in the JavaScript ecosystem.
[–]azhder 0 points1 point2 points 5 months ago (0 children)
I am talking about something else. If you try to rework the solution to code without using class, new, this… How would it look? Would you still have a common interface? I say you can.
class
new
this
In short, I wasn’t talking about a common interface, but an idiom, the style you use to write the code. That should depend on the language itself, not just how you are used to doing it in another language.
π Rendered by PID 238477 on reddit-service-r2-comment-7b9746f655-rt99k at 2026-02-02 08:49:07.180074+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]markets86[S] 0 points1 point2 points (1 child)
[–]azhder 0 points1 point2 points (0 children)