A
A
Alexander2018-09-18 20:32:14
css
Alexander, 2018-09-18 20:32:14

Do I need sass?

I’ve been typing for more than a year now, I know css3 very well, I started reading about speeding up layout and everyone says as one: Use preprocessors, I looked through the best ones, many people recommend sass, so, will it greatly speed up the work? By what percentage, at least approximately? Maybe someone tested? Can eat preprocessors faster? Because one person says that it is better without them, another that it is necessary. I would like to increase the speed of layout and preparation of the layout for delivery, but I don’t know if it’s worth spending time on sass.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
S
SagePtr, 2018-09-18
@AleksandrB

Another example of the use of preprocessors is working with colors.
It is much easier to assign a base color to a variable and then dance from it than to calculate a new color each time in Photoshop and copy its hexadecimal code. It especially comes in combination with mixins, where, for example, you can set the background color of a button as an input, and the mixin will generate a rule for the button itself, and for its disabled option (for example, translucent with muted colors), and for the mouseover option (brighter or dark color) - and all this does not have to be done manually, it is enough just to determine the admixture and use it wherever it is needed.
And if later on the whole page it was necessary to replace the base color, then you don’t have to re-calculate all the other colors and change them, it will be enough to change the value of the variable

A
Andrey Sanych, 2018-09-18
@mountpoint

that at least the same nesting. one of the most convenient things that preprocessors have
original.png?1389640479

M
Maxim Timofeev, 2018-09-18
@webinar

By what percentage, at least approximately?

34.5% - measured with compasses
Check the quality of the brains of the first and second, make sure they both understand what they are talking about.
so all or just one?
PS: I don't even see the point in seriously answering. The sky is blue, the grass is green, preprocessors speed up development. They are made for this. Who told you otherwise? A man with a shovel in his hands at the entrance? So he's not talking about fans on computer processors, I guess.

I
id_baton4eg, 2018-09-18
@id_baton4eg

Briefly sum up my opinion, so as not to be included in the srach - the fingers are already itching)))
Does it speed up a lot?
Yes, strongly
How much in %?
Significantly in%, I would have time to think, and if I still knew all the features ...
Maybe someone tested?
Maybe))
Maybe there are faster preprocessors?
Maybe there is, in mass "production" I personally have not yet noticed.
One person says that it is better without them, another that it is necessary
. Choose a pill, since there is an opportunity to return and change your mind.
Time should be spent not only on sass, but also on self-education in general, otherwise how do you know that something more worthy has appeared))

A
Anubis, 2018-09-19
@Anubis

Scss helps me a lot, nesting, variables and utilities (like color mixing) help me out most often, sometimes I use cycles and mixins.
After the next step, when building the project, I send the resulting css, compiled from scss sources, to postcss - to optimize media query attachments and automatically add vendor prefixes.
All this really speeds up the work, provides convenient auxiliary tools and is definitely worth a couple of days spent on getting to know and setting up the project builder to work with scss and postcss (or their analogues).

H
hesrun, 2018-09-19
@hesrun

Reasons:
1. Yes, it speeds up. Nesting helps a lot, I have been sitting on pure css for about 3 years, I tried scss only for my own development and got hooked. I've been using it for 3-4 years now and when I typeset without it, I already start to get stupid. Very useful to use variables, VERY!!! For example, there is design. The button is orange, the hover is not drawn stupidly we write lighten, darken we darken or lighten the button. Oddly enough, loops are very useful when you need to re-write something through nth-child.
2. Order!!! Oddly enough, when using sass, you automatically come to order. Variables in one place, mixins in another, you include everything and get a neat css point. Like it or not, but only with him you will come to this.
3. Development!!! Again, if you have to work with large frameworks like BS, semantics, materialize, mobile frameworks like Ionic, it's very difficult to style or finish some things in css there! Highly! And as soon as you touch on more serious things, you will have to understand it.
All of the above is just my personal opinion and experience ... I, like you for some time, also denied it ... Nevertheless, we have what we have ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question