HNHacker News
TopNewBestAskShowJobs

robertlagrant

13,916 karma · joined May 12, 2014

submissionscomments
robertlagrant··on The End of Programming
I spend more time writing tests than writing code. Saying "You don't need to write code any more, only think, design, and write 'verification'" is interesting of course, but compacts a smaller percentage of the total time to make a feature than listeners might think.

However my recent years have been in Python, which perhaps is high level enough to require a large amount of code writing. Maybe in C++ it's a bigger gain?

robertlagrant··on Woman stranded in Spain after UK's eVisa system mistakes her for twin sister
It's the second worst.
robertlagrant··on Wi-Fi 8 is the first wireless upgrade in years that isn't chasing speed
It's 2026 and I'm running more cat-6 in my home to all my static devices. My theory is using wires lowers wireless contention, leaving more WiFi for the mobile devices.
robertlagrant··on Turns are Better than Radians (2022)
Your short post in full:

> In another comment, I asked why people chose to use the symbol τ over just writing turn or "rev(olution)" (defined to be the constant ≈ 6.28318530718) given how unambiguous the latter is as a name for 2π. And why not just write sinrev() or sinturn(), and leave the symbols sin() and rev (defined to be ≈ 6.28318530718) alone?

You were asking why they used the symbol τ rather than the words "rev" or "turn". You didn't give a clue that you knew any of the rest, including what the symbol meant.

robertlagrant··on Turns are Better than Radians (2022)
I think it's Tau[0].

[0] https://en.wikipedia.org/wiki/Tau_(mathematics)

robertlagrant··on A 25-year-old video patent just expired, ending a legal headache for Linux
It was amazing being able to fit a full length movie on a CD-ROM though.
robertlagrant··on France to ban unsolicited telemarketing calls
> anyone can use false information pretending to be a telemarketer

I suppose many people would wonder what the difference is between a legitimate caller you don't want and a fake one.

robertlagrant··on “Code was never the hard part” is an insult to all programmers
This is a bit of a false dichotomy. The thing that isn't code (at least in some people's minds) isn't "requirements analysis". It's architecture, data modeling, deployment, inter/intra-team communication, triaging, prioritising, code reviewing, testing. It's all of software development, and not simply writing lines of code (which in itself can be hard of course.)
robertlagrant··on Stateless MCP has recaptured my interest
As a veteran of JSF - it is similar, but done better, I think. It's only the frontend. Those technologies were more heavyweight, where each component had a lifecycle it went though on each render, and you needed the backend and frontend to support them. HTMX just takes whatever HTML your backend cares to generate, using whatever method it likes, and does the needful with it.
robertlagrant··on Removing React.js from the codebase and adapting Htmx for UI interactivity (2023)
Fair point, yes.
robertlagrant··on Removing React.js from the codebase and adapting Htmx for UI interactivity (2023)
> That's the definition, I didn't made it up.

Your prior claim was that they only solve one problem, not about a definition. They solve several problems:

