DEV Community

Discussion on: What little things make you happy while coding?

Collapse
 
lexlohr profile image
Alex Lohr

My guilty pleasure is replacing large external dependencies that were included just to avoid writing a few lines of code oneself with said few lines.

The last codegasm I had was when I replaced the whole of moment.js in an app where it was only used to format the users' time zones for tracking purposes with 4 short lines of script. Boom, 60kb less for the user to download.

Yes, I know there's NIH (not invented here), but sometimes I feel like that's just an excuse for being lazy and using overengineered solutions for simple problems.