Actually, I have an idea related to this that will get more people even more angry. I need to show it to you. I find it hilarious, but I doubt many people will ;P
My God, attempting to read through the reddit comments was like trying to steer a cruise liner by pushing it with a safety raft. Perhaps the subreddit is more for people laughing at others than with others.
The comic seemed to go unnoticed again but then became viral on the /r/ProgrammerHumor channel on Reddit (without the poster adding a source or attribution for it 😓).
Yea, that subreddit is an absolute shitshow of dunning-kruger enthusiasts who think chanting "all code is copied from stack-overflow" while standing in a circle wearing dark hoods is somehow funny and original. Not surprised they wouldn't bother linking to the original.
That being said, I strongly disagree with calling CSS an object-oriented language (or even a programming language at all, albeit with a much weaker opinion). It shares some concepts of OOP, but it lacks the most central one: Objects. At the end of the day, CSS only lets you define classes (as in, OOP classes, which correspond to selectors, not CSS classes) but not instantiate them (that's what HTML does). Adding HTML, you then still lack another essential aspect, which is message-passing; HTML+CSS objects exist, but they don't interact. They can old state, but they don't have any behaviour. Once you add JS to the mix, you do end up with a proper object-oriented system of sorts, where CSS and JS define the classes and HTML instantiates the objects, but that's not normally the way developers think about websites (which is a shame, because it's a very powerful mental model).
One issue is that people will often try to define things in terms they (think they) understand rather than taking a step back and trying to evaluate whether they are missing some key information (in their "known unknowns" or "unknown unknowns" zones) that may explain things better.
People have a problem trying to attack the concept because people bought so deeply into the concept of OOP and not the actual programming. There is no programming in CSS, like there is no concept of variables or functions - that's the programming part. What CSS can do is mimic how variables work - like creating 8,16, or 32 bit registers, and creating how functions work by utilizing html events. Is it scalable? Not for business logic. It's super amazing for the presentation of any html framework. That's why seeing applications built by html and css looks magical, but lets see them carry the business load of requirement revisions. There's no way code like that can be copied and pasted without some sort of architectural consideration.
Web Dev full-stack [LAMP] since 2005, but much heavier on the JS stuff these days.
Jack of all Stacks, Master of some.
Always looking to learn new things. Always glad to help out, just ask.
Location
Atlanta, GA
Education
B.S. in Biochemistry 2004, M.S. in Computer Information Systems 2007
Anyone seriously contemplating the definition of CSS for a long time....needs to rethink things. In the mean time I'll be over here building websites and web applications. lol
CSSTricks proved you can do a calculator only with CSS... so I'll leave at that for those wanting to discuss what programing languages are.... 🤣.
I personally loved to cartoon!! Shows how labeling stuff is really not that important.
This. 1,000 times this!!!
Where? I'd love to see how that was done
Lillian Kodi coded one: codepen.io/lillian-kodi/pen/YzZLebR
I warned you ...
Now, I won't be surprised if someone is killed in that reddit post.
You did warn me.
Did I do it anyway? Yes.
Will I do it again? Definitely yes. 😈
Actually, I have an idea related to this that will get more people even more angry. I need to show it to you. I find it hilarious, but I doubt many people will ;P
My God, attempting to read through the reddit comments was like trying to steer a cruise liner by pushing it with a safety raft. Perhaps the subreddit is more for people laughing at others than with others.
I guess that's the Reddit-way?
Yea, that subreddit is an absolute shitshow of dunning-kruger enthusiasts who think chanting "all code is copied from stack-overflow" while standing in a circle wearing dark hoods is somehow funny and original. Not surprised they wouldn't bother linking to the original.
That being said, I strongly disagree with calling CSS an object-oriented language (or even a programming language at all, albeit with a much weaker opinion). It shares some concepts of OOP, but it lacks the most central one: Objects. At the end of the day, CSS only lets you define classes (as in, OOP classes, which correspond to selectors, not CSS classes) but not instantiate them (that's what HTML does). Adding HTML, you then still lack another essential aspect, which is message-passing; HTML+CSS objects exist, but they don't interact. They can old state, but they don't have any behaviour. Once you add JS to the mix, you do end up with a proper object-oriented system of sorts, where CSS and JS define the classes and HTML instantiates the objects, but that's not normally the way developers think about websites (which is a shame, because it's a very powerful mental model).
I've always viewed CSS as the language to create rule sets for a domain specific rules engine.
CSS Selectors define the conditions when the rule applies.
CSS Declarations define the actions to take when the conditions match.
Specificity and source order govern rule priority.
RulesEngine
One issue is that people will often try to define things in terms they (think they) understand rather than taking a step back and trying to evaluate whether they are missing some key information (in their "known unknowns" or "unknown unknowns" zones) that may explain things better.
Now i understand the principles of OOP😃
The next one should be about Turing completeness of CSS, it will blow out
Something something calc() and attr() something something 😅
Thanks!
People have a problem trying to attack the concept because people bought so deeply into the concept of OOP and not the actual programming. There is no programming in CSS, like there is no concept of variables or functions - that's the programming part. What CSS can do is mimic how variables work - like creating 8,16, or 32 bit registers, and creating how functions work by utilizing html events. Is it scalable? Not for business logic. It's super amazing for the presentation of any html framework. That's why seeing applications built by html and css looks magical, but lets see them carry the business load of requirement revisions. There's no way code like that can be copied and pasted without some sort of architectural consideration.
Why it is not considered as an OOP ? جلب الحبيب بالنظر الى صورته
See the "street of fame"? CSS should have a place there
Anyone seriously contemplating the definition of CSS for a long time....needs to rethink things. In the mean time I'll be over here building websites and web applications. lol
I think with a descent standard library, CSS could make it..