Live data from Hacker News

My intro to LESS - If you're not using it, you should be.

austinkpickett.com

21–30 of 44 posts

Re: My intro to LESS - If you're not using it, you should be.

#22

I just started using LESS and if you're on a Mac, I highly recommend LESS.app[1] to work with. It will automatically compile your LESS into CSS whenever you save the document in any text editor. Edit and save a page like variables.less that's included in main.less? It will auto-compile main.less, and any other LESS files that include variables.less when you save it. [1] http://incident57.com/less/

Go one step further and get the excellent codekit: http://incident57.com/codekit/

It is an essential piece of software in my workflow.

Re: My intro to LESS - If you're not using it, you should be.

#23
How does LESS compare to Google's Closure Stylesheets?

http://code.google.com/p/closure-stylesheets/

"Closure Stylesheets is an extension to CSS that adds variables, functions, conditionals, and mixins to standard CSS. The tool also supports minification, linting, RTL flipping, and CSS class renaming. "

Re: My intro to LESS - If you're not using it, you should be.

#27
post #2

And what if we're using SASS?

i wrote an intro to SCSS a while back when i was learning it (http://pushkrajdole.com/blog/?p=4). i think, all that matters is what framework you're most comfortable with. Give LESS & SCSS a try when coding some real projects & see which one of them works for you.

Re: My intro to LESS - If you're not using it, you should be.

#28
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 do that"; my CSS is relatively straightforward. Just having named colors, a couple color mixing functions, mixins, and nested syntax helped a LOT.

Re: My intro to LESS - If you're not using it, you should be.

#29

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.

Re: My intro to LESS - If you're not using it, you should be.

#30
post #24

> 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 chances for a flash of unstyled content. If this makes you nervous, don't run LESS on the fly in production.

Post reply on HN