3 ms·
even if it can be decided on a test, there is the point of "it works, but the code is shit". For instance, I'm doing a website with some e-commerce. Upon execut
by youknownothing 7mo ago
even if it can be decided on a test, there is the point of "it works, but the code is shit". For instance, I'm doing a website with some e-commerce. Upon executing a sale, I connect to the accounting software to create an invoice, and then send a confirmation email to the customer attaching the invoice. Claude Code decided to put all the functionality to connect to the accounting software inside the `sendConfirmationEmail` function. The code was placed in the right order so it "worked", but hiding invoice creation inside a function named after sending confirmation email is, IMO, bad code.
Some people might say that, with AI, having well structured code no longer matters because no human is expected to read it any more, but I don't think we're there yet.