Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Sass: can't say I'm sold on it.

Are you motivated to use Sass?

I'm not sure about it. I've done the first main module. I've become fairly fluent with CSS and I think it may be too early to go diving into sass - it might mess with my CSS mind!

Plus, I'm sure a lot of developers do just fine without it - maybe I'm better concentrating my efforts on learning some server-side language now eg php.

Any thoughts?

18 Answers

I think Sass really comes into its own when used with Compass or full frameworks like Bootstrap. I think for a lot of CSS you probably wouldn't see much benefit in terms of workflow, but once you leverage existing libraries of mixins and combined with frameworks then I think that's where you start to see the power of pre processers. Especially when you can find use for conditional logic and if you find you're doing a lot of repetitive code. CSS can't really help you achieve DRY (Don't Repeat Yourself) principles but Sass can. But a solid foundation in CSS first is definitely the way to go and if you're doing fine without it then that's perfectly reasonable, a tool should help you, not get in the way of development. I've certainly experienced that where I've felt I spent more time learning something supposed to make things easier than it would have taken me to produce that thing manually in the first place.

I'd certainly say YES go for learning a server side language first before pushing your CSS into very advanced phases if you don't need it. I think at this stage you would get more benefit from learning the basics of PHP etc than you would getting into advanced/better more efficient workflow of your existing CSS skills. :)

Thanks for all of that. Helps a lot and rings true for me.

"...a tool should help you, not get in the way of development."

I don't think I need Sass right now.

Do you think it's better for me to learn Javascript before php?

Aaaaand (trying to make the most of you while I've got you ;-) )

Do you think I should learn PHP or Ruby first? Seems to be a lot of debate on this - I've read all the arguments for and against, I think, but what's your opinion?

What may help you, actually, is that my main goal is to become employable, both as an onsite employee and also remote work (full time and freelance). Talk about wanting it all ;-)

I'm also new to aesthetic design, so I think I might be better steering away from that and becoming a really good coder instead. I do love coding stuff and seeing visual results.

I'd say learn Javascript first, my thought is learn "client side" first in skills and then look at server side. PHP and Ruby..... well that's a difficult one and it may even come down to personal preference. I'd say PHP first and then Ruby but that's my own opinion and I can't really give concrete answer why other than PHP is more well established so I think you can learn more as a server side foundation and then look at other languages like Ruby. Of course it could be argued that Ruby is easier to learn and you could even throw Python in there as another alternative (although more courses are coming for Python and not much available yet). I'm in a lucky position where I'm just learning everything for fun as opposed to what's most employable although I can say in my specific circumstance PHP is more useful for my day job because that's what I come across more.

Thanks, Andrew. That's really useful. Something that's sorely missing from this, otherwise fantastic, site is guidance like this: 'macro-tutorials' if you like. I know I've just had some guidance from you(!), but I think there should be some readily-accessible information and opinions like this.

James Barnett
James Barnett
39,199 Points

Why use Sass:

  • DRYer CSS
  • doing math for responsive design
  • not embedding bootstrap classes in HTML
  • vender prefixes for animations and other advanced CSS features
  • vertical rhythm
  • not having to find/replace colors codes
  • concatenating CSS files
Kevin Korte
Kevin Korte
28,149 Points

Why not continue to write vanilla CSS in Sass, but get use to compiling and setting it up? Vanilla CSS is perfectly valid Sass. I know what you're going through, I went through it too.

If anything, Sass gives you the option to break up your css into much more smaller and manageable files, and than @import those files in your Sass. @import is fantastic in Sass, but it sucks and does not work the same when used in CSS.

You can also use little Sass functions like this one: http://vvv.tobiassjosten.net/css/px-to-em-with-sass/. Let's you think in pixels, but your CSS will become em's.

Also, mixins, even if they're simple you will learn to love. Trust me.

And finally, extending classes to another class is the other Sass feature I use a lot. Especially say if I'm using some little library or plugin that has it's own small stylesheet, I'll @extend those classes into what I'm already using, instead of bloating my HTML.

I know I don't use half of what Sass is capable of, and that's okay. If you look at the Sass files of larger projects like Foundation 5 or Bootstrap 3, their Sass will make you head spin. But it's cool to see that Sass can be what you make it.

Hanan Al-Mashhadani
Hanan Al-Mashhadani
7,769 Points

Can someone tell me How i can install sass on windows 7 step by step

James Barnett
James Barnett
39,199 Points
  1. Go to http://sass-lang.com/install
  2. Click on prepros
  3. Click on Prepros 4.2.0 Windows XP+
  4. Run the executable that downloads
Hanan Al-Mashhadani
Hanan Al-Mashhadani
7,769 Points

Thank you Mr.James But what does it do ?? will it help me to install sass on windows cuz i try many ways But it did not work :(

James Barnett
James Barnett
39,199 Points

Prepros is an application that comes with Sass pre-installed among other things.

It might have installed, but it won't be immediately obvious. Sass doesn't run like an application. It's kinda invisible.

Try:

  1. Open a command prompt: go to run... and type "cmd", press enter. I think that should open a command prompt window.
  2. Type "sass --version", press enter. If it says something like "Sass version..." something, it means you do actually have sass installed.

If you can't work out how to open a command prompt, just google "how do I open a command prompt in windows 7?"

Hanan Al-Mashhadani
Hanan Al-Mashhadani
7,769 Points

Thank you Mr.Andrew but sass not installed i don't know what is the problem my friend tell me you can install it by Node.js but he didn't tell me the steps i tried to install it by Ruby but it's not working

Ok, sorry I can't help you anymore. Good luck!

PS just call people by their first names, Hanan i.e. "James", "Andrew", not "Mr. Andrew". That's way too formal!

James Barnett
James Barnett
39,199 Points

Treehouse being a global site with a wide age ranges different customs of writing and address are bound to be used.

Hanan Al-Mashhadani
Hanan Al-Mashhadani
7,769 Points

Thank you Mr.Andrew I'm sorry, I am talking with you in a formal way respected for you :) coz you older than me

It's no problem Hanan - no need to apologise. I'm just helping you with your English and sound more natural (I can't help it - I'm an English teacher!).

Native speakers never expect anyone to address them as 'Mr Andrew'. In formal settings, we sometimes use 'Mr + LASTname'. Never 'Mr + FIRSTname'.

On internet forums like this, just use first name, always. :-)

Hanan Al-Mashhadani
Hanan Al-Mashhadani
7,769 Points

Ok Mr.stelmach :) that mean when i use Mr. i should use it with the last name Thanks for This information , Actually my language native is arabic So I am learning English now And I'm not good in the rules, because I still learn

Mafi mushkala ;-) I've worked in the UAE several times. Which Arabic country are you from? From your name, I think you could be from any of the GCC countries, or maybe Lebanon?

FYI you never need to use 'Mr' in the Treehouse forums - just use people's first name! :-)

It's actually quite rare to use 'Mr' in western English-speaking countries now.

Hanan Al-Mashhadani
Hanan Al-Mashhadani
7,769 Points

Mr.Barnett for This program is great and helpful I'm use it now

Hanan Al-Mashhadani
Hanan Al-Mashhadani
7,769 Points

ahaa,Nice to meet you Andrew I'm from Iraq but i live Turkey Iwill call everyone by their first names :)