3 ms·
+1 to (4) Also, another good thing to keep in mind is to avoid partialitis. Many people tend to start making partials for every single widget on the page. Don'
by jamesjyu 17y ago
+1 to (4)
Also, another good thing to keep in mind is to avoid partialitis. Many people tend to start making partials for every single widget on the page. Don't do that. Only use partials when it DRYs up your code, and sometimes, it's better to encapsulate UI elements into helpers. Also, partial rendering can get expensive.
The worst is when you're faced with a directory of dozens of partials that are ambiguously named.