DEV Community

Discussion on: So, how many of you respect CSS as a programming language?

Collapse
 
urielbitton profile image
Uriel Bitton • Edited

This is quite false. There are many other technologies that can style a UI besides for css. Native Javascript can style a UI (although it compiles to css, true), react native's stylesheet api can style UIs as well (without compiling to css). There are a few more you can find out there too (like flutter's styling, all mobile dev styling, etc)... you just need to do more research when unsure ;)

oh and also CSS is not a programming language, see my comment below.

Collapse
 
anilsansak profile image
Yaşar Anıl Sansak

If I am not wrong the technologies you list uses the CSS rules. So, isn't it the same thing? I might be completely wrong here and if I am, I would like to correct myself.

Thread Thread
 
ng_update profile image
Kieran

right. all .style does is allow js to read css. Same for styled components for react.

Thread Thread
 
urielbitton profile image
Uriel Bitton

No. Again wrong, please read my comment. Not all technologies compiles to css. React native's styling is one example, another is flutter. Many mobile development technologies cannot use css for styling as they are not html based (or for other reasons). They use their own styling technology.

Thread Thread
 
afif profile image
Temani Afif

@urielbitton If you will not run it in a browser then logically you won't use HTML/CSS, this is trivial. CSS will not style everything. Here it's about front-end dev which is closely related to browser.

My point was that if you are going to deal with CSS then it's CSS, you don't have another choice. You can change your backend language, the Database, etc but you have no alternative to CSS. Using another technologie is another story. If you will do Robotic then you won't need CSS which is trivial. I never said CSS is everywhere.

Collapse
 
afif profile image
Temani Afif

Whataver the technologie/the tool you will be using there is always CSS behind the scene. If you will create something that need to run inside a browser then you need CSS even if you will not write any single line of CSS because a tool is doing this for you.

Browsers understand one unique language for styling and it's CSS.
It's like people that tell they never use JS because they write only jQuery but jQuery is JS

Thread Thread
 
chakudi profile image
Vaishali JS

Well said!

When you are talking about front-end in web browser or any web based platforms, CSS is the only language that works for styling the UI. All other tools are using CSS behind the scenes.

Looking at the number of tools we have today, we can say, knowledge of CSS is not must but at least good to have and you need to respect CSS 👍

I ♥️ CSS