Skip to content

Blog

LLMs and Patterns in Code

Why are LLMs so good at generating code? It is because code tends to be structured and follows certain patterns. There are a lot of repeating patterns even within the code of a single system. For example, REST APIs follow a pattern. LLMs are able to learn these patterns and generate code matching these patterns.

But are patterns in your code a good thing?