HNHacker News
TopNewBestAskShowJobs

WickyNilliams

1,327 karma · joined November 18, 2011

Full stack dev currently focused on the front-end.

http://wicky.nillia.ms/

contact: @WickyNilliams or wicky @ my domain

---

meet.hn/city/gb-Cardiff

Socials: - github.com/WickyNilliams - x.com/WickyNilliams

---

submissionscomments
WickyNilliams··on Replacing JavaScript with Just HTML
You need some JS to change an attribute as much as you need JS to change a property. What am I missing?

I hope the command attribute (https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/...) will eventually support this out of the box. In the meanwhile you can write a single custom --toggle command which is generic and works with any toggleable element

WickyNilliams··on [dead]
Of course I have no sway, politically or otherwise, but I would have happily given credit to Trump where it was due if it panned out.

But Israel does not seem to have abided by the ceasefire, and the larger peace plan now feels like it's going to be stitch up for the Palestinian people.

It is definitely tragic

WickyNilliams··on [dead]
Has there actually been a ceasefire in practice? People are still dying, guns are still being fired afaik. And the broader plan does not instill confidence with Tony Blair proposed as a technocratic leader of the area
WickyNilliams··on Rob Pike got spammed with an AI slop "act of kindness"
> For this specific thing, it doesn't really matter if it screwed up

These are specifically use cases where LLMs are a great choice. Where the stakes are low, and getting a hit is a win. For instance if you're brainstorming on some things, it doesn't matter if 99 suggestions are bad if 1 is great.

> the grepping and there it's doing some really basic tinkertoy stuff

The boon is you can offload this task and go do something else. You can start the investigation from your phone while you're out on a walk, and have the results ready when you get home.

I am far from an AI booster but there is a segment of tasks which fit into the above (and some other) criteria for which it can be very useful.

Maybe the grep commands etc look simple/basic when laid bare, but there's likely to be some flailing and thinking time behind each command when doing it manually.

WickyNilliams··on GraphQL: The enterprise honeymoon is over
Ha yes, see one of my other comments to another reply.

I never got to use it when I last worked with OpenAPI but it seemed like the antidote to the verbosity. Glad to hear someone had positive experience with it. I'll definitely try it next time I get the chance

WickyNilliams··on GraphQL: The enterprise honeymoon is over
Not necessarily, no. But at a certain point, I believe it does. Difficult to read, is difficult to edit, is difficult to work with.

A sibling comment to your reply expressed the same sentiment as me, and also mentioned typespec as a possible solution

