I promise I start out with the best of intentions. Keeps all my code separated into reusable classes. Really paying attention to the MVC design pattern. However as I write code and make changes etc my once clean code becomes a mess. Sure it works and if its just me who's got to make sense of it then its not so bad. I have recently tried to covert an old OBJ-C project to Swift but its like a maze with calls darting all over the place from one class to the next. Its not pretty.
So has anyone any tips to share on how to keep code clean. Do you make a point of refactoring and is it just me being lazy and not thats causing my messy code?
I truly appreciate your comments