The submitter of the below code, who chooses to remain Anonymous, recently started a job at a social media company as a software engineer. Seeing that they had never had anyone dedicated to their iOS product before, apparently they were quite excited.

Unfortunately for our submitter, the codebase is the stuff of nightmares - ternary operators stacked five deep on a single line, etc. There are no model objects, so they just pass around lots of dictionaries and strings thusly:

-(void)updateCellWithLiveStreamId:(long)liveStreamId entityKey:(NSString *)entityKey imageUrl:(NSString *)imageUrl title:(NSString *)title sponsor1ImageUrl:(NSString *)sponsor1ImageUrl sponsor1ArtistUserName:(NSString *)sponsor1ArtistUserName sponsor2ImageUrl:(NSString *)sponsor2ImageUrl sponsor2ArtistUserName:(NSString *)sponsor2ArtistUserName connectCount:(long)connectCount commentCount:(long)commentCount;

That's right - a 402 character long method name. A method so long that computing the hash of the name actually takes longer than executing the method itself.

[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!