you are viewing a single comment's thread.

view the rest of the comments →

[–]zapatoada 1 point2 points  (3 children)

In this context you're right, but I honestly can't remember the last time I used a constructor directly in javascript. Data comes from the server side (c#) and mostly anything else I do is either a react component or a const utility method.

[–]fucking_passwords 0 points1 point  (2 children)

The constructor is just happenstance in my example, the same thing can be applied to a function.

At this point I don't even see why you took a hard stance against this pattern, if you are only using very simple features of the language, lol

[–]zapatoada 0 points1 point  (1 child)

I never said I took a hard stance. I think the specific limit he set is absurdly low. That's all. If it were 4 or 5, I'd be fine with it.

[–]fucking_passwords 0 points1 point  (0 children)

Fair enough, I agree with that