3 ms·
I started at Facebook a month ago. Honestly, I was wondering the same thing as you: how does this app which seemingly is a couple of UITableViews contained in a
by pavlov 8y ago
I started at Facebook a month ago. Honestly, I was wondering the same thing as you: how does this app which seemingly is a couple of UITableViews contained in a UITabBarController end up taking so much space?
I've come to realize that Facebook is sort of a global operating system for communities. Your Windows installation includes all the pieces to connect to an Active Directory enterprise network, even if all you'll ever do is play games from Steam. Facebook is like that: there's so much stuff you'll never see when you only use it to follow a bunch of old college friends.
Should those things be downloaded as needed? Maybe. But it would have a negative impact on metrics: if "New Feature X for Latin American Teenagers" takes 30 seconds to start up, it's not going to take off. It's easier when everything is already there. Besides, the effort of rearchitecting a 491MB app would be crazy. Of course Facebook has major public initiatives like React Native which could eventually allow parts of the native apps to be dynamically downloaded more easily (I don't know anything about whether that's planned, just stating the obvious).
- adtac 8y agoI don't know if this qualifies, but aren't there strict restrictions on bypassing the AppStore for updates? Would downloadable binary blobs (code logic, not assets) like this be allowed by Apple?
- pavlov 8y agoI think (not 100% sure, I don’t work actively on iOS apps anymore) that Apple’s current policy is to allow code downloads if they are executed on an OS-provided runtime. That means JavaScriptCore in practice, and React Native passes that bar.
- DerekL 8y agoSince June 2017, an app can also run the downloaded code on its own interpreter, and it can be any language, not just JavaScript.
- chris37879 8y agoOnly if the app allows the user to view the code, if I remember correctly. It was to encourage programming / teaching apps on the ipad and the like.
- wlesieutre 8y agoOnly for apps that let the user see/write the code. You can't download code that changes the app's functionality. 2.5.2 Apps should be self-contained in their bundles, and may not read or write data outside the designated container area, nor may they download, install, or execute code which introduces or changes features or functionality of the app, including other apps. Educational apps designed to teach, develop, or allow students to test executable code may, in limited circumstances, download code provided that such code is not used for other purposes. Such apps must make the source code provided by the Application completely viewable and editable by the user. https://developer.apple.com/app-store/review/guidelines/ https://developer.apple.com/app-store/review/guidelines/
- mr_toad 8y agoReact native apps are written in JavaScript & HTML, but they are compiled to native code. They have access to APIs that a browser wouldn’t, and can even link to native libraries.
- saagarjha 8y ago> this app which seemingly is a couple of UITableViews contained in a UITabBarController Is it even that? The Facebook app’s UI is sufficiently different than the standard system controls that it seems to me that they might be completely custom.
- gammateam 8y agoso you explained 4 megabytes, now explain the other 487
- CodeWriter23 8y agoAre you saying after a month there, you’re sure it’s not just a bunch of unused legacy code that engineers are smart enough not to delete because they’re not really sure what it does and the original authors have cashed out and are kickin’ it counting their money? Especially all that Objective C they’ve been madly trying to pave over with Swift?
- rootsudo 8y agoWell, there is also facebook lite.
- zepearl 8y agoCome on - 491Ms are 514'850'816 bytes => if you distantiate yourself from the SW and all its potential layers (and keep only the endresult in mind) then you have to admit that that "mass" is reaaaaaaaally huge. Pure logic must be max some KB/MBs, but the rest has to be garbage or UI-stuff, no? If not, then everybody would have to publish a 500MB-website, or?
- muthdra 8y agoThat excuses like 256MB, tops.
- kup0 8y agoWhat's curious to me, in the light of your explanation, is why the app size didn't slowly build to 500MB over time, but jumped from 200MB to 500MB within the span of weeks/months. What could have added 300MB to the total so quickly?