HackerTrans
TopNewTrendsCommentsPastAskShowJobs

naansequitur

no profile record

Submissions

Autogenerating Rust-JS Bindings with UniFFI

hacks.mozilla.org
92 points·by naansequitur·3 tahun yang lalu·16 comments

Thoughts on Svelte

tyhopp.com
364 points·by naansequitur·3 tahun yang lalu·189 comments

App History API

github.com
3 points·by naansequitur·5 tahun yang lalu·1 comments

Show HN: A static site generator built for longevity

prpl.dev
14 points·by naansequitur·5 tahun yang lalu·7 comments

comments

naansequitur
·3 tahun yang lalu·discuss
Author here, those are fair points.

For the part about increasing potential for bugs at scale, my mind was on scaling one or more teams and projects. Might have been better to use some other word than scale since it's so overloaded.

I find it difficult to think of patterns to introduce that would help teams align on when and how to use reactive `$` statements.

It's not a Svelte-specific problem by any means, but I do think Svelte's reactive statements would cause more pain than it would help ease as teams and projects get larger.
naansequitur
·3 tahun yang lalu·discuss
Author here, thanks for the context.

Added an update to the end of the article linking to this comment - https://tyhopp.com/notes/thoughts-on-svelte#update-2023-03-2...
naansequitur
·3 tahun yang lalu·discuss
Author here, this is a great point.

Added an update to the end of the article linking to this comment - https://tyhopp.com/notes/thoughts-on-svelte#update-2023-03-2...
naansequitur
·4 tahun yang lalu·discuss
The forward looking statements disclaimer at the end of their announcement post is such a sharp tone shift it's almost funny - https://www.figma.com/blog/a-new-collaboration-with-adobe/
naansequitur
·5 tahun yang lalu·discuss
Thanks for the kind words!
naansequitur
·5 tahun yang lalu·discuss
I take that approach too if the site is small enough.

The challenge is if the site starts to get into the hundreds of pages and you want to be able to reuse templates and/or render lists of content. Then you reach for a static site generator.
naansequitur
·5 tahun yang lalu·discuss
Hey thanks! Can definitely empathize with the imposter syndrome, it's a tough hurdle to clear.

For the templating system I decided to also add an option to define your own if you don't like the [] syntax (https://prpl.dev/api#options). Figured since the system is regex-based instead of AST-based there's no reason not to expose it as an option to users.

For the metadata I implemented a basic parser. Here's a link to that part of the source code, it's not the most efficient nor does it cover all the edge cases, but it's simple enough it can be easily updated (https://github.com/tyhopp/prpl/blob/master/packages/core/src...).

Good luck and hope I can see your system on HN someday too
naansequitur
·5 tahun yang lalu·discuss
Hi HN,

This is an open source project I've worked on over weekends for a long time. The goal is to create a tool well suited for websites you expect to be around for 5 or 10+ years.

Would love any thoughts you have on it.

The reason why I decided to build this is all other (JS-based) static site generators I tried had one or of these problems:

- Built on an underlying framework like React, Vue, etc.

- Relies on complex build tools like Webpack, Babel, etc.

- Depends on a massive tree of modules that force constant maintenance

- Has interfaces, source code and documentation that cannot be understood in one sitting

- Requires that your site source be organized in a way that looks nothing like your output

- Forces a huge leap from hello world to a real world implementation

Thanks,

naansequitur

EDIT - List formatting