I'm working on an app that allows users to create, delete, rename, and move folders. Initially, I wasn't using a database, but now I'm storing folders in one, which means I need to log every change like creation and renaming. My worry is that I might forget some pieces of code that need updates during this transition. How do experienced developers make sure they account for all necessary changes?
2 Answers
One effective approach is to use strong typing and implement comprehensive tests. Relying on automated tools can save you from having to remember every single detail about where changes need to be applied. Don’t trust AI for this though!
Using fulltext search tools like Cmd + Shift + F is super helpful. For example, even if a majority of the codebase uses a certain method, someone might sneak in a different approach that could be overlooked. Always search thoroughly related to the functionality and consider refactoring to encapsulate file handling in one class to avoid confusion.
Totally agree! It’s surprising how diversified implementation can complicate things later on. Keeping it centralized from the start really helps.