Better HN
topnewbestaskshowjobs
Log inSign up

scresswell

37 karma · joined Aug 18, 2014 (12y ago) · 33 submissions

Submissions

comment 2mo ago · link · parent

Yadda 3 makes it easier to write executable specifications in the natural language of the business. Here are the principles and practices I use to keep those specifications simple, expressive and useful, whether they're being read and written by humans or agents.

comment 3mo ago · link · parent

Announcing `drizzle-transact` and `drizzle-explain`: two small libraries that turn good intentions into good mechanisms.

comment 3mo ago · link · parent

Yadda 3.0.0 is out. The release modernises the JavaScript BDD library, but more interestingly, it was largely built by Claude Code and points to why executable specifications may become even more valuable in an agentic development world.

4.

Yadda 3.0.0: BDD in the Age of AI Agents(stephen-cresswell.com ↗)

66 points · by scresswell · 3mo ago · 28 comments

comment 9mo ago · link · parent

Further experience with Claude has strengthened my view that code quality matters more, not less, in the age of vibe coding. Left unguided, it amplifies duplication and weak abstractions; tightly constrained, it can be impressively precise. Generative AI is an amplifier. It accelerates coherence, and it accelerates mess.

6.

More Experiences of Vibe Coding(stephen-cresswell.com ↗)

1 points · by scresswell · 9mo ago · 1 comment

comment 10mo ago · link · parent

Yes, SKIP LOCKED is great. In practice you nearly always want LIMIT, which the article did not mention. Be careful if your selection spans multiple tables: only the relations you explicitly lock are protected (see SELECT … FOR UPDATE OF t1, t2). ORDER BY matters because it controls fairness and retry behaviour. Also watch ANALYZE: autoanalyze only runs once the dead to live tuple threshold is crossed, and on large or append heavy tables with lots of old rows this can lag, leading to poor plans and bad SKIP LOCKED performance. Finally, think about deletion and lifecycle: deleting on success, scheduled cleanup (consider pg_cron), or partitioning old data all help keep it efficient.

comment 10mo ago · link · parent

I genuinely like the framing of advisory versus authoritative AI, and I agree with the core observation that authority, when it is genuinely granted, is what unlocks step change improvements rather than marginal efficiency gains. In the environments where it is appropriate, allowing systems to act rather than merely suggest can dramatically accelerate development and reshape workflows in ways that advisory tools never will. In that sense, you are right: authority is the AI bottleneck.

My concern with your article is that, without clearer caveats, you imply that authority is the right answer everywhere. As you rightly note, AI systems make mistakes and they make them frequently. In many real world contexts, those mistakes are not cleanly reversible. You cannot roll back a data leak. You cannot always recover fully from data loss. You cannot always undo millions of pounds of lost or refunded revenue caused by subtle failures or downtime. You cannot always roll back the consequences of an exploited security vulnerability. And you certainly cannot reliably undo reputational damage once trust has been lost.

Even in cases where you can mostly recover from a failure, you cannot recover the organisational and human disruption it causes. A recent UK example is the case where thousands of drivers were wrongly fined for speeding due to a system error that persisted from 2021. Given the scale, some will have lost their licences, some may have lost their jobs, and many will have experienced long term impacts such as higher insurance premiums. Even if fines are refunded or records corrected later, the downstream consequences cannot simply be undone. While the failure in this example was caused by human error, the fact that some mistakes are unrecoverable is just as true for AI.

Part of the current polarisation in opinions about AI comes from a lack of explicit context. People talk past each other because they are optimising for different objectives in different environments, but argue as if they are discussing the same problem. An approach that is transformative in a low risk internal system can be reckless in a public, regulated, or security sensitive one.

Where I strongly agree with you is that authoritative AI can be extremely powerful in the right domains. Proofs of concept are an obvious example, where speed of learning matters more than correctness and the blast radius is intentionally small. Many internal or back office applications fall into the same category. However, for many public facing, safety critical, or highly regulated systems, authority is not simply a cultural or organisational choice. It is a hard constraint shaped by risk, liability, regulation, and irreversibility. In those contexts, using AI in a strictly advisory capacity may be a bottleneck, but it is also a deliberate and necessary control measure, at least for now.

9.

Why Are Experiences of Vibe Coding So Polarised?(stephen-cresswell.com ↗)

3 points · by scresswell · 10mo ago · discuss

comment 1y ago · link · parent

Seriously? Bun has over 500 open issues with the label "crash". https://github.com/oven-sh/bun/issues?q=is%3Aissue%20state%3...

The socket implementation is broken too https://github.com/oven-sh/bun/issues/5627

11.

NPM Search Is Broken(stephen-cresswell.com ↗)

1 points · by scresswell · 1y ago · discuss

12.

Prisma and the Naivety of Crowds(stephen-cresswell.com ↗)

1 points · by scresswell · 2y ago · discuss

comment 6y ago · link · parent

I've tried this approach twice with mixed success. In both cases I wanted to stub out the persistence tier of a Node.js application when test driving the API. I verified the real and fake implementations by running the same tests against them. The first application was quite small, and the process worked well, although it did feel somewhat onerous to implement the fake. However, the second application was more complex, calling for some PostgreSQL specific features which were difficult to implement in the fake. In the end I abandoned the approach for the second application, settling on slower, duplication heavy API tests which used the real persistence tier. I'd love to hear how others solve this problem without mocks, which I agree tend towards brittle, tightly coupled tests with a poorer signal to noise ratio.

comment 6y ago · link · parent

I was in a similar position. The following helped.

https://www.amazon.co.uk/Millionaire-Teacher-Wealth-Should-L...

https://canadiancouchpotato.com/

comment 7y ago · link · parent

Also dyslexic and also used to mirror write perfectly, but without knowing I was doing it. Was in the late 70s, prior to dyslexia being widely understood and my teachers had no idea what to do.

16.

So you want to write open source?(stephen-cresswell.net ↗)

2 points · by scresswell · 8y ago · discuss

17.

When Orange Isn't The New Black(stephen-cresswell.net ↗)

1 points · by scresswell · 9y ago · discuss

18.

10½ Factor Microservices(stephen-cresswell.net ↗)

3 points · by scresswell · 9y ago · discuss

comment 10y ago · link · parent

What a very strange article. TES were using docker in production in October 2014. It was certainly possible to run docker containers (docker run -d) in the background and to view them (docker ps) as early as October 2013 when we first evaluated it at the Daily Mail.

20.

DevOps – You're doing it wrong(guidesmiths.com ↗)

2 points · by scresswell · 10y ago · discuss

12