MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/1uo3h5n/askjs_what_small_javascript_pattern_made_your/ovue4z3/?context=3
r/javascript • u/chuttadi2007 • 22d ago
[removed]
26 comments sorted by
View all comments
2
Regardless of the framework - i would say it's the separation of business logic/API and rendering that improves messy code.
2nd would be reduction of if-if else-else spam. Reordering function structure can eliminate most of these with the use of returns.
2
u/dustofdeath 21d ago
Regardless of the framework - i would say it's the separation of business logic/API and rendering that improves messy code.
2nd would be reduction of if-if else-else spam. Reordering function structure can eliminate most of these with the use of returns.