HN user

JuanPosadas

93 karma
Posts1
Comments133
View on HN

I feel like if there was some way to backport whatever useful things are in windows 11 (and/or windows 8/10/11+ exclusive games somehow detect their expected OS via polyfills) it would be something I might actually pay for.

Or at least someone should upload a no-BS win11 ISO somewhere.

enums flawed

I like Typescript enums generally, my only complaint is that they are kept in the final build as big objects, especially in the scenario where you don't enumerate them. I use a replace function with terser to replace them with inlined constants to make my fine build smaller.

Not if AI steals your job, then your backup job, then everyone's plan C has 1000x more applicants than openings, then rent doubles again, you can't afford art supplies, but you can watch YouTube videos of other people doing art (with ads) and ChatGPT can tell anything you want about art supplies you'll never be able to afford again.

Svelte 5: Runes 3 years ago

I have a sapper (pre-sveltekit) project from 2019 that doesn't build. I needed to make a tiny update and neither my current computer nor my previously configured netlify autodeploy can produce a build that works. I have no idea, my first guess was that one of the sapper people didn't pin the version of an important dependency, but the project was simple enough that I just wrote a new one from scratch.

Unity's Trap 3 years ago

Extremely valid question. Most devs should not attempt making their own engine. But 2 caveats:

- learning is also fun

- Most engines (by force or by available tutorials and docs) railroad the end user into some specific genres (in my experience: side scroller, FPS). If you wander too far away and understand the risk/complexity, it might be worth considering.

I'm probably on the mild side of abusing it, I've never seen another developer on my team use it, but I also include self-describing variables for the values. If the reducer function itself is non-trivial, I've give it a name so the final product may look like:

    const idNameMap = itemList.reduce(toIdNameMap)
It should be intuitive that itemList is a list of objects familiar to the context of the code, and the result will be like:
    [{"id1":"Billy"}, etc.

IANAL. In US contract law, a contract that includes a clause allowing one party to unilaterally change the terms at any time may still be enforceable, but there are limitations. Such clauses are often subject to scrutiny and may be challenged if they are deemed unfair, unconscionable, or against public policy. Courts may consider factors like the balance of power between the parties, the clarity of the clause, and whether there was mutual assent to the changes.

I'm not familiar with the specifics of Unity's usual contracts, but this is the kind of thing that a court might not take Unity's side on.

FWIW I wrote a program that used webhooks and RSS feeds and needed to prefix both with their direction, I ended up choosing inbound/outbound.