News for hackers. Stuff that matters.
Re:I Don't Use Classes by jeffadotio on Thursday March 12, 2020 @11:37AM (#22557934)
I like classes. But you must understand your code, even before you write it. If the syntax that you use (the author is using TS, and JS/TS classes are syntactic sugar) matches your mental model of the program then I would say that you are choosing the correct syntax.

If it’s your library and your responsibility then I will try to read it your way. Comprehensive testing and consistency in style are more important than any specific syntax or abstraction.

There are no comments on this comment yet.