Why LLMs Can't Make Your Code Simpler

Date
Type
Talk
Language
English
Length
35 minutes

About this talk

LLMs tend to increase the complexity of a codebase very fast, especially if left unchecked. If you’re fine with that creeping complexity, this talk may not be for you. But if you have tried to tame it, you’ll have noticed how hard it is. Why is that? Why can’t LLMs write simple code? Couldn’t frontier labs just train models to minimize total LoC, or cyclomatic complexity? In Programming as Theory Building (1985), Peter Naur argues that the real program is not the code but the understanding in your head. That is one of the key problems for LLMs: the information needed to simplify code was never in the code to begin with. As a working example, I’ll show how this mindset let us at Answer.AI cut our Stripe billing system down to ~300 lines of Python - and why this solution might also be good for you (or not!).

Video