r/iOSProgramming • • Aug 12 '20

Article Source Code Walkthrough of Telegram-iOS

Most Telegram client apps are open-sourced to prove its gene of security. They also started a new process to allow others to verify the iOS and Android source code is the same version that’s used on AppStore and Google Play. This series of articles is all about Telegram-iOS. The codebase shows its solutions to many practical engineering problems that other iOS engineers would encounter, such as reliable network, secure storage, reactive events, multimedia playback, interactive UX, complex list UI, customization/hacks to system controllers, etc.

289 Upvotes

10 comments sorted by

View all comments

1

u/stpdprgr Jan 16 '21

I have one question smilingly obvious question about Telegram's code base, but I haven't found the answer anywhere else.

Many files in the code base are just enormous, for instance ChatControllerImpl is 11k loc. Which makes it super hard to navigated around the project, especially taking into account how bad Xcode is with navigating with "go to definition" on big Swift code bases. Can someone explain why they didn't choose to break those massive files into smaller chunks?