Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
troupo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
181.
▲
by
troupo
3mo ago
> also my favorite SVG was def the google/gemini-3.6-flash That looks like something from Machinarium or Robots :)
182.
▲
by
troupo
3mo ago
Mine is any variations on mammoths in various situations, or anthropomorphic. Since mammoths are invariably majestically going from one place to another in any of the books, models have hard time imagining anything but that. Also try a fant
183.
▲
by
troupo
3mo ago
And those sites often had personality and whimsy. Now we got our wish to lay out stuff however we want, and it turns out our imagination is indistinguishable for the average LLM output, all beige gray and devoid of soul.
184.
▲
by
troupo
3mo ago
Except cache is not infinite, it is routinely expunged and re-fetched. The "nothing burger" is so significant that even projects whose stance is "web components are the end all be all of web development" like lit recomme
185.
▲
by
troupo
3mo ago
So we're back to my original comment: https://news.ycombinator.com/item?id=49131513 Yes you can invent all kinds of workarounds for their core design . Re-implementing imports like you do. Or bundling, like everyone d
186.
▲
by
troupo
3mo ago
> I have a wrapper around fetch for static requests imports are not fetched by JS fetch. They are fetched by the browser. It happens before any JS in the component is even run. That's why web components force request cascades: for e
187.
▲
by
troupo
3mo ago
> The target audience of that API seems to be library developers. And then most library developers find them severely lacking, riddled with unsolved and unsolvable issues, filled to the brim with invalid assumptions and awkward APIs etc
188.
▲
by
troupo
3mo ago
Or you do a single request with a sane framework, and it gets cached. It's a menu, not a nuclear plant dashboard.
189.
▲
by
troupo
3mo ago
There's also the issue that web components are eager. Once it's in the DOM, and upgraded, it will cause an endless cascade of requests for every import inside. I don't know if they fixed it, but when reddit rewrote their menu
190.
▲
by
troupo
3mo ago
Support for anything web components-related is a death by a thousand cuts both for the browsers and for the framework authors. For the browsers: Shadow dom breaks almost literally everything. It's a parallel world that exists on its ow
191.
▲
by
troupo
3mo ago
They threw many babies out with the bathwater chasing yhe rather unspecified "simplicity" and making parts of the lsngusge more complex to use as a result.
192.
▲
by
troupo
3mo ago
Here's a quick example of ordinary code that is much easier to write with generics: https://news.ycombinator.com/item?id=49128954 Working on any collection is easier with generics. Working with anything that accesses d
193.
▲
by
troupo
3mo ago
map functions are very useful for iterating over collections. Most functions iterating over collections are useful, because a lot of the data you're commonly dealing with is collections. And most collections are generic. > Functio
194.
▲
by
troupo
3mo ago
> (dumb example -- getting a sum of the perimeters of a generic set of shapes in an externally-defined collection type) There's a much more common example: dealing with external APIs that return JSON. Their response is trivially wra
195.
▲
by
troupo
3mo ago
Go is rediscovering Guy Steele's Growing a Language from first principles, at a much slower pace: https://youtu.be/_ahvzDzKdB0?is=qZdfiT3792XyHxSJ
196.
▲
by
troupo
3mo ago
Unfortunately, with LLMs you have to write these tests for every little thing. And then there's the endless code duplication, reinventing of existing code and libraries etc.
197.
▲
by
troupo
3mo ago
> Tests! Unit tests, integration tests, random adhoc scripts. You know - TDD! Tests onli validate the presence of bugs, not their abscence (Djikstra). I'll also add that tests look at outputs and don't care how those outputs ar
198.
▲
by
troupo
3mo ago
Those are rookie numbers. Here's 1498: https://pbs.twimg.com/media/GA5Z-ZgW4AAu1vn?format=jpg&name=... Can't remember where I ran into this.
199.
▲
by
troupo
3mo ago
> if your service was important enough to the user and the third party tracking integration important enough to you that you're willing to ask the user to spend a few hours reviewing their 'contract' with the third party,
200.
▲
by
troupo
3mo ago
> Never write READMEs, docstrings, or comments. I found that latest codes don't write comments in code by default. And when they do, they write stupid shit like "This was code that did X, it was now removed". You have to e
201.
▲
by
troupo
3mo ago
> Besides paying or accepting being tracked you also have the option of not using web services that require that. Which is 90% of modern internet > I still don't get why you expect to dictate to businesses how to price their pro
202.
▲
by
troupo
3mo ago
> Okay, so just ignore tracking-advertisement supported option and sign up for payed account. What is your issue with this again? Somehow the only option you propose and defend is: "pay, or be tracked". Why would I want a world
203.
▲
by
troupo
3mo ago
> Why are you so opposed to pay for a tier without tracking? I'm still not following. Because advertising does not require invasive and pervasive tracking. The better question is: why are you so happy defending 24/7 surveillanc
204.
▲
by
troupo
3mo ago
> I'm wondering how do you propose for b2c software companies to make money if they can't either properly advertise Advertising does not require invasive and pervasive tracking. There's no world in which a b2c company need
205.
▲
by
troupo
3mo ago
> deny is the default Article 6 and 7 of the GDPR > respect DO NOT TRACK, and force software/hardware providers to enable it by default There is other software and other areas of human activity than just cookies and browsers. Als
206.
▲
by
troupo
3mo ago
ePrivacy is now mostly about the requirement to notify the user that cookies are set, and what they are used for. But you are correct: https://gdpr.eu/cookies/
207.
▲
by
troupo
3mo ago
> Hamburg is one of the greenest cities in the world (summertime). It really puts many of the cities I consider very green (like Stockholm) to shame. Mild climate and high humidity, and boom, you have a jungle.
208.
▲
by
troupo
3mo ago
GDPR is a General Data Protection Regulation. It applies to everything . 10 years . It's been in force for 10 years . The tracking/ad industry has really managed to brainwash everyone into thinking it's about cookies (ev
209.
▲
by
troupo
3mo ago
> The designers of GDPR would have not expected thousands of partners sharing the data collected in a single click. The designers of GDPR (and most other EU regulations) expect businesses to behave like adults, not like petulant children
210.
▲
by
troupo
3mo ago
Legitimate interests exist, and the loophole exists because otherwise legitimate use cases like security audits or fraud detection would be impossible. Most of EU laws are "these are sensible defaults and we expect you to behave like a
More ›