Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mb2100
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
31.
▲
by
mb2100
9mo ago
Congrats to Fred and team! Developing and maintaining a complex framework takes lots of funding, and I’m glad Astro found a new home that provides that. With [Mastro], we have a different approach. The name originally stood for "minima
32.
▲
by
mb2100
10mo ago
It even loads the code snippets in separate HTTP requests :-( But the snippets themselves are really good! I'm going to update mine on https://mastrojs.github.io
33.
▲
by
mb2100
10mo ago
https://mastrojs.github.io The simplest web framework and site generator yet – no leaky abstractions between you and the high-performance engine that is a modern browser.
34.
▲
by
mb2100
10mo ago
This. Or use ts-blank-space if you prefer TypeScript over JSDoc. That's what we do in https://mastrojs.github.io
35.
▲
by
mb2100
11mo ago
It has data-drupal attributes in the source. Not sure where the Perl and Java things would have come from.
36.
▲
by
mb2100
11mo ago
I totally agree that the goal should be teaching. But I do wonder which code someone is more likely to actually read and understand: the LLM-generated one in their own codebase, or the one hidden in some npm package they installed to just s
37.
▲
by
mb2100
11mo ago
Thanks, this one? https://github.com/jon49/html-template-tag-async Looks very similar indeed! What makes it "more powerful" than Mastro's html template?
38.
▲
by
mb2100
11mo ago
Since we're sharing HTML in JS syntaxes. Don't forget JS tagged template literals like https://jsr.io/@mastrojs/mastro/doc/~/html
39.
▲
by
mb2100
11mo ago
How to _incrementally_ migrate from Express.js to the modern and standards-based Request/Response API for route handlers.
40.
▲
by
mb2100
11mo ago
haha, right?! I'm totally onboard with the author's philosophy, hence for websites: https://mastrojs.github.io – the simple web framework and site generator you could have built yourself.
41.
▲
by
mb2100
1y ago
Definitely team #noBundler for most websites. But I didn't wanna give up TypeScript. With Deno and even Node.js supporting type-stripping now natively, all I had to do for https://mastrojs.github.io was to use ts-blank-spac
42.
▲
by
mb2100
1y ago
This. But hey, let's work on swinging the pendulum of technology back while keeping the DX. I'm doing that with https://mastrojs.github.io/
43.
▲
What I learned porting Mastro from Deno to Node.js
(mastrojs.github.io)
3 points
by
mb2100
1y ago
|
1 comments
44.
▲
by
mb2100
1y ago
The Mastro web framework and static site generator initially ran only in the browser and Deno – it was living in the future, so to speak. Here’s the story of how I ported it to Node.js (which has a surprising amount of functionality built-i
45.
▲
by
mb2100
1y ago
seems you've overlooked the word "efficiently" in "store data persistently and then efficiently look it up later"?
46.
▲
Ask HN: Anybody else having dev.azure.com/vscode auth issues?
1 points
by
mb2100
1y ago
|
0 comments
47.
▲
by
mb2100
1y ago
Indeed. Would you consider https://mastrojs.github.io a "pragmatic framework"?
48.
▲
by
mb2100
1y ago
That's because on mobile, PageSpeed (which is a hosted version of the Ligthhouse dev tools you also have in Chrome) simulates a low-end Android device on a slow 3G network, which is what a lot of website visitors actually use (as oppos
49.
▲
by
mb2100
1y ago
yes, that's why performance metric and on low-powered phones is so terrible. Look at that: https://pagespeed.web.dev/analysis/https-http3-explained-hax...
50.
▲
by
mb2100
1y ago
Thanks, what do you mean with "any-script-managed HTML"? If you mean that you can use any script, like e.g. a bash script, to generate static HTML files, then yes, in a way Mastro is basically that script. Except that it comes wit
51.
▲
by
mb2100
1y ago
The simplest web framework and site generator you've ever seen: https://mastrojs.github.io
52.
▲
by
mb2100
1y ago
Welcome to the club! I built https://mastrojs.github.io after finding both Next.js and Astro to be too complex for my simple needs.
53.
▲
by
mb2100
1y ago
You're saying each tool solves a problem. That's true. But is it a problem that you have? And is the pain of that problem larger than the pain of introducing another tool that you need to debug when things go wrong? Also, browsers
54.
▲
by
mb2100
1y ago
New CSS features stay relevant for the next ~25 years – well worth a learning investment IMHO.
55.
▲
by
mb2100
1y ago
> I was surprised how complicated designing a website has become. Sounds like you would enjoy https://mastrojs.github.io – a _minimal_ Astro alternative.
56.
▲
by
mb2100
1y ago
> if using a JavaScript-based solution that fetches the theme preference from localStorage, I find this almost always results in a "flashbang" in dark mode, as the retrieval is slower than the first browser paint. Not if you bl
57.
▲
by
mb2100
1y ago
I wanted to figure out the simplest, most lightweight abstraction, that unifies static site generation and web server for both HTML, JSON, etc. What I arrived at is ~700 lines of TypeScript: https://mastrojs.github.io/ In a
58.
▲
by
mb2100
1y ago
Totally, agree. And new HTML elements (like <dialog>) and CSS features (like MPA cross-document view transitions) have made client-side JavaScript unnecessary for a loot more use-cases in recent years. This is something a lot of devs
59.
▲
by
mb2100
1y ago
To be fair, the advantage of Deno here is really the standard library that includes way more functionality than Node. But in the end, we should all rely on fewer dependencies. It's certainly the philosophy I'm trying to follow wit
60.
▲
by
mb2100
1y ago
This. It's what inspired me to build a static site generator and web framework built from first principles: https://mastrojs.github.io
More ›