3 ms·
Code is a medium for communication of concepts and solutions between humans first and for the machine second. Code generation input still requires a specificati
by nyberg 6y ago
Code is a medium for communication of concepts and solutions between humans first and for the machine second. Code generation input still requires a specification which is the code you feed into the inference engine even if it's of a higher abstraction than the generated output. In the end you're still stuck with code regardless and someone has to understand how it acomplishes what it does.
Now I can agree that having decent documentation or even literate programming [1][2] contribute in large to understanding but it's never a replacement for clean and maintainable code. It's the same as architecture where if you're sloppy with the designing a bridge it can (and often will) come crashing down resulting in high expenses and lives lost over something that could have been prevented had others been able to understand the design and question the practices. The same applies to code.
[1]: https://cs61.seas.harvard.edu/site/pdf/p384-bentley.pdf https://cs61.seas.harvard.edu/site/pdf/p384-bentley.pdf
[2]: https://jhidding.github.io/adhesion-code/ https://jhidding.github.io/adhesion-code/