I love to keep my code clean. One of the ways of doing it to keep declarations in ascending order of their length. It could be in CSS, JSON or JS variables list. But it is a time taking thing if done manually. Here is an example of the same.
I wanted a slim top progress bar for one of my project, like you see on YouTube and Medium. The project had progressed a lot, I didn’t want every developer to write start and stop of this progress bar. Instead, one which could automatically show up if XMLHttpRequest is fired. Wrote stProgress.js which meets my requirements.
I’m a big fan of CSS preprocessors. In one of my project, which was using LESS, my architect had created a simple yet useful piece (see below), which had margin, padding and width collection. This one was a great time saver for developers. However, you could do it in a much better way using, for loops for LESS.