Computer code was created as a way to represent logic we expressed with letters, words and numbers in real life. I don’t think writing code was by itself ever the goal.
However with decades of computer development, in hardware, languages, and platforms, we have reached a point where code purity, quality and maintainability are often the goals. We then go another level deeper and adopt practices that make life easier for developers instead of a improving the performance. Doesn’t that make you feel like we have lost the vision somewhere along the way?
If genAI continues to improve (hopefully faster), we might soon be able to get to the original goal of translating regular speak to computer speak. It doesn’t do a perfect job at this as of now, and when it does, it is often a hodge-podge of dependencies and coding styles copied from all the code repositories ingested as part of the training. As of today, this generated code inherits all our shortcomings, with some hallucinatory AI madness stirred in; definitely not ideal.
For such a goal to be attained, genAI requires dataset to be trained in that does not exist today. I think as an intermediary approach for AI generated code, we should really consider best practices followed in translation operations and not just the best practices followed in coding. This involves translating a block of text from language A to B, then independently translating the translation back to language A. If the final version does not align with the original in logic and meaning, there is an issue that needs to be worked through. Either the original translation was not accurate, or it has gaps that has led to misinterpretation or mistranslation in the second hop.
With tools like Claude Code and OpenClaw we could theoretically, have agents that can perform this operation if one needed to. The question is if AI service providers working on tooling for code generation will pick up this practice.
What do you think? Leave a Reply