HackerTrans
トップ新着トレンドコメント過去質問紹介求人

mb2100

114 カルマ登録 13 年前
http://github.com/mb21

hacking on https://mastrojs.github.io

投稿

[untitled]

1 ポイント·投稿者 mb2100·先月·0 コメント

Deno Employees Leave

dbushell.com
6 ポイント·投稿者 mb2100·4 か月前·1 コメント

[untitled]

1 ポイント·投稿者 mb2100·5 か月前·0 コメント

[untitled]

1 ポイント·投稿者 mb2100·8 か月前·0 コメント

What I learned porting Mastro from Deno to Node.js

mastrojs.github.io
3 ポイント·投稿者 mb2100·9 か月前·1 コメント

Ask HN: Anybody else having dev.azure.com/vscode auth issues?

1 ポイント·投稿者 mb2100·9 か月前·0 コメント

コメント

mb2100
·19 時間前·議論
Some people even like stinky!
mb2100
·3 日前·議論
This. Cannot believe it too so long for somebody to finally mention progressive enhancement.
mb2100
·19 日前·議論
> 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?
mb2100
·先月·議論
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
mb2100
·先月·議論
the achilles heel of SPAs everywhere.
mb2100
·先月·議論
right? or give me GitHub issues before the React rewrite – at least they loaded fast...
mb2100
·先月·議論
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.
mb2100
·2 か月前·議論
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-...
mb2100
·2 か月前·議論
Sounds similar to https://nightride.com ?
mb2100
·2 か月前·議論
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/
mb2100
·2 か月前·議論
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...)
mb2100
·3 か月前·議論
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
mb2100
·3 か月前·議論
That was exactly my experience as well, hence I created a "Minimal Astro": https://mastrojs.github.io
mb2100
·5 か月前·議論
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.
mb2100
·5 か月前·議論
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 ;-)
mb2100
·5 か月前·議論
button, .button { /* my button styles */ }
mb2100
·5 か月前·議論
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-...
mb2100
·5 か月前·議論
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.
mb2100
·5 か月前·議論
Tell me you're nostalgic for Win95 without telling me...
mb2100
·6 か月前·議論
As company size grows, managers want to settle on a "standardized" tech stack that doesn't get in the way when they want to hire and fire people at will.

Nobody was ever fired for choosing React (or IBM). But everyone can get fired when they're working on a React app.