<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Abhijeet Kumar on Medium]]></title>
        <description><![CDATA[Stories by Abhijeet Kumar on Medium]]></description>
        <link>https://medium.com/@koomarr?source=rss-523d49910838------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Aw8z__VK-vxTXL95.jpeg</url>
            <title>Stories by Abhijeet Kumar on Medium</title>
            <link>https://medium.com/@koomarr?source=rss-523d49910838------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 04:07:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@koomarr/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Swift Packages in iOS App]]></title>
            <link>https://engblog.nextdoor.com/swift-packages-in-ios-app-fc12ee030f15?source=rss-523d49910838------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc12ee030f15</guid>
            <category><![CDATA[nextdoor]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Abhijeet Kumar]]></dc:creator>
            <pubDate>Fri, 27 Apr 2018 17:32:19 GMT</pubDate>
            <atom:updated>2018-04-27T17:32:19.974Z</atom:updated>
            <content:encoded><![CDATA[<p>Our <a href="https://itunes.apple.com/us/app/nextdoor/id640360962?mt=8">app</a> has been around since summer of 2013 (codebase since late 2012). It was 100% Objective-C and our dependency manager was Cocoapods. We adopted Swift late 2014 and since then, we’ve continued to adopt Swift as a preferred programming language for iOS. Barring third party dependencies managed by Cocoapods, our codebase has pretty much been a monolith. While having a monolithic codebase does have <a href="https://cacm.acm.org/magazines/2016/7/204032-why-google-stores-billions-of-lines-of-code-in-a-single-repository/fulltext">few advantages</a>, it creates a few practical challenges. Entire codebase is compiled even when you <em>just </em>change networking code. You end up running hundreds of unrelated tests locally and in CI, which doesn’t make for a fast developer iteration cycle. That led us down the path of breaking down our monolith into <em>Frameworks</em> and more recently into <em>Swift Packages</em> managed by <em>Carthage</em>.</p><h3>Frameworks</h3><p>In 2015, we broke our monolith application into separate frameworks. This allowed us to separate concerns and speed up the developer iteration cycle. Just like our application target, <em>Frameworks</em> had a mix of Swift and Obj-C. These frameworks sat next to our third party dependencies managed by Cocoapods. However, these frameworks were in the same repository and shared the same Xcode Workspace file. While it did help to be able to build an individual framework and test your changes, we were still committing to the same repository and riding the same CI pipeline.</p><h3>Carthage</h3><p>We’ve used <a href="https://github.com/Carthage/Carthage">Cocoapods</a> since we first released our application in 2013. Cocoapods makes adding a dependency in Xcode Projects simple. However, third party dependencies are built inline with your application’s source code that Xcode has to know about and manage. Cocoapods is centralized in nature and <a href="https://medium.com/@shahabejaz/create-and-distribute-private-libraries-with-cocoapods-5b6507b57a03">though possible</a>, it is a tad difficult to maintain private dependencies.</p><p>Above challenges led us down the path of trying <a href="https://github.com/Carthage/Carthage">Carthage</a> as our dependency manager. As soon as we tried it, we made two quick observations. First, Carthage doesn’t fight Xcode Project files and settings, it works with it. Second of all, it’s fast. It has built-in support for caching. Incremental builds can skip the <em>build</em> part for dependencies, they just need to <em>link</em> with dependencies.</p><h3>Swift Packages</h3><p>The advent of <a href="https://github.com/apple/swift-package-manager/">Swift Package Manager</a> (SPM) had always interested us. Carthage allowed us to start splitting our app’s infrastructure code into “Swift Packages” in a fairly straightforward manner. Some Swift Packages are private repos, some are <a href="https://github.com/search?q=topic%3Aswift+org%3ANextdoor&amp;type=Repositories">public</a>. These repositories have their own CI pipelines and some even run on Linux. I strongly recommend you to consider Swift Packages as a strategy to break down the monolith.</p><h4>Putting it all together</h4><p>Carthage relies on <a href="https://developer.apple.com/library/content/technotes/tn2339/_index.html">xcodebuild</a> and needs the Xcode Project file. After downloading all the Carthage dependencies, we can now go into each SPMs and generate respective Xcode Project files (s<em>ee image and appendix below</em>). That’s right, we do not check-in Xcode Project files into SPM repositories. Once Xcode Project files are built, Carthage can now build Frameworks for our app to <a href="https://github.com/Carthage/Carthage">link with</a>.</p><p><em>Carthage will also seamlessly work with SPMs that have another implicit SPM dependency.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*ajJBSsDjMJosFX-iRXnjhQ.png" /><figcaption>Step by step representation on how Swift Packages are used.</figcaption></figure><p>That’s all I have for now. I have included a few code snippets and screenshots that can come in handy in the Appendix below. Happy to answer questions should you have any.</p><p>If challenges in mobile engineering interest you, get in touch — <a href="https://nextdoor.com/jobs/">we’re hiring</a>!</p><p>Authored by <a href="https://medium.com/u/523d49910838">Abhijeet Kumar</a></p><p><strong>Appendix</strong></p><p>Custom steps for SPM post dependency downloads</p><pre>app=$(git rev-parse --show-toplevel)</pre><pre># Update the deps (skip builds since SPMs aren&#39;t ready)</pre><pre>(cd $app &amp;&amp; carthage update --no-build --cache-builds)</pre><pre># Pre-requisites for swift packages</pre><pre># Generate Xcode Project for Carthage</pre><pre>(cd $app/Carthage/Checkouts/corridor &amp;&amp; swift package generate-xcodeproj —xcconfig-overrides xcode.config)</pre><pre># Set Framework&#39;s bundle version (required by AppStore)</pre><pre>CORRIDOR_VERSION=&quot;1.0.0&quot;<br>PLISTCMD=&quot;Set :CFBundleVersion $CORRIDOR_VERSION&quot;<br>(cd $app/Carthage/Checkouts/corridor &amp;&amp; /usr/libexec/PlistBuddy -c &quot;$PLISTCMD&quot; Corridor.xcodeproj/Corridor_Info.plist )</pre><p>Carthage can now build Frameworks</p><pre>app=$(git rev-parse --show-toplevel)</pre><pre># Build the deps<br>(cd $app &amp;&amp; carthage build --platform iOS --cache-builds)</pre><p>Sample Xcode configurations for iOS</p><pre>$ cat xcode.config<br>SUPPORTED_PLATFORMS = iphoneos iphonesimulator<br>VALID_ARCHS[sdk=iphoneos*] = arm64 armv7 armv7s<br>VALID_ARCHS[sdk=iphonesimulator*] = i386 x86_64<br>IPHONEOS_DEPLOYMENT_TARGET = 10.3<br>OTHER_SWIFT_FLAGS[config=Debug] = -DDEBUG</pre><p>SPM’s command that generates Xcode Project file honors <em>xconfigs</em>. This allows us to easily override defaults and apply custom settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bIO9oQjjcSsKwcFZRDoRcQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc12ee030f15" width="1" height="1" alt=""><hr><p><a href="https://engblog.nextdoor.com/swift-packages-in-ios-app-fc12ee030f15">Swift Packages in iOS App</a> was originally published in <a href="https://engblog.nextdoor.com/">Nextdoor Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A powerful way to integrate Hubot with Slack]]></title>
            <link>https://engblog.nextdoor.com/a-powerful-way-to-integrate-hubot-with-slack-5a3e4ab4eac9?source=rss-523d49910838------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a3e4ab4eac9</guid>
            <category><![CDATA[slack]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Abhijeet Kumar]]></dc:creator>
            <pubDate>Mon, 23 Nov 2015 12:57:38 GMT</pubDate>
            <atom:updated>2016-08-31T22:16:35.351Z</atom:updated>
            <content:encoded><![CDATA[<p>Communication through messaging is integral to our lives. Here is how Nextdoor uses messages for useful automations.</p><p>After Nextdoor started using Slack for chat, many things evolved: a huge number of webhooks got set up, over 250 rooms were created for topic-specific discussions, our emoji-fu has gotten much stronger, and we’ve started using SlackBot for witty responses.</p><p>Of course, witty responses don’t help productivity. We wanted in-Slack helper tools that would do common things that people do already, performed in an automated way. Like many other companies, we have a few services for tools and development which are both hosted and in the cloud. Not every service works well on a mobile interface. If through Slack we could issue commands into the cloud it would bridge the gap on mobile by providing an easy to use interface — messaging.</p><p>So what can be useful, customizable, and work through messaging? A light-weight bot has come to the rescue which we named Neighbor.</p><h4>Bot’s Stack</h4><ul><li><a href="https://slack.com/">Slack</a><br> Although Slack was already in place and not a part of the decision made during this project it still proved to be an excellent platform for our implementation. Slack allows bot users with a well documented API, and more than just RichTextFormat posts.</li><li><a href="https://hubot.github.com/">Hubot</a><br> Developed by GitHub, Hubot already has a Slack integration, and is easy to develop new features in Node.js (CoffeeScript). New functionality can be added by simply adding a new file in the scripts directory. This flexibility allows for very swift collaboration among multiple engineers.</li><li>Redis<br> For Hubot’s “brain” we use Redis data-store. To minimize management headaches, we’ve launched a Redis instance in AWS ElastiCache on the smallest instance.</li><li>Github Enterprise (GHE)<br> Like many our internal projects we start development on GitHub Enterprise and then opensource to github.com. Using GHE allows for easy collaboration on random ad-hoc projects without impacting any other repo.</li><li><a href="https://www.docker.com/">Docker</a> via <a href="http://rancher.io/">Rancher</a><br> Containerization makes sense. Hubot is built on <a href="https://nodejs.org/en/">node</a> and has very few dependencies. It was reasonably trivial (and fun) to dockerize Hubot. Here’s how our Dockerfile looks</li><li>For demonstration purposes we’re showing the REDIS_URL setup. It has a unique FQDN format that is specific to Rancher’s flexible method of linking containers and external services. We could easily launch a new Redis service or run Redis as a container without having to change any code in Hubot service.</li><li>Rancher makes it easy to leverage our auth (GitHub+LDAP) and private docker registries. We can link any container to the external Redis service in a way that is transparent to Hubot itself. Rancher also has an extensive API which allows for easy deployments. Our rancher nodes are hosted on AWS on t2.large nodes for cost efficiency.</li><li>Here’s how our Neighbor “stack” looks on <a href="http://rancher.io/">Racher</a> with dedicated Hubot and Redis services.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*4VAfbkTcScGM84_b.png" /></figure><ul><li>The redis “service” has no containers because it’s a simple pointer to a DNS record on Amazon.</li><li>CircleCI as the glue<br> Speaking of deployments — we’ve leveraged CircleCI for our tests, builds, and deploy tasks. Shortly after merging code on GHE, CircleCI builds the docker image, tests that Neighbor is functional, pushes a new version to our private docker registry. We then perform an in-service upgrade on Rancher with the new Neighbor version.</li></ul><p>Putting all the pieces together was effortless, and we had the “hello-world” version running in less than an hour. Quickly engineers throughout the company started contributing to expand Neighbor’s functionality.</p><h4>Simple but useful integrations</h4><p>We already have quite a number of helpful actions that Neighbor does. Here are a couple of examples:</p><ul><li>Librato check<br> Neighbor passively listens to chat in some of our rooms and saves “annotations” in Librato when it sees the #librato hashtag.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*ZEul-CHSt6efixvJ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*W8zoapmoI6tetjam.png" /></figure><p>If you’d like to use this script — it’s open source: <a href="https://github.com/Nextdoor/hubot-scripts/blob/master/librato.coffee">librato.coffee</a></p><ul><li>Mobile App version checks</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*fveJNR8Y2Auk1DRx.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*mmnzCeIUJnOR3v5o.png" /></figure><ul><li>More complex examples</li><li>In an upcoming blog post we’ll talk about Neighbor’s interactive communication for organizing our company’s Lunch Roulette. Neighbor actually asks questions and does different things based on your answers.</li></ul><h4>Road ahead</h4><p>The interface gap between tools used by engineering departments and our neighborhood operations team is narrowing. <a href="http://ben-evans.com/benedictevans/2015/3/24/the-state-of-messaging">Messaging</a> remains the lowest common denominator for automating chores and it is available on all platforms. Slack combined with Hubot allows to automate chores for typical (and atypical) workflows. We believe there is a huge potential to put various information systems at employees’ fingertips at Nextdoor and <em>Neighbor</em> has an important part to play.</p><p>If you care about tools that empower engineers, get in touch — <a href="https://nextdoor.com/jobs/">we’re hiring</a>!</p><p>Authored by <a href="https://medium.com/u/523d49910838">Abhijeet Kumar</a> and <a href="https://medium.com/u/21224cebe9ea">Mikhail Simin</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a3e4ab4eac9" width="1" height="1" alt=""><hr><p><a href="https://engblog.nextdoor.com/a-powerful-way-to-integrate-hubot-with-slack-5a3e4ab4eac9">A powerful way to integrate Hubot with Slack</a> was originally published in <a href="https://engblog.nextdoor.com/">Nextdoor Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Managing Mobile App Releases]]></title>
            <link>https://engblog.nextdoor.com/managing-mobile-app-releases-4b5b3cf6cc3b?source=rss-523d49910838------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b5b3cf6cc3b</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[app-store]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Abhijeet Kumar]]></dc:creator>
            <pubDate>Thu, 10 Sep 2015 16:04:26 GMT</pubDate>
            <atom:updated>2016-08-31T22:54:59.192Z</atom:updated>
            <content:encoded><![CDATA[<p>Mobile app releases pose a number of challenges to teams trying to move fast. This is how Nextdoor moves with mobile.</p><p>Mobile engineers at Nextdoor want to push releases of mobile apps as often as web. The nature of mobile poses several challenges that work against this goal. Mobile releases are a one way street: there is no “Undo” button, and there is no rollback. You can’t take your app “off the market” either. Be it on Android or iOS, once a user has updated their app to a defective version, developers can’t force the user to downgrade to an older version. Shipping monthly is too slow. With the above challenges in mind, how do keep moving fast? Here’s what we’ve learned so far to overcome these challenges.</p><p><em>A good release process yields a good fault tolerant system.</em></p><h4>Make releases predictable — use a release calendar</h4><p>Unlike the web, where ad-hoc deployments are possible, we release our mobile applications based on scheduled dates and not on milestones. Getting into a strict release cadence has helped small teams concurrently developing features to continuously make improvements without getting in each other’s way.</p><p>For Android, we cut a release branch every Friday and publish the new version from this branch a week later. We use a similar schedule for iOS, except we use a biweekly cadence. This is a direct result of <a href="http://appreviewtimes.com/">iOS app review turnaround time</a>.</p><p>Development continues on master for the next release while the current release branch accepts critical fixes for the week leading up to the release.</p><p><em>From “When should we release this feature?” to “What are we releasing today?”</em></p><h4>Increase failure transparency — dogfood your apps</h4><p>Inspired by companies like <a href="https://www.youtube.com/watch?v=Nffzkkdq7GM">Facebook</a>, Google, <a href="http://old.eng.yammer.com/shipping-mobile-apps-every-week/">Yammer</a>, and others, we at Nextdoor have shifted our expectations around testing to include “dogfooding”. Employees use pre-release mobile apps on a daily basis and provide feedback. This stream of continuous feedback helps a great deal in catching regressions and improving our product.</p><p>We’ll talk more in detail about how we implement dogfooding in future posts including the technology behind it.</p><h4>Gracefully degrade — use feature config</h4><p>If a software component is deemed faulty post-release or even in the last stages of testing a release, a good fault-tolerant system allows for graceful degradation. The system keeps working for users without exposing the faulty component. For example, the app should have the ability to switch back to the old photo viewer if landscape photos don’t work well on the new photo viewer. At Nextdoor, every new feature that we ship can be turned on or off by using a flag (which we call “feature config”) that comes from the server. These flags are configured on a server side management console. This allows you to keep the train running — it unblocks engineers from shipping other great new features at speed.</p><h4>Reduce time to repair — release often</h4><p>We have learned to say “no” to last-minute, though well-intentioned, changes. This has posed an existential problem — those changes age and leave users unhappy. However, last minute changes always pose the risk of destabilizing a release. By releasing often, any change can be deployed with the next release with minimal time penalty. This turns a last minute change into a normal change for the next release. The change now has higher failure transparency earlier in the release cycle, thereby reducing mean time to repair.</p><h4>To be continued…</h4><p>It can’t be stressed enough how important it has been for us to adopt a strict regimen for mobile releases. We went from engineers firefighting a shippable release on Friday to a release engineer pressing the button after sign-offs from Product Managers. We don’t believe our release process is perfect yet, but we’re constantly learning and getting closer. We will be talking in more detail about the benefits of dogfooding in an upcoming post.</p><p>We’d love to hear your thoughts — what works and what doesn’t work for you?</p><p>If you’re interested in challenging problems on mobile, <a href="https://nextdoor.com/jobs/">we’re hiring</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b5b3cf6cc3b" width="1" height="1" alt=""><hr><p><a href="https://engblog.nextdoor.com/managing-mobile-app-releases-4b5b3cf6cc3b">Managing Mobile App Releases</a> was originally published in <a href="https://engblog.nextdoor.com/">Nextdoor Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>