WickyNilliams··on GraphQL: The enterprise honeymoon is over
I imagine you are very much in the minority. A simple hello world is like a screen full of yaml. The equivalent in graphql (or typespec which I always wanted to try as an authoring format for openapi https://typespec.io/) would be a few lines
WickyNilliams··on GraphQL: The enterprise honeymoon is over
Yes, Apollo not leading people down the correct path has given people a warped perception of what the benefits actually are. Colocation is such a massive improvement that's not really replicated anywhere else - just add your data requirements beside your component and the data "magically" (though not actually magic) gets requested and funnelled to the right place

Apollo essentially only had a single page mentioning this, and it wasn't easy to find, for _years_

WickyNilliams··on GraphQL: The enterprise honeymoon is over
Fwiw I tried every tool imaginable a few years ago including kubb, (which I think I contributed to while testing things out)

The only mature, correct, fast option with a fixed cost (since it mostly exists at the type level meaning it doesn't scale your bundle with your API) was openapi-ts. I am not affiliated other than a previous happy user, though I did make some PRs while using it https://openapi-ts.dev/

WickyNilliams··on GraphQL: The enterprise honeymoon is over
There is json-schema which is a sort of dialect/extension of OpenAPI which offers support for fetching relations (and relations of relations etc) and selecting a subset of fields in a single request https://json-schema.org/

I used this to get a fully type safe client and API, with minimal requests. But it was a lot of work to get right and is not as mainstream as OpenAPI itself. Gql is of course much simpler to get going

WickyNilliams··on GraphQL: The enterprise honeymoon is over
This is very much possible, and I have done it, and it works great once it's all wired up.

But OpenAPI is verbose to the point of absurdity. You can't feasibly write it by hand. So you can't do schema first development. You need an open API compatible lib for authoring your API, you need some tooling to generate the schema from the code, then you need another tool to generate types from the schema. Each step tends to implement the spec to varying degrees, creating gaps in types, or just outright failing.

Fwiw I tried many, many tools to generate the typescript from the schema. Most resulted in horrendous, bloated code. The official generators especially. Many others just choked on a complex schema, or used basic string concatenation to output the typescript leading to invalid code. Additionally the cost of the generated code scales with the schema size, which can mean shipping huge chunks of code to the client as your API evolves

The tool I will wholeheartedly recommend (and which I am unaffiliated beside making a few PRs) is openapi-ts. It is fast and correct, and you pay a fixed cost - there's a fetch wrapper for runtime and everything else exists at the type level.

I was kinda surprised how bad a lot of the tooling was considering how mature OpenAPI is. Perhaps it's advanced in the last year or so, when I stopped working on the project where I had to do this.

https://openapi-ts.dev/

WickyNilliams··on Advertising as a major source of human dissatisfaction (2019) [pdf]
I don't often watch live/terrestrial TV. On the odd occasion I do, I'm taken aback. I forget how frequent, jarring, and obtrusive they are. And in recent years, it seems that gambling ads are more and more common. It's really quite astonishing.

Many people have TV on in the background all the time. I wonder if there's correlation between a "ads aren't so bad" and TV watching.

WickyNilliams··on How elites could shape mass preferences as AI reduces persuasion costs
"someone with 100k dollars" is not exactly "the masses". It is a larger set, but it's just more rich/powerful people. Which I would not describe as the "masses".

I know what you mean, but that descriptor seems off

WickyNilliams··on The Nerd Reich – Silicon Valley Fascism and the War on Democracy
Fair. Though Thiel has outsized influence in that sphere, so it is significant even if not universal
WickyNilliams··on The Nerd Reich – Silicon Valley Fascism and the War on Democracy
Thanks that sounds fascinating. Will take a look
WickyNilliams··on The Nerd Reich – Silicon Valley Fascism and the War on Democracy
Are you familiar with Curtis Yarvin, and his influence with Thiel, JD Vance etc? He absolutely advocates for monarchy and dismantling democracy. He's also, if we are to judge his extensive writing, very much a racist

https://www.vanityfair.com/news/2022/04/inside-the-new-right...

WickyNilliams··on The Nerd Reich – Silicon Valley Fascism and the War on Democracy
I think it's lost on people outside of the UK - perhaps even to many inside the UK - just how strongly there is a class divide and a ruling elite. The old money is very old indeed
WickyNilliams··on Nearly all UK drivers say headlights are too bright
Yes, I misread. Apologies!
WickyNilliams··on Nearly all UK drivers say headlights are too bright
Or don't go above 50mph down country roads at night? If your eyes aren't as good as they used to be, all the more reason to drive slower
WickyNilliams··on I may have found a way to spot U.S. at-sea strikes before they're announced
> Or, to put it more cynically, he won't win his dream Nobel prize for killing innocent people senselessly

You say that, but the lady who just won it this year is practically cheering on the prospect of Trump taking military action _on her own country_ to overthrow their leader. So I don't think thirst for war or death precludes winning a peace prize, unfortunately

https://www.politico.com/news/2025/11/05/machado-praises-tru...

WickyNilliams··on Uncle Sam wants to scan your iris and collect your DNA, citizen or not
Likewise a British citizen in the UK. Funnily, while the UK government does not have my fingerprints, the US gov does! They were taken at the border when I visited. All 10 fingers
WickyNilliams··on How I use every Claude Code feature
Writing is a tool for thought I feel, and when you're outsourcing your thought, it detracts from whatever you intended to say. I guess if it was that heavily-edited such a telltale sign wouldn't have remained.

I use AI for code, but I never use it for any writing that is for human eyes.

WickyNilliams··on How I use every Claude Code feature
Nothing there implies I was forced. I read the whole thing. It was not disclosed that it was written (in part?) by AI. And That sentence I quoted was pretty far along.
WickyNilliams··on How I use every Claude Code feature
"Claude Code isn’t just an interactive CLI; it’s also a powerful SDK for building entirely new agents—..."

Em dash and "it's not X, it's Y" in one sentence. Tired of reading posts written by AI. Feels disrespectful to your readers

WickyNilliams··on Iceland reports the presence of mosquitoes as climate warms
Manbearpig I assume
WickyNilliams··on Why the push for Agentic when models can barely follow a simple instruction?
Yes, and I think a lot of people are addicted to gambling. The dizzying highs when you win cloud out the losses. Even when you're down overall.
WickyNilliams··on Tennessee man arrested, accused of threatening a shooting, after posting meme
Not an American so I don't have a horse in the race. Didnt Kirk also describe Biden as a "tyrant" and that he should be given the death penalty [0]. Calling for the (then sitting) president to be put to death seems pretty extreme to me.

[0] https://www.snopes.com/fact-check/charlie-kirk-biden-death-p...

WickyNilliams··on The <output> Tag
It's often the case that screen readers do not support the more exotic aspects of html (hell even some basics, unfortunately).

The browser may add a reference from one to the other in the accessibility tree, but whether a screenreader announces it is another matter. I'd be surprised if it's supported in any meaningful way here. Happy to be shown otherwise!

WickyNilliams··on The <output> Tag
Not a screen reader user but I have used them a lot in testing. I'd be surprised if it's meaningfully exposed to assistive tech. Not at the computer right now so I can't test.

That said, I imagine it's more useful to do the opposite, label the output itself e.g.

<label for="output">Total</label> <output id="output">£123.45</output>

That way it will be announced like "Total, £123.45" rather than a random number with no context

WickyNilliams··on DHH Is Worse Than I Thought
When he's discussing "native Brits" he is clearly, if indirectly, referring to white British people. He links to a Wikipedia page as citation for his statistic, and that statistic on Wikipedia is _explicitly_ about white people.

He says 1/3 of London is now native brits. Given this article he links to, how else might you interpret that? https://en.m.wikipedia.org/wiki/Ethnic_groups_in_London

← PreviousPage 4 of 19Next →