Here’s your text, edited for accuracy, clarity, and style: We set up a showdown between a human and AI to see who reviews code better. In our last stream, we built a basic to-do app then had three AIs, Gemini, Codex, and Claude, each code their own version. I liked Claude’s approach the best because it felt the most solid and user-friendly, so we picked its code for the review.
Today, both the AI and I will review Claude’s code. Right away, I noticed Claude used two classes. For a simple to-do app, you rarely need classes, using a module and some functions is usually enough.
Still, the code was structured and complete. Claude also used advanced Python features like class methods for deserialization. That’s clever, but maybe not needed; you can just use dictionaries and lists directly in Python for something this straightforward.
There’s also a big search method to find a to-do by ID, which could have been more efficient by using a dictionary with IDs as keys, instead of searching a list every time. The UI part, where users enter commands in the terminal, is friendly and easy to use, though it could handle user input better, like by letting users type full words, not just numbers. When I compared my review to what Claude AI wrote about its own code, we mostly agreed.
We both liked the use of the shebang line and noticed good imports. We also agreed the classes were probably overkill here and that code like this is easier to write and read using simple functions and data structures. The AI came up with a few technical notes on safe saving and ID handling, but the basics matched my own thoughts.
Later, someone in chat pointed out a Python tool called Click, which makes command line apps nicer. We tried rewriting the app using Click, and it made the user experience even better. Claude was much faster at reviewing code, but we both ended up seeing the same strengths and weaknesses in this little app.
Sometimes AI needs more structure to “think,” where a human might work more freeform, but for small apps like this, keeping it simple really is best.
Информация по комментариям в разработке