Hacker News new | ask | show | jobs
by mrbogle 1483 days ago
I agree, I prefer OOP to much of the spaghetti and 5 layer nested functions that is popular now. This feels like one of those cyclical things that will come back in vogue at some point. People will have trouble maintaining these systems over time, then "discover" OOP and encapsulation, write blog posts about how it is The New Way, etc.

We have some React class components in our system. People who are < 3 years into their career don't like them as they've been told they are complicated and generally considered harmful. Over time, these people tend to come around and realize that class components can be very useful for more complex components.

1 comments

I feel that functions + data needs some really good linting to keep things clean. The one problem I've never been able to find lints for is "keep related things together" because the implementation of that varies so wildly.