<?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[Alloc Init - Medium]]></title>
        <description><![CDATA[Ramblings of a Mobile Developer - Medium]]></description>
        <link>https://medium.com/alloc-init?source=rss----30d932ef91d0---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Alloc Init - Medium</title>
            <link>https://medium.com/alloc-init?source=rss----30d932ef91d0---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 07:56:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/alloc-init" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Self-Explained Swift #1 — AutoLayout… Programatically]]></title>
            <link>https://medium.com/alloc-init/self-explained-swift-1-autolayout-programatically-2159408fc6f?source=rss----30d932ef91d0---4</link>
            <guid isPermaLink="false">https://medium.com/p/2159408fc6f</guid>
            <category><![CDATA[autolayout]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Weston Hanners]]></dc:creator>
            <pubDate>Wed, 28 Dec 2016 18:47:30 GMT</pubDate>
            <atom:updated>2016-12-28T18:50:10.354Z</atom:updated>
            <content:encoded><![CDATA[<p>I wanted to try a new blog post format, I call it Self-Explained Swift. In each post I will include heavily commented Swift code and attach the .playground file at the end.</p><p>Here is my first one, tell me what you think.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9fbd14ab976c03bcd8edc5b2adb8e3c1/href">https://medium.com/media/9fbd14ab976c03bcd8edc5b2adb8e3c1/href</a></iframe><p><a href="http://www.alloc-init.com/wp-content/uploads/2016/12/1-Layout.playground.zip">Download the Playground Here</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2159408fc6f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/alloc-init/self-explained-swift-1-autolayout-programatically-2159408fc6f">Self-Explained Swift #1 — AutoLayout… Programatically</a> was originally published in <a href="https://medium.com/alloc-init">Alloc Init</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Easy, Automatic Server Mocking for iOS Testing]]></title>
            <link>https://medium.com/alloc-init/easy-automatic-server-mocking-for-ios-testing-cad9502374cf?source=rss----30d932ef91d0---4</link>
            <guid isPermaLink="false">https://medium.com/p/cad9502374cf</guid>
            <dc:creator><![CDATA[Weston Hanners]]></dc:creator>
            <pubDate>Mon, 27 Jun 2016 15:08:01 GMT</pubDate>
            <atom:updated>2016-06-27T15:08:00.614Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*DudCkeNI0X5a4lal.png" /></figure><blockquote>What do you do when you need to run UI tests on an integration server for an app that requires a VPN to reach its web service?</blockquote><p>This was a question that I needed an answer for earlier this week. My first thought was to try to stub out the service calls with dummy data and bundle it with my app, but this was going to need a lot of work to maintain and I am pretty lazy. After an hour or so of research, I came upon <a href="https://mitmproxy.org/">mitmproxy</a>.</p><p>Here is the solution…</p><h4>1. Project Configuration</h4><p>First set up a new project configuration and call it something like “Mock”</p><p>In your app’s target build settings, find the section called “Other Swift Flags”. Twirl down the arrow and add “-D MOCKING” next to your mocking configuration. This works similarly to preprocessor macros in Objective-C, and will allow you to set up code that will only be compiled when it is defined.</p><p>Hopefully you are using NSURLSession for your API calls, find the place where you initialize it and set its configuration like this.</p><pre>let config = NSURLSessionConfiguration.defaultSessionConfiguration()<br><br>#if MOCKING<br>let proxyDict = [<br>  &quot;HTTPSEnable&quot;:NSNumber(integer: 1),<br>  &quot;HTTPSProxy&quot;:String(&quot;localhost&quot;),<br>  &quot;HTTPSPort&quot;:NSNumber(integer: 8080),<br>  &quot;HTTPEnable&quot;:NSNumber(integer: 1),<br>  &quot;HTTPProxy&quot;:String(&quot;localhost&quot;),<br>  &quot;HTTPPort&quot;:NSNumber(integer: 8080)<br>]<br>config.connectionProxyDictionary = proxyDict<br>#endif<br><br>NSURLSession(configuration: config)</pre><p>This will redirect your http and https requests made with that session through your local proxy.</p><h4>2. Install and Configure mitmproxy</h4><p>Now you are ready to install mitmproxy. “brew install mitmproxy”. After installing, run it once from the terminal to make sure everything works. This will also install a certificate into ~/.mitmproxy. Clone this repository <a href="https://github.com/ADVTOOLS/ADVTrustStore.git">https://github.com/ADVTOOLS/ADVTrustStore.git </a>somewhere. This tool will install the certificate into your simulators. Run this command:</p><pre>./iosCertTrustManager.py -a ~/.mitmproxy/mitmproxy-ca-cert.pem</pre><p>You will have to enter “y” for any of the simulators you want to use. Now comes the moment of truth. Run mitmproxy again and start-up your app. Requests should appear in the window.</p><figure><img alt="mitmproxy-output" src="https://cdn-images-1.medium.com/max/700/0*sJYCaTPsjoQ_GLFJ.png" /></figure><p>SUCCESS!!!</p><h4>3. Start Recording</h4><p>Finally we can start recording, when you are ready, run this command.</p><pre>mitmdump -w &lt;output file name&gt;</pre><p>You can name the output file whatever you want. Once it is running, do any actions you want to record in the Simulator, and they will be saved to that file.</p><figure><img alt="mitmdump-save" src="https://cdn-images-1.medium.com/max/700/0*U3IVsWtlSEQZz4x9.png" /></figure><p>Press CTRL+C when you are done.</p><p>Now when you want to replay the responses you saved, run this command.</p><pre>mitmdump -S &lt;saved file&gt;</pre><p>If your server is uses https, you can prevent mitmdump from trying to check the certificates during replay by adding the option “ — no-upstream-cert”.</p><p>You will now be able to run your app, even if you have no internet connection. This works especially well for UI testing since your requests are not likely to differ between runs.</p><p>…and that’s it. I hope you find this useful, and if you have any questions, feel free to poke me on <a href="https://twitter.com/@westonhanners">twitter</a>.</p><p><em>Originally published at </em><a href="http://www.alloc-init.com/2016/06/easy-automatic-server-mocking-for-ios-testing/"><em>…alloc] init];</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cad9502374cf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/alloc-init/easy-automatic-server-mocking-for-ios-testing-cad9502374cf">Easy, Automatic Server Mocking for iOS Testing</a> was originally published in <a href="https://medium.com/alloc-init">Alloc Init</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to become a Entry Level iOS Developer]]></title>
            <link>https://medium.com/alloc-init/how-to-become-a-entry-level-ios-developer-b7f413e7d2c4?source=rss----30d932ef91d0---4</link>
            <guid isPermaLink="false">https://medium.com/p/b7f413e7d2c4</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Weston Hanners]]></dc:creator>
            <pubDate>Thu, 24 Mar 2016 02:41:23 GMT</pubDate>
            <atom:updated>2016-03-24T15:26:49.112Z</atom:updated>
            <content:encoded><![CDATA[<p>I have been mentoring some friends who are interested in a career in iOS development, and was asked to come up with some sort of list of what they should know to get started. This seems like a good topic for a blog post, so without (much) further ado, I give you my list of what you should know to become an Entry Level iOS Developer.</p><h4>Basic CS Knowledge</h4><p>I don’t believe that being a computer science PHD is a requirement for getting into mobile application development, In my experience, heavy CS concepts don’t often come up in day-to-day work, but a lot of employers still like to run their interviewees through CS puzzles. So, for the novice, I would recommend watching the <a href="https://www.youtube.com/playlist?list=PLhQjrBD2T383Xfn0zECHrOTpfOSlptPAB">Harvard CS50 courses on YouTube</a> as a great place to get started, they are easy to follow and actually pretty interesting to watch.</p><p>If you are planning to interview with one of the big companies like Google or Apple, you might benefit by picking up a couple algorithm books to study.</p><p><a href="http://www.amazon.com/Cracking-Coding-Interview-Fourth-Edition/dp/145157827X">Cracking the Coding Interview</a> by Gayle Leekman</p><p><a href="http://www.amazon.com/Algorithm-Design-Manual-Steven-Skiena/dp/1849967202">The Algorithm Design Manual</a> by Steven S. Skiena</p><h4>Swift or Objective-C?</h4><p>You don’t have to be an expert, but you should be able to write in at least one of these languages without having to look up syntax very often. Just get yourself to a point where you can write classes, structs, loops, functions, assign variables and evaluate expressions without help.</p><p>Right now we are in a strange time where it’s still acceptable to be hired only knowing Objective-C. Swift is pretty new and unless you are applying for a company that has a lot of project turnover, you will mostly be writing in Objective-C anyways. That said, there are plenty of companies taking the plunge to Swift (including the one I work for) and I don’t think it will be too difficult to find a job if it’s the only language you know. The important thing is to be fairly proficient in whichever you choose, and get familiar enough with the other that you can at least read the code.</p><h4>Frameworks and API</h4><p>Cocoa Touch is updated yearly and with it things come and go. It is not unusual for me to work with the Apple Documentation open most of the time; there is just too damn much to try to keep in your head.</p><p>I don’t think its necessary that you memorize all of the iOS API’s, but you should have a good idea of what is available to you, and be fluent in a few of the big ones.</p><p><strong>UIKit</strong> (IUViewController, UITableView, UIButton, UINavigationController, GestureRecognizers)</p><p><strong>Interface Builder</strong> (Storyboards, Segues, and the odd .xib)</p><p><strong>Foundation Types</strong> (NSArray, NSDictionary, NSString) and their Swift counterparts (Array, Dictionary and String)</p><p><strong>HTTP API</strong> (NSURLSession, Basic REST API concepts, JSON Parsing with NSJSONSerialization)</p><p><strong>Grand Central Dispatch</strong> (GCD, NSOperationQueue)</p><p><strong>Persistence</strong> (NSCoding, NSUserDefaults, CoreData)</p><p><strong>Memory Management</strong> (what Retain Cycles are and ARC fundamentals)</p><p>Third-Party frameworks can also fun, but try to not depend on them too much; if it’s something I can do myself, I usually do.</p><h4>Development Patterns</h4><p>Patterns are important, they make development easier and they make your code cleaner. Make sure you understand these basic patterns, they are used A LOT in the iOS Frameworks and it is not likely that you will be able to do much without knowing them. There are many more, but you can learn those as you go.</p><p><strong>Delegation</strong> (This is sort of the workhorse of most iOS API’s, you should DEFINITELY understand this)</p><p><strong>Model View Controller</strong> (MVC, I don’t think Apple did the best job of encouraging best MVC separation, but it’s an important pattern that can help improve your code if you take the time to implement it properly. Also, it’s pretty much guaranteed to be on any iOS interviewer’s question list.)</p><p><strong>Subclassing or Object-Oriented Programming </strong>(The most part you will be writing apps in this style)</p><p><strong>Singleton</strong> (This one can definitely be abused… use sparingly.)</p><h4>Familiarity with the Environment</h4><p>This might seem obvious, but if you don’t have a Mac, get one! If you don’t have an iOS device, get one! While it’s not impossible to get started just writing apps for the simulator, you will eventually want a real device for development. As for computer, it’s gonna be pretty hard to learn Xcode without a mac to run it on. I started out with a 2009 MacBook Pro 13″ and a first-gen iPod Touch. It is quite possible to get by with the lower end devices to start, it was nearly a $1500 investment, but totally worth it in the long run.</p><h4>UX/UI</h4><p>All mobile developers should at least know some of the basic concepts of design. You should know the difference between mockups and wireframes and how to use both in your development process. Knowing what Apple considers usable UI will help as well; for this you will definately want to read the <a href="https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/">Apple Human Interface Guidelines</a>.</p><h4>Tools</h4><p>You should be familiar with a few of the common development tools.</p><p><strong>Xcode</strong> (of course)</p><p><strong>Source Control</strong> (Git, Subversion or Mercurial… probably just git though)</p><p><strong>Issue Tracking Software </strong>(JIRA is the big one here, but there are others. Just play with some of them if you can.)</p><h4>Opinions</h4><p>Having an opinion about iOS, Swift, or even a specific API is a great way for interviewers to understand how deep your knowledge about a topic goes. It also allows us to see your passion. If you are having an interview and you are asked, “So what do you think of Swift?” saying “It’s alright, I guess” is not the correct answer, you should tell them what you think of optionals, how you like using a specific feature. There aren’t many wrong answers here, the important thing is to have something to say.</p><h4>Portfolio</h4><p>Actions can speak louder than words. If you really want to nail that interview, put together a couple of simple apps (or even better, launch them on the AppStore); they really like to see that you have the ability to complete a project. GitHub is nice too, but make sure your code is easy for the interviewers to compile if they wanna test it out.</p><p>If you are wanting more resources to get started, please checkout my <a href="http://www.alloc-init.com/programming-resources/">iOS Developer Resources</a> page where I link to blogs and pages I found helpful when I started out.</p><p>I guess the last thing I would add is JUST DO IT! Right now iOS developers are in high demand and if you can get yourself to a decent skill level, you won’t be without work for a while. It’s a rewarding job that allows you to practice both engineering skills and creativity.</p><p><em>Originally published at </em><a href="http://www.alloc-init.com/2016/01/how-to-become-a-developer-1/"><em>www.alloc-init.com</em></a><em> on January 26, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7f413e7d2c4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/alloc-init/how-to-become-a-entry-level-ios-developer-b7f413e7d2c4">How to become a Entry Level iOS Developer</a> was originally published in <a href="https://medium.com/alloc-init">Alloc Init</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>