DEV Community

loading...

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

Collapse
afif profile image
Temani Afif

people need to understand that CSS is a must because you simply cannot do front end without CSS and CSS is the only language for this purpose. You can choose between a huge number of backend language but you are stuck with using CSS for the front end so we have to respect it ;)

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
kieran815 profile image
Kieran815

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
lifelongthinker profile image
Sebastian

Sorry, Uriel, but I think you are wrong.

JS can style only through basic CSS.

I'm not too familiar with React, but would be pleasantly surprised if it did not at one point compile to/use CSS.

Thread Thread
urielbitton profile image
Uriel Bitton

Even if it does, this is why i listen other examples like mobile dev styling, like flutter, react native, they don't use css. Sorry but i am not wrong on this. Research this, not everything is styled with CSS.

Thread Thread
kieran815 profile image
Comment marked as low quality/non-constructive by the community. View Code of Conduct
Kieran815

Hey, there's an animation library you should check out. It's called WankerJS. It's really just a one line method for removing the "wanker" class from any Dom elements that are class "Wanker". As we all know, the "Wanker" class adds an opaque overlay on all it's child elements, which is obnoxious if you're styling with css or scss. Enjoy!

Thread Thread
kieran815 profile image
Comment marked as low quality/non-constructive by the community. View Code of Conduct
Kieran815

Don't be so opinionated. You learned css past year. Did you really JUST learn media queries???
dev.to/urielbitton/the-top-5-css-t...

Thread Thread
urielbitton profile image
Uriel Bitton

I have known css for 8 years or more. These are only concepts i took seriously last year. You can know basic css and use css libraries for web development, or use older css methods...

Thread Thread
urielbitton profile image
Uriel Bitton

Also be respectful please. Your comment is not appropriate on DEV, be more respectful when writing comments in the future.

Thread Thread
kieran815 profile image
Kieran815

So you only learned it starting last year. Gotcha.

Thread Thread
kieran815 profile image
Comment marked as low quality/non-constructive by the community. View Code of Conduct
Kieran815

Yawn.

Thread Thread
urielbitton profile image
Uriel Bitton

If you actually read the post you would know i learned you can use max-HEIGHT and not just max-width which i knew from many years ago...

lifelongthinker profile image
Sebastian • Edited

@urielbitton , React Native doesn't apply here as it doesn't target web browsers. Unless the "frontend" definition relates to technology beyond HTML rendered by web browser, which makes the entire discussion here pointless.

Flutter can target web apps and I see an awful lot of CSS in their output. It uses the HTML Canvas control, where CSS might not apply, but then that is not targeting traditional HTML.

Bottom line, what you are referring to as "they don't use css" looks a lot like the concept of an additional layer of abstraction ON TOP of CSS. True, those exist (and reasonably so), but they transpile to CSS.

Maybe we should ask a different question here: What other means exist besides CSS to tell browsers how to style DOM elements? I can't think of any besides the "good" old HTML2/3/4 elements and properties such as FONT, TABLE border cellpadding, etc.

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

Collapse
starbist profile image
Silvestar Bistrović Author

Exactly. CSS is everywhere, but I don't see people care enough.

Collapse
atulcodex profile image
Atul Prajapati

That's the reason the reason, they are always searching something on Google 😂

Collapse
mzaini30 profile image
Zen

Stuck 🙈

Collapse
icecoffee profile image
atulit023 • Edited

CSS is a programming language so is the HTML, most of us just don't know the definition of programming.

Collapse
trueneu profile image
Pavel Gurkov

And not the definition of language.

Collapse
atulcodex profile image
Atul Prajapati

You are right brother 🙏

Forem Open with the Forem app