| ▲ | danieka 8 hours ago | |||||||||||||||||||||||||||||||
I thought that the article would be about if we want AI to be effective, we should write good code. What I notice is that Claude stumbles more on code that is illogical, unclear or has bad variable names. For example if a variable is name "iteration_count" but actually contains a sum that will "fool" AI. So keeping the code tidy gives the AI clearer hints on what's going on which gives better results. But I guess that's equally true for humans. | ||||||||||||||||||||||||||||||||
| ▲ | asielen 2 hours ago | parent | next [-] | |||||||||||||||||||||||||||||||
Related it seems AI has been effective at forcing my team to care about documentation including good comments. Before when it was just humans reading these things, it felt like there was less motivation to keep things up to date. Now the idea that AI may be using that documentation as part of a knowledge base or in evaluating processes, seems to motivate people to actually spend time updating the internal docs (with some AI help of course). It is kind of backwards because it would have been great to do it before. But it was never prioritized. Now good internal documentation is seen as essential because it feeds the models. | ||||||||||||||||||||||||||||||||
| ▲ | sleepy_keita 8 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
Humans can work with these cases better though because they have access to better memory. Next time you see "iteration_count", you'll know that it actually has a sum, while a new AI session will have to re-discover it from scratch. I think this will only get better as time goes on, though. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
| ▲ | CharlieDigital 7 hours ago | parent | prev [-] | |||||||||||||||||||||||||||||||
What I find works really well: scaffold the method signature and write your intent in the comment for the inputs, outputs, and any mutations/business logic + instructions on approach. LLM has very high chance of on shotting this and doing it well. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||