Better HN
topnewbestaskshowjobs
Log inSign up

mrinc

5 karma · joined Feb 7, 2023 (3y ago) · 7 submissions

Submissions

1.

Show HN: AnyVali – Validation library that works the same across 10 languages(anyvali.com ↗)

2 points · by mrinc · 8mo ago · discuss

2.

3D Printable PC/NAS Cases(youtube.com ↗)

4 points · by mrinc · 2y ago · 4 comments

comment 2y ago · link · parent

I misunderstand yet you provide no further information on my supposed misunderstanding... -_- thanks

From reading the docs:

All code for an HTMX app would be in a view - a .htmx file.

The .htmx file is then rendered as a templated view.

1) The files are .htmx ... they are not Typesafe.

2) I am forced to use a the webserver and formatting (files/dirs/paths) provided by primatejs.

3) The htmx files are not written in JSX - so typesafety is completely lost - it is the same as using any other templating engine at this point - as per their docs: "Client side templates to be used by the client-side-templates extension. Possible values: "handlebars", "mustache" and "nunjucks". Make sure you add "client-side-templates" to the extensions array option."

So you write the code using a template renderer, I have been there done that.

It works but you lose all type safety

The lack of type-safety was the whole reason I did this.

comment 2y ago · link · parent

The whole point is I didn't want all the extra bloat and lock-ins that come with those types of libraries.

I just want a simple fastify WS that can do HTMX with type safety. Add in react.email for emails and not break the rest of my app.

ref: https://news.ycombinator.com/item?id=35156338

5.

Show HN: JSX-Htmx that doesn't conflict with react(github.com ↗)

4 points · by mrinc · 2y ago · 4 comments

comment 3y ago · link · parent

At least they transparently and openly admitted they were at fault as well as how they're going to stop it from occuring in the future. Overall glad it was resolved