<?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 Ronald Dragstra on Medium]]></title>
        <description><![CDATA[Stories by Ronald Dragstra on Medium]]></description>
        <link>https://medium.com/@ronald.dragstra?source=rss-4c3729bf4c08------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4gevYi5BqaAbUAUEU3_OIg.jpeg</url>
            <title>Stories by Ronald Dragstra on Medium</title>
            <link>https://medium.com/@ronald.dragstra?source=rss-4c3729bf4c08------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 07:47:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ronald.dragstra/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[Public isn’t that open anymore?!]]></title>
            <link>https://medium.com/impala-studios/public-isnt-that-open-anymore-69ca3d7e6665?source=rss-4c3729bf4c08------2</link>
            <guid isPermaLink="false">https://medium.com/p/69ca3d7e6665</guid>
            <category><![CDATA[composition]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[framework]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[apple]]></category>
            <dc:creator><![CDATA[Ronald Dragstra]]></dc:creator>
            <pubDate>Mon, 22 Aug 2016 14:02:52 GMT</pubDate>
            <atom:updated>2016-08-22T14:02:52.923Z</atom:updated>
            <content:encoded><![CDATA[<p>I’m very excited about Swift 3 and all the changes that are coming. One of the changes i found out about when attending this <a href="http://www.meetup.com/CocoaHeadsNL/events/232230128/">CocoaHeads meetup</a> is that there’s a new access control type: <em>open</em>.</p><p>Basically declaring a class as ‘open’ means that the class can be subclassed outside the module. So this access control type is one step further than the <em>public </em>control type.</p><p>It even goes further: if you don’t declare a method as <em>open </em>then a subclass outside the module won’t be able to override this method.</p><p>Be aware of this major change when you are creating or maintaining modules (or frameworks, if you prefer calling it the old way).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5YOU8URlXkQKG9Jb71_X1A.jpeg" /></figure><p>So i wonder why Apple made this change. One of the biggest reasons i can come up with is: Apple doesn’t like subclassing anymore, or at least not without giving it a good thought. Slowly yet steady they are trying to push us to the idea of ‘Favor composition over inheritance’. Watch Apple’s (in my opinion very nice) presentation <a href="https://developer.apple.com/videos/play/wwdc2016/419/">Protocol and Value Oriented Programming in UIKit</a> from WWDC 2016.</p><p>Is this a good thing? Well, ending up with a module (/framework) that feels like Lego blocks is something very nice. Instead of a module telling you what and how to implement your app. Is this a huge change? Yes it certainly is. It’s something to get used to, but hey that’s developer’s life :-) For now i would say: if you start a new module then try it out and think of composition.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69ca3d7e6665" width="1" height="1" alt=""><hr><p><a href="https://medium.com/impala-studios/public-isnt-that-open-anymore-69ca3d7e6665">Public isn’t that open anymore?!</a> was originally published in <a href="https://medium.com/impala-studios">Impala Studios</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>