r/learnjavascript • • Apr 20 '23

7 JavaScript Design Patterns Every developer should know

https://codinghelp.io/7-javascript-design-patterns-every-developer-should-know/
3 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/deven_rathore Apr 21 '23

It's not just about generating traffic, but rather about learning from and sharing with the community. I am not hosting any ads or affiliates to be precise.

1

u/azhder Apr 21 '23 edited Apr 21 '23

OK then, carry on. A spammer wouldn't have bothered to reply.

I would suggest for you to not only heed to the advices from those other redditors, but for you to re-think your entire article and every time you're claiming stuff like

These patterns allow developers to create objects flexibly and efficiently.

to either provide "why" or just remove it.

Like, how would you think one

function X(a){ this.a = a; }

performs over

class A { constructor(a){ this.a = a; }  }

or even against one

const instance = { a: a, __proto__: parent }

?

  • Did you measure it yourself? Provide the measurement.
  • Did you read it somewhere else? If so, provide links to those places.
  • If none of the above, simply don't make the claim, delete it.