- less data can move over the wire compared to sending a full page every time (this is in your definition, and is definitely not always true, as sometimes REST APIs can return far more data than what's needed to render the screen)

- the same REST/data API can serve your website and other consumers, e.g. any native mobile apps or third party API consumers

- you can write tests for your frontend, e.g. you can unit test components' behaviour and style in isolation

- the frontend can also work, or at least respond usefully to the user, when the network or the backend are not working

robertlagrant··on Show HN: NameThatUI – A quiz game to test your UI design knowledge
I could be wrong, but this looks to be designed by AI. It's quite confusing.
robertlagrant··on PGSimCity - How PostgreSQL Works
I keep wanting to build a Kubernetes visualiser. I know they exist, but the last time I looked they didn't look that great.
robertlagrant··on PGSimCity - How PostgreSQL Works
I would love this as an active visualisation of a live postgres. Imagine monitors with this stuff on, including replication from other postgresses, and whatever pgbouncer is doing on the front.
robertlagrant··on Spatial languages: Writing code in 2D
> We don’t really see 3-arity functions written in infix notation much.

Would a better example be Python's inline if else construction?

  x = 3 if thing else 4
robertlagrant··on Sony deletes more movies from the accounts of people who ‘bought’ them
Indeed. No one expects console manufacturers to take unlimited losses, but yes, the price at the end of it all is what will matter.
robertlagrant··on Buz – A fork of Bun using modern Zig, with sub-1s incremental builds
Yes - I was only talking about when a person removes some code from use, removing the code as well as the call to the code. I wasn't meaning the compiler at all (although it would be nice if the compiler could autodetect it, as you say, that could become tricky).
robertlagrant··on Buz – A fork of Bun using modern Zig, with sub-1s incremental builds
I don't understand - wouldn't this be observable by the person making the change? They used to call this function / use this class and now they don't any more? Even if it's inside a conditional compilation block.
robertlagrant··on I Tried Building a Real App with AI. It Took a Year
This is how I hope the world will continue to be, because then programming, which is one of the most enjoyable things ever, may remain a human task, assisted by AI and other tools.
robertlagrant··on Buz – A fork of Bun using modern Zig, with sub-1s incremental builds
That makes total sense (though it would be nice if it could do that detected, I suppose), but what makes less sense to me is the accumulation of unnecessary code (and presumably unit tests for that code) that isn't removed as soon as it's no longer needed.
robertlagrant··on Buz – A fork of Bun using modern Zig, with sub-1s incremental builds
> I’ve cut over 11,000 lines of completely dead code from Bun. I can’t think of another project whose codebase was so neglected as to reach 11K lines of dead code. I’ve also rewritten and modernized parts of the codebase, trying to rely more on Zig’s stdlib. In the process, countless bugs have also been fixed.

This is astonishing. Is anyone else surprised at this dead code figure? Is it a feature of large projects I've just never noticed?

robertlagrant··on It's getting harder to focus every day
My big discovery a few years ago was uninstalling apps, especially social media apps. I don't mind the platforms, but removing their ability to ping notifications up was massive. I watch some people just get their phone out to dismiss a load of notifications for 20-30 seconds. It's a chore now. I think limiting notifications is the best thing you can do, on your phone and your watch.
robertlagrant··on Passkeys were invented by engineers with zero understanding of consumer brain
> They're just text behind the scenes, so you can copy them if you really want to. KeepassX lets you do it, and got into a kerfuffle about it.[1]

Yes - the kerfuffle is broadly I think the fact that it negates the main advantage of passkeys: people can't be tricked into pasting them into a fake login screen.

> It's an impossible design. It's all just obfuscation, most of which is confusing to users.

I agree - they're explained in a really odd way, and I think that's because they're a technology with multiple interaction patterns, rather than a single thing like a password. E.g. your fingerprint on your Mac is implemented as a passkey, or clicking on a browser passkey is also a passkey, or using a password manager via a different UI is also a passkey, or touching a Yubikey is also a passkey. The underlying mechanism (passkey) probably has been surfaced more than it should've been.

robertlagrant··on It's getting harder to focus every day
Faux pas or not, it now happens much more than it used to.
robertlagrant··on Passkeys were invented by engineers with zero understanding of consumer brain
> The weird part is that password managers provide no way for you to copy and paste your passkeys.

The main feature of passkeys is that they can't be pasted into a website they shouldn't be pasted in to. That means you can't copy them, by design.

robertlagrant··on Airport Simulator
Yes, that would be good! I got to 86, and on a macbook trackpad, and those fake scores are making my RSI flare up.
robertlagrant··on Sony deletes more movies from the accounts of people who ‘bought’ them
True. I think there are two new issues this cycle:

1. They are testing what the market will bear. Ubisoft's silly "quadruple-A game" rhetoric and executives saying "people will have to get used to $100 games" is them testing the water. This should pull back, as most people don't want games that cost that much, unless they're really amazing. They aren't (currently). I imagine this same thinking is going on in hardware-land.

2. Current RAM/GFx card prices are driving up prices all round. It should still be true that for the same spec, console components should get cheaper over time, but I can imagine it's less of an effect at the moment with all the AI data centres hoovering up manufacturing capacity.

robertlagrant··on Sony deletes more movies from the accounts of people who ‘bought’ them
That's one thing. The other is price. Consoles can be sold at a loss, particularly early in their 10-year cycle, when early on the loss is high, but close to the end of the cycle the loss is minimal, and so they appear much cheaper.
robertlagrant··on OnePlus halts operations in USA and Europe
I've had a few OnePlus phones - currently a Nord 4 - and have always found them good value for money. Early OnePluses (I think I had a 2 or 3 originally) were incredible value. Also, very fast charging and almost stock Android are lovely features.

I don't understand why you don't like them, because you haven't said!

robertlagrant··on Stripe and Advent have made a joint offer to acquire PayPal – sources
> Any idea why they implemented it like that?

3D-Secure long predates apps, including in the UK. I had to work on a Government Gateway integration for local council payments in the mid 2000s that included 3D-Secure. I still see it today, although it normally now results in a ping to an app approval.

← PreviousPage 3 of 34Next →