Alef Castelo

BDD can make your code review 6x faster 🚀

I have a hypothesis: AI became the new high-level language, and code became the low-level one. If that holds, BDD can speed up code review.

Review is now the bottleneck

Writing code has become cheap and fast, so review is now the weak link in the chain: LLMs produce more code than we can review in the same time.

Since we are no longer the ones writing the code, we understand less of what it actually does. Less understanding means less confidence, and less confidence makes us hold the approval much longer.

So, to me, the right question is: why can't we review as fast as we produce?

AI is a new level of abstraction

To answer it, I need to share my view that AI created a new level of abstraction, exactly like frameworks did, or like high-level languages did over low-level ones.

The problem is that we write code in a much higher-level language and review it in a very low-level one. That still works only because we still know the "low level" of the AI age.

AI became the new high-level language, and code the low-level one: understanding the product and communicating it is now how we write software. This is so true that non-technical people are now creating tech products without knowing how to code.

Where BDD fits

This is where BDD shines, in my view. If you don't know what BDD is, here is my translation: a failed attempt to create a common language between product and engineering.

Every successful BDD case I know leaned toward engineering language in its feature files. The literature pushed us toward heavy collaboration with stakeholders, and that is why I believe BDD "failed". It failed as a shared language with product people, but it works very well as an executable specification of behavior, and that is exactly what review needs now. (I explain how I use it in How I write my BDD files.)

BDD feature files let us review at the same level we write: behavior, not implementation.

The numbers

Since Cursor launched, I've been using LLMs + BDD to code faster. I started on personal projects, and right after I introduced it to my team, we saw really interesting numbers in only 45 days:

  • Median time in review per MR dropped from 21.8h to 3.6h, 6x faster.
  • MRs open for more than 3 days were cut in half.
  • Small MRs (<50 lines) decreased, and large MRs (300+ lines) increased by 86%.

The most surprising part: MRs got bigger, and reviews still got 6x faster. More code, less review time. That only makes sense if reviewers stopped reading every line and started validating behavior.

What comes next

45 days in a single service is not proof, so we are now adopting BDD in more services to validate this hypothesis again.