Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

iOS file structure and organization

429 views

Published on

How we organize our file structures in iOS for GRUBHUB.

Published in: Engineering
  • Be the first to comment

iOS file structure and organization

  1. 1. iOS App File Structure and Organization Jenny Chang Ho iOS Engineer November 22nd, 2016 01
  2. 2. 02 My Journey on becoming an iOS engineer
  3. 3. 03
  4. 4. 04 When I joined GRUBHUB... – Code base looked daunting – Code reuse was not obvious – It was not obvious where to look to update / create new files – Searching for files required that I knew what I was looking for – Xcode group did not necessarily match the file system directory
  5. 5. 05 Why is file organization important? – Majority of development time is spent searching ○ Command+Shift+O ○ You need to know part of the filename to find anything, facilitated with prefix specific to our project – Easily identify resources for code reuse – Features or components were not always obvious – Takes time for new developers to ramp up
  6. 6. 1 1 1. images 2. Common 3. Views / Utils 4. Models 5. API 6. UI / Frameworks 2 2 3 5 4 6
  7. 7. 07 Two Proposed File Structure Approaches – From architecture perspective ● API, Commands, Models, Views, View Controllers, Third Parties, Storyboards – From application perspective ● Web services (API, Command), UI (Features/Components/Models/Storyboards), Third Parties
  8. 8. 08 Architectural Approach – Models – Networking – Application – Libraries
  9. 9. 09 Application / UI Approach – Features – Components – .xib, views – view controllers, storyboards
  10. 10. 02
  11. 11. We are hiring iOS and Android engineers! Send resumes to: jchangho@grubhub.com @tiptopgs | mobilepickup.tumblr.com 11

×