DEV Community

Discussion on: No to Imperative Code! Because Debugging Spaghetti is No Fun

Collapse
 
noriller profile image
Bruno Noriller

Totally!

But most of the time, the difference just doesn't matter (especially in the frontend).
When you get to a scale and maturity to check for places to improve performance (and it will probably be in the backend) then you would probably have no problem writing a clean, more performant, function using the low level apis.

The problem I see is wanting to do that for a function that runs on time every now and then with like... barely dozens of items at a time.

(I blame leetcode, hackerrank and similars... =p )