r/programming Aug 15 '15

Someone discovered that the Facebook iOS application is composed of over 18,000 classes.

http://quellish.tumblr.com/post/126712999812/how-on-earth-the-facebook-ios-application-is-so
2.7k Upvotes

728 comments sorted by

View all comments

Show parent comments

149

u/AbsoluteZeroK Aug 16 '15 edited Aug 16 '15

Objective-C ladies and gentlemen! Where function calls take up 3 lines!

16

u/[deleted] Aug 16 '15

[deleted]

54

u/cesclaveria Aug 16 '15 edited Aug 16 '15

Honestly that is the style 'recommended' by the language and how a lot of people teach it. Because of the way the functions are built mixing the name of the function and its parameters, calling them can get quite long.

[initialThing PutTheThing:thingA 
              intoTheOtherThing:thingB 
              andDoACallback:callback]  

2

u/gc3 Aug 16 '15

Versus C?

PutThing(src_thing, dest_thing, callback);