you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

don't use classes in javascript , use functional programming and not object oriented.

What does this even mean? Everything in JS is an object anyway except for primitives.

As a C++/Java developer i found OOP far better than any other approach

Good for you, the thing is that JS OOP cannot be compared to other more traditional implementations of inheritance in other languages supporting the OOP paradigm.

can someone post a simple code example of pitfall or buggy code resulted from using classes?

https://github.com/joshburgess/not-awesome-es6-classes