<?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 breandan on Medium]]></title>
        <description><![CDATA[Stories by breandan on Medium]]></description>
        <link>https://medium.com/@breandan?source=rss-27e355452d11------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*U0Oy63K4yO-vuKVi.jpeg</url>
            <title>Stories by breandan on Medium</title>
            <link>https://medium.com/@breandan?source=rss-27e355452d11------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 04:41:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@breandan/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[Be careful with custom accessors in Kotlin]]></title>
            <link>https://medium.com/@breandan/be-careful-with-custom-accessors-in-kotlin-fbd9834922e5?source=rss-27e355452d11------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbd9834922e5</guid>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[breandan]]></dc:creator>
            <pubDate>Tue, 29 Nov 2016 20:05:37 GMT</pubDate>
            <atom:updated>2016-11-29T20:43:41.046Z</atom:updated>
            <content:encoded><![CDATA[<p>In Kotlin it may be tempting to replace every call to Foo.getBar() with Foo.bar. By itself, this is a pretty nice language feature. As a Java developer, to me Foo.bar looks like it will run quickly. Even if it doesn’t, it should be easy to track down the culprit, as long as get() is obviously doing some work. But with indirection, this is not obvious. Let’s say Foo.bar is a custom accessor that returns bar.hop, and getHop() is a Java library function that returns doSomeUnbelievablySlowOperation(). Then, every Foo.bar in your code is actually a Foo.getBar().getHop().doSomeUnbelievablySlowOperation() in disguise, and you may not realize it until much later.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbd9834922e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>