Designly
Jan 4, 2025

No I agree for sure. I use classes all the time but I mostly use static methods. So it’s really just a collection of functions really. The level of abstraction I see on modern OOP makes my brain hurt. It’s absolutely asinine and detrimental to performance. Especially on the front end. Giant classes have no place on someone’s browser memory.

OOP is kinda going out of fashion. JavaScript is so flexible because basically everything is an object so you can just group similar functions within another function and return the “methods “ and “properties “ without having to ever declare an interface and return type.

I mean that’s basically what a react functional component is.

Designly
Designly

Written by Designly

Full-stack web developer and graphics designer.

Responses (2)