Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

erdinc27

macrumors regular
Original poster
Jul 20, 2011
168
1
Hi all, I started to work in a very big project. The project started 9 years ago. My problem is that there is no any pattern in the project. There are copy-paste code blocks in many files. Now I want to take this spaghetti code into MVVM or at least MVC but meanwhile I need to implement new features also. What would you suggest to manage this?
 
You just have to do it bit by bit. One screen at a time. Once you redo a few screens you'll have a better idea of how to go about it. I assume it's objective-c. It would be best if you could convert to swift. I haven't converted any projects to swift. There's a converter out there that will do some of the work. You might want to start any new screens in swift. I can't say whether it would be better to refactor all the code in objective-c and then convert to swift or the other way around.

There's a lot of bad code out there.

Good luck.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.