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

CSS

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

Making best use of Sass

By this I mean how how you use it in the command line? Do you deploy your projects to the location you want or just do your production n the desktop.

I've watched a lot of videos on Sass now, and in every one I see teachers using their desktops to do their Sass examples.

I always assumed this was for ease of use when teaching Sass to us students and I used the command line to move through the directories... but then I thought..."Why shouldn't I use the desktop myself and then copy the files to the desired location to keep sass files organised?

Is this common practice already and I've only just cottoned on?

Thanks. :)

Hey Jonathan,

Usually Sass files reside in their own folder, which in turn is within the larger project folder. I keep separate folders for sass, images, JavaScript, and then usually the html files reside in the top folder.

Once you start using Sass to write more modularly, you might also start putting subfolders within your sass folder, to separate things like your layout files from your modules, mixins, variables, etc.

I think the teachers are just using their desktops because they're less cluttered and so it's easy to see the files. But no developer would ever use their desktop as their project folder. You should get into the habit of navigating to your projects folder from the Terminal.

Hope that helps!

PS: a cool shortcut for navigating in the Terminal is to type 'cd' and then just drag and drop your desired folder from the Finder into the Terminal - you should see the path get pasted in; then just hit 'Enter'.

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,253 Points

Hi David,

Yes I see that with the Sass folder structure. And I do as a matter of course just put my Sass projects in a folder somewhere on my hard drive. I just wondered if it was standard practice to develop on the desktop and then when the work is done for the say, cut/copy the files to it's "real" place in your workflow.

I'm not sure if your copy/paste idea would work for Ruby on Windows. I use MS-DOS for my command line so I have to find my files using cd and then cls when I finally get there! It's one of the reasons i wonder if using the desktop would be useful for speeding up workflow. :-)

1 Answer

Ah! Didn't even consider that things would be different for a Windows machine, my apologies.

I'm not sure I completely understand what you mean by copying and pasting into your 'real' workflow. I don't think it's a good practice though, because everytime you open the project to work on it again, you'd have to move your sass files back.

Maybe you're asking just for the very first time you've started a project?

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,253 Points

No I think I'm just getting closer to the answer to my question there so thanks for your input. :)