News for hackers. Stuff that matters.

mb2100

Re:The Future of CSS on Wednesday October 21, 2026 @05:35AM (#50178078)
There are JS libs (like Reactive Mastro [1]) that go well with writing otherwise vanilla HTML/CSS/JS, and there are libs (like React) where you're quickly sinking into a mud of abstractions and have to fight the reactivity runtime when you try to write vanilla JS.

[1]: https://mastrojs.github.io/reactive/

That's weird, considering the guy who put the fetchable.org website up works at Netlify.
Re:Updated Google Maps shows destruction of the city of Rafah on Tuesday September 29, 2026 @03:46AM (#49889608)
Not quite. Perhaps you were thinking of "ethnic cleansing" ?
Re:Tailwind Labs is joining Shopify on Wednesday September 09, 2026 @10:44AM (#49627467)
Short answer: no, not necessary. Long answer: https://mastrojs.github.io/blog/2025-11-27-why-not-just-use-...
Re:Ask HN: Who is hiring? (September 2026) on Wednesday September 02, 2026 @05:07AM (#49533720)
Is understanding Dutch (reading and listening) good enough?
Re:The creator of Jujutsu has joined ERSC on Wednesday September 02, 2026 @05:02AM (#49533686)
They're not experienced with git, but still use the command-line? Interesting. Or would you think a jj GUI would help them?
Re:“I just chose words carefully” on Monday August 31, 2026 @02:53AM (#49506453)
2. You must have never written Haskell.
Re:Everyone Should Know SIMD on Thursday July 23, 2026 @03:28AM (#49018030)
how do I do that? :-)
Re:How I use HTMX with Go on Wednesday July 15, 2026 @04:34AM (#48917898)
Agreed, but uhtml-ssr looks a bit dated. If you want a html tagged template literal lib with no dependencies, see for example:

implementation: https://github.com/mastrojs/mastro/blob/main/src/core/html.t...

docs: https://mastrojs.github.io/docs/html-components/

Re:Ask HN: What Are You Working On? (July 2026) on Tuesday July 14, 2026 @09:28AM (#48906544)
No dependencies. No build step. Just a simple web framework. Implemented in just ~800 lines of TypeScript.

https://mastrojs.github.io

Re:My Thoughts on the Bun Rust Rewrite on Friday July 10, 2026 @03:25PM (#48864104)
Some people even like stinky!
Re:98% Isn't Much on Wednesday July 08, 2026 @02:58AM (#48828530)
This. Cannot believe it too so long for somebody to finally mention progressive enhancement.
Re:Deno Desktop on Monday June 22, 2026 @06:00AM (#48628084)
> Backend and UI communication goes through in-process channels, not socket-based IPC

Are they running the frontend and backend in the same process? Sounds a bit dangerous security-wise?

This. "No loading animations" works if you rely on the browser's loading indicators that all users will be familiar with.

@OP, if you're up for a rewrite of the frontend, happy to help you get started with https://mastrojs.github.io

Re:How's Linear so fast? A technical breakdown on Monday June 08, 2026 @07:27AM (#48443983)
the achilles heel of SPAs everywhere.
Re:How's Linear so fast? A technical breakdown on Monday June 08, 2026 @07:27AM (#48443978)
right? or give me GitHub issues before the React rewrite – at least they loaded fast...
Re: on Wednesday May 27, 2026 @10:42AM (#48295155)
What AI is doing to the jobs of programmers feels very familiar to a lot of us frontend developers – because it has happened to us before.
Yeah, while you certainly can write semantic HTML with Tailwind, it absolutely doesn't encourage it. It's funny how Tailwind is conceptually going back to inline styles.

But sure, if you have <Title>, <Header> and <Button> components etc. instead of using HTML elements <h1>, <header>, <button> etc. directly, then why not stuff the CSS into the components as well? It all depends on whether you prefer to use components, HTML elements or a combination as your favourite abstraction.[0]

[0]: https://mastrojs.github.io/blog/2025-11-27-why-not-just-use-...

Re:Ask HN: What are you working on? (May 2026) on Tuesday May 12, 2026 @03:06AM (#48105149)
Sounds similar to https://nightride.com ?
Re:I’ve banned query strings on Monday May 11, 2026 @03:17AM (#48091976)
That's because Apache is basically what today's JS crowd would call a "file-based router", and then the app implements the actual routing in that index.php file. Just like early SPA stored the route in a hash. It's funny how history repeats itself.

I've gone back and forth on file-based vs programmatic routing. But each has pros and cons, so in the end I implemented both in Mastro: https://mastrojs.github.io/docs/routing/

Re:Bun is being ported from Zig to Rust on Tuesday May 05, 2026 @03:47AM (#48019294)
What's the main motivation for considering Rust?

For what it's worth, in my last experience with Bun[0] I ran into a couple of bugs where it seemed Rust could have helped, e.g. using Bun.write

[0]: https://mastrojs.github.io/blog/2025-10-29-what-struggled-wi...)

Re:TanStack Start Now Support React Server Components on Tuesday April 14, 2026 @10:31AM (#47766163)
Agree that TypeScript is nice, especially for sharing templates and types between server and client. But you can still use TypeScript on the server without sending it all to the client, and without a complex and insecure protocol like RSC. I’m working on making this as simple and dependency-free as possible: https://mastrojs.github.io
Re:The End of Eleventy on Monday April 13, 2026 @07:01AM (#47750294)
That was exactly my experience as well, hence I created a "Minimal Astro": https://mastrojs.github.io
Re:A simple web we own on Tuesday February 24, 2026 @05:33AM (#47135361)
Yeah, for that a git-based CMS like Sveltia is really nice.

And for people that actually want to learn a bit of HTML, CSS and JavaScript, Mastro JS is as simple a static site generator as I could make it.

Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015 on Monday February 16, 2026 @03:32PM (#47039940)
if you're not using CSS modules, why would you import the css file into your javascript? But anyway, I think we agree. Feel free to read the linked blog post ;-)
Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015 on Monday February 16, 2026 @03:30PM (#47039920)
button, .button { /* my button styles */ }
Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015 on Monday February 16, 2026 @05:43AM (#47033472)
If everything in your code is a React component, I get why you would just want to write the styles right there.[0] Then again, why write `<Button>` if you could just write `<button>` and style it with standard CSS.

[0]: https://mastrojs.github.io/blog/2025-11-27-why-not-just-use-...

Re: on Friday January 30, 2026 @05:53AM (#46822887)
In Unix, everything is a file. In Mastro, everything is an HTTP route. You use the standards-based Request/Response-API not only for writing your server, but also for static site and asset generation. And it's beautiful.
Tell me you're nostalgic for Win95 without telling me...

Older »