New ask Hacker News story: Ask HN: How do you write quality iOS codebases?
Ask HN: How do you write quality iOS codebases?
2 by gregkerzhner | 0 comments on Hacker News.
I have been doing both front end development and iOS development for 5 years. I have found that on the front end, its gotten pretty easy to write clean maintainable code. Tools like Redux lets you cleanly move businesses logic out of the view layer and React allows you to have an easily written declarative interface. iOS seems pretty far behind in code quality. Most iOS projects I have seen have thousands of lines long view controllers containing tons of logic, globals everywhere, 200 line functions, little to no unit testing, and no architecture. For those experienced iOS devs out there - do you have healthy iOS code bases you are proud of, and what do those look like from an architecture standpoint? I have personally tried to introduce different types of architectures like MVVM and even Redux, but this has always been rocky on iOS, both from a tech standpoint because you are working against the ecosystem, and from a human perspective because (and this is a huge generalization) a lot of iOS devs tend to have an old school mentality and don't see the issues I am pointing out as problems - thats just how things work on iOS. I would love to hear from someone that has experience cleaning up messy legacy iOS codebases, or examples of healthy iOS architectures that are open source.
2 by gregkerzhner | 0 comments on Hacker News.
I have been doing both front end development and iOS development for 5 years. I have found that on the front end, its gotten pretty easy to write clean maintainable code. Tools like Redux lets you cleanly move businesses logic out of the view layer and React allows you to have an easily written declarative interface. iOS seems pretty far behind in code quality. Most iOS projects I have seen have thousands of lines long view controllers containing tons of logic, globals everywhere, 200 line functions, little to no unit testing, and no architecture. For those experienced iOS devs out there - do you have healthy iOS code bases you are proud of, and what do those look like from an architecture standpoint? I have personally tried to introduce different types of architectures like MVVM and even Redux, but this has always been rocky on iOS, both from a tech standpoint because you are working against the ecosystem, and from a human perspective because (and this is a huge generalization) a lot of iOS devs tend to have an old school mentality and don't see the issues I am pointing out as problems - thats just how things work on iOS. I would love to hear from someone that has experience cleaning up messy legacy iOS codebases, or examples of healthy iOS architectures that are open source.
Comments
Post a Comment