<?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 Mitch Little on Medium]]></title>
        <description><![CDATA[Stories by Mitch Little on Medium]]></description>
        <link>https://medium.com/@mitch_little?source=rss-4dabb5e97953------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8Va8ZM-dF2InptDf1mY-6Q.jpeg</url>
            <title>Stories by Mitch Little on Medium</title>
            <link>https://medium.com/@mitch_little?source=rss-4dabb5e97953------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 17:57:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mitch_little/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[ARKit in Swift]]></title>
            <link>https://medium.com/@mitch_little/arkit-in-swift-7bf24d10dcbb?source=rss-4dabb5e97953------2</link>
            <guid isPermaLink="false">https://medium.com/p/7bf24d10dcbb</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[augmented-reality]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[arkit]]></category>
            <dc:creator><![CDATA[Mitch Little]]></dc:creator>
            <pubDate>Fri, 01 Feb 2019 14:51:04 GMT</pubDate>
            <atom:updated>2019-02-01T14:59:26.545Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*FRToiX0-6wqWXyhny1MNyQ.jpeg" /></figure><h3>Introduction</h3><p>Augmented Reality in general has never been something that has been of high interest to me over the last couple of years. I think this is most probably down to the idea that AR is early and that the technology is not yet powerful enough to create anything of use or yet to be widely adopted.</p><p>Over the last week however I have taken a deep dive in Apple’s ARKit framework. After watching the examples shown at WWDC last year and exploring some of the examples provided in their documentation I have become a lot more excited. I say excited because although what is on offer at the moment may not be completely stable, ARKit provides a lot of potential for the future and is only going to get better. Just the way ARKit relays and processes information was enough to keep me exploring the science behind it!</p><p>I have unfortunately found it difficult to find a resource that explains the essentials of ARKit. As always, the developer documentation is extremely informative but mainly through implementation, types, and methods, rather than providing palatable overviews.</p><p>This story is split into the three main components of ARKit: scene understanding, world tracking, and scene rendering and aims to provide a high level over view rather than a working tutorial.</p><p>A huge thank you to <a href="https://medium.com/u/ea8c786721a8">Mark Dawson</a> for his stories on the subject. I have used some of his examples but converted them to Swift. Be sure to check his work out for a more thorough tutorial.</p><h3>Apple’s Overview</h3><blockquote>Augmented reality (AR) describes user experiences that add 2D or 3D elements to the live view from a device’s camera in a way that makes those elements appear to inhabit the real world. ARKit combines device motion tracking, camera scene capture, advanced scene processing, and display conveniences to simplify the task of building an AR experience. You can use these technologies to create many kinds of AR experiences using either the back camera or front camera of an iOS device. <br> — <a href="https://developer.apple.com/documentation/arkit">Apple Documentation</a></blockquote><h3>A Brief Example</h3><p>You can run this example in Xcode on a device running anything above iOS 11 on at least an A9 chip (iPhone 6s and above).</p><p><strong>Remember to hook up an ARSCNView in your storyboard scene to your view controller first!</strong></p><pre>// ViewController.swift</pre><pre>import UIKit<br>import ARKit</pre><pre>class ViewController: UIViewController {</pre><pre>    // MARK: - Outlets<br>    @IBOutlet weak var sceneView: ARSCNView!</pre><pre>    // MARK: - Life Cycle<br>    override func viewDidLoad() {<br>        super.viewDidLoad()</pre><pre>    // Scene Rendering  <br>        let scene = SCNScene()<br>        let box = SCNBox(width: 0.1, height: 0.1, length: 0.1,    chamferRadius: 0.01)<br>        let boxNode = SCNNode(geometry: box)</pre><pre>        boxNode.position = SCNVector3(0.0, 0.0, -0.1)<br>        scene.rootNode.addChildNode(boxNode)<br>    <br>        sceneView.scene = scene<br>    }</pre><pre>    override func viewWillAppear(_ animated: Bool) {<br>        super.viewWillAppear(animated)</pre><pre>        // World Tracking &amp; Scene Understanding<br>        let configuration = ARWorldTrackingConfiguration()<br>        sceneView.session.run(configuration)<br>    }<br>}</pre><h3>Breaking things up</h3><p>With the above example in mind, ARKit can be split into 3 distinct parts:</p><ol><li>World Tracking</li><li>Scene Understanding</li><li>Scene Rendering</li></ol><p>Each component directly compliments one another ultimately to display 2D or 3D virtual content for the user to see and interact with.</p><h4>How to track the world:</h4><p>ARKit uses a term called<em> visual-intertial odometry </em>which in essence estimates the translation (motion) and orientation of the device’s camera, in relation to its starting position in reality.</p><p>In simple terms, the device tracks where it is in the world in relation to features in its surrounding environment, such as a corner of a table. The more features it can see, the better the tracking and positioning of virtual content.</p><h4>But how?</h4><p>World Tracking makes use of Scene Understanding which ultimately generates a 3D coordinate system from the device. But before this coordinate system is established, lets talk about feature points.</p><p>In the viewDidLoad() method under sceneView.scene = scene add:</p><pre>override func viewDidLoad() {<br>    ...</pre><pre>    sceneView.debugOptions = [.showFeaturePoints]<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/283/1*uzAwkRqzk4VDbNfzZtK-5A.png" /><figcaption>Feature Points :)</figcaption></figure><p>ARKit automatically detects features from the scene produced by the device’s camera and tracks those features across multiple frames. As the user moves and more features are detected, information such as the camera’s position relevant to the features are collected. The more features that are detected, the higher the accuracy.</p><p>The yellow dots displayed on the image show the feature points being tracked. Notice how these features are the differences in the wood grain. The more of these differences in the camera’s scene the more feature points there will be for ARKit to recoginise.</p><p>ARKit is constantly analysing these feature points to an extent where enough feature points means planes can be generated. These planes are simply a representation of vertical or horizontal surfaces like a table or wall that ARKit has detected in the camera’s scene</p><p>The information relayed back about the planes includes a node and an anchor. The <em>node</em> is a<em> SceneKit</em> <em>node</em> that ARKit has created and holds some information in its properties such as its orientation and position. The anchor provides further information such as the <em>extent</em> (estimated width + height) as well as the centre of the plane.</p><p>Just to clarify, a <strong><em>node </em></strong>is essentially a coordinate point on a 2D axis and suggests where this plane actually is on the 2D axis of the device’s display.</p><h4>So, how does ARKit actually position virtual content?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/283/1*8eYCoebIBNU5rfdbTi2Abg.png" /></figure><p>Add the world origin to the scene view’s debug options</p><pre>sceneView.debugOptions = [<br>    .showFeaturePoints,<br>    .showWorldOrigin<br>]</pre><p>Well at this point we have a 2D point that the plane has given us. This 2D point can be used to display the content on the devices screen but what about the distance from the device?</p><p>Introducing <strong><em>Hit Testing. </em></strong>Imagine a hit test as a ray that the device fires out from the 2D point given to us above. The intersection of said ray and the plane detected from earlier provides the 3D coordinate point. We now have a coordinate of (x: red, y: green, z: blue) where virtual content can be placed 🎊.</p><h4>That’s cool, but how can I place virtual content manually, or measure distances?</h4><p>Again, using hit tests. SceneKit provides a method that can fire hit tests given a 2D coordinate which can be provided through gesture recoginisers. The resulting 3D point returned can be used to display content at.</p><p>The distance between multiple coordinate points selected by the user can be used to calculate measurements in the real world too.</p><h4>Finally, rendering:</h4><p>Keeping things simple, the two high-level frameworks used to render content are SceneKit or SpriteKit. SceneKit is used to displayed 3D content and SpriteKit 2D content.</p><p>The ARSCNView class used in the example above is apart of SceneKit and as Apple describe in their documentation:</p><blockquote>The <em>ARSCNView</em> class provides the easiest way to create augmented reality experiences that blend virtual 3D content with a device camera view of the real world.</blockquote><blockquote>When you run the view’s provided <a href="https://developer.apple.com/documentation/arkit/arsession"><em>ARSession</em></a> object:</blockquote><blockquote>The view automatically renders the live video feed from the device camera as the scene background.</blockquote><blockquote>The world coordinate system of the view’s SceneKit scene directly responds to the AR world coordinate system established by the session configuration.</blockquote><blockquote>The view automatically moves its SceneKit camera to match the real-world movement of the device.</blockquote><p>I have yet to explore how SceneKit actually renders content however it displays content from a scene. This scene contains a hierarchy of nodes. These nodes being visual graphics from the assets folder or shape geometry for example:</p><pre>// Geometric Node<br>let scene = SCNScene()</pre><pre>let box = SCNBox(<br>    width: 0.2, height: 0.2, length: 0.2, chamferRadius: 0.01<br>}</pre><pre>let boxNode = SCNNode(geometry: box)<br>scene.rootNode.addChildNode(boxNode)</pre><pre>// Asset Scene (made up of visual graphic nodes)<br>guard let assetScene = SCNScene(named: &quot;dinosaurScene&quot;) else {<br>    fatalError(&quot;Unable to load dinosaur scene.&quot;) <br>}</pre><pre>sceneView.scene = scene OR sceneView.scene = assetScene</pre><p>SpriteKit is similar however it uses 2D SKNodes which rotate as the user moves around. Almost like a 2D visual overlay at a certain coordinate.</p><h3>There is so much more to learn..</h3><p>As I’ve mentioned this is a high level overview of the processes behind ARKit without focussing too much on types or implementation.</p><p>Ultimately, there is so much you can do with ARKit such as content interaction, environmental texturing, light estimation (shadows), image and 3D object detection and more.</p><p>The framework will be forever growing and I’m excited for what the future holds and the innovative ideas that people will inevitably come up with.</p><h3>Any feedback is more than welcome and feel free to message me!</h3><h4>If you find these posts in anyway helpful, you can help others too by pressing the clap button!</h4><h4>You can learn to code and join me on Treehouse <a href="https://treehouse.7eer.net/c/1201369/228915/3944">here</a> 😊</h4><h4>Social: <a href="https://www.instagram.com/mitchhlittle/">Instagram</a>, <a href="https://uk.linkedin.com/in/mitch-little">LinkedIn</a>, <a href="https://github.com/MitchLittle/StarWarsGoV2">GitHub</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7bf24d10dcbb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Becoming a Developer: Week 84, I’m a developer.]]></title>
            <link>https://medium.com/@mitch_little/becoming-a-developer-week-84-im-a-developer-3d1b9c98604b?source=rss-4dabb5e97953------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d1b9c98604b</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[freecodecamp]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Mitch Little]]></dc:creator>
            <pubDate>Thu, 10 Jan 2019 16:37:50 GMT</pubDate>
            <atom:updated>2019-01-10T16:38:16.367Z</atom:updated>
            <content:encoded><![CDATA[<h3>Becoming a Developer: Week 84 (I’m a developer)</h3><p>Unfortunately I completely lost consistency with these posts which is something I wish to address.</p><p>But, for good reason. My hard work and consistent effort since June 2017 payed off and I am now an iOS Developer at Dreamr, an app development agency in Manchester.</p><p>I’m aiming to write a more in depth<em> ‘how I become a software engineer’ </em>post in the future.</p><p>From the Dreamr <a href="https://dreamr.uk/">website</a> describing my last three months:</p><blockquote>From my first introduction to the office space and the Dreamr team back in July, I immediately felt comfortable, excited and optimistic. My first introduction was also my interview. The interview itself appeared to have gone well in my estimation, and the next day I received the job offer I was hoping for. 13 months of consistent effort had paid off and I was looking forward to starting an exciting new chapter in my life.</blockquote><blockquote>Over the Summer, I eagerly anticipated my start at Dreamr in September. However, the last three months have well exceeded my expectations.</blockquote><blockquote>Prior to starting my role, I had no idea what would be in store for me over the next few months. I had already learnt a lot of Swift and iOS. I also managed to build a small portfolio of work thanks to the <a href="https://teamtreehouse.com/techdegree">Treehouse </a>Tech degree I studied in my spare time. However, I had no idea what Dreamr would hold for me, working with other iOS developers. With my initial assessment complete I was introduced to a project by <a href="https://dreamr.uk/team/ben/">Ben</a>. By my second week I was already working on new features.</blockquote><blockquote>At first, I found it strange, if not daunting to discuss Swift, iOS, and general programming concepts with others. Before Dreamr, no one I knew would’ve understood what I was talking about. But now I find it so exciting being able to share resources, learn, and have discussions within the iOS team about a subject that we are all passionate about.</blockquote><blockquote>Over the last 14 weeks, I have learnt an incredible amount. Not only in the iOS landscape but also in the dynamics of an industry position. Firstly, my fluency in Swift has dramatically improved. As has my overall knowledge in iOS, to a point where I’m now able to study and implement more advanced topics such as Mobile Architectures and Reactional Programming tools including MVVM and RxSwift respectively. All of this through consistent practice and thorough guidance from <a href="https://dreamr.uk/team/joe/">Joe</a> and Ben.</blockquote><blockquote>Being my first position as an iOS developer, I was intrigued to learn more about the development process and the working methodologies within a company. Something that I couldn’t really experience in the past due to being self-taught. However, as Dreamr is a relatively young company, I’m not just learning a workflow that has already been established, but also from an abundance of knowledge and experience provided by others.</blockquote><blockquote>A vital part of this evolution is the way Dreamr values all team members and their voices no matter their level or experience. My previous experience draws from working in a company that employs well over 25,000 people. Being an apprentice engineer especially, my opinion was unlikely to change anything. Decisions were made from the top. This change to an agency environment that employs 1000 times less not only means everyone’s voice matters and is respected, but that it almost immediately makes a beneficial difference, and without bureaucracy.</blockquote><blockquote>This whole structure provides a strong family atmosphere where everyone works well as a team, including Loki, JJ, and Chilli. Ultimately this allows for increased efficiency, learning, and collaboration and makes it a pleasure to come into work every day. Not to mention all the fun that is involved as well.</blockquote><h3>Any feedback is more than welcome and feel free to message me!</h3><h4>If you find these posts in anyway helpful, you can help others too by pressing the clap button!</h4><h4>You can learn to code and join me on Treehouse <a href="https://treehouse.7eer.net/c/1201369/228915/3944">here</a> 😊</h4><h4>Social: <a href="https://www.instagram.com/mitchhlittle/">Instagram</a>, <a href="https://uk.linkedin.com/in/mitch-little">LinkedIn</a>, <a href="https://github.com/MitchLittle/StarWarsGoV2">GitHub</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d1b9c98604b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Becoming A Developer: Week 17 (Core Data & Life Balance)]]></title>
            <link>https://medium.com/@mitch_little/becoming-a-developer-week-17-core-data-life-balance-c11048a4cab5?source=rss-4dabb5e97953------2</link>
            <guid isPermaLink="false">https://medium.com/p/c11048a4cab5</guid>
            <category><![CDATA[learn-to-code]]></category>
            <category><![CDATA[mindfulness]]></category>
            <category><![CDATA[deep-work]]></category>
            <category><![CDATA[work-life-balance]]></category>
            <category><![CDATA[tim-ferriss]]></category>
            <dc:creator><![CDATA[Mitch Little]]></dc:creator>
            <pubDate>Tue, 05 Jun 2018 11:39:09 GMT</pubDate>
            <atom:updated>2018-06-05T11:44:12.508Z</atom:updated>
            <content:encoded><![CDATA[<p>On Thursday evening I finally came back to Manchester after a <a href="https://medium.com/@mitch_little/becoming-a-developer-week-16-a-trip-to-morocco-a-new-chapter-318dfea45152">short break in Morocco.</a> Although I actually got back to the UK last Sunday, I spent a few days at home in Kent and as much as I enjoyed the time, I couldn’t wait to get back to Manchester and get productive again. The habit of work has compounded over the last year and when I lack productivity now, I feel bored.</p><p>At home, there was only so much documentation I could read or things I could do / plan on paper.</p><p>On Friday, with a refreshed mind and clean approach, I fixed the edge case bugs I couldn’t resolve for a week before I left and uploaded the finished project to be review by <a href="https://medium.com/u/fb8d78e7d205">Treehouse</a>. The review went well and I was pleased with the comments.</p><p>Over the weekend, amongst other things (see below for more on my new techniques for balance), <strong>I learned the fundamentals of </strong><a href="https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/CoreData/index.html"><strong>Core Data</strong></a>. The Cocoa framework which manages the model layer of an application, including the persistence (saving) of data. A super exciting framework to learn about which opens up much more opportunity in terms of user orientated applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UxmkmBHV0s7RL4DWZr5W3A.png" /><figcaption>Core Data Stack (missing Managed Object Model)</figcaption></figure><p>Firstly, to get an idea of the parts of the Core Data stack we built out a custom class that set up the Managed Object Model, the Persistent Store Coordinator (including persist location in the Documents Directory) and in turn the Persistent Store, and also the Managed Object Context before refactoring all of this into the NSPersistentContainer.</p><p>The NSPersistentContainer is a container that encapsulates the Core Data stack without having to implement it manually. It simplifies the creation and management of the Core Data stack by handling the creation of all of the components mentioned above. Using this container, can expose the Managed Object Context to the rest of the application which is responsible for the data operations such as save, delete, update and move.</p><p>This Persistent Container can be initialised with a Core Data ‘Data Model File’. This file encapsulates the Managed Object File which is a schema or outline of the Object Graph. The xcdatamodeld file provides graphical user interface this Object Graph can be defined through with the entities(objects), attributes(properties) and the relationships between them.</p><p>Creating entities in this GUI and then exposing these entities as NSManagedObjects for use in the project felt much different than modelling custom types manually. The creation of the NSManagedObject produces two Objective C files, the interface and the implementation file. Beneficially, it comes with its own @nonObjc fetchRequest method which returns an NSFetchRequest which can be used to collect search criteria when requesting data from the Persistent Store. This also introduced me to @NSManaged properties that tell the Swift compiler that Core Data provides the storage and implementation of the property declarations at run time, rather than the class itself.</p><p>One of the main concerns I have is forgetting to save the Managed Object Context that tracks changes to the managed object after updating a property for example. Usually, an instance of a class will store this property but in this case it is only changed if the Context is saved. In this light, the Context can be seen as a simple draft of changes to an instance.</p><p>After learning how to implement the save operation through the Context. I was introduced to <a href="https://developer.apple.com/documentation/coredata/nsfetchedresultscontroller?changes=_6">NSFetchedResultsController</a> which is a controller that can be used to handle the fetching requests of data and displaying said data to the user, usually by means of a collection or table view. As mentioned early, the exposed Core Data entity provides its own NSFetchRequest which can be used to initialise this controller along with a table or collection view.</p><p>This NSFetchedResultsController can also monitor the Context. Therefore if any changes are made to the Context, it is notified, and then used its delegate protocol; NSFetchedResultsControllerDelegate to update the user interface. This updating, whether inserting, deleting, updating or moving can be implemented on specific rows instead of reloading the whole table view which can be an expensive operation if there are many data points. This is achieved by switching on the NSFetchedResultsChangeType which specifies the changes that have been made to the persistent store.</p><p>I have only just scratched the surface of the Core Data framework. So far I found it easy to understand thanks to its common use which is reflected in its intuity. The GUI and supporting classes such as NSPersistentContainer and NSFetchedResultsController allow for easy creation and management. I look forward to making use of the CoreData in the future and excited to see some of the projects and their features that store this user data. Not to mention it will be great practice to solidify what I learned over the weekend.</p><h3>On Balance, again.</h3><p>This is such as common topic that I focus on in many posts because it is something I always struggle with. It is a topic that I constantly and proactively think about and try to experiment with in order to find something that works.</p><p><a href="https://medium.com/@mitch_little/becoming-a-developer-week-15-a-new-networking-stack-table-views-operations-and-balance-9ce98c48d7c">This is what I wrote in Week 15</a>:</p><blockquote>“One thing I always struggle with hugely is balance.</blockquote><blockquote>I find it very easy to go ‘all in’ on something which isn’t necessarily a bad thing in the short term as it allows me to be laser focussed and get a lot done. However over time it causes me to start neglecting other areas of my life which are just as important.</blockquote><blockquote>I have a sheet that defines the three most important things in my life and as long as I am adding to one of those I can be happy. However sometimes the balance tips in one direction.</blockquote><blockquote>Personal relationships and social life is something I need to push more effort into as I have sacrificed a lot of time to focus on my self over the last year which is a complete oppsite to the first 19 years of my life. This isn’t a bad thing in terms of bettering myself and my life, but in the future I do not want to find myself lonely in the midst of ‘making it’.</blockquote><blockquote>Linking to the quote above, I have very much realised that in order to achieve things in life you have to put effort into them and work. The same goes for other areas weather it is people, family, hobbies, or health.”</blockquote><p>However, since coming home I’ve felt much more in harmony. <strong>I’ve simply realised by chunking or taking blocks of hours from the day I can still be very productive, with a higher quality of deep work, and be present in other areas of life too.</strong></p><p>These hours I stick to push me to work much more intensely. Once the time is gone I have to stop. I therefore work harder and without any interruption for short bursts allowing for much deeper work. This also compliments the notion that we can only remain in a peak flow and mental capacity for around 3–5 hours. Previously, I’d have my deep work session, then just try to keep the whole day free so I could work more, but without the same cognitive intent and quality and with the inevitability of burning out days or weeks down the line.</p><p><strong>This practice still takes discipline, but aims for efficient use of time with a full and proactive intent rather than the quantiy of time spent.</strong></p><p>Call Newport, the author of Deep Work compares the two states:</p><blockquote>“<strong>Deep Work</strong>: Professional activities performed in a state of distraction-free concentration that push your cognitive capabilities to their limit. These efforts create new value, improve your skill, and are hard to replicate.”</blockquote><blockquote>“<strong>Shallow Work</strong>: Non-cognitively demanding and logistical — style tasks, often performed while distracted . These efforts tend to not create much new value in the world and are easy to replicate.”</blockquote><p>I feel as if Deep Work should also be applied to those other areas in life and comes down to being mindful and using time with intent rather than auto-pilot.</p><p>What’s working for me at this moment in time is 1 or 2, deep work sessions of 3 hours. This equates to 6 hours per day which compounds to a great amount of high quality work even over a short period of time. That leaves me with 9–11 waking hours which again I try to use as consciously as possible in other areas of life.</p><p><strong>For now, I’m finding this extremely practical to implement and reaping the benefits. Other areas of life are more fullfilling as I can put more effort in them, which in turn enables me to work even better. It’s a positive cycle.</strong></p><p><strong>I think Finding balance is very much a personal journey of self awareness and it certainly shouldn’t be ignored.</strong></p><p>I also found <a href="https://medium.com/u/56d3bc91794f">Tim Ferriss</a>’s new video helpful and works for me on an hour-by-hour basis.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FghVdzAeX0bg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DghVdzAeX0bg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FghVdzAeX0bg%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/798e128c64eb3a600bb15a8adb939d1b/href">https://medium.com/media/798e128c64eb3a600bb15a8adb939d1b/href</a></iframe><h3>Any feedback is more than welcome and feel free to message me!</h3><h4>If you find these posts in anyway helpful, you can help others too by pressing the clap button!</h4><h4>You can also learn to code and join me on <a href="https://medium.com/u/fb8d78e7d205">Treehouse</a> <a href="https://treehouse.7eer.net/c/1201369/228915/3944">here </a>😊</h4><h4>Social: <a href="https://www.instagram.com/mitchhlittle/">Instagram</a>, <a href="https://www.linkedin.com/in/mitch-little/">LinkedIn</a>, <a href="https://github.com/mitchlittle">GitHub</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c11048a4cab5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Becoming A Developer: Week 16 (A trip to Morocco & A New Chapter)]]></title>
            <link>https://medium.com/@mitch_little/becoming-a-developer-week-16-a-trip-to-morocco-a-new-chapter-318dfea45152?source=rss-4dabb5e97953------2</link>
            <guid isPermaLink="false">https://medium.com/p/318dfea45152</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[treehouse]]></category>
            <category><![CDATA[learn-to-code]]></category>
            <category><![CDATA[ios-development]]></category>
            <category><![CDATA[passion]]></category>
            <dc:creator><![CDATA[Mitch Little]]></dc:creator>
            <pubDate>Tue, 29 May 2018 11:46:00 GMT</pubDate>
            <atom:updated>2018-06-02T14:39:52.980Z</atom:updated>
            <content:encoded><![CDATA[<p>Sorry for the missed post last Tuesday. I was away.</p><p>Last Sunday I flew out to Morocco. Although we were only there for a week, we managed to fit a lot in and travelled to a few different places.</p><p>The first stop was Fez. Stepping in through the Médina walls was like time travelling back 100 years. The thousands of tiny interweaving alley ways housed markets providing foods for the locals and traditional hand made products. All provided for by mules and carts rather than cars.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YCfesR1me5Q2aGUtmHs7Cw@2x.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7OHJks-gtbtv_cOpAJMp2Q@2x.jpeg" /></figure><p>We took a 4 hour coach to Chefchaouen, or The Blue Pearl. It’s Médina is all painted blue which corresponds to the super relaxed atmosphere. A complete contrast to Fez’s fast and intense pace.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z-afXzRuWKeUHdYl1INTyg@2x.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-eiWNof7JG7bQu0Kuozgpw@2x.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8S-yQ0xgYatWvU_QbxFRIQ@2x.jpeg" /></figure><p>From Chefchaouen, a 4–5 hour trek took us to the Cascades de Arkchour. A picturesque end to the trip accompanied by a stay in a well balanced and minimalist AirBNB 2000 ft up in the Rif Mountains.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sN0l6azTF0V01orW_ahCrg@2x.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PZvNsqo_c9CruKT4hzPWuA@2x.jpeg" /></figure><p>This is the longest break I’ve had from iOS Development since I started a year ago. I made it a mission to code / study at minimum every other day and this consistency has led me to progress exponentially over time.</p><p>However minimising my phone use and escaping from technology proved very refreshing.</p><h4>When we are in the thick of something it is hard to see the bigger picture. Doing something different allows you to remember your ‘why’.</h4><p>It’s not that I needed an escape from iOS Development or my everyday life. I just needed to do something different.</p><p>I could hardly call it a break anyway. I flew back on Sunday and slept for 14 hours.</p><p>I now can’t wait to get back to learning and working on projects. This still won’t be for a few more days as I left my laptop in Manchester 😞 I’m currently trying to work with pen and paper which only goes so far compared to Xcode!</p><p>One of the best things I have developed over the last year is the confidence and self awareness to start something new, and the work ethic and consistency to nurture it from an ember to at least a small flame bearing some sort of opportunity.</p><p>I’m not going to settle with just iOS development. I’m making it a mission to literally try everything I think I may like to do to develop deep and long lasting passions. Since last year it has always been a plan to try something new every June (birthday..new start?). I even made a list last August called ‘Mitch’s Future Projects To Begin Learning’.</p><h4>I feel many people lose their passions and don’t take the time to nurture new ones and if they do, most give up after a few weeks or months.</h4><p>(From personal experience)</p><p>With this, and after a year of starting iOS, I’m starting something new.</p><p>I’m experimenting in order to find a creative outlet that will compliment the technicalities of iOS Development by providing a contrast to strict logic, bugs, and complex problems.</p><p>Of course iOS will be my main focus and I will see this phase of initial preparation through to the end (which could actually be the start..?).</p><h4>Either way, the learning should never stop.</h4><p>Check out what I received last week too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OpVudGfetAqBEt4E8MjkGQ@2x.jpeg" /></figure><p>Thank you <a href="https://medium.com/u/fb8d78e7d205">Treehouse</a> 😃</p><h3>Any feedback is more than welcome and feel free to message me!</h3><h4>If you find these posts in anyway helpful, you can help others too by pressing the clap button!</h4><h4>You can learn to code and join me on Treehouse <a href="https://treehouse.7eer.net/c/1201369/228915/3944">here</a> 😊</h4><h4>Social: Instagram, LinkedIn, GitHub</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=318dfea45152" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Becoming A Developer: Week 15 (A New Networking Stack, Table Views, Operations, and Balance)]]></title>
            <link>https://medium.com/@mitch_little/becoming-a-developer-week-15-a-new-networking-stack-table-views-operations-and-balance-9ce98c48d7c?source=rss-4dabb5e97953------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ce98c48d7c</guid>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[treehouse]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Mitch Little]]></dc:creator>
            <pubDate>Wed, 16 May 2018 18:10:11 GMT</pubDate>
            <atom:updated>2018-05-16T18:17:58.611Z</atom:updated>
            <content:encoded><![CDATA[<p>First, my new favourite quote.</p><blockquote>Opportunity is missed by most people because it is dressed in overalls and looks like work</blockquote><blockquote>— Thomas Edision</blockquote><p>Aka go out and get it.</p><p>Again, another brief update as I focus on my last uni exam. Consistency is paramount however.</p><p><a href="https://medium.com/@mitch_little/becoming-a-developer-week-14-more-objective-c-peer-reviews-networking-with-codable-generics-a4d82a55000a">Last week</a>, I spent a lot of time getting familiar with a new networking stack to use in my future projects. The networking stack is the logic that sends requested to REST API’s, parses the data sent back into models, and throws any occurring networking errors that can then be handled gracefully.</p><p><a href="https://medium.com/@jamesrochabrun/protocol-based-generic-networking-using-jsondecoder-and-decodable-in-swift-4-fc9e889e8081">Protocol Based Generic Networking using JSONDecoder and Decodable in Swift 4</a></p><p>The outline is based roughly on the implementation described in the article above by <a href="https://medium.com/u/2f3ce3ff3c73">James Rochabrun</a>, and inspired by <a href="https://medium.com/u/5a90b502367a">Pasan Premaratne</a>’s Swift 3 version.</p><p>I have however made a few adjustments mainly in the area of endpoint, url and request generation.</p><p>This stack, as the title suggests, focusses heavily on protocols and generics combined with the Codable protocol to produce a highly reusable, type safe, and call site friendly method of retrieving data from an API. Ultimately, the final outcome is a simple enumeration that contains either a populated object, or an error which can be checked with a switch statement.</p><p>With the Codable protocol too, there is no more stringly typed unwrapping using guard statements.</p><p>The implementation I will be using from now on can be seen in my most recent project <a href="https://github.com/MitchLittle/FilmPicker">here</a>.</p><p>Codable in Swift 4 has been the most intuitive topic I have been introduced to as my time as an iOS developer has been spent already on Swift 3 which is already extremely powerful.</p><p>Although I have used different methods of retrieving data from an API and understand what is going on at a lower level, Codable takes away the overwhelming feeling that I feel when writing networking code. It always felt too counter intuitive for Swift.</p><p>Following on from this, I created the model layer of Project 7, conforming the types to the Codable protocol. I found some of the keys in the JSON returned from the API lacking detail, so for some types I provided a list of Coding Keys that allow custom stored property names but with the corresponding API key in an enumeration.</p><p>One issue I faced was unwrapping lists of objects returned in the JSON data. Firstly, I tried creating a wrapper container from the decoder, and using that wrapper container to initialise the stored properties. However this wrapper container only applied to individual objects rather than a list of objects. Currently, I have settled on providing wrapper objects that contain an array of the lower level list of objects as a stored property. This wrapper object great provides context at the use site instead of an array of objects providing by the networking stack.</p><p>Project 7 is certainly not as featureful as project 6, but not only allowed me to focus heavily on this networking stack but also a few other topics.</p><p>I made great use of Table Views in this project. Initially, I had 5 story board scenes all embedded a Navigation Controoler. Four out of five of these view controller were all exactly the same and contained a Table View.</p><p>Aligning my design to single responsibility principles, I decoupled the table view’s Data Source from the container View Controller. By doing this, I could create new instances of the View Controller and push them onto the Navigation Stack. The loading of the Table View would check for the type of data source being used as defined in an Enumeration and load the correct data source from a Data Source Manager object.</p><p>This data source would then be updated by the networking stack and the table view reloaded.</p><p>Ultimately, I had a reusable View Controller and Table View that could be adjusted by just changing the decoupled Data Source allowing for less expense of memory and great scalabilty.</p><p>In the future I would like to experiment with a reusable table view data source source:</p><p><a href="http://marinbenc.com/a-reusable-uitableviewdatasource-in-swift">A reusable UITableViewDataSource in Swift</a></p><p>The third major focus was the use of Operation and OperationQueue. I used these to download images with url paths provided by the initial API request.</p><p>Downloading images can be an expensive and slow task if there are many. Using the Operation class provides extra functionality. If a Table View Cell goes off screen, there is no point in continuing the image download and so using operations allows the downloading to be cancelled, until it is back in the window.</p><p>Networking, dispatch queues, and operations always help with my knowledge of concurrecy, serialism, parallelism and other related topics which I sometimes find difficult to distinguish.</p><h3><strong>On Balance</strong></h3><p>One thing I always struggle with hugely is balance.</p><p>I find it very easy to go ‘all in’ on something which isn’t necessarily a bad thing in the short term as it allows me to be laser focussed and get a lot done. However over time it causes me to start neglecting other areas of my life which are just as important.</p><p>I have a sheet that defines the three most important things in my life and as long as I am adding to one of those I can be happy. However sometimes the balance tips in one direction.</p><p>Personal relationships and social life is something I need to push more effort into as I have sacrificed a lot of time to focus on my self over the last year which is a complete oppsite to the first 19 years of my life. This isn’t a bad thing in terms of bettering myself and my life, but in the future I do not want to find myself lonely in the midst of ‘making it’.</p><p>Linking to the quote above, I have very much realised that in order to achieve things in life you have to put effort into them and work. The same goes for other areas weather it is people, family, hobbies, or health.</p><p><a href="https://mystudentvoices.com/put-in-an-effort-to-keep-the-things-you-love-thanks-mom-89c681e0f570">Put In An Effort To Keep The Things You Love — Thanks Mom</a></p><p>This post by <a href="https://medium.com/u/667a618fc5bb">William Cho</a> sums it up well.</p><p>One more exam to go. I’m looking forward to writing more detailed posts and focusing my attention on iOS.</p><h3>Any feedback is more than welcome and feel free to message me!</h3><h4>If you find these posts in anyway helpful, you can help others too by pressing the clap button!</h4><h4>You can learn to code and join me on <a href="https://medium.com/u/fb8d78e7d205">Treehouse</a> <a href="https://treehouse.7eer.net/c/1201369/228915/3944">here </a>😊</h4><h4>Social: <a href="https://www.instagram.com/mitchhlittle/">Instagram</a>, <a href="https://www.linkedin.com/in/mitch-little/">LinkedIn</a>, <a href="https://github.com/mitchlittle">GitHub</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ce98c48d7c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Becoming A Developer: Week 14 (More Objective-C, Peer Reviews & Networking with Codable, Generics…]]></title>
            <link>https://medium.com/@mitch_little/becoming-a-developer-week-14-more-objective-c-peer-reviews-networking-with-codable-generics-a4d82a55000a?source=rss-4dabb5e97953------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4d82a55000a</guid>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[freecodecamp]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[code-newbie]]></category>
            <dc:creator><![CDATA[Mitch Little]]></dc:creator>
            <pubDate>Wed, 09 May 2018 21:58:10 GMT</pubDate>
            <atom:updated>2018-05-09T21:58:10.006Z</atom:updated>
            <content:encoded><![CDATA[<h3>Becoming A Developer: Week 14 (More Objective-C, Peer Reviews &amp; Networking with Codable, Generics, and Protocols)</h3><p>Continuing on from <a href="https://medium.com/@mitch_little/becoming-a-developer-week-13-objective-c-instruments-memory-management-583b0a678dbe">last week</a>, I built a simple project to extend from my recent introduction to Objective-C. The simple application in this <a href="https://teamtreehouse.com/library/displaying-api-data-with-collection-views-in-objectivec-2">Treehouse course</a> allowed me to implement networking logic to request and parse json from an API, implement a <a href="https://developer.apple.com/documentation/uikit/uicollectionviewcontroller?language=objc">UICollectionViewController</a>, a <a href="https://developer.apple.com/documentation/webkit/wkwebview?language=objc">WKWebView</a> and I was finally introduced to <a href="https://developer.apple.com/documentation/uikit/touches_presses_and_gestures?language=objc">gestures</a> and <a href="https://developer.apple.com/library/content/documentation/WindowsViews/Conceptual/ViewPG_iPhoneOS/AnimatingViews/AnimatingViews.html">animations</a>.</p><p>Doing all of this in Objective-C really helped me practice in the language too and helped solidify my knowledge further.</p><p>After this course, I started working on Project 7. Firstly, I explored the API the project will send requests to using <a href="https://www.getpostman.com/">Postman</a>. Using this knowledge, I could begin designing the model layer and data types.</p><p>As a part of the networking stack in project 6, I used Apple’s implementation for populating data models into objects using an initialiser. However I understood that with Swift 4 came the <a href="https://developer.apple.com/documentation/swift/codable">Codable</a> protocol which I spent time studying. <a href="https://medium.com/u/5a90b502367a">Pasan Premaratne</a>’s course on <a href="https://medium.com/u/fb8d78e7d205">Treehouse</a> took away the level of abstraction and explored <a href="https://developer.apple.com/documentation/swift/codingkey">Coding Keys</a> and <a href="https://developer.apple.com/documentation/foundation/jsondecoder">JSONDecoder</a>/<a href="https://developer.apple.com/documentation/foundation/jsonencoder">JSONEncoder</a> along with decoding different nested structures and types of data as well as any possible <a href="https://developer.apple.com/documentation/foundation/jsonencoder">errors</a> and their <a href="https://developer.apple.com/documentation/swift/decodingerror.context">context</a> that could occur.</p><p>To make the most of this safer, and more efficient method of parsing json into objects I wanted to implement a generic networking stack that I could use in other projects too.</p><p><a href="https://medium.com/@jamesrochabrun/protocol-based-generic-networking-using-jsondecoder-and-decodable-in-swift-4-fc9e889e8081">Protocol Based Generic Networking using JSONDecoder and Decodable in Swift 4</a></p><p>This medium post proved extremely useful yet I didn’t want to implement it if I didn’t fully understand it.</p><p>I found it wasn’t the actually concepts that I found confusing, it was the way completion handlers combined with generics were used that I found overwhelming.</p><p>I spent time visualualising how the completion handlers were called in their defining function with the implemenation provided by a closure at the function call site. Doing this has provided much greater clarity and also allowed me to add some of my own touches. I think implementing this networking stack in project 7 will prove to be much more efficient especally at the call site.</p><p>One thing I found very interesting during the week was completing reviewing work of peers. The projects that are available to review are ones I have already completed and it comes with plenty of benefits that I think will be very useful in industry.</p><p>Firstly, it is very interesting to see the methods that others have used to ultimately achieve the same result. Of course, some routes I feel I wouldn’t use yet I often pick up helpful ideas whether it is logic, naming, or project organisation to name a few.</p><p>It is also great practice to be able to read and make sense of other people’s code especially if it is not well documented. This ensures I understand the Swift language very well and can understand how it is used by others.</p><p>The projects are normally availble to download through GitHub. In these instances, I simply review the project however I could easily add or change features by creating branches from the master. Version control is clearly an important tool in development teams and I am gaining great practice.</p><p>I also had a uni exam leaving me with one left to sit. I look forward to fully changing my focus from exam revision to iOS after next week and putting more effort into documenting this journey once again.</p><h3>Any feedback is more than welcome and feel free to message me!</h3><h4>If you find these posts in anyway helpful, you can help others too by pressing the clap button!</h4><h4>You can learn to code and join me on Treehouse <a href="https://treehouse.7eer.net/c/1201369/228915/3944">here </a>😊</h4><h4>Social: <a href="https://www.instagram.com/mitchhlittle/">Instagram</a>, <a href="https://www.linkedin.com/in/mitch-little/">LinkedIn</a>, <a href="https://github.com/mitchlittle">GitHub</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4d82a55000a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Becoming A Developer: Week 13 (Objective-C, Instruments & Memory Management)]]></title>
            <link>https://medium.com/@mitch_little/becoming-a-developer-week-13-objective-c-instruments-memory-management-583b0a678dbe?source=rss-4dabb5e97953------2</link>
            <guid isPermaLink="false">https://medium.com/p/583b0a678dbe</guid>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[freecodecamp]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[code-newbie]]></category>
            <dc:creator><![CDATA[Mitch Little]]></dc:creator>
            <pubDate>Wed, 02 May 2018 16:29:26 GMT</pubDate>
            <atom:updated>2018-05-02T16:30:45.149Z</atom:updated>
            <content:encoded><![CDATA[<p>After <a href="https://medium.com/@mitch_little/becoming-a-developer-week-11-9dd33d059562">week 11</a> and <a href="https://medium.com/@mitch_little/becoming-a-developer-week-12-networking-with-apis-designing-custom-modal-views-productivity-c1c1a3a838b9">week 12</a> consisted of solely focussing on <a href="https://github.com/MitchLittle/StarWarsGo">project 6</a>, it has been refresing in the past week to take a break from projects and learn some new things as well as revisit some old!</p><p>Of course in projects I spent time learning about something I’d like to use within the scope of that project but it feels a lot more beneficial to dedicate a chunk of time and deep study to a topic. This way I can be consistently and thoughtfully updating my toolbox and skill set, and then solidifying the implementation down the line.</p><p>The main focus of the last week has been learning the basics of <a href="https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html">Objective-C</a>. It is well understood that <a href="https://developer.apple.com/swift/">Swift</a> is Apple’s preferred language of choice but prior to the release of Swift in 2014, Objective-C was the main contender. This means that there is still a lot of projects out there written in Objective-c and so it is important to understand. I practiced implementing Xcode migration tools to convert sections of a project to Swift.</p><p>Also, most of the native <a href="https://developer.apple.com/documentation/">Coca Touch API’s</a> were developed in Objective-c. Learning the history of Cocoa Touch, Objective-C, Steve Jobs, and NeXTSTEP was super interesting . Not only this, but there is a lot of instances where I have had to interact with an <a href="https://developer.apple.com/library/content/documentation/Swift/Conceptual/BuildingCocoaApps/InteractingWithObjective-CAPIs.html">Objective-c API in a Swift project</a>. I can now understand what I am writing without feeling as if I should know something more. An example of this being selectors and the <a href="https://developer.apple.com/library/content/documentation/General/Conceptual/CocoaEncyclopedia/Target-Action/Target-Action.html">target-action design pattern</a></p><p>Learning the basics also taught me a lot about <a href="https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/MemoryMgmt.html">Memory Management</a> but more on this later.</p><p>I find that Objective-c is syntactically very different to Swift and being based on C, reminded me a lot of the C# workshops I had at uni. Now I have context and some experience, I completely understand when Swift is described as much more intuitive and safe compared to other languages.</p><p>I am by no means as competent as in Objective-c as I am in Swift but I am looking forward to the challenge of building a project written fully in Objective-c in a few weeks. Just as I have learned in Swift, there is nothing that beats practice.</p><p>The other topic I devoted a lot of time to was <a href="https://en.wikipedia.org/wiki/Memory_management">memory management</a>. As project I have built previously haven’t been very large or complex, performance and memory haven’t been much of a concern. However it was very insightful and gave me a deeper understanding of how memory interacts witht eh software through allocation and deallocation.</p><p>When Swift was released, <a href="https://developer.apple.com/library/content/releasenotes/ObjectiveC/RN-TransitioningToARC/Introduction/Introduction.html">Automatic Reference Counting</a> or ARC was already in use and so I had no context in development pre ARC. Linking back to the Objective-c course, learning about <a href="https://medium.com/@ITZDERR/ios-memory-management-arc-in-objective-c-and-swift-part2-f8d269c5e9c">memory directives</a> in both <a href="http://blog.teamtreehouse.com/ios-memory-management-part-1">Manual Retain Release</a> (pre ARC) and ARC gave me a much better insight into the nuances of MRR and why ARC is used today. All of this is abstracted away in Swift and it doesn’t come naturally.</p><p>Completing this workshop proved beneficial almost immediately as when I ran project 6 and inspected its profile using <a href="https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/InstrumentsUserGuide/index.html">Instruments</a>, I found a I had a few <a href="https://en.wikipedia.org/wiki/Memory_leak">memory leaks</a> in the form of <a href="https://cocoacasts.com/what-are-strong-reference-cycles">strong reference cycles</a>. While implementing the Networking layer, a completion handler had captured reference to its parent class — in this case the view controller — and I had forgot to unown it in the <a href="https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/Closures.html">capture list</a>.</p><blockquote><em>Overall, I love learning about the lower level abstrations that we hardly have to deal with today. I find it super interesting to find out how things actually interact but more importantly it takes away the voodoo magic of how the code I write actually interacts with the machine. I’ve also found this linking and ‘aha’ moments also occurring when learning about very low level concepts at uni such as architecture (hardware), and number systems.</em></blockquote><p>Unfortunately, I’ve had to reduce my time on iOS development as I revise for exams. Revision very much feels like <strong>actual work </strong>which has actually made me realise how much I enjoy working within iOS. I realise I never have to <strong>‘get motivated’ </strong>in<strong> </strong>order to start on a new project or tackle a new topic which feels very different. It’s something that feels very natural that I just <strong>‘do’ </strong>rather than<strong> ‘have to do’.</strong></p><blockquote><em>I’m now really excited to laser all my focus on building new projects, learning, and pushing myself over the summer months.</em></blockquote><h3>Any feedback is more than welcome and feel free to message me!</h3><h4>If you find these posts in anyway helpful, you can help others too by pressing the clap button!</h4><h4>You can learn to code and join me on Treehouse <a href="https://treehouse.7eer.net/c/1201369/228915/3944">here </a>😊</h4><h4>Social: <a href="https://www.instagram.com/mitchhlittle/">Instagram</a>, <a href="https://www.linkedin.com/in/mitch-little/">LinkedIn</a>, <a href="https://github.com/mitchlittle">GitHub</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=583b0a678dbe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Becoming A Developer: Week 12 (Networking with API’s, Designing custom modal views & Productivity)]]></title>
            <link>https://medium.com/@mitch_little/becoming-a-developer-week-12-networking-with-apis-designing-custom-modal-views-productivity-c1c1a3a838b9?source=rss-4dabb5e97953------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1c1a3a838b9</guid>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[hackernoon]]></category>
            <category><![CDATA[code-newbie]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Mitch Little]]></dc:creator>
            <pubDate>Tue, 24 Apr 2018 21:35:48 GMT</pubDate>
            <atom:updated>2018-04-24T21:36:19.956Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kkC0mSwSP8P82rwz2NdJlA.jpeg" /><figcaption>Sunset, Manchester</figcaption></figure><p>In last weeks <a href="https://medium.com/@mitch_little/becoming-a-developer-week-11-9dd33d059562">post</a>, I focused heavily on planning:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t0xeZoFdJs6KV56leYswEg.png" /><figcaption>An extract for last week</figcaption></figure><p>I held myself back form just jumping into project 6 of the <a href="https://teamtreehouse.com/techdegree/ios-development-with-swift">Treehouse Techdegree</a> and mapped out my rough actions instead. I write a week later having completed project 6 as well as a whole host of other things. When I’ve said in previous weeks I’d been productive, perhaps I just mean consistent.</p><p>Project 6 was the first feature full application I’d designed and written whereas proevious projects — without knocking the practice and knowledge I’d gained — had been much smaller in scale or a component such as form field. Since last week where I’d implemented the data model and networking layer and set up the <a href="https://developer.apple.com/documentation/uikit/uipickerview">UIPickerView</a> through its data source and delegate methods I’ve added a few more features.</p><p>Firstly, I’d managed to download JSON data from an API and populate the <a href="https://developer.apple.com/documentation/uikit/uipickerview">UIPickerView</a> but only with the first page of results. I needed to implement logic that could check for the ‘next’ url and if it existed, to once again call the networking methods I’d set up previously and continue to do so until all the requested data from the paginated API was downloaded and used.</p><p>My only issue with the networking now is the efficiency. I am currently requesting, downloading, and parsing every data point before the View Controller segues to the next. This is not necessarily holding up the User Interface due to the asynchronous networking calls. Corresponding to the <a href="https://developer.apple.com/design/">Human Interface Guidelines</a> I have added an activity indicator but the flow feels very slow. I’d like to make this calls on an individual basic triggered by the UIPickerView’s <a href="https://developer.apple.com/documentation/uikit/uipickerviewdelegate/1614371-pickerview">pickerView(_:didSelectRow:inComponent:)</a> method however I may be treading into <a href="https://developer.apple.com/documentation/foundation/operation">Operations</a> territory so the call could be cancelled if the user changes selection again.</p><p>I also added a currency converter that converts Galatic Creds (from star wars) to GBP using a user inputted exchange rate. Working with <a href="https://developer.apple.com/documentation/uikit/uitextfield">UITextField</a> again is great practice as it concerns the <a href="https://developer.apple.com/documentation/foundation/notificationcenter">notification centre</a> and <a href="https://developer.apple.com/documentation/uikit/touches_presses_and_gestures/understanding_event_handling_responders_and_the_responder_chain">responders</a> as the whole root view moves up to accommodate the appearance of the keyboard. This time I also found a way to temporarily hide the status bar to stop it clashing with the root view. I can’t undestand why Apple depreciated the <a href="https://developer.apple.com/documentation/uikit/uiapplication/1622982-isstatusbarhidden">isStatusBarHidden</a> property which would’ve made the process much less complex.</p><p>With regards to networking, I handled all the errors appropriately informing the user and also manager to link to the iOS settings page in the completion handler of the <a href="https://developer.apple.com/documentation/uikit/uialertaction">UIAlertAction</a> so if the user is offline, they can quickly jump into the settings of their device.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*gxLisVTBtX5-bLwAp7Hkng.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/283/1*0i5G_JmxyDLjcKnPV75crQ.png" /></figure><p>One of the most exciting parts I worked I worked on that I am also very please with for change is the custom modal view I designed and built in interface buidler. In hindsight it is fairly simple but it proves I’ve come a long way in providing my own solutions.</p><p>I essentially just built a small custom <a href="https://developer.apple.com/documentation/uikit/uialertcontroller">UIAlertController</a> stye view with an embedded button, on top of a <a href="https://developer.apple.com/documentation/uikit/uivisualeffectview">UIVisualEffectView</a>.</p><p>Now when the segue is executed the modal view ‘cross dissolves’ onto the view controller with the context still visible yet blurred. I added a corner radius and now I think it looks quite smart.</p><p>With project 6 complete that puts me half through the <a href="https://teamtreehouse.com/?irgwc=1&amp;click_id=0ni2n0UO3SjCRPNwJUVUOx6nUkj3nsQk1RAtU00&amp;iradid=228915&amp;ircid=3944&amp;irpid=1201369&amp;iradname=Online%20Tracking%20Link&amp;iradtype=ONLINE_TRACKING_LINK&amp;iradsize=&amp;irmpname=Mitchell%20Little&amp;irmptype=mediapartner&amp;utm_source=ir&amp;cid=4612">iOS Techdegree</a>. Before starting project 7 I am taking an <a href="https://teamtreehouse.com/library/objectivec-for-swift-developers-2">Objective-C course</a> and a <a href="https://teamtreehouse.com/library/ios-memory-management">memory management workshop</a> both of which I’m really excited for as I can learn a lot of new things and it is a pleasure watching treehouse content.</p><p>I’m also trying to focus more on the UI, UX, and product design aspects of the development progress as I am starting to becoming curious as to how the designer — developer relationship works in the industry and how interfaces built in software such as Photoshop or Sketch are added to an Xcode project. I also thoroughly enjoy designing which I loved studying at GCSE and A Level which programming doesn’t fulfil in quite the same way, although still creative nonetheless.</p><p>As well as completing this project I also finished a 5500 word report, scored 80% in a computing exam I took last Friday — both for uni — and planned a trip to Morocco.</p><p>The report I actually enjoyed writing. It focussed on sustainability and electric cars both of which I hold high levels of interest in. Or perhaps I just love <a href="https://medium.com/u/24413768aadb">Tesla Motors</a> and Elon Musk too much.</p><p>The computing exam just rounded off everything I’d studied at Uni in the last year including system architecture, logic gates, boolean notation, truth tables, networking, number systems, and operation systems. A lot of the iOS SDK abstracts the low level details away so it is always interesting when I am able to link the two. I was also texted on some C# code which I found intuitively easy to read after learning swift. I’m hoping Objective-C will come just as naturally.</p><p>The trip I will write about when I get back 😃</p><p>I’ve come to point however where I delay and waver on uni work because I just prefer practicing an honing my skills as an iOS developer. Since started uni back in September I’ve actually thought <a href="https://medium.com/u/fb8d78e7d205">Treehouse</a> is better than any lecture, lab, or tutorial I’ve been to. The material is much more up to date and new courses and workshops (not just on programming) are added all the time. I don’t think the keynotes have been updated for at least 5 years, let alone the curriculum for my degree. <a href="https://medium.com/u/fb8d78e7d205">Treehouse</a> is just much more professional and enjoyable, and I’ve learned way more without evening meeting the tutors <a href="https://medium.com/u/5a90b502367a">Pasan Premaratne</a> and <a href="https://medium.com/u/94ed4e6438c0">Gabriel Nadel</a>.</p><blockquote><strong><em>I simply value my own work in creating, building, failing, and learning more than I value jumping through the hoops or curriculums and marking schemes to gain a degree. I also believe in myself more than ever before which allows me to work way harder and earn success on my own terms.</em></strong></blockquote><p>That’s something I’d never thought I’d say before.</p><h3>Notes to self on getting stuff done.</h3><h4>Prioritize</h4><p>In my life I have defined three pillars that map to my goals.</p><ol><li>Friends and family</li><li>Myself (Health, sleep, learning, education)</li><li>Opportunity (Exposure, Growth)</li></ol><p>Any action that does not help build one of these pillars gets a no.</p><blockquote>‘It’s really clear that the most precious resource we all have is time’. — Steve Jobs</blockquote><p><strong>Plan</strong></p><p>Having a plan just provides clarity and a place to start</p><p><strong>Execute</strong></p><blockquote>‘If you wan’t something, anything, do the work and earn it’ — <a href="https://medium.com/u/cb3bf029673b">Casey Neistat</a></blockquote><ul><li>Consistency over time spent</li><li>Effort over results</li><li>Be laser focused</li><li>Finish — reduce perfectionism</li></ul><blockquote>‘Perfect is the enemy of good’ — Voltaire</blockquote><h3>Conclusion</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WJ4tUQMdeP8XQ0hveJB1zQ.png" /><figcaption>Conclusion Week 11</figcaption></figure><p>I fulfilled last weeks wish and even managed to enjoy some of the sunshine in Manchester over the weekend in Whitworth park.</p><p><strong>I’ve put in effort and been productive whilst feeling in a strange meditative flow. I have had no stress or anxiety even with exams and deadlines and I haven’t once felt ‘busy’. I’m feeling really good. I’m hoping this mind set I’m developing now will stay with me for sometime.</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fog3aFSeEm94%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dog3aFSeEm94&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fog3aFSeEm94%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/5d5e979872bfdbd4fe58420852b0a828/href">https://medium.com/media/5d5e979872bfdbd4fe58420852b0a828/href</a></iframe><p>On a side note, I’ve been loving <a href="https://medium.com/u/cb3bf029673b">Casey Neistat</a>’s 368 series on YouTube. I feel this episode relates quite nicely.</p><h3>Any feedback is more than welcome and feel free to message me!</h3><h4>If you find these posts in anyway helpful, you can help others too by pressing the clap button!</h4><h4>You can learn to code and join me on Treehouse <a href="https://treehouse.7eer.net/c/1201369/228915/3944">here </a>😊</h4><h4>Social: <a href="https://www.instagram.com/mitchhlittle/">Instagram</a>, <a href="https://www.linkedin.com/in/mitch-little/">LinkedIn</a>, <a href="https://github.com/mitchlittle">GitHub</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1c1a3a838b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Becoming A Developer: Week 11 (Planning)]]></title>
            <link>https://medium.com/@mitch_little/becoming-a-developer-week-11-9dd33d059562?source=rss-4dabb5e97953------2</link>
            <guid isPermaLink="false">https://medium.com/p/9dd33d059562</guid>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[treehouse]]></category>
            <category><![CDATA[freecodecamp]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[self-improvement]]></category>
            <dc:creator><![CDATA[Mitch Little]]></dc:creator>
            <pubDate>Tue, 17 Apr 2018 18:46:51 GMT</pubDate>
            <atom:updated>2018-05-02T15:20:23.385Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@mitch_little/becoming-a-developer-week-10-fd00a92fc3f0">Last week</a> I focussed on studying new topics and revisiting previous ones such as concurrency, networking, and debugging. Since, I have still very much remained on paper in planning my approach to Project 6.</p><blockquote>“Give me 6 hours to chop down a tree and I will spend the first four hours sharpening the axe” — Abraham Lincoln</blockquote><p>One of the main things I have learned in this journey is the important of planning. My recent increase in efficiency just this week is manifested in the planning I did prior to this project. This is also at a vital period as I also have to factor in time for exam revision, and deadlines.</p><p>I’m focussing heavily on efficiency and consistency over the next month so I can make the most out of everyday.</p><p>This practice of planning I mention has greatly imrpoved over the last two months. No longer do I jump straight in to a project and come to a dead end or a <em>blunt axe.</em></p><p>For project 6, my plan is broken down into a workflow / to do list predicated on the components and topics I think I will need to use. By creating a rough high level overview of what I need to do from start to finish, I not only have a good workflow and idea of what I should be doing but it also identifes the topics I need to <em>sharpen</em> up on. I can then take these topics and study and practice them in depth which in turn, expands and concretes my knowledge for the futre and also helps grow my ideas on how the app will actually work.</p><p>One of the maun topics I had always been hesitant to face was networking. It is inevitable I would have to use it as most apps connect to an online server. I think the way the networking layer is implemented in the <a href="https://medium.com/u/fb8d78e7d205">Treehouse</a> courses confused the matter for what it really is. I will definitely use their methods due to reusability but separating concerns with a separate downloader and client combined with the use of protocol, encoding, generics, and completion handlers added a lot of baggage when initially visiting the key componenets. Through Apple’s documentation, I simply practices opening a session, generating a task from a request and url and parsing the JSON data received into types or throwing the relevant errors. Taking this basic approach took down my mental barrier to networking and now I feel comfortable to start focussing on SOLID principles and reusabilty.</p><p>After this planning, things can not unexpectedly not work and it is important to bare this in mind. A flexible human brain can look over small details that Xcode will not. Over time, I think this process will become much more accurate as problems become more easily anticipated.</p><p>Overall however my plan gave me a good start to and in just two days I built the model layer, the user interface, the networking layer, and populated a UIPickerView through its data source and delegate methods. Considering the last project took me over a month and a lot of stress — did I plan? — Nope.</p><p>Of course I will have to reiterate in the future as I mentioned but I’m seeing much stronger progress.</p><p>I have learned a lot, thought and studied deeply, planned well and had a great start to the weak. Breaking the project down like I have with this one really took away that initial overwhelming feeling I always have when starting a new project.</p><blockquote>“The last 10% of effort will provide 90% of the upside” — <a href="https://medium.com/u/443a79b5bcd8">Steve Bartlett</a>, CEO Social Chain</blockquote><p>I’m approaching the end of this academic year now and I feel it is easy to lose focus with the Summer months around the corner. As long as I keep my effort and efficiency high I think I can balance my iOS progress, uni coursework, and exam revision well and see some positive results throughout this week and the next month.</p><h3>Any feedback is more than welcome and feel free to message me!</h3><h4>If you find these posts in anyway helpful, you can help others too by pressing the clap button!</h4><h4>Social: <a href="https://www.instagram.com/mitchhlittle/">Instagram</a>, <a href="https://www.linkedin.com/in/mitch-little/">LinkedIn</a>, <a href="https://github.com/mitchlittle">GitHub</a></h4><h4>You can learn to code and join me on Treehouse <a href="https://treehouse.7eer.net/c/1201369/228915/3944">here </a>😊</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9dd33d059562" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Becoming A Developer: Week 10 (Bugs, Balance, and Concurrency)]]></title>
            <link>https://medium.com/@mitch_little/becoming-a-developer-week-10-fd00a92fc3f0?source=rss-4dabb5e97953------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd00a92fc3f0</guid>
            <category><![CDATA[treehouse]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[freecodecamp]]></category>
            <category><![CDATA[self-improvement]]></category>
            <dc:creator><![CDATA[Mitch Little]]></dc:creator>
            <pubDate>Tue, 10 Apr 2018 15:22:44 GMT</pubDate>
            <atom:updated>2018-05-02T15:18:50.364Z</atom:updated>
            <content:encoded><![CDATA[<p>Compared to the previous two weeks of this Easter break from Uni, I managed to focus on my efforts and progressed forward a significant amount. Although I posted two days later than usual last week, in those five days I finished project 5, re submitted project 5 with some changes, and spent a lot of time just studying topics that I though relevant to project 6 whether new or old.</p><p>In terms of balance, I’ve realised giving myself time to think, learn, grow, and focus on progress, enables the quality of time I spend within the sphere of other priorities such as friends and family to be much richer as I can be 100% present.</p><p>On Saturday, I finally uploaded project 5. I say finally because I started the app in project 4 on the 2nd March and I feel as if I have been working on it for too long. Ultimately however I learned a great deal in general programming, the iOS SDK and CocoaTouch frameworks and also about myself.</p><p>In terms of general programming, I really learned the importance of planning to allow for a more efficient build time and scalability in the future especially concerning the design and logic of the model layer and its inherent types. Everything did work out well but I feel sometimes I was just plugging holes instead of crafting a solid project. Perhaps I am over critical of myself but I know I will definitely focus much more on planning in the future.</p><p>Following on from self-criticism. I consistently worry about my implementations, my solutions to problems and the best practices to adhere to and it really does hinder my process and cripple my self-belief. These projects allow me to focus on finding a balance between shipping a solid product and avoiding perfectionism. On a side note, this post from <a href="https://medium.com/u/8b318225c16a">freeCodeCamp</a> shared in my Slack group I found really useful.</p><p><a href="https://medium.freecodecamp.org/why-striving-for-perfection-might-be-holding-you-back-as-a-newbie-web-developer-6e8ae257751f">Why striving for perfection might be holding you back as a newbie web developer</a></p><p>More specifically, on Friday and Saturday I formatted and restricte the minimum and maximum size of the text fields using the <a href="https://developer.apple.com/documentation/uikit/uitextfielddelegate/1619599-textfield">textField(_:shouldChangeCharactersIn:replacementString:)</a> method and a custom max character method. The text fields are now only validated if they are in a certain range of character or in some cases, only accept numeral characters.</p><p>I also updated the method to check an entrants privileges to check a more specific instant property such as company they are from. I used the <a href="https://developer.apple.com/documentation/audiotoolbox">AudioToolbox</a> framework to play a sound depending on whether access is denied or granted.</p><p>After uploading the project, it was returned as I forgot to conform the two new entrant types I added to the relevant <a href="https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/Protocols.html">protocols</a> that the above privilege method is based on. I also decided not to implement the functionality that employs stub data throughout the app as I through it was unrealistic. But for the purpose of testing I implemented the logic which actually lead to some light refactoring. Adding this functionality also proved to me that my project is perhaps more scalable with new features and functionality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*66rRgbhjb0VrNx-kplq4pg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sFdb69oirs5fd-nMSzkxUA.png" /><figcaption>Overall comments from <a href="https://medium.com/u/fb8d78e7d205">Treehouse</a> project review</figcaption></figure><p>Before I start project 6 I have and will continue to study some new topics and revisit some others. The <a href="https://teamtreehouse.com/library/programmatic-auto-layout">Programmatic Auto Layout workshop</a> by <a href="https://medium.com/u/5a90b502367a">Pasan Premaratne</a> and the <a href="https://teamtreehouse.com/library/debugging-for-ios">Debugging for iOS</a> workshop by <a href="https://medium.com/u/94ed4e6438c0">Gabriel Nadel</a> that are apart of the <a href="https://teamtreehouse.com/techdegree/ios-development">Techdegree curriculum</a> were very insightful. I’ve studied and implemented views, constraints, and properties in code before however this workshop solidified my knowledge further. When adding programmatic constraints before I’d always create an instance of <a href="https://developer.apple.com/documentation/uikit/nslayoutconstraint">NSLayoutConstraint</a> and then acivate the the instance(s). The initialiser method however is long and tedious to use and especially when creating multiple constraints for multiple views. Instead, I rediscovered in the workshop the <a href="https://developer.apple.com/documentation/uikit/nslayoutanchor">NSLayoutAnchor</a> class. This class is an example of the <a href="https://en.wikipedia.org/wiki/Factory_method_pattern">Factory Method design pattern</a> which returns an instance of <a href="https://developer.apple.com/documentation/uikit/nslayoutconstraint">NSLayoutConstraint</a> depending on the layout anchor and therefore method used. I was also familiarised with the <a href="https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/AutolayoutPG/VisualFormatLanguage.html">Visual Format Language</a> incase I come accross it in the future. I’m surprised Apple actually used to recommend this method previously because it seems so error prone and unsafe compared to the rest of the SDK.</p><p>I also learned about Layout Guides between views (as opposed to safe area layout guides in <a href="https://developer.apple.com/xcode/interface-builder/">Interface Builder</a>) and implementing instances of <a href="https://developer.apple.com/documentation/uikit/uilayoutguide">UILayoutGuide</a> to flexibly space views apart. Extending from this, I was introduced to <a href="https://developer.apple.com/documentation/uikit/uiedgeinsets">UIEdgeInsets</a> and the <a href="https://developer.apple.com/documentation/uikit/uiviewcontroller/2902284-additionalsafeareainsets">additionalSafeAreaInserts</a> instance property to shrink / expand the view controller’s safe area.</p><p>The <a href="https://teamtreehouse.com/library/debugging-for-ios">Debugging in iOS</a> workshop I found very exciting too. Althought in a perfect world bugs wouldn’t exist, learning about <a href="https://lldb.llvm.org/">LLDB</a> and the Xcode debugging tools is something completely new to me. I actually find the frustration and reward cycle of solving bugs very addictive and it teaches you a lot about the code / logic in the project.</p><p>Check out the <em>‘First actual case of bug being found’ </em>By Grace Hopper.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ndzz3X-5z-cEt8FB8gYjXg.jpeg" /><figcaption>Courtesy of <a href="https://medium.com/u/593d161f98ae">National Museum of American History</a></figcaption></figure><p>Now I have been introduced to the <a href="https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/debugging_with_xcode/chapters/debugging_tools.html">first proper tools and recommended tactics</a> to find and solve bugs without spending hours doing so through a sometimes endless and frustrating trial and error approach. I think however debugging and finding a cause comes pretty natural to me which is useful. We covered breakpoints and steps (super useful when following the flow and an apps logic), <a href="https://raygun.com/blog/ios-exceptions-and-errors/">errors vs exceptions</a>, and examined the call stack, its icons, and the <a href="https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/debugging_with_xcode/chapters/special_debugging_workflows.html">debugging of view hierarchies</a>. Seeing an exploded view of the view hierarchy fascinated me and really pushed my understanding of it.</p><p>Debugging also highlighted why software engineering is such an approachable engineering discipline compared to others. You can play around, experiment, and break things and if everything collapses you can just plug whatever you removed back in or reset via source control with no harm done, and hopefully a lot learned.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*wprxJUAWV8I1RK9r8WDLEQ.gif" /><figcaption>Courtesy of <a href="https://medium.com/u/89e606173af3">GIPHY</a></figcaption></figure><p>In the planning for project 6, I have made a list and I am currenty studying the topics I think will be relevant. Not only does this allow me to have some idea of what tools I will need to approach the project, but it massively diffuses the all too common feeling of being overwhelmed at the start of a new project whilst benefiting my skills by concreting previous knowledge.</p><blockquote><em>“Nothing is particularly hard if you divide it into small jobs” — Henry Ford</em></blockquote><p>I’ve explored previous projects from last year (before Techdegree), watched videos, and read a lot. I’m truly taking this time to get comfortable with these ‘intermediate’ topics before I go ahead and use them in my work.</p><p>For networking I have covered:</p><ul><li>REST (Representational State Transfer)</li><li>HTTP (Hyper Text Transfer Protocol)</li><li>API’s (Application Programming Interfaces)</li></ul><p>The above includes sending GET requests to the server in order to receive data in an app in JSON (Java Script Object Notation) format. This JSON data can then be parsed and used to populate data types.</p><p>Relevant classes include: <a href="https://developer.apple.com/documentation/foundation/urlsession">URLSession</a>, <a href="https://developer.apple.com/documentation/foundation/urlsessionconfiguration">URLSessionConfiguration</a>, <a href="https://developer.apple.com/documentation/foundation/urlrequest">URLRequest</a>, <a href="https://developer.apple.com/documentation/foundation/jsonserialization">JSONSerialization</a>, <a href="https://developer.apple.com/documentation/foundation/urlqueryitem">URLQueryItem</a>, <a href="https://developer.apple.com/documentation/foundation/urlcomponents">URLComponents</a> and various other methods and properties.</p><p>In addition I took a deep dive into Concurrency and related topics in an attempt to familiarise myself with notions that I have found confusing in the past. Topics include:</p><ul><li>Dispatch (GCD)</li><li>Dispatch Queues</li><li>Operations / NSOperation</li><li>Operation Queues / NSOperationQueues</li><li>Parallelism</li><li>Concurrency</li><li>Asynchronous / Synchronous code</li><li>Multithreading</li></ul><p>Learning these topics are also of great important in general computer science and CPU / task management I believe. They are such diverse topics with much information on the internet. I found these analogy based resources very helpful:</p><ul><li><a href="https://swiftludus.org/using-grand-central-dispatch-and-concurrency-in-ios/">A Guide to Grand Central Dispatch and Concurrency in iOS</a></li><li><a href="https://medium.com/flawless-app-stories/basics-of-parallel-programming-with-swift-93fee8425287">Basics of parallel programming with Swift</a></li><li><a href="https://blog.metova.com/concurrency-in-ios/">Concurrency in iOS</a></li></ul><p>I think in the next project I’d like to experiment with using a dependency such as <a href="http://alamofire/">Alamofire</a> or <a href="https://github.com/Moya/Moya">Moya</a> to handle the networking layer. Although it is definitely beneficial to learn the key concepts before abstracting them away.</p><p>As I have studied some form of design subject since I was 11 at school, I have started to work through the design courses on Treehouse. These include a <a href="https://teamtreehouse.com/library/design-foundations">foundation design</a> course which covers basic components to beginner <a href="https://teamtreehouse.com/library/introduction-to-product-design">product design</a>, <a href="https://teamtreehouse.com/library/mobile-app-design-for-ios">iOS mobile design (UI/UX)</a>, <a href="https://teamtreehouse.com/library/design-thinking">design thinking</a> courses and <a href="https://teamtreehouse.com/library/topic:design">more</a>. Although writing code and crafting mobile apps requires a lot of thought, I feel pushing into my creative side will not only increase my skill set but aid in my problem solving, architecture design, and general thought processes.</p><p>Lastly, I just spent some time re-familiarising myself with some UIKit class such <a href="https://developer.apple.com/documentation/uikit/uitableview">UITableView</a>, <a href="https://developer.apple.com/documentation/uikit/uisearchbar">UISearchBar</a>, and <a href="https://developer.apple.com/documentation/uikit/uipickerview">UIPickerView</a> ready for project 6.</p><h3>Conclusion</h3><p>Currently, I feel very comfortable when it comes to researching and studying a new topic due to the academic environment I have spent so much time in. I am excited, to test myself in project 6 by implementing some more complex componenets to the app. With no difference in project 5, I always find the last 20% the hardest, mentally, to push through however I am satisfied with my efforts this week and the resulting progress. According to Treehouse I am just under 50% through the Techdegree and as always I am excited to continue on with this roller coaster of an educational journey.</p><h3>Any feedback is more than welcome and feel free to message me!</h3><h4>If you find these posts in anyway helpful, you can help others too by pressing the clap button!</h4><h4>Social: <a href="https://www.instagram.com/mitchhlittle/">Instagram</a>, <a href="https://www.linkedin.com/in/mitch-little/">LinkedIn</a>, <a href="https://github.com/mitchlittle">GitHub</a></h4><h4>You can learn to code and join me on Treehouse <a href="https://treehouse.7eer.net/c/1201369/228915/3944">here </a>😊</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd00a92fc3f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>