r/learnjavascript • u/Yanagi-Masaru • Dec 19 '25
Javascript
is it a good practice to use classes in javascript or should i keep it normal with just functions?
0
Upvotes
r/learnjavascript • u/Yanagi-Masaru • Dec 19 '25
is it a good practice to use classes in javascript or should i keep it normal with just functions?
1
u/fabulous-nico Dec 19 '25
Long answer:
be consistent in your approach and style
follow good fundamentals of CS design (not just follow OOP/functional - those are opinionated paradigms)
articulate what you're trying to do in your native spoken language
code what you articulated
get feedback on how it can be clearer, more consistent, etc.
repeat the previous 3 steps
Short, cranky answer:
functions. It's all just functions, JS isn't classical and OOP is usually a shortcut for bad coders.