DEV Community

Ricardo Saumeth
Ricardo Saumeth

Posted on

โญ ๐—ฃ๐—”๐—ฅ๐—ง ๐Ÿฐ โ€” ๐—ช๐—ต๐—ฒ๐—ป ๐—”๐—œ ๐— ๐—ฎ๐—ธ๐—ฒ๐˜€ ๐—ง๐—ต๐—ถ๐—ป๐—ด๐˜€ ๐—ช๐—ผ๐—ฟ๐˜€๐—ฒ (๐—ฎ๐—ป๐—ฑ ๐—›๐—ผ๐˜„ ๐—ฆ๐—ฒ๐—ป๐—ถ๐—ผ๐—ฟ ๐—˜๐—ป๐—ด๐—ถ๐—ป๐—ฒ๐—ฒ๐—ฟ๐˜€ ๐—ฅ๐—ฒ๐—ฐ๐—ผ๐˜ƒ๐—ฒ๐—ฟ)


![ ](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2ir87zxoj76lmeveerpj.png)

This is the part nobody talks about.

AI doesnโ€™t just speed you up.
Sometimes, it quietly makes things worse.

๐Ÿญ. ๐—œ๐˜ ๐—ด๐—ฒ๐—ป๐—ฒ๐—ฟ๐—ฎ๐˜๐—ฒ๐˜€ ๐—ฏ๐—ฎ๐—ฑ ๐—ผ๐—ฟ ๐—ผ๐˜ƒ๐—ฒ๐—ฟโ€‘๐—ฒ๐—ป๐—ด๐—ถ๐—ป๐—ฒ๐—ฒ๐—ฟ๐—ฒ๐—ฑ ๐—ฐ๐—ผ๐—ฑ๐—ฒ
Sometimes the output:
โ€ข doesnโ€™t fit your architecture
โ€ข uses patterns youโ€™d never ship
โ€ข relies on nonโ€‘existent APIs
โ€ข is harder to maintain than writing it yourself

What I do:
Treat it as a draft. 
Keep the ideas - rewrite the implementation.

๐Ÿฎ. ๐—œ๐˜ ๐—ฟ๐—ฒ๐—ณ๐—ฎ๐—ฐ๐˜๐—ผ๐—ฟ๐˜€ ๐—น๐—ฎ๐—ฟ๐—ด๐—ฒ ๐—ณ๐—ฒ๐—ฎ๐˜๐˜‚๐—ฟ๐—ฒ๐˜€ ๐—ฝ๐—ผ๐—ผ๐—ฟ๐—น๐˜†
Big refactors are where AI struggles most:
โ€ข loses context
โ€ข breaks types
โ€ข introduces subtle bugs
โ€ข โ€œalmost worksโ€

What I do:
Break the refactor into small steps:
โ€ข โ€œExtract this logic into a helper.โ€
โ€ข โ€œRename this type and update all references.โ€ 
โ€ข โ€œSplit this reducer into two smaller ones.โ€ 

AI is great at small, wellโ€‘framed changes โ€” not giant rewrites.

๐Ÿฏ. ๐—œ๐˜ ๐—ณ๐—ผ๐—ฟ๐—ฐ๐—ฒ๐˜€ ๐˜†๐—ผ๐˜‚ ๐˜๐—ผ ๐˜€๐˜๐˜‚๐—ฑ๐˜† ๐˜๐—ต๐—ฒ ๐—ฐ๐—ผ๐—ฑ๐—ฒ ๐—ฎ๐—ป๐˜†๐˜„๐—ฎ๐˜†
Even when AI writes code, I still have to:
๐ซ๐ž๐š๐ โ†’ ๐ฎ๐ง๐๐ž๐ซ๐ฌ๐ญ๐š๐ง๐ โ†’ ๐ฏ๐š๐ฅ๐ข๐๐š๐ญ๐ž โ†’ ๐ญ๐ž๐ฌ๐ญ โ†’ ๐ข๐ง๐ญ๐ž๐ ๐ซ๐š๐ญ๐ž.

What I do:
Ask AI to explain its own code:
โ€ข โ€œExplain this reducer step by step.โ€
โ€ข โ€œWhat edge cases does this miss?โ€
โ€ข โ€œHow would this behave after 8 hours?โ€

If it canโ€™t explain it clearly, I donโ€™t trust it.

๐Ÿฐ. ๐—œ๐˜ ๐—ด๐—ฒ๐˜๐˜€ ๐˜€๐˜๐˜‚๐—ฐ๐—ธ ๐—ถ๐—ป ๐—น๐—ผ๐—ผ๐—ฝ๐˜€
Sometimes it keeps:
- repeating the same pattern
- ignoring constraints
- โ€œfixingโ€ things by breaking others

What I do:
โ€ข reset context
โ€ข paste the exact file
โ€ข state constraints
โ€ข show the failing test

The tighter the frame, the better the output.

AI is powerful โ€” but itโ€™s not a senior engineer.
It doesnโ€™t own architecture, tradeโ€‘offs, or longโ€‘term maintenance.

Thatโ€™s still on us.

๐—ช๐—ฟ๐—ถ๐˜๐˜๐—ฒ๐—ป ๐—ฏ๐˜† ๐—ฅ๐—ถ๐—ฐ๐—ฎ๐—ฟ๐—ฑ๐—ผ ๐—ฆ๐—ฎ๐˜‚๐—บ๐—ฒ๐˜๐—ต 
๐—ฆ๐—ฒ๐—ป๐—ถ๐—ผ๐—ฟ ๐—™๐—ฟ๐—ผ๐—ป๐˜โ€‘๐—˜๐—ป๐—ฑ ๐—˜๐—ป๐—ด๐—ถ๐—ป๐—ฒ๐—ฒ๐—ฟ | ๐—ฅ๐—ฒ๐—ฎ๐—นโ€‘๐—ง๐—ถ๐—บ๐—ฒ ๐—จ๐—œ ๐—ฆ๐—ฝ๐—ฒ๐—ฐ๐—ถ๐—ฎ๐—น๐—ถ๐˜€๐˜
Enter fullscreen mode Exit fullscreen mode

Top comments (0)