I previously had to complete an Android app that was started by another guy. Now I'm debugging an iPhone version of the same app, written earlier by a totally different dude. Anyway, despite their differences, these two programs have something in common.
Upon user command, the program must switch between several perspectives. The normal way to do this is to make a few superviews and put all the components associated with them inside. When you need to swich, you hide or remove the current superview and show or add another.
These einsteins hide and show EVERY SINGLE VIEW THAT IS ASSOCIATED WITH EVERY PERSPECTIVE whenever they need to switch. WHY?
Also, 3/4 of the code is in the main file (activity and app delegate, respectively). Makes the code barely comprehensible. And they complicate things further by storing data in an sqlite DB, even though there's no reason to store it at all.
I don't get it. If one man did this, I'd think he's an idiot But when two men do it, the third one starts to wonder if maybe he's the one who's wrong.
EDIT: I keep looking though the program... The sort of inefficient, inelegant coding I described above is even more pervasive than I thought. It's not here and there, it's throughout. There are noob mistakes, there are stupid mistakes, there are mistakes that make you wonder if the coder was on crack, but this is not them. I think this was done on purpose. I don't know why, but it was.
Upon user command, the program must switch between several perspectives. The normal way to do this is to make a few superviews and put all the components associated with them inside. When you need to swich, you hide or remove the current superview and show or add another.
These einsteins hide and show EVERY SINGLE VIEW THAT IS ASSOCIATED WITH EVERY PERSPECTIVE whenever they need to switch. WHY?
Also, 3/4 of the code is in the main file (activity and app delegate, respectively). Makes the code barely comprehensible. And they complicate things further by storing data in an sqlite DB, even though there's no reason to store it at all.
I don't get it. If one man did this, I'd think he's an idiot But when two men do it, the third one starts to wonder if maybe he's the one who's wrong.
EDIT: I keep looking though the program... The sort of inefficient, inelegant coding I described above is even more pervasive than I thought. It's not here and there, it's throughout. There are noob mistakes, there are stupid mistakes, there are mistakes that make you wonder if the coder was on crack, but this is not them. I think this was done on purpose. I don't know why, but it was.