We saw how AI changed the developer world. Everybody’s using ChatGPT or Claude for coding, including me. But,
The first thing some people do when reading a task is to ask: "How to do X in React, Rust, Python, etc.?"
Then, they copy it. NO SECOND THOUGHT. This virus of no-brain coding starts from here.
I'm so frustrated because of ChatGPT told you (unconsciously) to do:
Recreate an axios instance, even though the whole application already has a wrapper with extensive logic.
Use a random
fetch
call out of nowhere.Recreate the whole
useDebounce
hook, even though someone literally imported it from lodash right above.Recreate a function with the same name, doing the same thing?!
It’s like prompts and generated code are too fast, so they don't even bother to read the codebase. They don't care about systematic thinking or how things fit into the general case.
So, can anyone using these tools please:
Search the codebase for similar functions.
Think for a second before ask ChatGPT.
Consider how other people will reuse your functions.
Make it more generic.
Write code that makes you look like an architect, not an intern.
Otherwise, congrats. You've mastered the fine art of copy-paste engineering.
P/s: Some other blogs you should read