Re:“Variables” in CSS are harmful (2008)
by dkonofalski on Tuesday January 02, 2018 @07:05PM
(#16057138)
I especially dislike this type of pairing because it makes it an explicit requirement for the content and presentation to be together. I prefer content to be separate from styling, as intended by CSS, simply because we can't predict what the future will bring. Content will always remain content when it's semantic but presentation can and will change as time goes on.
Content and presentation both change, and together. That's how it's always been for every type of media. How much space you have on the newspaper determines what your article's title is, but what the title is also determines how much space you have.
Re:“Variables” in CSS are harmful (2008)
by dkonofalski on Wednesday January 03, 2018 @05:41PM
(#16066067)
No they don't. I can write a paper or a thesis without any worry about how it's going to look visually to the person consuming it. I can post a video of something without any kind of concern for what size, container, or surrounding content might accompany it.
Content is content. Presentation is how that content is displayed. While they can work together, the content is the most important thing and presentation should always be secondary to it.
Re:“Variables” in CSS are harmful (2008)
by zeveb on Wednesday January 03, 2018 @12:41PM
(#16063043)
It was just an example. One could have ((link rel stylesheet href "http://host/path/foo")) still.
Re:“Variables” in CSS are harmful (2008)
by dkonofalski on Wednesday January 03, 2018 @05:42PM
(#16066076)
Sure. I was just commenting on the fact that I've seen this type of setup everywhere lately and the content and presentation are inextricably linked. To me, that's a major problem.
Re:“Variables” in CSS are harmful (2008)
by ChrisSD on Tuesday January 02, 2018 @05:59PM
(#16056687)
Pardon my ignorance but how is that different from putting <style> and <script> tags inline in HTML? Other than the syntax of course.
Re:“Variables” in CSS are harmful (2008)
by TuringTest on Tuesday January 02, 2018 @06:19PM
(#16056831)
The syntax itself may be a big deal. With a unified syntax like the above LISP-like example, you can meta-program all content, structure and style with the same scripts, and manipulate them inside the same generic tools.
This could be used to reduce the number of entities in the system, in special those for logic expressions and control flow.
If we want to reduce the total number of entities, then we should examine unifying HTML, CSS & scripting. As I've indicated elsewhere, I think that something like this would be awesome: