N
N
nepster-web2014-11-02 22:00:30
HTML
nepster-web, 2014-11-02 22:00:30

Does it make sense to use LESS?

Actually, such a question has ripened, but does it really make sense to use LESS?
I've seen a lot of articles on topics that things like less and angular.js kill the original html and css. If it's just that there is a little less code in LESS, for example, it's not difficult for me to write a little more code in CSS and make it neat.
From here the question is, is it really worth using LESS and why? Does he have a future?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2014-11-02
@nepster-web

Costs.
It is worth using any DSL that allows you to reduce the verbosity of the source code. LESS in this case allows you to do this. Reduces the likelihood of errors, and also improves the readability of the code due to less repetition, and the ability to refer to variables.

Q
Quickerz, 2014-11-03
@Quickerz

I would recommend using SCSS as suggested here. Now for the points.
There is no need to set the environment on the server. Ruby + gem sass is installed on the local machine, after that, a watcher is configured in the IDE (JetBrains and Netbeans products definitely support this feature), which collects all files when they change and uploads them to a virtual machine on the local network. When submitting the project, it is possible to finally minify the file with the same module, removing all indents and spaces.
One of the advantages of scss is to break up styles into files to separate, for example, styles for building a grid from styles that are responsible for typography. The simplest solution would be to create one style.scss index file and import the rest of the files in it. In this case, files that are imported should be given names that begin with an underscore. This will mean that they will not be compiled into separate css files, which will result in a single file.
Well, the main advantage: scss contains many elements of a full-fledged PL: variables, functions, control structures that allow you to make the style code simpler, more understandable and flexible.
Here's a brief overview of the featuresSCSS should be enough to evaluate how much more convenient it is than pure CSS. After using SCSS, I can’t imagine how it is possible to type in pure CSS, especially considering that for a person who knows CSS and knows any programming language, there is practically no entry threshold into SCSS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question