2 ms·
For me the biggest impact I've seen in my every day programming is creating a list of utility functions like lodash or underscore.js for both Js and Php. I hav
by ghoomketu 4y ago
For me the biggest impact I've seen in my every day programming is creating a list of utility functions like lodash or underscore.js for both Js and Php.
I have these 2 huge files with hundreds and thousands of small unit tested functions that do everything under the sun like sorting a js hash by key, to making ajax requests, to all the things I've needed to do over the years. This has reduced my time to code by so much I can't even begin to describe and also I feel confident of not making silly mistakes since the functions are tested and reused many time. Thanks to tree shaking in js it also means I do not increase the bundle size.
On other thing that has helped me a lot with programming is learning zen css and zen html, i.e. div.test>span>b type stuff. Such macros really help a lot to avoid mistakes and help speed up things.