DEV Community

Discussion on: 20 JavaScript One-Liners That Will Help You Code Like a Pro

Collapse
 
chriskingwebdev profile image
ChrisKingWebDev

Be careful not to go too crazy with one liners. If you or a team mate has to dig back into the code after 6 months or a couple years, it can take some brain power to parse out what is happening.

If you are using a build process, the code is going to be minified and optimized in ways that are basically illegible to humans.

Code readability is my primary metric for good work.

Collapse
 
ovi profile image
Muhammad Ovi

Agreed 🤞