{"id":12245,"date":"2015-09-11T15:36:54","date_gmt":"2015-09-11T19:36:54","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=12245"},"modified":"2015-09-11T15:36:54","modified_gmt":"2015-09-11T19:36:54","slug":"lyft-goes-swift","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2015\/09\/11\/lyft-goes-swift\/","title":{"rendered":"Lyft Goes Swift"},"content":{"rendered":"<p><a href=\"http:\/\/www.fastcompany.com\/3050266\/tech-forecast\/lyft-goes-swift-how-and-why-it-rewrote-its-app-from-scratch-in-apples-new-lang\">Harry McCracken<\/a>:<\/p>\n<blockquote cite=\"http:\/\/www.fastcompany.com\/3050266\/tech-forecast\/lyft-goes-swift-how-and-why-it-rewrote-its-app-from-scratch-in-apples-new-lang\"><p>A bit over a year after Apple&rsquo;s announcement, it was ready with an all-Swift version of Lyft. The company believes that it&rsquo;s the largest app to make the move, both in terms of lines of code and number of users.<\/p><p>[&#8230;]<\/p><p>By June, nearly every iOS developer was working in Swift; on average, it took two or three weeks for any given engineer to be up, running, and comfortable.<\/p><p>[&#8230;]<\/p><p>Swift code was also far more compact than Objective-C, which made it easier to understand and manage. Over the years, the original version of Lyft had ballooned to 75,000 lines of code. By the time the company was done recreating it in Swift, they had something that performed the same tasks in less than a third of that.<\/p><p>[&#8230;]<\/p><p>&ldquo;One of the challenges of doing something like this is, you don&rsquo;t really have a viable gradual rollout strategy for iOS,&rdquo; says Lambert. &ldquo;Android has a little bit of a leg up there, where you can do a 1%, a 5%, a 10% rollout. With iOS, basically, it&rsquo;s live or it&rsquo;s not, which puts a lot of the burden on the engineering team. Everyone who has auto-update turned on on their phone will have it within an hour.&rdquo;<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Harry McCracken: A bit over a year after Apple&rsquo;s announcement, it was ready with an all-Swift version of Lyft. The company believes that it&rsquo;s the largest app to make the move, both in terms of lines of code and number of users.[&#8230;]By June, nearly every iOS developer was working in Swift; on average, it took [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[248,31,26,1274,71,901],"class_list":["post-12245","post","type-post","status-publish","format-standard","hentry","category-technology","tag-android","tag-ios","tag-iosapp","tag-lyft","tag-programming","tag-swift-programming-language"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/12245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=12245"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/12245\/revisions"}],"predecessor-version":[{"id":12246,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/12245\/revisions\/12246"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=12245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=12245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=12245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}