Better HN
topnewbestaskshowjobs
Log inSign up

HKayn

1 karma · joined Jan 24, 2024 (2y ago) · 5 submissions

Submissions

comment 7mo ago · link · parent

One rather prominent case would be Tailwind. v4 made breaking changes in the way Tailwind is set up, requiring different packages and syntax. However, if you ask an LLM how to set up Tailwind on your Vite & React app, it will confidently list the setup steps for Tailwind v3, which no longer work.

At times I would see people daily asking for help with their broken Tailwind setups, and almost always it was them trying to use Tailwind v4 the v3 way because some AI told them so.

comment 1y ago · link · parent

Why did you use something as heavy as SvelteKit for a website with a single page? This doesn't inspire confidence.

comment 1y ago · link · parent

The project appears to be located inside the repo of the website: https://github.com/BlueprintLabIO/prompt-injector/tree/main/...

comment 2y ago · link · parent

JavaScript's behaviour in this case is consistent if we accept that JavaScript would always rather compute the next-best gibberish than throw an error.

While `1 / 0` is not a valid operation, it can be interpreted using limits. If `x` approaches 0, then `1 / x` will approach `Infinity`, hence JavaScript's result of this operation.

But with `0 / 0`, there is no unambiguous interpretation, so JavaScript defaults to `NaN` as its indicator for when a number is expected, but not received in valid form.

I'm not defending this behaviour of the language, just pointing out that there aren't "two different ways" of wrong behaviour at display here.

5.

/Dev: Vanguard X LoL – League of Legends(leagueoflegends.com ↗)

2 points · by HKayn · 2y ago · discuss