An alternative is to write data abstractions (encapsulation, abstract data types, etc. LLM really avoid those).