frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

CSS-in-JS: The Great Betrayal of Front End Sanity

https://thenewstack.io/css-in-js-the-great-betrayal-of-frontend-sanity/
21•meistro•2h ago

Comments

embedding-shape•2h ago
> CSS-in-JS was supposed to free us from global namespace nightmares and styling spaghetti.

That wasn't how "CSS-in-JS" was sold to me, and obviously, does nothing to actually solve that, scoping works the same in CSS regardless if you generate it from JS or not.

The way it was sold to me, was that developers were tired of having to have the styles in a different place than the layouting, and CSS-in-JS would make all of that worth it, even when you consider the performance tradeoff.

I was never sold on it, and continued doing CSS in separate files, mostly following something like BEM most of the time, and still am not affected by scoping issues, and I didn't even need to do the tradeoffs you get when doing CSS-in-JS.

danabramov•2h ago
I’m so tired of reading LLM slop articles. I don’t mind someone using AI assistance but it should be embarrassing to put your name next to something you so obviously didn’t write.

I don’t remember who said it but I really like this summary: posting LLM slop as your own writing destroys the reader/writer contract. Normally you’d expect the writer to have spent more effort on a piece than the reader. But now the reader is the one who’s spending more effort, trying to interpret a chain of words from nobody’s mind.

This should be embarrassing to post.

a4isms•2h ago
I am a former D-list tech blogger, and the thought of posting slop under my name horrifies me. But then again, I consider myself an author who has enjoyed the pleasant side-effect of minor notability. I never considered myself an influencer who happened to use writing to acquire more influence.

Anybody shipping slop around—whether written by interns and published under their name or written by machines—is not an author. They are an influencer, and reposting slop is what they do.

azangru•1h ago
The article is certainly shallow, and its title is clickbait, and it says things that will make some web developers roll their eyes, and of course LLMs are now available to anyone — but what makes you think this particular article was written by an LLM? What are the telltale signs?
ronbenton•2h ago
This article focuses a lot on runtime computation of css-in-js but much of css-in-js today is compiled (no runtime computation). Ignoring that fact feels disingenuous. There are still arguments to be had against css-in-js for readability, sharing, and complexity, but the amount of focus on something that was solved is bad.
giorgioz•1h ago
I'm still using emotion CSS-in-JS and I love the Developer Experience. I love being able to create styles in separate files or inline. I can understand the drawbacks in performance/hidration and lack of support from SSR frameworks like Next/Remix, but the DX for me is just too good compared to the new generation of new CSS tools.
throwaway290•1h ago
> We’re entering a new chapter where simplicity is sophistication again, where global stylesheets coexist peacefully with scoped rules.

does anyone know, scoped style rules are here to stay or not? <style scoped> is deprecated and in HTML spec <style> is not allowed in body https://html.spec.whatwg.org/multipage/semantics.html#the-st...

(This is how I suspect it's LLM slop, it's such an important thing and it just is skipped without mention)

azangru•1h ago
> does anyone know, scoped style rules are here to stay or not?

There is the @scope CSS directive. It is part of the CSS spec now. MDN even says it is supported by all latest browsers.

> in HTML spec <style> is not allowed in body

Parts of the body can be encapsulated in the shadow DOM; and the shadow DOM allows its own <style> tags.

throwaway290•1h ago
Thanks. That's a JS-only thing then right?
azangru•17m ago
The style tag inside of a shadow DOM? No, it can be written declaratively in plain html markup.
haburka•1h ago
This is completely meaningless AI slop. No mention of tailwind, no real nuance. This is embarrassing.
timcobb•1h ago
> CSS-in-JS promised simplicity but delivered performance issues.

IMO it delivered said simplicity, and the performance issues are there, but they've never been the lowest hanging, biggest fruit to optimize. Not even close in my experience, which for me indicates a resounding success. And as a result, more "native" CSS solutions like Tailwind improved the native CSS landscape. So, wins all around for everyone: you can stick with CSS-in-JS and take the almost always practically invisible performance hit, or use newer solutions for improved ergonomics and performance.

lousken•19m ago
can't die soon enough, if i have js disabled by default it messes up some websites
usagisushi•11m ago
The Great Betrayal of Front End Sanity 2: JS-in-CSS

Public Sans – A strong, neutral typeface

https://public-sans.digital.gov/
189•mhb•2h ago•71 comments

Netflix: Open Content

https://opencontent.netflix.com/
436•tosh•7h ago•80 comments

Toro: Deploy Applications as Unikernels

https://github.com/torokernel/torokernel
5•ignoramous•12m ago•0 comments

