Hacker News new | ask | show | jobs
by sbergot 2029 days ago
I am saddened by all the negativity around those new css approach.

I like most HN threads but anything frontend is laughed at by people with little frontend experience. They repeat some truth they learned 20 years ago.

Honestly HN is not a good place to discuss frontend stuff. You will only see "get off my lawn" kind of comments.

1 comments

I posted a negative comment here (look it up), and I can explain why I still believe my comment is constructive, and why I don't think I fit in "people with little frontend experience". It's not an appeal to authority, but more a rebuttal of you affirmation that HN is full of "non frontend people"

1. I have a passion for front end, I have a PhD in Human Computer Interaction.

3. I am the cofounder and CTO of a company whose main product is based on CSS-in-JS (Emotion, Chakra UI)

2. I really like Tailwind and used it on several production projects.

4. So I know very well both of these approaches. I know their advantages and drawbacks.

5. In my comment I state the sad truth about this particular project: It combines the worst of both approaches in terms of performance, without any added value as compared to these approaches. Slow build AND slow runtime, without any added modularity.

This approach is objectively bad and this is why people react like this.

And to be constructive: If you want to use tailwind, use tailwind and you will have performant runtime but less customizability. If you want to use CSS-in-JS, use it and you will have customizability, but slower runtime. Engineering is trade-offs, but twin is still the worst of both worlds.

Your comment is completely valid. I am just reacting to the usual flow of hate toward any frontend library that do not follow the initial ways of the early days of html/js/css.
I agree on that actually, I’m generally annoyed by these HN comments like « this JS lib is shit because it’s more than 12kb, and why do you need JS anyway »