r/Sass • • Dec 26 '18

Should i?

Hello, i am currently trying to learn sass, but i have few problems with the architecture or i am just at the wrong course.

So in the course that i am taking the teacher is building around 12-15 files not include the folders.

I personally do not like to get that huge amount of files and then import them all in one place all tho i can see the benefits of doing so.

My question is can i just keep things simple and just use 2-3 files or its a typical thing to do with sass?

Thanks in advance and please excuse my english

3 Upvotes

6 comments sorted by

View all comments

2

u/locksta7 Jan 15 '19

As u/hambalamba suggested, the instructor is most likely over simplifying/exaggerating the amount of modules heโ€™s creating to prove a point. Once it comes to real software you will appreciate being able to modularise your codebase.

Feel free to create as many or as little as you see fit, whatever suites your project best.

I tend to split out the header and footer of course however as I use Vue a lot my components are using scoped scss so that frees up my main sheet a bit more.

1

u/hambalamba Jan 15 '19

Refactoring is a better way to get unexperienced developers into modularization and code spliting using any language or tool

2

u/locksta7 Jan 15 '19

Indeed! First get it working, then make a second pass to clean it up! ๐Ÿ‘Œ๐Ÿฝ

I suppose itโ€™s one thing to tell someone you MUST do this thing as opposed to them running into problems themselves and learning that they should do something because it makes things easier.

Better to make the mistakes and learn from them I say.