DEV Community

Drakgoku
Drakgoku

Posted on

Functions instead of classes? have we rolled back to the 90s?

A simple question about why functions over classes? Is this an April Fool's joke from the US that has spread?

Is everything okay with OOP concepts? I want to believe so.

I am not able to understand how it is that they prioritize taking an anti-standard out of the industry like functions instead of classes and not only that, they enhance it with Hooks for states, performance and life cycle.
That is, currently there is an OOP pattern that works too well, but React comes with its new "gender" ideology to change the panorama. This reminds me of something else. I am going to leave this ideology behind because we have already seen how the country is going.

Anyway, if you enhance something because the initial programmers did it that way... I don't think any other programming language will play along with you.

This is a bit:
React: "We are innovators"
Me: "..."
React: "We have hooks and lifecycles :)"
Me: "..."
React: "We have"
Me: knock knock (microsoft, google, oracle...) "I have an anti-pattern I came up with back in my booze-fueled days, you can implement it"

Someone change a working paradigm... we're back to the days of ruby, "no shit, even ruby ​​has classes".

You want to innovate? Sure, that's fine by me.
With this you touch the current paradigm? What can I say? Someone didn't study OOP enough or doesn't know how it works (How did you end up in React? You made an OP pitch to the interviewer?) and then they complain that js can't create games like an mmorpg, shooter, etc. If they change from classes (polymorphism, generics, reflection...) to functions... the question is how the hell are you going to do something with js if they change and break the patterns every few months and also don't use the maximum expression of the language? functions...

Someone will think "It's all evolution"
"Although it may seem like a step back to older techniques, it's actually an evolution that combines the best of both worlds: the simplicity and clarity of functional programming with the modern capabilities of today's languages ​​and frameworks."

I think we should go back to functional programming then since what react does is too similar, it's like a strong rollback to the 90s

I'm not in the mood for jokes, but this seems like the biggest joke in the world.
https://www.youtube.com/watch?v=jY9cSFRBzJc
"hahah aaah no, no it's a fully fledged..."

Note about prioritizing functions over classes:
Could I do the same in springboot?, no
Could I do the same in UE5 and C++?, no
Could I do some of what I'm working on in functions? no, since nothing would work.
Is this exclusive to "Ruby"? I mean... React? yes.

For starters, I shouldn't waste my time here when I'm involved in too many projects at once.

I'm already looking forward to how they're going to put 10,000 advantages over OOP.
Note: If you're going to put 10,000 advantages over OOP, you can pray to god that React never closes, if it does, all other languages ​​​​are OOP. Good luck with that.

Note: I'm not saying that classes are obsolete, I'm saying that they prioritize functions more. I mention this because there is always someone who never understands anything.

Top comments (1)

Collapse
 
drakgokuas profile image
Drakgoku

Well, it seems I haven't received a single answer as to why this was done. I thought this was the official forum but it seems this forum is "dead"

99% of posts are not answered...

1 - Bad programming practices
2 - Dead forum

Even notepad++ users reply first.

I may have gone to the wrong forum and ended up in a third party forum.

Can you send me the official React forum so I can find out why the hell they did this aberration?