Indicative of the quality of the codebase
These two adjacent lines, in the codebase I recently inherited, are a typical example of the unnecessary code included throughout.
ParentCell* cell = (ParentCell*)[self.tableView cellForRowAtIndexPath:indexPath];
if ([cell isKindOfClass:[ParentCell class]]) { ... }
The authors also seem to have understood that you can create class inheritance hierarchies through subclassing, but then not actually making use of the polymorphism, with unique but very similar methods per subclass. It's infuriating.
I work alone on this, so I wanted to rant to an audience that might appreciate it.
Posted Jul 31, 2015, 11:45 PM UTC
113