News for hackers. Stuff that matters.
Re:Why I Write CSS in JavaScript by pmlnr on Monday February 18, 2019 @12:42PM (#19192467)
CSS is not a programming language, and it shouldn't be viewed or compared as one.

It has different functionalities.

Re:Why I Write CSS in JavaScript by exogen on Monday February 18, 2019 @12:45PM (#19192487)
It's a language either way, whether you consider it "programming" is not really important. So, good luck with that.

I live in the real world where it's used almost exclusively by programmers.

Re:Why I Write CSS in JavaScript by gaastonsr on Monday February 18, 2019 @12:51PM (#19192550)
CSS is a tool used by web developers to style their websites.

Whether technically it's a programming language or not is tangential.

Re:Why I Write CSS in JavaScript by jandrese on Monday February 18, 2019 @03:05PM (#19193892)
People implement Doom in CSS. It's clearly more than just some style notes for the browser.
Re:Why I Write CSS in JavaScript by gmanley on Monday February 18, 2019 @04:29PM (#19194630)
I think you may be confusing that with something else. You can't create a complex game with just CSS. I'd love to be wrong but provide a link.
Re:Why I Write CSS in JavaScript by jandrese on Monday February 18, 2019 @04:44PM (#19194755)
Re:Why I Write CSS in JavaScript by gmanley on Monday February 18, 2019 @05:02PM (#19194885)
The first one looks like a big part of the functionality is from the JavaScript file. It's crashing my iPhone so I'm having trouble digging into it too much. The second link, however, does seem to be done in pure css. Impressive! Thank you for the links. I stand corrected.
Re:Why I Write CSS in JavaScript by jsight on Monday February 18, 2019 @01:33PM (#19192933)
That limitation is why people like the article writer often replace it with a programming language.
Re:Why I Write CSS in JavaScript by pmlnr on Monday February 18, 2019 @02:07PM (#19193292)
It's not a limitation. It's different.
Re:Why I Write CSS in JavaScript by ves on Monday February 18, 2019 @03:00PM (#19193847)
It is absolutely a limitation, because there are things you can express in other languages that you cannot in CSS.

But a limitation isn’t necessarily bad, and is often good. Finding the language of least power (ie it is just powerful enough to express the sorts of things you want, and no more) is very useful for safety and productivity, but in CSS’s case it seems like it’s no longer powerful enough to express all the things its users desire.

Re:Why I Write CSS in JavaScript by jsight on Wednesday February 20, 2019 @03:01PM (#19211430)
It is both. Whether you consider that a good or a bad thing is an entirely separate issue.
Re:Why I Write CSS in JavaScript by ringaroll on Monday February 18, 2019 @02:26PM (#19193492)
Its different and it a poor lang. The only people advocating for css only are privacy freaks. They're often the least return producing customers, hence ignored.
Re:Why I Write CSS in JavaScript by afiori on Monday February 18, 2019 @04:09PM (#19194481)
As far as I understand there are very good sides of CSS, as a declarative constraint language. More than being a poor language it looks like it is hard to use it for modern web development.
Re:Why I Write CSS in JavaScript by LocalPCGuy on Monday February 18, 2019 @04:11PM (#19194502)
> The only people advocating for css only are privacy freaks.

This just is not true. It may be your opinion, but it is objectively false, particularly in the context of this discussion.

Re:Why I Write CSS in JavaScript by marcinzm on Monday February 18, 2019 @02:57PM (#19193803)
Isn't CSS (with HTML) Turing complete?
Re:Why I Write CSS in JavaScript by k__ on Monday February 18, 2019 @03:08PM (#19193913)
As far as I know, Turing completeness isn't essential for being considered a programming language.

SQL is one, HTML too.

They both tell a computer what to do.

Re:Why I Write CSS in JavaScript by gizmogwai on Monday February 18, 2019 @03:28PM (#19194095)
HTML is not a programming language, it's a markup language. And SQL is Turing complete.
Re:Why I Write CSS in JavaScript by Jaxan on Monday February 18, 2019 @03:40PM (#19194222)
Coq is a good example of a non-Turing complete programming language.
Re:Why I Write CSS in JavaScript by irrational on Monday February 18, 2019 @03:30PM (#19194118)
I don't know. I've seen people do some crazy things with pure CSS that look quite a bit like programming.