<?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 Evgen Starikov on Medium]]></title>
        <description><![CDATA[Stories by Evgen Starikov on Medium]]></description>
        <link>https://medium.com/@evgenystarikov?source=rss-b69dbf00f4fc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9ssfnV6OodiyGEhllHbuEw.jpeg</url>
            <title>Stories by Evgen Starikov on Medium</title>
            <link>https://medium.com/@evgenystarikov?source=rss-b69dbf00f4fc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 21:12:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@evgenystarikov/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[Camel style and Xcode extension challenge]]></title>
            <link>https://medium.com/@evgenystarikov/camel-style-and-xcode-extension-challenge-8b7aad589dfe?source=rss-b69dbf00f4fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b7aad589dfe</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[camel]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[extension]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Evgen Starikov]]></dc:creator>
            <pubDate>Fri, 06 Oct 2017 13:31:15 GMT</pubDate>
            <atom:updated>2017-10-08T07:23:37.490Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article I am going to show how to create an extension for Xcode, it’s not difficult. Imagine, you want to use camel style for your code (using shortcuts).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*5Zr0a7-4aL6kFs__jsxqTQ.gif" /></figure><p>Create a project for Mac. Add the extension: File -&gt; New -&gt; Target -&gt; Xcode Source Editor Extension</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*oW16qVx_Wn5ylZ-g5D4h6w.png" /></figure><p>Not bad! First of all, we need to implement a functionality which converts simple text into code :) It can be extension for String:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/82e4ef7420a9e3e5cd3b4bb0653ff24e/href">https://medium.com/media/82e4ef7420a9e3e5cd3b4bb0653ff24e/href</a></iframe><p>Now you can create your own variables or function names (<em>I know your function names in the tests are very long</em>). But we’re not ready. The next step is a bit more complicated. We need to get the text from the buffer, replace it and handle the error:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9720f9fc6bfa2a20e4f1931aada7f8cf/href">https://medium.com/media/9720f9fc6bfa2a20e4f1931aada7f8cf/href</a></iframe><p>Don’t forget import XcodeKit.</p><p>You ask me “We are ready?” Oo yes, technically we are ready, but we would like to add manual for developers — for us :) Just run app on your mac, I added in Storyboard description how to install it and screenshots:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*NfpEJdW4e_TiZMqwReq0uA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/663/1*porcHJaOh2GzTIc7lGAKzQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*_cOiyhkLyutqAxTRr29HIw.png" /></figure><p>I hope this article will help You to create your own extensions 🚀</p><p>Check out the final project here:</p><p><a href="https://github.com/eastari/XCamelize">eastari/XCamelize</a></p><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b7aad589dfe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Assembly in VIPER]]></title>
            <link>https://medium.com/@evgenystarikov/assembly-in-viper-58e241fa75fe?source=rss-b69dbf00f4fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/58e241fa75fe</guid>
            <category><![CDATA[assembly]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[viper]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Evgen Starikov]]></dc:creator>
            <pubDate>Thu, 21 Sep 2017 12:02:46 GMT</pubDate>
            <atom:updated>2017-09-21T12:04:09.177Z</atom:updated>
            <content:encoded><![CDATA[<p>In the project I’m working on, I chose architectural pattern — VIPER. This is music producing app, it is allow you to play, record and mix third-party instruments. The skeleton of the main module (in simplified form):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*d8Or2s_p1mdrNmfQWrF2nQ.jpeg" /></figure><p>In the beginning the app was designed for the iPad, later the app was developed for iPhone and the main module changed. Some components can be used for both devices (universal), some are not:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*JVxx8OoojOviqYEtAGWByQ.jpeg" /></figure><p>We want to keep classes as clean as possible. Every time you create/change a class, you should ask yourself: <em>How many responsibilities does this class have? (</em><a href="https://en.wikipedia.org/wiki/Single_responsibility_principle"><em>Single Responsibility Principle</em></a><em>).</em></p><p>I think, responsibility to create a module and DI (return a graph of objects) — should belong to a special class. It should not make the AppDelegate, Router or VC. This can make your <strong>Assembly</strong>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6cf6c3bff382b53e897a5851163cd26f/href">https://medium.com/media/6cf6c3bff382b53e897a5851163cd26f/href</a></iframe><p>Rest of the code is very simple:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/79d2f5c90b22b44cf6932e9ba55419b3/href">https://medium.com/media/79d2f5c90b22b44cf6932e9ba55419b3/href</a></iframe><p>Then I offered to create app for the Mac, why not …</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58e241fa75fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>