I'll give you an example of something that I moved to LLM code generation.
I have used Excel for probably more than two decades to generate certain types of code structures that are simply tedious to both write by hand and also maintain. One such example are lookup table definitions for state machines. Using Excel for this, once setup, makes it fast and infinitely more maintainable.
Today, I can do this with LLM's in a heartbeat. The code is good and it is easy to maintain.
Over the years I have written custom code generation tools for the same reason. Sticking with the state machine example, if you have 100 states and each state requires entry, during and exit handler functions, well, you have to take that lookup table and write 300 functions. In a language like C this means both the declaration and implementation skeleton. LLMs are good for this as well.
Like I said, it's a tool in the toolbox. It can be used a million different ways.