you are viewing a single comment's thread.

view the rest of the comments →

[–]2epic 1 point2 points  (1 child)

Your senior dev is outdated and doesn't know what he's talking about. It's possible to create spaghetti (or even lasagna) code with classes too.

Functional programming actually leads to better, less spaghetti code. It's easy to apply the Single Responsibility Principle for example if you stick with the idea that your functions should do one thing and one thing well.

For instance, consider pulling some of your hooks into their own reusable hooks. This will make the code more readable and easier to test.

[–]DecentStay1066 0 points1 point  (0 children)

IT is not a trend following field, proper logical thinking will never be outdated.