I was introduced to LESS earlier this year and loved it. When I had to rebuild my personal site this past month, I did it in LESS instead of CSS and probably cut my development time in half. I'm never going to write raw CSS again. I grabbed CodeKit, so I might try SASS the next time I'm building something on the web. I haven't really seen anything in the SASS vs. LESS shootouts that makes me go "dang I wish I could d…
@extend is one of the killer features of Sass that other preprocessors don't have: http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#ex... It's true selector inheritance that will change the way you author styles.
My intro to LESS - If you're not using it, you should be.
31–40 of 44 posts
Re: My intro to LESS - If you're not using it, you should be.
#32Also, you should consider: export LESS=-i -g -M -R -x4 -X -f -F -z-1 for a much happier pager.
Re: My intro to LESS - If you're not using it, you should be.
#33Re: My intro to LESS - If you're not using it, you should be.
#34Re: My intro to LESS - If you're not using it, you should be.
#35Also, you should consider: export LESS=-i -g -M -R -x4 -X -f -F -z-1 for a much happier pager.
export PAGER=less LESS='-wiXz-2$j15' LESSBINFMT=.Re: My intro to LESS - If you're not using it, you should be.
#36Re: My intro to LESS - If you're not using it, you should be.
#37> It’s also extremely important to not keep your less.js file operating during production mode. I'm curious about this. Is it more than just a minor performance hit?
That depends entirely on what you call minor. A lot of people on HN think that it's absolutely essential that a page loads and responds within a few milliseconds, because somehow subconsciously to users, it will make the site feel snappier, and thus better, and thus more worth paying for / sticking around on. Compiling and running LESS on the fly in production might, besides the extended load time, increase the chanc…
Re: My intro to LESS - If you're not using it, you should be.
#38Brilliant! Another workaround fixing something that was broken by design. The things that LESS brings you should really have been there in CSS to begin with.
Re: My intro to LESS - If you're not using it, you should be.
#39Brilliant! Another workaround fixing something that was broken by design. The things that LESS brings you should really have been there in CSS to begin with.
So what? Unless you're sitting on a secret-until-now extension to CSS that fixes the issues with CSS and is available in all major browsers, then we need these "workarounds" (like SASS and LESS). Or are you proposing that since it is "broken by design" we all stop using CSS full stop and go back to un-styled raw HTML?
Re: My intro to LESS - If you're not using it, you should be.
#40Also, you should consider: export LESS=-i -g -M -R -x4 -X -f -F -z-1 for a much happier pager.
That's missing some quotes; it's trying to set an environment variable called -g, which is an invalid identifier. Mine is export PAGER=less LESS='-wiXz-2$j15' LESSBINFMT=.
In addition to displaying ordinary text files, most can also display binary files as well as files with arbitrary ascii characters.