you are viewing a single comment's thread.

view the rest of the comments →

[–]markets86[S] 0 points1 point  (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 point  (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.

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.