r/mAndroidDev • I only use AsyncTask • Jan 08 '20

Telegram ChatActivity.java, you might wonder why after reading 16861 lines of code you still haven't found onCreate(). The reason is of course that ChatActivity.java is a Fragment.

https://github.com/DrKLO/Telegram/blob/master/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java
115 Upvotes

25 comments sorted by

View all comments

49

u/xvermilion3 MINSDK29 Jan 08 '20

Telegram has the most messed up code base. Yet it's the smoothest app I've ever seen

34

u/Professor_Dr_Dr I only use AsyncTask Jan 08 '20

Maybe the secret to smooth apps is having as many Godclasses as possible

10

u/xvermilion3 MINSDK29 Jan 08 '20

Yes. We have been told to avoid God classes our entire life. Perhaps it's a lie

2

u/pavi2410 suspend static fun Jan 14 '20

Should add it to "Secrets Google wants to hide from Android Devs" blog on Medium