Non-Zero-Sum Games

https://nonzerosum.games/
210•8organicbits•5h ago•79 comments

The British Empire's Resilient Subsea Telegraph Network

https://subseacables.blogspot.com/2025/12/the-british-empires-resilient-subsea.html
78•giuliomagnifico•4h ago•10 comments

The Legacy of Undersea Cables

https://blog.sciencemuseumgroup.org.uk/the-legacy-of-undersea-cables/
28•teleforce•2h ago•7 comments

Postgres extension complements pgvector for performance and scale

https://github.com/timescale/pgvectorscale
62•flyaway123•5d ago•5 comments

Approachable Swift Concurrency

https://fuckingapproachableswiftconcurrency.com/en/
78•wrxd•4h ago•38 comments

Go away Python

https://lorentz.app/blog-item.html?id=go-shebang
217•baalimago•8h ago•178 comments

Reverse Engineering a Mysterious UDP Stream in My Hotel (2016)

https://www.gkbrk.com/hotel-music
21•bayesnet•1w ago•0 comments

Hive (YC S14) Is Hiring a Staff Software Engineer (Data Systems)

https://jobs.ashbyhq.com/hive.co/cb0dc490-0e32-4734-8d91-8b56a31ed497
1•patman_h•2h ago

GOG is getting acquired by its original co-founder

https://www.gog.com/blog/gog-is-getting-acquired-by-its-original-co-founder-what-it-means-for-you/
807•haunter•1d ago•480 comments

What Happened to Abit Motherboards

https://dfarq.homeip.net/what-happened-to-abit-motherboards/
10•zdw•2h ago•3 comments

Stranger Things creator says turn off "garbage" settings

https://screenrant.com/stranger-things-creator-turn-off-settings-premiere/
315•1970-01-01•17h ago•578 comments

Show HN: One clean, developer-focused page for every Unicode symbol

https://fontgenerator.design/symbols
111•yarlinghe•5d ago•45 comments

No strcpy either

https://daniel.haxx.se/blog/2025/12/29/no-strcpy-either/
136•firesteelrain•4h ago•62 comments

Times New American: A Tale of Two Fonts

https://hsu.cy/2025/12/times-new-american/
111•firexcy•4h ago•68 comments

Tesla's 4680 battery supply chain collapses as partner writes down deal by 99%

https://electrek.co/2025/12/29/tesla-4680-battery-supply-chain-collapses-partner-writes-down-dea/
584•coloneltcb•23h ago•644 comments

Charm Ruby – Glamorous Terminal Libraries for Ruby

https://charm-ruby.dev/
86•todsacerdoti•9h ago•11 comments

Concurrent Hash Table Designs

https://bluuewhale.github.io/posts/concurrent-hashmap-designs/
30•signa11•3d ago•2 comments

Hacking Washing Machines [video]

https://media.ccc.de/v/39c3-hacking-washing-machines
176•clausecker•15h ago•37 comments

Nicolas Guillou, French ICC judge sanctioned by the US and “debanked”

https://www.lemonde.fr/en/international/article/2025/11/19/nicolas-guillou-french-icc-judge-sanct...
251•lifeisstillgood•6h ago•192 comments

The future of software development is software developers

https://codemanship.wordpress.com/2025/11/25/the-future-of-software-development-is-software-devel...
332•cdrnsf•22h ago•375 comments

ManusAI Joins Meta

https://manus.im/blog/manus-joins-meta-for-next-era-of-innovation
285•gniting•18h ago•182 comments

UNIX Fourth Edition

http://squoze.net/UNIX/v4/README
90•dcminter•1w ago•8 comments

AI is forcing us to write good code

https://bits.logic.inc/p/ai-is-forcing-us-to-write-good-code
266•sgk284•22h ago•195 comments

Graph Algorithms in Rayon

https://davidlattimore.github.io/posts/2025/11/27/graph-algorithms-in-rayon.html
40•PaulHoule•4d ago•0 comments

Turning an old Amazon Kindle into a eInk development platform (2021)

https://blog.lidskialf.net/2021/02/08/turning-an-old-kindle-into-a-eink-development-platform/
56•fanf2•4d ago•11 comments

Singapore Study Links Heavy Infant Screen Time to Teen Anxiety

https://www.bloomberg.com/news/articles/2025-12-30/singapore-study-links-heavy-infant-screen-time...
63•1vuio0pswjnm7•4h ago•33 comments

Google is dead. Where do we go now?

https://www.circusscientist.com/2025/12/29/google-is-dead-where-do-we-go-now/
982•tomjuggler•20h ago•780 comments