Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
yawaramin
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
yawaramin
27d ago
You’re not wrong. I’ve used tig, a git TUI that renders very nice views of the diffs, for many years: https://jonas.github.io/tig/ Fun fact: Jonas, the creator of tig, is an ex-colleague of mine. It’s cool working with
2.
▲
by
yawaramin
27d ago
What language and framework do you use for GUI programming?
3.
▲
by
yawaramin
28d ago
Posting 'why should we learn' a programming language on Hacker News is top-quality ragebait :-D
4.
▲
by
yawaramin
28d ago
1. Compile times. OCaml compiles very quickly (think Go) and this gives you a fast feedback loop. It lets the LLM rip through the implementation. 2. OCaml has an idiomatic approach of using interface files for all modules that can be access
5.
▲
by
yawaramin
28d ago
I'd be very interested to read this paper when it comes out.
6.
▲
by
yawaramin
1mo ago
Haha, good one. You said ‘the creator is stuck in 2012 as I said’. Except that was said by a different user account ;-)
7.
▲
by
yawaramin
1mo ago
It’s not really decentralized in that way. If you’re loading a bunch of pages in your mobile browser, your device is paying the power consumption cost of deserializing, parsing, and running all that JS. It doesn’t save on that because some
8.
▲
by
yawaramin
1mo ago
Oh ok, in that case see here https://developer.mozilla.org/en-US/docs/Learn_web_developme...
9.
▲
by
yawaramin
1mo ago
Are you sock-puppeting two different user accounts in this discussion? https://news.ycombinator.com/user?id=asdfsa32 I didn’t realize that was allowed. What do HN mods think of that, dang?
10.
▲
by
yawaramin
1mo ago
Parsing and processing several megabytes of JS for each page you visit can get expensive quickly. https://tonsky.me/blog/js-bloat/
11.
▲
by
yawaramin
1mo ago
The client pays it. - If the server is responding with JSON, the client has to parse, decode, and validate the JSON. Then it has to transform it into HTML DOM nodes. Finally, it can inject them into the DOM. - If the server is responding wi
12.
▲
by
yawaramin
1mo ago
That's super simple, it's your favourite backend web framework. Rails, Spring Boot, Laravel, Django, Flask, FastAPI...really whatever you like.
13.
▲
by
yawaramin
1mo ago
Yeah but when you're reading the actual source code you're not thinking in terms of bytes, you're looking and files and line counts. Htmx is deliberately maintained as a single, no-dependency file of about 5000loc. The mainta
14.
▲
by
yawaramin
1mo ago
The htmx creator has made similar things for a long time, if anything htmx has diverged from those ideas by taking Intercooler.js and stripping out the bundled jQuery to simplify it and create htmx. See https://news.ycombinator
15.
▲
by
yawaramin
1mo ago
I’m talking about auth, like a session cookie. What do you use for auth?
16.
▲
by
yawaramin
1mo ago
Htmx is a direct descendant of Intercooler.js, which has been around since circa 2013, more than a decade. Intercooler still exists and is used in production, and you can clearly see that it works almost exactly the same way as htmx does to
17.
▲
by
yawaramin
1mo ago
What part of the Fixi project is building something like React?
18.
▲
by
yawaramin
1mo ago
You’ve misunderstood the reason for v4; see https://news.ycombinator.com/item?id=49493929
19.
▲
by
yawaramin
1mo ago
Correction: they didn’t ‘realize they needed to make a breaking change’, they got excited by the improvements they could unlock by using the Fetch API and wanted to make a breaking change. The upgrade is completely voluntary: it won’t eve
20.
▲
by
yawaramin
1mo ago
Where does it say that exactly?
21.
▲
by
yawaramin
1mo ago
The explanation is a single, obvious click away.
22.
▲
by
yawaramin
1mo ago
So what do you use instead?
23.
▲
by
yawaramin
1mo ago
Feeling this pain with Django right now. I don't even have to deal with a database in this app (it's just a BFF) and it's unnecessarily complex. Right now I'm ripping out the React frontend and replacing it with htmx. Us
24.
▲
by
yawaramin
2mo ago
Lol, so Rust is perfect until you actually try to do something with it.
25.
▲
by
yawaramin
2mo ago
Sure, that's basically what Phoenix LiveView does. But I would submit that you don't actually need that level of complexity with a bit of judicious UI/UX design, where as the app grows in scale, the number of oob swaps to kee
26.
▲
by
yawaramin
2mo ago
> Fiddling with out-of-band swaps to solve this feels error prone and overly hard to maintain. This is almost always because of using a string-based templating system. If you use a language-embedded HTML generation library, it represents
27.
▲
by
yawaramin
2mo ago
One man’s React is another man’s Blub.
28.
▲
by
yawaramin
2mo ago
> They are overselling it. They quite literally have a a large essay on their site dedicated to discussing when to and when not to use it: https://htmx.org/essays/when-to-use-hypermedia/ Also, it’s not at all s
29.
▲
by
yawaramin
2mo ago
Ok, for the sake of completeness–why do you want to add a JSON API to the program? Quite a lot depends on the reason.
30.
▲
by
yawaramin
2mo ago
Just do passkeys.
More ›