<?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 Andre Perkins on Medium]]></title>
        <description><![CDATA[Stories by Andre Perkins on Medium]]></description>
        <link>https://medium.com/@akperkins1?source=rss-edc6ac248d90------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*uHNnvYKS7r06a8g-.jpeg</url>
            <title>Stories by Andre Perkins on Medium</title>
            <link>https://medium.com/@akperkins1?source=rss-edc6ac248d90------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 12:59:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@akperkins1/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[Automating the Dev T, One Claude Skill at a Time]]></title>
            <link>https://medium.com/@akperkins1/automating-the-dev-t-one-claude-skill-at-a-time-7540669e64b1?source=rss-edc6ac248d90------2</link>
            <guid isPermaLink="false">https://medium.com/p/7540669e64b1</guid>
            <category><![CDATA[claude-skills]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[solo-developer]]></category>
            <category><![CDATA[xcode]]></category>
            <dc:creator><![CDATA[Andre Perkins]]></dc:creator>
            <pubDate>Mon, 13 Jul 2026 13:01:02 GMT</pubDate>
            <atom:updated>2026-07-13T13:01:02.361Z</atom:updated>
            <content:encoded><![CDATA[<p>“Maybe I’ll be a cop.”</p><p>That was my initial thought back in 2024 when I really saw vibe coding for the first time. It was a video about Devin AI.</p><p>Thankfully (for everyone!), that never came to pass. I probably would’ve been as effective as a cop as Homer Simpson guarding a beer.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F2A3DG83yvN8uaBiaNR%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExbXY1bGZ1bGdqNHNzMHQydmVwdG82dGs5dHg2Z2lwZXZwNXl0ZjZtaiZlcD12MV9naWZzX3NlYXJjaCZjdD1n%2F2A3DG83yvN8uaBiaNR%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExN3p2djB0b3FrMm4xdzQzMTVhemlzZTdkZDI3cDR4ZG5qNGFoa3ZwaCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2F2A3DG83yvN8uaBiaNR%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/588fc5a72f9849b6c40d2b3d9f57502a/href">https://medium.com/media/588fc5a72f9849b6c40d2b3d9f57502a/href</a></iframe><p>Three years later and my dev career is still going strong. I’ve been a professional developer since 2012, and I’m currently the sole mobile developer behind an app NYC paramedics use in the field every day. The one thing that is different though is that agents are in fact doing 98% of the coding. Yet, I have never felt busier. Now a lot of my time is spent planning at a higher level of abstraction. But also, something else is happening. I have been able to achieve things in other domains (like data analysis and product) like never before. The things that a solo dev usually had to (badly) improvise.</p><p>So that is the point of this new publication. “Solo Dev Leveling” is my journey as a dinosaur developer who is replacing various parts of the T stack with Claude skills.</p><p>As mentioned in this YouTube video: <a href="https://youtu.be/q_Jq4IgYImk?si=jz_PWdEd4z4tOFo_">https://www.youtube.com/watch?v=q_Jq4IgYImk&amp;t=1211s</a> dev skills are now moving more towards a T. To be fair, it was always a T, but now the vertical end is no longer as scarce as it used to be. It is still very important as of now (and I suspect for a long time).</p><p>But also, the horizontal part of the T is now a lot more accessible due to AI.</p><p>But what does that mean exactly?</p><p>Simply put, the T can be defined as:</p><p><strong>vertical bar</strong> = engineering judgment (clean architecture, CI/CD, debugging, code review; writing code deliberately absent — “that’s the part the agents took”)</p><p><strong>horizontal bar</strong> = prototyping, UX, QA, data analysis, product strategy, project management</p><p>Similar to my favorite anime at the moment, Solo Leveling, every time I automate a part of the T, I level up and get that much faster. However, I would like to clearly define and document as well as link to certain gist skills to easily track this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*3Mo6MS_JbDRvaYaEyRRpzA.png" /></figure><p>Starting with this image, which I will continue to define and refine until we can all be awesome solo devs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZwUTeoFDMvMFs_jNgHh4og.png" /></figure><p>This “Solo Dev Leveling” publication is where I am documenting my attempt to organize and process all of this.</p><p>Which parts of your T have/are you automating first? Leave it in the comments below.</p><p><em>For more solo dev leveling insights (or you just love bad jokes) follow me here:</em></p><ul><li><a href="https://x.com/akperkins1"><em>X — @akperkins1</em></a></li><li><a href="https://www.linkedin.com/in/andrekadeemperkins/"><em>LinkedIn</em></a></li><li><a href="https://www.youtube.com/@thisPromptedLife"><em>YouTube — @thisPromptedLife</em></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7540669e64b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Native > Native >>>> Flutter: (What NYC Recruiters Actually Asked For Over the Last Few…]]></title>
            <link>https://medium.com/@akperkins1/react-native-native-flutter-what-nyc-recruiters-actually-asked-for-over-the-last-few-35cab981768b?source=rss-edc6ac248d90------2</link>
            <guid isPermaLink="false">https://medium.com/p/35cab981768b</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[nyc-software-developers]]></category>
            <dc:creator><![CDATA[Andre Perkins]]></dc:creator>
            <pubDate>Thu, 25 Jun 2026 19:28:03 GMT</pubDate>
            <atom:updated>2026-06-25T19:28:03.574Z</atom:updated>
            <content:encoded><![CDATA[<h3>React Native &gt; Native &gt;&gt;&gt;&gt; Flutter: (What NYC Recruiters Actually Asked For Over the Last Few Months)</h3><p>I have a recurring AI agent that triages emails I receive from technical recruiters. One of the things it does is extract the skills each role requires and track them over time.</p><p>As a mobile engineer in the NYC area, here’s an output of that tracking over the last few months.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CinhzEd2qQm-zQxSgw85TA.png" /></figure><p>tl;dr: React Native &gt; Android (native) &gt; iOS (native) &gt;&gt;&gt;&gt; Flutter in regard to what recruiters are currently looking for.</p><p>I just thought this might be interesting to share :).</p><p>As a Flutter dev, I will now go eat a large bowl of vegan ice cream and curse my life choices.</p><blockquote>Other mobile engineers, are you guys also seeing the same kinds of skills being asked for? If not, comment down below to help us all figure out exactly what we should be focusing on to better prepare ourselves for the future, career-wise.</blockquote><p><em>For more mobile development-related insights (or you just love bad jokes), follow me here:</em></p><ul><li><em>X: </em><a href="https://x.com/akperkins1"><em>https://x.com/akperkins1</em></a></li><li><em>LinkedIn: </em><a href="https://www.linkedin.com/in/andrekadeemperkins/"><em>https://www.linkedin.com/in/andrekadeemperkins/</em></a></li><li><em>YouTube: </em><a href="https://www.youtube.com/@thisPromptedLife"><em>https://www.youtube.com/@thisPromptedLife</em></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35cab981768b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Smart Casts via Assertions + Kotlin Contracts]]></title>
            <link>https://proandroiddev.com/smart-casts-via-assertions-kotlin-contracts-fd737a92013b?source=rss-edc6ac248d90------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd737a92013b</guid>
            <category><![CDATA[assertions]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Andre Perkins]]></dc:creator>
            <pubDate>Fri, 13 Mar 2020 15:17:45 GMT</pubDate>
            <atom:updated>2020-03-17T21:05:51.021Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/475/1*m_kICIMZIt3gNcY6MLAEFA.png" /></figure><p>There are three things I do every-time I start a codebase that I know that I will be maintaining for the long haul.</p><ol><li>Order a <a href="https://en.wikipedia.org/wiki/Rubber_duck_debugging">Rubber Duckie</a> on Amazon</li><li>Familiarize myself with the latest developments in the forever ongoing UI architecture wars (e.g. <a href="https://academy.realm.io/posts/using-flow-mortar/">Mortar and Flow</a>, <a href="https://github.com/bluelinelabs/Conductor">Conductor</a>, <a href="https://github.com/lyft/scoop">Scoop</a>, and the newest challenger <a href="https://developer.android.com/jetpack/compose">Jetpack Compose</a>) before ultimately giving up and just relying on multiple Activities (yup, i’m that kind of Android dev).</li><li>Set up an assertion framework</li></ol><p><strong>Enforcing Invariants through assertions</strong></p><p><a href="https://en.wikipedia.org/wiki/Invariant_(mathematics)#Invariants_in_computer_science">Invariants</a> are some of the best ways to maintain your sanity as a coder. They are essentially unit tests that are always executing since they run during the execution of the production software and will save you a lot of debug time when used correctly. Don’t believe me, just ask <a href="https://dev.to/xowap/10-rules-to-code-like-nasa-applied-to-interpreted-languages-40dd">NASA</a>.</p><p>One of my favorite features in Kotlin is <a href="https://kotlinlang.org/docs/reference/typecasts.html">smart casts</a>. As I was porting over assertion code from an old Java codebase that I had, something that kept bugging me about writing assertion code in Kotlin was the fact that after my assertion code was executed, there wasn’t any way for the kotlin compiler to infer the nullability (or lack thereof) of my instance variables. It would be ideal, if the Kotlin compiler allowed us to smart cast instance variables after the successful execution of assertion code.</p><p>For example, lets say I have a simple assertion function like:</p><pre>fun String?.assertNotNull() {<br>   if (this == null) {<br>       throw AssertionError()<br>   }<br>}</pre><p>And in <strong>main</strong>, I simply call the assertion function</p><pre>fun main() {<br>    val str: String? = “”<br>    str.assertNotNull()<br>    println(“string length = ${str.length}”) // will not compile<br>}</pre><p>Trying to access the <strong>str </strong>variable without the safe call operator will result in a compiler error. Unlike a safe cast within an if expression check for null, the compiler doesn’t know that we have guaranteed that <strong>str</strong> can never be null once the <strong>assertNotNull</strong>() function successfully returns.</p><p><strong>Enter Kotlin Contracts…</strong></p><p>We can use Kotlin Contracts to inform the compiler that we can guarantee certain properties about the parameters to the function based on how/what the function returns.</p><p>In this example, via a <strong>Contract Builder</strong>, we inform the compiler that if this function returns normally, the object that this extension function was called on is not null. We also need to any method that uses a Contract Builder as experimental. This will be explained in more detail later in the blog post.</p><pre><a href="http://twitter.com/UseExperimental">@UseExperimental</a>(ExperimentalContracts::class)<br>fun String?.assertNotNull() {<br>    contract {<br>        returns() implies (this@assertNotNull != null)<br>    }<br>    if (this == null){<br>        throw AssertionError()<br>    }<br>}</pre><p>The compiler would then smart cast the variable, just as if we had performed a null check on it anytime after we call <strong>assertNotNull</strong>():</p><pre>fun main() {<br>    val str: String? = “”<br>    str.assertNotNull()<br>    println(“string length = ${str.length}”) // compiles just fine<br>}</pre><p><strong>Are Kotlin Contracts TOO Powerful?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SEuxpKRm38nRv_PQwmS4Mw.jpeg" /></figure><p>Through the use of Kotlin Contracts, we are essentially trading compile time safety for succinct code. Through the use of Contract Builders, we are able to inform the compiler that certain built-in safety checks do not need to be performed because certain code paths will never execute. This works great when our Contract Builders are built correctly. When used incorrectly however, we have effectively removed vital compile time checks which can ultimately result in run-time errors (which will really ultimately result into panicked 2 a.m. slack messages from your PM).</p><p>As of now, Kotlin Contracts are experimental and have to be marked as such to be used.</p><pre><a href="http://twitter.com/UseExperimental"><strong>@UseExperimental</strong></a><strong>(ExperimentalContracts::class)</strong><br>fun String?.assertNotNull() {<br>    contract {<br>        returns() implies (this@assertNotNull != null)<br>    }<br>    if (this == null){<br>        throw AssertionError()<br>    }<br>}</pre><p>Which seems appropriate as this is a very powerful feature and could easily lead to production fires if not used appropriately, if <a href="https://www.jetbrains.com/">Jet Brains</a> ultimately decides to keep the feature in the language at all!</p><p><strong>Conclusion</strong></p><p>Nevertheless, now (within an experimental context) I am able to remove unnecessary null checks against variable types that have been verified by our hard fail assertion checks.</p><p>Hopefully soon Kotlin Contracts will lose their experimental designation because then the possibilities could truly be <a href="https://proandroiddev.com/kotlin-contracts-make-great-deals-with-the-compiler-f524e57f11c">endless</a>.</p><p>Do you use assertions to verify invariants in your code? If so, feel free to reply with what your best practices are around writing them.</p><p><a href="https://www.linkedin.com/in/andrekadeemperkins/">I work</a> at <a href="https://www.murumed.com/">Muru</a>, where we build mission critical, life-saving emergency <a href="https://play.google.com/store/apps/details?id=com.murumed.android.muru&amp;hl=en_US">software for paramedics</a>. Our stack is Kotlin, Swift, Elixir, and Javascript. Like the sound of what we’re doing? <a href="/service/mailto:ap@murumed.com">Get in touch</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd737a92013b" width="1" height="1" alt=""><hr><p><a href="https://proandroiddev.com/smart-casts-via-assertions-kotlin-contracts-fd737a92013b">Smart Casts via Assertions + Kotlin Contracts</a> was originally published in <a href="https://proandroiddev.com/">ProAndroidDev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[the tldr; on Kotlin’s let, apply, also, with and run functions]]></title>
            <link>https://proandroiddev.com/the-tldr-on-kotlins-let-apply-also-with-and-run-functions-6253f06d152b?source=rss-edc6ac248d90------2</link>
            <guid isPermaLink="false">https://medium.com/p/6253f06d152b</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Andre Perkins]]></dc:creator>
            <pubDate>Wed, 31 Jan 2018 16:45:10 GMT</pubDate>
            <atom:updated>2020-04-01T15:27:09.735Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SlDlD0LxoGTM1qXxZh9KLg.jpeg" /></figure><h3>let</h3><h4>definition</h4><pre>/**</pre><pre>* Calls the specified function [block] with `this` value as its argument and returns its result.</pre><pre>*/</pre><pre>public inline fun &lt;T, R&gt; T.let(block: (T) -&gt; R): R = block(this)</pre><p>tldr;</p><ul><li>called object passed in via argument</li><li>return type is whatever the lambda returns</li></ul><h4>typical usages</h4><ul><li>convert from one type to another</li><li>handling Nullability</li></ul><pre><strong>// using &#39;let&#39; to convert from one type to another</strong></pre><pre>val answerToUniverse = strBuilder.<em>let </em><strong>{</strong></pre><pre><strong>    it</strong>.append(&quot;Douglas Adams was right after all&quot;)</pre><pre><strong>    it</strong>.append(&quot;Life, the Universe and Everything&quot;)</pre><pre>    42</pre><pre><strong>}</strong></pre><pre><strong>// using &#39;let&#39; to only print when str is not null</strong></pre><pre>str?.<em>let </em><strong>{ </strong><em>print</em>(<strong>it</strong>) <strong>}</strong></pre><h3>apply</h3><h4>definition</h4><pre>/**</pre><pre>* Calls the specified function [block] with `this` value as its receiver and returns `this` value.</pre><pre>*/</pre><pre>public inline fun &lt;T&gt; T.apply(block: T.() -&gt; Unit): T { block(); return this }</pre><p>tldr;</p><ul><li>functional literal with receiver</li><li>called object is returned</li></ul><h4>typical usage</h4><ul><li>to Initialize or configure an object</li></ul><pre><strong>// old way of building an object</strong></pre><pre>val andre = Person()</pre><pre>andre.name = &quot;andre&quot;</pre><pre>andre.company = &quot;Viacom&quot;</pre><pre>andre.hobby = &quot;losing in ping pong&quot;</pre><pre><strong>// after applying &#39;apply&#39; (pun very much intended)</strong></pre><pre>val andre = Person().<em>apply </em><strong>{</strong></pre><pre>    name = &quot;Andre&quot;</pre><pre>    company = &quot;Viacom&quot;</pre><pre>    hobby = &quot;losing in ping pong&quot;</pre><pre><strong>}</strong></pre><h3>also</h3><pre>/**</pre><pre>* Calls the specified function [block] with `this` value as its argument and returns `this` value.</pre><pre>*/</pre><pre>@SinceKotlin(&quot;1.1&quot;)</pre><pre>public inline fun &lt;T&gt; T.also(block: (T) -&gt; Unit): T { block(this); return this }</pre><p>tldr;</p><ul><li>called object passed in via argument</li><li>called object is returned</li></ul><h4>typical usage</h4><ul><li>side effects in chains</li></ul><pre><strong>// transforming data from api with intermediary variable</strong></pre><pre>val rawData = api.getData()</pre><pre>Log.debug(rawData)</pre><pre>rawData.<em>map </em><strong>{  </strong><em>/** other stuff */  </em><strong>}</strong></pre><pre><strong>// use &#39;also&#39; to stay in the method chains</strong></pre><pre>api.getData()</pre><pre>    .<em>also </em><strong>{ </strong>Log.debug(<strong>it</strong>) <strong>}</strong></pre><pre>    .<em>map </em><strong>{ </strong><em>/** other stuff */ </em><strong>}</strong></pre><h3>with</h3><h4>definition</h4><pre>/**</pre><pre>* Calls the specified function [block] with the given [receiver] as its receiver and returns its result.</pre><pre>*/</pre><pre>public inline fun &lt;T, R&gt; with(receiver: T, block: T.() -&gt; R): R = receiver.block()</pre><p>tldr;</p><ul><li>not an extension function</li><li>the relevant object is passed in as an argument</li><li>returns whatever the lambda returns</li></ul><h4>typical usage</h4><ul><li>logically group calls on an object</li></ul><pre><strong>// Every Android Developer ever after Wednesday May 17th 2017</strong></pre><pre>    messageBoard.init(“https://url.com”)</pre><pre>    messageBoard.login(token)</pre><pre>    messageBoard.post(“Kotlin’s a way of life bro&quot;)<br></pre><pre><strong>// using &#39;with&#39; to avoid repetitive references to identifier</strong></pre><pre><em>with</em>(messageBoard) <strong>{</strong></pre><pre>    init(“https://url.com”)</pre><pre>    login(token)</pre><pre>    post(“Kotlin’s a way of life bro&quot;)</pre><pre><strong>}</strong></pre><h3>run</h3><h4>definition</h4><pre>/**</pre><pre>* Calls the specified function [block] with `this` value as its receiver and returns its result.</pre><pre>*/</pre><pre>public inline fun &lt;T, R&gt; T.run(block: T.() -&gt; R): R = block()</pre><p>tldr;</p><ul><li>lambda with a receiver</li><li>return type is whatever the lambda returns</li><li>there is also a non-extension version of this function</li></ul><h4>typical usage</h4><ul><li>same as let except allows receiver access</li></ul><p><em>This next code snippet contains references to events that occur in Game of Thrones Season 7. you’ve been warned! :)</em></p><pre><strong>// GoT developers after season 7</strong></pre><pre>aegonTargaryen = jonSnow.run {</pre><pre>    makeKingOfTheNorth()</pre><pre>    swearsFealtyTo(daenerysTargaryen)</pre><pre>    realIdentityRevealed(“Aegon Targaryen”)</pre><pre>}</pre><h3>ultimately…</h3><ul><li>the various functions contain overlapping use cases</li><li>don’t feel obligated to use each function</li><li>most importantly, decide on consistency amongst your project/team</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6253f06d152b" width="1" height="1" alt=""><hr><p><a href="https://proandroiddev.com/the-tldr-on-kotlins-let-apply-also-with-and-run-functions-6253f06d152b">the tldr; on Kotlin’s let, apply, also, with and run functions</a> was originally published in <a href="https://proandroiddev.com/">ProAndroidDev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Tyranny of kotlin’s default]]></title>
            <link>https://proandroiddev.com/the-tyranny-of-kotlins-default-e7c2eea65179?source=rss-edc6ac248d90------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7c2eea65179</guid>
            <category><![CDATA[library-design]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[androiddev]]></category>
            <dc:creator><![CDATA[Andre Perkins]]></dc:creator>
            <pubDate>Wed, 01 Nov 2017 14:14:08 GMT</pubDate>
            <atom:updated>2017-11-05T20:55:52.073Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*URBykb7gWlWw2xyS909NsQ.jpeg" /></figure><p>As Halloween flies by and we dress up as ghouls, ghosts and other things that go bump in the night, it occurred to me that one of the the scariest things to an Android developer (outside of Out Of Memory exceptions, of course) are unexpected breaking changes in an API when you upgrade a dependency. There are a few reasons that this can happen. Maybe the author has decided to take the API in a different direction. This is one of the good reasons. Unfortunately, there are a lot of bad ones too. One of the worst reasons breaking changes can happen is because the author of the library removed members from API that you depended on but that they never intended for you to have access to in the first place. In this post, I want to look at why utilizing Kotlin at first seems to help with this issue and where it falls short. I also want to examine why it is important that app developers need to start borrowing a few best practices from library developers and should start to pay attention to the proper use of visibility modifiers as well.</p><p>To begin, lets review java’s default visibility, package-private.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FpUeXcg80cO8I8%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FpUeXcg80cO8I8%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FpUeXcg80cO8I8%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="325" frameborder="0" scrolling="no"><a href="https://medium.com/media/ad3a7321b4bbcf231e19371305ac962f/href">https://medium.com/media/ad3a7321b4bbcf231e19371305ac962f/href</a></iframe><h4>Visibility Refresher</h4><p>As you most likely know, java by default gives you package-private visibility. This visibility would allow only for same package access. This modifier does not have a kotlin analogue. Anyone who has tried to write a library would let you know that this modifier was less than ideal for trying to stop clients from accessing your code. One of the reasons for this was as soon as your library grew from one package in size, the only way for code to access each other across packages (outside of using protected for inheritance) was the public modifier. The negative consequence now being that all the clients of the library now have access to those components as well. And that is one of the reasons why kotlin dropped this visibility modifier and instead opted for a new visibility modifier labeled “internal”.</p><h4>kotlin’s internal visibility modifier</h4><p>The new visibility modifier, internal, essentially means “visible inside a module”. Now, what is a module exactly you might ask? In this context, a module is any code that is compiled together. We can look at the current definition of internal visibility taken straight from the official kotlin <a href="https://kotlinlang.org/docs/reference/visibility-modifiers.html">documentation</a> by <a href="https://www.jetbrains.com/">JetBrains</a> for further elaboration:</p><blockquote><em>The </em><em>internal visibility modifier means that the member is visible within the same module. More specifically, a module is a set of Kotlin files compiled together:</em></blockquote><blockquote><em>an IntelliJ IDEA module;</em></blockquote><blockquote><em>a Maven project;</em></blockquote><blockquote><em>a Gradle source set;</em></blockquote><blockquote><em>a set of files compiled with one invocation of the Ant task.</em></blockquote><p>So as you can see, this is exactly what you would want as a library developer. Now anything I mark internal can be seen only by my library code, however I am not necessarily restricted by packages. Much Better!</p><h4>So what does this mean for app developers?</h4><p>But so what does this mean for app developers. If you’re developing an app with all your code in one app module than internal will behave as public. No difference for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*9M-wh5vf-a9iC0MyFeZU9Q.jpeg" /></figure><p>However, this is 2017! With instant apps, tools like <a href="https://buckbuild.com/">Buck</a> and the <a href="https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html">Android Gradle Plugin 3.0</a> offering better parallelism for multi-module projects, it is obvious that the future of Android development will be multi-module based. Coding an entire Android app in a single app module was sooo last week. When we build modules, we have to begin to think (at least at a little) like library developers. One of the ways in which we should start thinking like library developers is to utilize access modifiers to facilitate the encapsulation of components in our non-app modules.</p><h4>Tyranny of the default</h4><p>So now we have switched to kotlin and we have access to the internal visibility modifier and all is good in the world, right? Well, not exactly… Kotlin by default, assigns everything public visibility. The consequence of this is now every top-level function, class, etc. must be explicitly assigned internal (or a smaller scope) visibility if you don’t want it to be a part of your module’s API. As any <a href="http://thefinestartist.com/effective-java/13">reader of Effective Java</a> would tell you, refactoring the module is now more likely to cause breaking changes outside of that module as it is more likely that classes, interfaces or members of the class are inadvertently exposed. Less than ideal.</p><h4>The Current State of Affairs</h4><p>Did Kotlin take one step forward by giving us the internal visibility modifier but two steps back by making public the default?</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fl2Sq7TbKJQxHJwBjy%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fl2Sq7TbKJQxHJwBjy%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fl2Sq7TbKJQxHJwBjy%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="234" frameborder="0" scrolling="no"><a href="https://medium.com/media/0f4155850cf6baf5f885fc167f4d3010/href">https://medium.com/media/0f4155850cf6baf5f885fc167f4d3010/href</a></iframe><p>Not quite. Kotlin, even though it was designed to enforce best practices, it was also designed for brevity. Now you might say this is arguable and that’s because it is and was <a href="https://discuss.kotlinlang.org/t/kotlins-default-visibility-should-be-internal/1400/32">argued against by some (including some highly recognizable names in the Android community)</a> but to no avail.</p><h4>All in All…</h4><p>As modern day Android projects move towards using a multi-module based architecture, being able to take advantage of the kotlin internal modifier to ensure the smallest exposed API for your modules is just another reason to make the switch to kotlin. However, for better or worse, kotlin’s default visibility is public and while this is still a much larger problem/inconvenience for library developers, as app developers, have to keep this in mind as we inch closer to multi-module based app architectures.</p><h4>P.S.</h4><p>It should be noted that, there is a <a href="https://github.com/Kotlin/KEEP/issues/45">kotlin KEEP to get rid of a default visibility modifier entirely for library developers</a>. Thats a start!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Ff20c9a%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2Ff20c9a%2F&amp;image=https%3A%2F%2Fe.enpose.co%2F%3Fkey%3DdRXnS9Gplk%26w%3D700%26h%3D425%26url%3Dhttps%253A%252F%252Fupscri.be%252Ff20c9a%252F%253Fenpose&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/87c27c6bd6c8dea21c9726d9564b27d6/href">https://medium.com/media/87c27c6bd6c8dea21c9726d9564b27d6/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7c2eea65179" width="1" height="1" alt=""><hr><p><a href="https://proandroiddev.com/the-tyranny-of-kotlins-default-e7c2eea65179">The Tyranny of kotlin’s default</a> was originally published in <a href="https://proandroiddev.com/">ProAndroidDev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quick Tip: Auto-generate your versionCode]]></title>
            <link>https://proandroiddev.com/quick-tip-auto-generate-your-versioncode-614629f7d3bd?source=rss-edc6ac248d90------2</link>
            <guid isPermaLink="false">https://medium.com/p/614629f7d3bd</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[gradle]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Andre Perkins]]></dc:creator>
            <pubDate>Wed, 27 Sep 2017 16:35:58 GMT</pubDate>
            <atom:updated>2017-09-28T19:17:03.272Z</atom:updated>
            <content:encoded><![CDATA[<p>The “one click build” is a golden standard that developers would love to achieve. Whether it is making debug builds, builds for QA and especially release builds, the simpler the release process the better. Some even consider it a<a href="https://www.joelonsoftware.com/2000/08/09/the-joel-test-12-steps-to-better-code/"> criterion to measure the health</a> of a codebase by. And the reasoning for this is straightforward. Less steps equate to less time and, more importantly, less chance of error. One easy way to reduce the amount of steps when making a release build in Android is to use the power of the gradle build system to autogenerate the versionCode for your build.</p><p>Achieving this is simple. Define the version information for your build and use gradle to generate suitable sting and int values for the versionName and versionCode, respectively.</p><p>Here is a simple build.gradle that captures this idea:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2b6837c5373c228c1b75e17a8a15c3c1/href">https://medium.com/media/2b6837c5373c228c1b75e17a8a15c3c1/href</a></iframe><p>Save time and reduce the possibility of mistakes by removing steps (no matter how trivial) from your build process.</p><p><a href="https://github.com/JakeWharton/u2020/blob/master/app/build.gradle">All the cool kids are doing it.</a> :)</p><p>Do you have some awesome build tips of your own? If so, then please feel free to <a href="https://twitter.com/akperkins1">reach out to me</a> and share!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=614629f7d3bd" width="1" height="1" alt=""><hr><p><a href="https://proandroiddev.com/quick-tip-auto-generate-your-versioncode-614629f7d3bd">Quick Tip: Auto-generate your versionCode</a> was originally published in <a href="https://proandroiddev.com/">ProAndroidDev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[gfxinfo + UI Automator + Kotlin = Automated Jank Tests]]></title>
            <link>https://medium.com/hackernoon/gfxinfo-ui-automator-kotlin-automated-jank-tests-fc43995c7a06?source=rss-edc6ac248d90------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc43995c7a06</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[automated-testing]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Andre Perkins]]></dc:creator>
            <pubDate>Mon, 12 Jun 2017 13:49:45 GMT</pubDate>
            <atom:updated>2019-05-24T04:54:13.103Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Automated tests are king. Reading any modern programming book like <a href="https://www.amazon.com/Working-Effectively-Legacy-Michael-Feathers/dp/0131177052">Working Effectively with Legacy Code</a> and it is obvious to see why coders just can’t get enough. Usually, the main focus of our automated tests is on the correctness of our business logic. However, there is one form of automated testing that is maybe too oft neglected and that is the measuring of your app’s Jank. Jank is the term that is used when your app drops frames usually due to poor performance. Analogous to how unit test provide quick feedback about correctness, wouldn’t it be great if we had performance test that provides quick feedback about Jank (or hopefully, lack thereof)? Here is a post on how we can combine <a href="http://kotlinlang.org/">Kotlin</a>, <a href="https://developer.android.com/training/testing/ui-testing/uiautomator-testing.html">UI Automator</a> (or any UI automation tool) and <a href="https://developer.android.com/training/testing/performance.html">gfxinfo</a> to create such a test.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*WyEAQRJx5pq_TOgNJ0UACg.jpeg" /></figure><p>Let’s ensure that our users are happy by actually monitoring our app’s performance!</p><h3>Measuring Jank</h3><p>Since <a href="https://hackernoon.com/tagged/android">Android</a> 23+, measuring Jank has become a whole lot easier with the increase of information that is now reported by gfxinfo. dumpsys gfxinfo is a shell command you can use on the device via the command line. It provides you a dump of the rendering information of your current application instance and included in that dump is your app’s Jank info.</p><p>You can run gfxinfo on Android API 23+ via:</p><p>adb shell dumpsys gfxinfo example.jank.performance.myapplication</p><p>This outputs the Jank information (which is a subset of the total output) like so:</p><pre>Total frames rendered: 82189<br>Janky frames: 35335 (42.99%)<br>90th percentile: 34ms<br>95th percentile: 42ms<br>99th percentile: 69ms</pre><p>With this terminal command, we now have an easy way of measuring our app’s Jank. It should be noted that gfxinfo doesn’t tell you why your app ran slow or what to do to fix it. You have to use a tool like <a href="https://developer.android.com/studio/profile/systrace.html">Systrace</a> to find the root cause of the issue. However, this is perfect for our use case as we are building our test simply to identify regressions. Actually fixing the regressions is another blog post for another time…</p><p>So now we have we can easily measure our app’s Jank. The next part of the test that must now be built is the instrumentation part. In this post, UI Automator will be our UI testing tool of choice.</p><h3>Device Instrumentation Prep</h3><p>Now we need to set up our devices to be ready for instrumentation. We won’t actually ran any tests yet (that’s the next step). The goal here is to get the device under test into a state such that we can easily start our UI automation tests via the command line. Android’s UI automation tool is perfect for this.</p><p><em>Setting up and using UI Automator is out of the scope of this post. However, it is pretty straightforward. You can </em><a href="https://developer.android.com/training/testing/ui-testing/uiautomator-testing.html"><em>follow these instructions</em></a><em> for setting up your project with UI Automator.</em></p><p>Now, let’s get our device under test ready. First, you should create both your regular and test apks via Gradle the tasks:</p><pre>./gradlew assembleDebug assembleDebugAndroidTest</pre><p>Now you want to deploy them to the device:</p><pre>adb install -r debug.apk<br>adb install -r debug-androidTest.apk</pre><p>That’s it. Now you’re device should be completely prepped for our use of UI Automator. Starting the test which can be done via the command line like so:</p><pre>adb shell am instrument -w -r -e debug false -e class example.jank.performance.myapplication.BasicTest example.jank.performance.myapplication.test/android.support.test.runner.AndroidJUnitRunner</pre><p>So now we have our UI Automator test cases and can easily execute them from the command line. From the previous section we also have a way of measuring our app’s Jank from the command line. Now if only there was a cool new language to glue these two concepts together….</p><h3>Enter Kotlin!</h3><p>We will use <a href="https://hackernoon.com/tagged/kotlin">Kotlin</a> to now build a simple script that executes the UI automation tests while, simultaneously, querying the Jank information of the device via gfxinfo. Out script then outputs a subset of the results of the last gfxinfo query in both JSON and XML formats. (Lets be honest, you could really use any language here but I needed find a way to legitimately include “Kotlin” in the blog post name with the hope that you would actually read it. :) )</p><p>Due to the verboseness of the script, I have embedded the actual script itself at the bottom of the blog post. Instead, here is an activity diagram which outlines each of the high level steps that the script is performing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*XtoMwYX4SPepULqabnm9ow.png" /><figcaption>Activity diagram documenting script steps</figcaption></figure><h3>And That’s It!</h3><p>We can now use Kotlin to leverage gfxinfo during our automated UI testing to quickly identify any regressions in Jank so that your users don’t have to. There is still a lot left to be done here, however, hopefully this is a great starting point for getting you thinking about integrating this into your CI for the ultimate Android Jank telemetry set up. For more in depth information about the various performance testing tools at your disposal, take a look at this <a href="https://www.youtube.com/watch?v=Qfo5fdoXrTU">Google IO /17 Session</a>.</p><h4>Want to see this in action?</h4><p>I have created a sample project which applies the concepts talked about in this blog post here: (Specifically, you can execute the exampleTest.sh bash script to see of all these steps in action on an Android 23+ device)</p><p><a href="https://github.com/akperkins/automated-jank-test-example">akperkins/automated-jank-test-example</a></p><h4>But what if you’re team uses a different UI automation tool?</h4><p>Not everyone uses UI Automator for their UI automation tests. However, this method should work with any UI automation tool that can be started via the command line. It would just require that you replace the UI Automation steps with whatever steps you would normally use to prep your device under test and then hand off the shell command that you would use to start your UI automation tests to the Kotlin glue script.</p><p>Do you have already have automated Jank test running? If so, then feel free to <a href="https://twitter.com/akperkins1">reach out to me</a> and share some tips you use to effectively avoid regression Jank!</p><h3>Example Kotlin Jank Measuring Script:</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e3031d55231c4b80040369c47ad9871b/href">https://medium.com/media/e3031d55231c4b80040369c47ad9871b/href</a></iframe><p>Happy Coding :)</p><figure><a href="http://bit.ly/HackernoonFB"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0hqOaABQ7XGPT-OYNgiUBg.png" /></a></figure><figure><a href="https://goo.gl/k7XYbx"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vgw1jkA6hgnvwzTsfMlnpg.png" /></a></figure><figure><a href="https://goo.gl/4ofytp"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gKBpq1ruUi0FVK2UM_I4tQ.png" /></a></figure><blockquote><a href="http://bit.ly/Hackernoon">Hacker Noon</a> is how hackers start their afternoons. We’re a part of the <a href="http://bit.ly/atAMIatAMI">@AMI</a> family. We are now <a href="http://bit.ly/hackernoonsubmission">accepting submissions</a> and happy to <a href="/service/mailto:partners@amipublications.com">discuss advertising &amp; sponsorship</a> opportunities.</blockquote><blockquote>If you enjoyed this story, we recommend reading our <a href="http://bit.ly/hackernoonlatestt">latest tech stories</a> and <a href="https://hackernoon.com/trending">trending tech stories</a>. Until next time, don’t take the realities of the world for granted!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*35tCjoPcvq6LbB3I6Wegqw.jpeg" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fdde502%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2Fhackernoon%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href">https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc43995c7a06" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/gfxinfo-ui-automator-kotlin-automated-jank-tests-fc43995c7a06">gfxinfo + UI Automator + Kotlin = Automated Jank Tests</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Effectively Managing a Technical Debt Backlog]]></title>
            <link>https://medium.com/fuzz/effectively-managing-a-technical-debt-backlog-b06305a430c3?source=rss-edc6ac248d90------2</link>
            <guid isPermaLink="false">https://medium.com/p/b06305a430c3</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[technical-debt]]></category>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[product-management]]></category>
            <dc:creator><![CDATA[Andre Perkins]]></dc:creator>
            <pubDate>Thu, 25 Aug 2016 12:18:28 GMT</pubDate>
            <atom:updated>2017-04-14T13:03:13.946Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*U-4eHK1wdoaCKCh1hCuRvQ.png" /></figure><p>We’ve all been there. It is 5:58 on a Friday. Your office is empty save you, a few of your coworkers, and, of course, your Project Manager. She looks on earnestly as she awaits your fix for the production bug that is stopping users from being able to place orders, you know, the most critical portion of your app. And finally after what seemed like an eternity of searching, you find the problematic code. And you see the problem. This code is crap. For whatever reason (justified or not), the previous developer left this code in a hard to read, error-prone state and now you have two choices: either spend the six hours to architect and re-write this entire section of code while your users, and ultimately your brand, suffer as they have to wait an entire weekend for a fix or spend 10 minutes building on top of what is already there allowing you to push out a build that makes your stakeholders and users happy. In the scenario above, it is likely you will choose option 2. Ship the code as is with your fix on top of it and make a note to yourself to refactor this sometime next week. This scenario is the ideal breeding ground for Technical Debt and it is up to us as developers to manage this technical debt effectively.</p><p>Analogous to financial debt, if managed correctly, technical debt is not necessarily a bad thing. However, the cost of addressing technical debt increases with time and therefore must be addressed with some urgency. A great way to effectively manage long term debt is to maintain a list of Technical Debt tickets in the product backlog, alongside feature and bug tickets. Here is a list of tips for maintaining such a log of work and incorporating them into your current project’s workflow.</p><h4>Maintain only one list</h4><p>In most software projects, the project Manager maintains a list of work used to manage upcoming bugs, features and other tasks related to the project — the project backlog.</p><p>The backlog should also be used to store any and all technical debt tickets you create. Do not use the TODO feature of your IDE (for long term management) nor a different project on your issue tracker. By separating your technical debt tickets to a separate list you instantly de-prioritize your technical debt work in comparison to the rest of the tasks that you have to accomplish.</p><p>Keeping your technical debt ticket in the same list as your regular tickets also raises the awareness of the aforementioned technical debt tickets as now they are on the same list of tasks that the rest of the team are now using. Building team awareness will greatly aid in the management of technical debt because the quality of the codebase directly affects everyone on the team. Lower quality code usually leads to more production fires, increased QA cycles and higher development times.</p><h4><strong>Continually evaluate the priority of technical debt tickets</strong></h4><p>The technical debt tickets included in a sprint — a time-boxed period to complete an agreed upon set of tasks — should be well aligned with the goals of that sprint and the critical features of the product.</p><p>You (and the rest of your team) will quickly lose appreciation for the technical debt list if the subset you are working on does not reflect the current and most pressing issues of the codebase. Before each sprint planning meeting (or whenever you get together as a group and decide to discuss what will be worked on next), you should prioritize what technical debt tickets you plan to get to next. I like to think of each ticket via a (albeit a subjective) formula akin to timeSavedInFutureMaintance/numberOfHoursToFix and prioritize based on that. If you have some bad code in a part of you app that is not likely to change, I would definitely de-prioritize that in relation to bad code that is found in features that seem to be constantly changing by the business.</p><p>Once you have your technical debt tickets set up in this priority queue fashion, it is important to maintain verbose descriptions of the issue as you see it and discuss with the other members of the team that have to interact with the questionable codebase. What is an obvious issue to you may not be so obvious to a different developer on the project nor may they share your view point on the issue. Technical debt ticket grooming is a great forum to have discussions about code base quality, best programming practices in general, and to learn from our programming mistakes.</p><p>Also remember to verify that technical debt tickets are still valid at the time you perform your backlog grooming. Unlike other types of tickets, technical debt tickets have a good chance of just being completed by another developer who also noticed the issue and happen to have a good amount of time on his hands.</p><h4><strong>Spread awareness about the cost of technical debt</strong></h4><p>Project Managers have to juggle huge amounts of responsibility. They nurture and translate the demands of the business into nice modular pieces of tasks for developers to work on, have to deal with push back from developers as we bemoan deadline expectations and have to console business when the inevitable production fire occurs. So you should not be surprised when they leave your brand new technical debt tickets to sit in the backlog.</p><p>It is up to us, the developers, to stress why such tickets should not be left to sit in the backlog. With the exception of programmers, team members don’t immediately understand how investing 4 hours to remove duplicate code can save us days of work later on by reducing QA cycles as we only update erroneous code in one place as opposed to the three different places that have the same erroneous code. In Software projects , being the way they are, technical debt tickets will always be the first to be de-pritoritize, there is nothing wrong with this. But should this continue to be a trend during your sprint planning meetings where none of your tickets are technical debt tickets are being addressed, that represents a real problem. I believe if you can give 10% (half a day per week) of your time towards improving your codebase quality than you have a pretty good balance. If there is no time to invest in repairing your codebase, that may be a good indicator of a software project that is building out features faster than can be maintained long term.</p><h4>In Summary</h4><p>In summary, educating the team about technical debut while also adding and properly prioritizing technical debt tickets to the project backlog will ultimately lead to a healthier codebase — it will be easier to maintain and extend in the long run.</p><p>Do you maintain a technical debt backlog? If not, why? And If so, then please feel free to <a href="https://twitter.com/akperkins1">reach out to me</a> and share some tips you use to effectively manage your technical debt!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b06305a430c3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fuzz/effectively-managing-a-technical-debt-backlog-b06305a430c3">Effectively Managing a Technical Debt Backlog</a> was originally published in <a href="https://medium.com/fuzz">Fuzz</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting the most out of Crashlytics]]></title>
            <link>https://medium.com/fuzz/getting-the-most-out-of-crashlytics-380afb703876?source=rss-edc6ac248d90------2</link>
            <guid isPermaLink="false">https://medium.com/p/380afb703876</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[error-handling]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Andre Perkins]]></dc:creator>
            <pubDate>Tue, 12 Jul 2016 10:31:23 GMT</pubDate>
            <atom:updated>2016-07-13T15:18:21.963Z</atom:updated>
            <content:encoded><![CDATA[<p>Crash reporting is an invaluable tool and with the assortment of crash reporting tools to choose from, there isn’t any reason your app shouldn’t taking advantage of them. Even the most basic integration of Crashlytics provides extraordinary insight into how your application is behaving in the wild. However, what if we went beyond the basic setup? With a bit more configuration, we can obtain a greater Return On Investment (ROI) from our crash reporting implementation and gain more insights into our application.</p><h3>Tip #1 — Include the state of the codebase in your error reports</h3><p>Performing <em>Root Cause Analysis (RCA)</em> for an issue within an application is hard enough when you know the exact commit where the issue is occurring. But what if you get a new crash report on a version of the app you pushed out months ago? Let’s remove any ambiguity from our error reporting by including the Git Hash of the code in which the exception actually occurred. <a href="http://support.crashlytics.com/knowledgebase/articles/120055-how-do-i-use-custom-keys">Custom Keys</a>, which allows you to include key/value pairs with your crash reports, is the perfect solution for adding the Git Hash to the error report.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CrALbx_5BKZzjaKN1WUunw.png" /><figcaption>First set up your build.gradle to include the Git Hash in your BuildConfig file.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nqrAz-8XsPXQhy-jKGQagg.png" /><figcaption>And then in your app’s application class (or wherever you were previously initializing your Crashlytics instance), include the custom keys.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6T7hQoxtEoUUJHlwJ98CVg.png" /><figcaption>And this is the final result in the Fabric Dashboard.</figcaption></figure><p>As you can see, I also like to include the build time meta-data to obtain a bit more context. Feel free to include as much information that you think you feel would be valuable.</p><h3>Tip #2 — Log Non-Fatal Events</h3><p>During development, whenever your app enters an unexpected state, you should throw an exception. There are various reasons for entering such state e.g. malformed network data, misunderstanding of requirements, a logic error. As a responsible developer you should determine the <em>root cause</em> of the issue and in the<em> Software Development LifeCycle (SDLC) </em>nothing turns heads faster than a crash. In production, however, you should balance a good user experience with the need to quickly determine the root cause of an issue. A good way to handle this is by logging non-fatal errors, which allows you to fail gracefully while still being made aware of the error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wJSr-idril_1eB5McM9_BQ.png" /><figcaption>It’s as simple as keying off of your BuildConfig and crashing for debug builds or just logging the exception on production.</figcaption></figure><h3>Tip #3 — Leave some breadcrumbs</h3><p>So now you know the exact commit the issue occurred on and you’re also monitoring for unexpected states and failing gracefully. But there is still a piece of the puzzle missing — the reproduction steps. I can’t tell you how many times I’ve stared at a stack trace having no idea how to reproduce it. Let’s leave some breadcrumbs — marks that we can use to determine the user behavior. You can do this by using your current event tracking implementation, and the <em>Crashlytics.log(String message)</em> method. Essentially, you’ll be able to build a log of the various events the user triggered before running into the failure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2YNKzh9X-EWc6O-fuWsAOw.png" /><figcaption>It is as simple as properly formatting the values sent in for your analytics .and then logging it to Crashlytics.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*24-e5IC-E3-h80xwWClCqg.png" /><figcaption>And in the Fabric dashboard…</figcaption></figure><p>And that’s it! Hopefully by adding the git commit, logging non-fatal errors and leaving a trail of breadcrumbs behind you can gain even more insight into issues your users are facing and build a better product!</p><p>Do you have some awesome crash reporting tips of your own? If so, then please feel free to <a href="https://twitter.com/akperkins1">reach out to me</a> and share!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=380afb703876" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fuzz/getting-the-most-out-of-crashlytics-380afb703876">Getting the most out of Crashlytics</a> was originally published in <a href="https://medium.com/fuzz">Fuzz</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>