by Cu3PO42 · 1y ago · 0 comments
It wrote around 5000 LOC including tests and they... worked. It didn't look as nice as I would have liked, but I wasn't able to break it. However, 5000 lines was way too much code for such a simple task, the solution was over-engineered along every possible axis. I was able to (manually) get it down to ~800LOC without losing any important functionality.
This is funny. Why would you a) care how many LOC it generated and b) bother injecting tedious, manual process into something otherwise fully automated?
Also because it was an experiment. I wanted to see how it would do and how reasonable the code it wrote was.
Another reason to favour shorter code.