W
W
weranda2021-11-10 11:25:25
Bootstrap
weranda, 2021-11-10 11:25:25

Which is easier - writing styles from scratch or using Bootastrap?

Greetings.
Recently came across tabler.io. It works in conjunction with Bootstrap. Documentation is weak and never worked with Bootstrap. I saw, I know, did not work. I read the documentation and somehow it’s all too dreary, maybe some things are not obvious, it seemed to me so - everything is somewhere, somehow scattered and sometimes you can guess the solution only by “experiment”. Is it worth it to figure it out, or is it sometimes easier and better to write everything yourself?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel-ww, 2021-11-10
@weranda

There is a question of project requirements. If there is a clear instruction in the TOR to use Bootstrap, then where are you going to get away from it. Will have to study. The main thing is to understand its principle, then there will be nothing dreary. There are classes with intuitively clear names, adding which to the html code you use already written css templates from bootstrap.
If the requirements for the project do not regulate the mandatory use of Bootstrap, then of course it is easier and faster (although this is subjective) to write your own code. Your code has the undeniable advantage that it will be much smaller and you can use light and fast technologies such as css grid. All this will have a positive impact on the project in terms of code cleanliness and loading speed, since you don’t need to pull the entire framework if you need only 10% of its capabilities. Or use a long stack of classes in html tags.
That is, the question is put like this - "which is easier?" - not correct. It's easier what you know best. There are people who have little knowledge of css and have memorized bootstrap classes, there are those who know css well but are poorly oriented in Bootstrap classes. And all these throwing requirements of TK are leveled. ))
A good practice is to use your own CSS in conjunction with Bootstrap's JS components. Components are what you should use. Why write your own JS if everything is already written or if there are no JS skills, all the more you can connect only what you need.

S
Sergey Ryzhkin, 2021-11-10
@Franciz

Do it the way you feel most comfortable.
If your project weighs 100kb, it would be stupid to hang a framework weighing 100Mb on it. Soberly evaluate the project for what purposes it will be used. Sometimes it's easier to write something yourself than to fence from the finished one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question