Live data from Hacker News

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

austinkpickett.com

31–40 of 44 posts

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

#31
post #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.

I started with Less a month ago (because it's used by bootstrap); I was so disappointed to find you could only "inherit" from mixins and classes. Just seems like a reasonable next step to include inheritance from any other selector.

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

#32
post #12

Also, you should consider: export LESS=-i -g -M -R -x4 -X -f -F -z-1 for a much happier pager.

Err .... is this some attempt at humour or have you guys commenting about less (the more replacement) here not read the article (about less the CSS framework)?!!

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

#35
post #12

Also, 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=.

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

#37
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 chanc…

Not to mention if you run it on the fly, the "flash" of unstyled content will last forever for people with JavaScript disabled!

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

#38
post #36

Brilliant! 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.

#39
post #38
post #36

Brilliant! 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?

I never proposed that, I was pointing out a flaw and I hope that this issue will be fixed one day.

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

#40
post #35
post #12

Also, 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=.

Most is even better. Unlike other paging programs, most is capable of displaying an arbitrary number of windows as long as they all fit on the screen, and different windows could be used to view the same file in different positions.

In addition to displaying ordinary text files, most can also display binary files as well as files with arbitrary ascii characters.

Post reply on HN