Live data from Hacker News

Modern CSS Code Snippets: Stop writing CSS like it's 2015

modern-css.com

121–130 of 318 posts

Re: Modern CSS Code Snippets: Stop writing CSS like it's 2015

#121
post #114

Very cool. Could you include a skill.md of AGENTS.md for this?

“Please study the material on https://modern-css.com/ and write a skill.md and an AGENTS.md that succinctly utilizes all the content” Or maybe even! “ https://modern-css.com/ is very cool. Could you include a skill.md or Agents.md for this?” Or! “Please do: https://news.ycombinator.com/item?id=47030502 “ =]

Error: Stray end tag end_snark.

Re: Modern CSS Code Snippets: Stop writing CSS like it's 2015

#124
post #43

Earlier quoted context omitted.

The deadest horse in web development is the myth of “separation of concerns”

I was recently doing some very specific web scraping of some very public very static documents. About 25% of them use a soup of divs with hashes for class names. Not a or or in sight. I am fine with the idea of what tailwind does but like at least using semantic tags where appropriate could be a thing.

You can grumble at web developers in general for things like div soup, but the hostility towards tailwind is misplaced. Hashed classes aren’t even tailwind, and the tools that generate them are not the problem either.

Re: Modern CSS Code Snippets: Stop writing CSS like it's 2015

#125
post #43

Earlier quoted context omitted.

The deadest horse in web development is the myth of “separation of concerns”

It's a choice. The dominant paradigms choose not to. I disagree. And that makes me the loser here

I agree, it’s a choice. So is the opposite. Complaining about other people’s choice of doing things on the web is the choice I’m actually tired of.

Re: Modern CSS Code Snippets: Stop writing CSS like it's 2015

#126
post #4

CSS in 2025: Let's write html inlined styles as if it was 2005 and separation of formatting/representation was never invented. I talk of tailwind, of course.

Yeah. There is no need to obfuscate your code, just use Tailwind.

Obfuscate? I can learn tailwind and use it in dozens of projects. I can use tailwind in my project and onboard dozens of developers immediately. I can learn your CSS conventions and use them in exactly one project.

Re: Modern CSS Code Snippets: Stop writing CSS like it's 2015

#127

Earlier quoted context omitted.

Exactly this. I wonder if the people downvoted you realize that HN is basically just a big table and a bunch of div, and they use this very site just fine?

As a user, I don't care. As a disabled user with a screen reader, I might care. As a developer tasked with maintaining it after the original dev left, I most certainly would care a great deal.

Except that as a developer you have access to the original source code where things are well structured. It only turns into div soup after the React/Vue code gets compiled down to HTML+CSS+JS that can run on any browser.

Re: Modern CSS Code Snippets: Stop writing CSS like it's 2015

#128

Earlier quoted context omitted.

Exactly this. I wonder if the people downvoted you realize that HN is basically just a big table and a bunch of div, and they use this very site just fine?

As a user, I don't care. As a disabled user with a screen reader, I might care. As a developer tasked with maintaining it after the original dev left, I most certainly would care a great deal.

As a developer you maintain the source templates, not the compiled/generated HTML. The HTML is messy doesn't mean the source templates are so.

Semantic web is basically "please think of the crawlers."

Re: Modern CSS Code Snippets: Stop writing CSS like it's 2015

#130
post #30

Earlier quoted context omitted.

React is great for MVVM indeed. Who is still using MVC in 2026?

MVVM was invented by Microsoft for 2-way syncing in WPF. Today we know 2-way syncing is a mistake. Who uses MVC in 2026? Pretty much every framework out there, including Java frameworks and Python frameworks and .net

I've heard many people assert that 2 way binding is a mistake, but I didn't think it was settled. It still seems simpler to me than so called uni-directional data flow.
Post reply on HN