Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

CSS is not a programming language, and it shouldn't be viewed or compared as one.

It has different functionalities.



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.


CSS is a tool used by web developers to style their websites.

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


People implement Doom in CSS. It's clearly more than just some style notes for the browser.


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.



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.


That limitation is why people like the article writer often replace it with a programming language.


It's not a limitation. It's different.


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.


It is both. Whether you consider that a good or a bad thing is an entirely separate issue.


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.


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.


> 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.


Isn't CSS (with HTML) Turing complete?


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.


HTML is not a programming language, it's a markup language. And SQL is Turing complete.


Coq is a good example of a non-Turing complete programming language.


I don't know. I've seen people do some crazy things with pure CSS that look quite a bit like programming.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: