3 ms·
I avoid classes as a default behaviour, using them when they're clearly a good fit. The ease of testability that functions give me is worth its weight in gold.
by Waterluvian 9y ago
I avoid classes as a default behaviour, using them when they're clearly a good fit. The ease of testability that functions give me is worth its weight in gold.
I love how much I can do with JavaScript without classes. Same with Python! You'd be surprised how often you don't need them.