background preloader

Rails

Facebook Twitter

Sass vs. LESS. "Which CSS preprocessor language should I choose?

Sass vs. LESS

" is a hot topic lately. I've been asked in person several times and an online debate has been popping up every few days it seems. It's nice that the conversation has largely turned from whether or not preprocessing is a good idea to which one language is best. Let's do this thing. Really short answer: Sass Slightly longer answer: Sass is better on a whole bunch of different fronts, but if you are already happy in LESS, that's cool, at least you are doing yourself a favor by preprocessing. Much longer answer: Read on. The Much Longer Answer The Learning Curve with Ruby and Command Line and Whatever The only learning curve is the syntax. Winner: Nobody Helping with CSS3 With either language, you can write your own mixins to help with vendor prefixes.

In Sass, you can use Compass, and Compass will keep itself updated, and thus the prefix situation is handled for you. In LESS, there are also some mixin libraries battling to be the best. See that? CodeKit — THE Mac App For Web Developers. Install the Compass Stylesheet Authoring Framework. Installing Ruby Compass runs on any computer that has ruby installed.

Install the Compass Stylesheet Authoring Framework

For more advanced users you may want to install rvm. Setting up the ruby environment $ gem update --system$ gem install compass Looking for the next release's preview version? To install the preview version of Compass: gem install compass --pre Tell us about your project and we'll help you get it set up: I would like to set up my project named with starter stylesheets. Thanks. Terminal newbies, read the Designer’s Guide to the OSX Command Prompt first! $ gem install compass $ compass create <myproject> Note: Values indicated by <> are placeholders.

Note: $ is a placeholder for your terminal's prompt. Then follow the instructions that compass provides in the output. Hate the Command Line? Try one of these Community supported GUI applications: Next Steps. Antoniokaplan/less.js. Mxcl/homebrew. Installing Rails on OS X Lion with HomeBrew, RVM and Mysql » Ruby, Rails, OSX and Linux fun. Bye Bye Macports, Welcome Homebrew DefinitionHomebrew: The missing package manager for OS X Why?

Installing Rails on OS X Lion with HomeBrew, RVM and Mysql » Ruby, Rails, OSX and Linux fun

Well, the reality is, macports is not that good anymore. Once you have many packages installed and start updating, everything start to break apart, lot’s of failing packages. Homebrew is very easy to install, it’s fast and simple. Back to topic, this is you how you get rails with mysql up and running with homebrew and rvm. Clean up To make sure to have a clean install, I recommend removing any previous .rvm installation and previous Xcode. $ rm -rf ~/.rvm/ $ sudo rm -rf /Developer 1. Install Xcode from AppStore. it’s 1+ GB download so it may take a while. after it’s downloaded it will not install automatically, you need to open Applications and install again from there, the name will be “Install Xcode”.

Better way is to go to and download from there, you will have to login with a free apple developer account. . - Xcode 4.3.1 for Lion (1.85 GB) - Command Line Tools for Xcode (171.70 MB)