https://shub.club
    loading
00:00:00
*
rss

Deleting code in the AI age

Bit of a shortie…

An important lesson in our current age of limited context windows and rot is your code should be cleaner than it was before.

Clean in this case means, delete all the dead code you have lying around. Seriously.

I know us developers already strive for clean code where we get rid of old functions and old UI elements in our personal projects. But at work it can be a bit more terse to get those things done.

If you want to save tokens and headache, just get rid of old flows as soon as possible, instead of letting them sit around. Your AI are just bunch of new teammates with limited context, and the more you tell them to fix things with a bunch of unnecessary code lying around, the more confused they’ll get.

You can even tell your AI to delete the code.