Live data from Hacker News

A Web Framework for Zig

jetzig.dev

21–26 of 26 posts

Re: A Web Framework for Zig

#21
post #4

This site makes a big point of using the term "RESTful" repeatedly, but it seems to be JSON-based by default? I don't know why modern web frameworks insist on continuing to misuse or misapply the term despite a fairly large amount of messaging recently about how exactly this term is misapplied, and the resurgence of frameworks and tools that do correctly apply it, e.g. HTMX, Datastar, Alpine AJAX. Otherwise, this loo…

Being RESTful and the data encoding used are largely orthogonal aspects of an API. Wikipedia RESTful article says: > The formal REST constraints are as follows:[10] > Client/Server – Clients are separated from servers by a well-defined interface > Stateless – A specific client does not consume server storage when the client is "at rest" > Cache – Responses indicate their own cacheability > Uniform interface > Layered…

The key line is actually this:

>An application that adheres to the REST architectural constraints may be informally described as RESTful, although this term is more commonly associated with the design of HTTP-based APIs and what are widely considered best practices regarding the "verbs" (HTTP methods) a resource responds to, while having little to do with REST as originally formulated—and is often even at odds with the concept.

Re: A Web Framework for Zig

#22
post #7

Earlier quoted context omitted.

It's a perfectly fine name. There's a billion dollar web framework company named Zeit which famously built https://now.sh

They rebranded to Vercel, most likely because Zeit turned out to not be a perfectly fine name.

I'd propose Zig have a specific version for Germany and call it Z-Germans.

Re: A Web Framework for Zig

#23
post #4

This site makes a big point of using the term "RESTful" repeatedly, but it seems to be JSON-based by default? I don't know why modern web frameworks insist on continuing to misuse or misapply the term despite a fairly large amount of messaging recently about how exactly this term is misapplied, and the resurgence of frameworks and tools that do correctly apply it, e.g. HTMX, Datastar, Alpine AJAX. Otherwise, this loo…

What do you think of HTMX vs Datastar for a new production app? Any key reasons to use one over the other?

Re: A Web Framework for Zig

#24
As much as I like Zig, I can't imagine working on something as string/list-heavy as web without a garbage collector. Not to mention having a web server without coroutines. Web services these days are just glue code between various pieces of infrastructure, you are constantly waiting on something, it just doesn't make sense to run these in full blown threads.

Re: A Web Framework for Zig

#25

Earlier quoted context omitted.

Being RESTful and the data encoding used are largely orthogonal aspects of an API. Wikipedia RESTful article says: > The formal REST constraints are as follows:[10] > Client/Server – Clients are separated from servers by a well-defined interface > Stateless – A specific client does not consume server storage when the client is "at rest" > Cache – Responses indicate their own cacheability > Uniform interface > Layered…

The key line is actually this: >An application that adheres to the REST architectural constraints may be informally described as RESTful, although this term is more commonly associated with the design of HTTP-based APIs and what are widely considered best practices regarding the "verbs" (HTTP methods) a resource responds to, while having little to do with REST as originally formulated—and is often even at odds with t…

Taking that to mean you disagree. However using HTTP verbs has nothing to do with using JSON or not. Notice it says "HTTP" not "HTML" APIs.

Re: A Web Framework for Zig

#26
post #3

Jetzig reads funny in german something like "now-ish" Jetzt = now [1] German adjective suffix: -ig [2] The German suffix -ig attaches to nouns, verbs and even adverbs. Given this flexibility, it ranks among the most common adjective endings in German. You can use -ig words to express that something is a certain way or happens a certain way. traurig: sad, sadly wässrig: watery knackig: crunchy, crispy abhängig: depend…

It doesn't merely sound like it, it is a German word, translating to current/present.

https://www.dwds.de/wb/jetzig

https://de.wiktionary.org/wiki/jetzig

https://www.duden.de/rechtschreibung/jetzig

Post reply on HN