Live data from Hacker News

Less.js will obsolete CSS

fadeyev.net

31–40 of 131 posts

Re: Less.js will obsolete CSS

#32
post #13

Sensationalist link-bait headlines have no place here IMHO.

But what a headline! I left the article disappointed, but it's hard to fault the care that went into those four words.

I welcome sensationalist link-bait headlines if they have weight behind them. Don't blame the sizzle, blame the steak.

Re: Less.js will obsolete CSS

#33

instead of learning new abstraction like this, maybe more useful to sharpen up text editor skills? I found css very vim-friendly

That's like saying that instead of learning how to write functions, one should just get better at copying and pasting (because VIM is good at that).

Re: Less.js will obsolete CSS

#34
post #19
post #17

Earlier quoted context omitted.

less and sass both allow you to compile to css. The live, in browser compiler is just intended to speed up development.

The article makes it sound like the author expects in-browser processing to be the only way it'll be used: "Less.js is a JavaScript implementation of LESS that’s run by your web browser. As any JavaScript, you include a link to the script in your HTML, and…that’s that. LESS is now going to process LESS code so instead of including a link to a CSS file, you’ll include a link directly to your LESS code. That’s right, n…

I demand a benchmark. Saying that something is just false without numbers to back it up is not something I have high trust in, and is the start of the gossip that causes internet wars.

First back it up with numbers, then we talk.

Re: Less.js will obsolete CSS

#36

instead of learning new abstraction like this, maybe more useful to sharpen up text editor skills? I found css very vim-friendly

That's like saying that instead of learning how to write functions, one should just get better at copying and pasting (because VIM is good at that).

CSS has very flexible selectors, so in a sense it already has some abstraction features. Those differ from what we know from other languages, but they are still very useful and should be exploited.

I was never forced to define important colors more than twice in my CSS style sheets, usually defining them just once. Maybe my document structures are too simple to get into trouble - but maybe that's the whole trick.

(i.e. producing less bloat rather than making bloat more manageable.)

Re: Less.js will obsolete CSS

#38
post #14

We used Less for a project, but ended up moving to Sass: http://sass-lang.com/ The Sass compiler was (is?) more mature, and the language feels more consistent (see the '&' operator in Sass vs the :hover special case in Less). The editor/tool support was quite a bit better too. Sass doesn't have a javascript in-browser implementation (afaik), but for rapid development it can watch a folder/file for changes and automat…

Interesting. I tried both and now use LESS with the More plugin in my rails app. I'm a huge fan of HAML, but I haven't fallen in love with SASS yet. The big upside to LESS is it still looks like CSS. Compass is interesting though, from the SASS side. http://github.com/chriseppstein/compass

Re: Less.js will obsolete CSS

#40
post #38
post #14

We used Less for a project, but ended up moving to Sass: http://sass-lang.com/ The Sass compiler was (is?) more mature, and the language feels more consistent (see the '&' operator in Sass vs the :hover special case in Less). The editor/tool support was quite a bit better too. Sass doesn't have a javascript in-browser implementation (afaik), but for rapid development it can watch a folder/file for changes and automat…

Interesting. I tried both and now use LESS with the More plugin in my rails app. I'm a huge fan of HAML, but I haven't fallen in love with SASS yet. The big upside to LESS is it still looks like CSS. Compass is interesting though, from the SASS side. http://github.com/chriseppstein/compass

The latest version of Sass (3.0) has CSS syntax: The compiler supports both variants - the file extension (.scss vs .sass) denotes which you want to use.

See the examples on their front page: http://sass-lang.com

They have a command line tool "sass-convert", which can convert between the syntaxes (and from Less)

Post reply on HN