Agile Software Engineering artwork

Agile Software Engineering · Alessandro

Before You Add Macros, Learn BNF (Compiler Theory part 1)

Send us Fan Mail In this episode of The Agile Software Engineering Deep Dive, Alessandro Guida begins a two-part journey into compiler theory with a look at Backus-Naur Form, or BNF. For many software engineers who studied computer science in earlier decades, BNF belonged to the world of compilers, formal languages, syntax, parsing, YACC, and the famous Dragon Book. Today, many developers may never encounter it directly. But the need for it has not disappeared. Whenever we add formulas, macros, templates, filters, workflow conditions, configuration syntax, rule engines, or domain-specific languages to an application, we are doing language design. Often informally. Often accidentally. And that is where complexity starts to grow. This episode explains why syntax is not just documentation, why a small language is still a language, and why grammar matters when applications become programmable. It is not a call for every developer to become a compiler engineer. It is a reminder that some old computer science disciplines remain deeply relevant, especially when we give users the ability to express logic inside our systems. Part 1 focuses on BNF, syntax, and grammar. Part 2 will continue with compiler thinking more broadly: lex, YACC, compilers, interpreters, the Dragon Book, and why the discipline still matters in the age of modern development tools and AI-generated code. Support the show This Podcast is an audio version of the written Agile Software Engineering newsletter. If you want to go deeper, don't forget to subscribe the newsletter too.

Jul 22026
23 minlength
381transcript lines
Publishertranscript source

Transcript first 15 of 381 lines

0:30SPEAKER_00Welcome to the Agile Software Engineering Deep Dive, the podcast where we unpack the ideas shaping modern software engineering.

0:38SPEAKER_00My name is Alessandro Guida, and I've spent most of my career building and leading software engineering teams across several industries.

0:46SPEAKER_00And today I want to take another small historical detour.

0:50SPEAKER_00Not to talk about the newest AI model, not to talk about yet another framework, platform, cloud service, low-code tool, or miracle productivity booster that promises to remove all complexity from software development.

1:04SPEAKER_00Today I want to go back to something older, quieter, and perhaps almost forgotten.

1:10SPEAKER_00Bacchus NAR form.

1:12SPEAKER_00BNF.

1:14SPEAKER_00For many of us who studied computer science some decades ago, BNF belonged to the world of compilers, formal languages, syntax, parsing, and the famous Dragon Book.

1:26SPEAKER_00It was one of those things you learned when computer science still spent time teaching you how programming languages were defined, not only how they were used.

1:35SPEAKER_00At first sight, BNF may look like a historical curiosity, a notation from the age of compiler courses, parser generators, and serious-looking textbooks.

1:44SPEAKER_00But it is much more relevant than it may seem, because every time we add a formula language, a rule system, a template syntax, a query filter, a workflow condition, a configuration format, or a macro feature to an application, we are doing language design.

2:01SPEAKER_00Often without calling it that.

2:03SPEAKER_00And that is where trouble begins.

2:05SPEAKER_00A small language is still a language.

2:08SPEAKER_00It needs syntax, it needs grammar.

More Agile Software Engineering episodes →