<?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 John Shelley on Medium]]></title>
        <description><![CDATA[Stories by John Shelley on Medium]]></description>
        <link>https://medium.com/@jpshells?source=rss-8c8131bd0ab8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0RdPf9grbN4lHU1qfQC61w.jpeg</url>
            <title>Stories by John Shelley on Medium</title>
            <link>https://medium.com/@jpshells?source=rss-8c8131bd0ab8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 22:21:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jpshells/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[Converting an Android Library to a Linked Node Module]]></title>
            <link>https://medium.com/in-the-hudl/converting-an-android-library-to-a-linked-node-module-34ac2bbe71a?source=rss-8c8131bd0ab8------2</link>
            <guid isPermaLink="false">https://medium.com/p/34ac2bbe71a</guid>
            <category><![CDATA[the-bits]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[John Shelley]]></dc:creator>
            <pubDate>Mon, 30 Apr 2018 19:12:53 GMT</pubDate>
            <atom:updated>2018-04-30T19:12:53.586Z</atom:updated>
            <content:encoded><![CDATA[<p>We recently published a blog post detailing Hudl’s first open source project supporting React Native development. You can read about the introduction of the <a href="https://github.com/hudl/react-native-android-fragment">react-native-android-fragment</a> here:</p><p><a href="https://medium.com/in-the-hudl/introducing-react-native-android-fragment-3559fe999ced">Introducing React Native Android Fragment</a></p><p>The project has been used internally for almost a year now and it has helped move our “brown-field” React Native application forward. It has helped us integrate our native code with our React Native features and allowed our teams to move faster.</p><p>However, we have also experienced some problems with this project. We had initially decided that react-native-android-fragment would carry with it the dependency for React Native itself. This meant:</p><ol><li>When we upgraded to a newer version of React Native we also had to create the .aar file for the React Native Android project.</li><li>Once that file was created we had to add that artifact to the react-native-android-fragment project.</li><li>We would then perform a full smoke test to ensure nothing broke.</li></ol><p>For those unfamiliar with how the internals of React Native work, this might sound like a lot of work, and honestly it is!</p><p>We asked ourselves how we could solve this cumbersome problem and eventually realized we were fighting the node ecosystem.</p><p><strong>That is why, as of today, </strong><a href="https://github.com/hudl/react-native-android-fragment"><strong>react-native-android-fragment</strong></a><strong> is available as a natively linked node module! </strong>🎉</p><p>We no longer ship a specific version of react-native with this project, but instead declare it as a peer dependency. If there are breaking changes please submit a Github issue or pull request!</p><p>We hope this will allow React Native developers to move fast and incorporate crazy ideas such as a mixed native and React Native <a href="https://developer.android.com/reference/android/support/design/widget/TabLayout">TabLayout</a>.</p><p>Also a huge thank you to <a href="https://medium.com/u/94339291544a">Johannes Stein</a> and those that have worked on <a href="https://github.com/frostney/react-native-create-library">react-native-create-library</a> 👏</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34ac2bbe71a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/in-the-hudl/converting-an-android-library-to-a-linked-node-module-34ac2bbe71a">Converting an Android Library to a Linked Node Module</a> was originally published in <a href="https://medium.com/in-the-hudl">In The Hudl</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing React Native Android Fragment]]></title>
            <link>https://medium.com/in-the-hudl/introducing-react-native-android-fragment-3559fe999ced?source=rss-8c8131bd0ab8------2</link>
            <guid isPermaLink="false">https://medium.com/p/3559fe999ced</guid>
            <category><![CDATA[hudl]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[the-bits]]></category>
            <dc:creator><![CDATA[John Shelley]]></dc:creator>
            <pubDate>Sat, 17 Jun 2017 18:27:32 GMT</pubDate>
            <atom:updated>2018-01-26T22:42:01.306Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*96DCNZucxLB0Es1GYc-eGw.png" /><figcaption>Download Hudl on the <a href="https://itunes.apple.com/us/app/hudl/id412223222?mt=8">App Store</a> and <a href="https://play.google.com/store/apps/details?id=com.hudl.hudroid&amp;hl=en">Google Play</a>.</figcaption></figure><p>At Hudl we offer mobile applications on iOS and Android. Both of these platforms have their own unique take on features but for the most part they strive for parity.</p><p>As our products have grown this parity has become harder to manage. Our goal is to offer rich mobile experiences without sacrificing quality. That is why, about 1 year ago, we began researching React Native.</p><p>We have learned a lot during the past year, and we hope to share some of that with you. So today we are announcing our first open source project for React Native at Hudl.</p><p><strong><em>React Native Android Fragment</em></strong>: <a href="https://github.com/hudl/react-native-android-fragment">https://github.com/hudl/react-native-android-fragment</a></p><p>React Native Android Fragment does exactly what its name implies. It helps to facilitate the development of a React Native application, for a pre-existing Android application that relies on the framework’s <a href="https://developer.android.com/reference/android/app/Fragment.html">Fragment class</a>. It can be downloaded via jitpack and its versioning will attempt to always follow that of React Native’s major.minor versions.</p><p>Our Android app originated around 2013 when Fragments were the Android standard and we’ve stuck with them ever since. For anyone else that has tried to use React Native, you may also realize that support for Fragments is non-existent. We’re hoping this project will help.</p><p>To use this project, it’s as simple as creating a new ReactFragment with your specific properties:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4b778e631929a6f0805d5fbcde3f737b/href">https://medium.com/media/4b778e631929a6f0805d5fbcde3f737b/href</a></iframe><p>Check out the <a href="https://github.com/hudl/react-native-android-fragment/blob/master/README.md">README.md</a> for more details.</p><p>We plan to add support for Continuous Integration as well as Testing in the near future. We hope this library, although small, may help others to get started quickly into the React Native ecosystem. And as always, please don’t hesitate to submit issues or pull requests!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3559fe999ced" width="1" height="1" alt=""><hr><p><a href="https://medium.com/in-the-hudl/introducing-react-native-android-fragment-3559fe999ced">Introducing React Native Android Fragment</a> was originally published in <a href="https://medium.com/in-the-hudl">In The Hudl</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kotlin: A Sectioned Adapter for Android]]></title>
            <link>https://medium.com/in-the-hudl/kotlin-a-sectioned-adapter-for-android-d3dbdff9bfa7?source=rss-8c8131bd0ab8------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3dbdff9bfa7</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[material-design]]></category>
            <category><![CDATA[java8]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[John Shelley]]></dc:creator>
            <pubDate>Mon, 15 Aug 2016 14:10:02 GMT</pubDate>
            <atom:updated>2016-08-24T19:10:51.426Z</atom:updated>
            <content:encoded><![CDATA[<p>For those that don’t know me, I’ve been a mobile developer at Hudl for over a year now. We recently started using <a href="https://kotlinlang.org/">Kotlin</a> within our mobile app. There are a lot of posts out there about the benefits of Kotlin and I see no need to duplicate those. However what I would like to share is where I have seen the benefits first hand. Actual implementations where Kotlin’s language has proved useful. I don’t plan to post Kotlin articles regularly, but whenever I encounter an interesting implementation of Kotlin specifics then I will be sure to do so.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ph59ADXxZHpwixiIkVjr0w.jpeg" /></figure><p>You may have noticed a lot of Android applications are trying to embrace <a href="https://material.google.com/">Material Design</a>. It is very common throughout all of Google’s own apps as well as many top chart apps as well.</p><p>At <a href="http://www.hudl.com/">Hudl</a> we are also trying to strive for great design. One of the most important challenges is finding a way to make sure your <a href="https://design.google.com/articles/expressing-brand-in-material/">brand doesn’t fall between the Material cracks</a>. If every app in the Play Store looked similar then “Be together, not the same” would not hold true anymore.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*RpehXM3QSCJgZ0d_fggVag.png" /><figcaption><a href="https://material.google.com/components/subheaders.html">https://material.google.com/components/subheaders.html</a></figcaption></figure><p>One of the tasks I had recently been given was to add subheaders to one of our views to give notice of the month and year of a particular group of items in a list (much like <a href="https://play.google.com/store/apps/details?id=com.google.android.apps.inbox&amp;hl=en">Inbox</a>). First thing first is to check out the material docs.</p><p>The actual specs of the subheader were easy enough:</p><ul><li>48dp tile height</li><li>Roboto Medium 14sp Font</li><li>Secondary Grey text color, or your applications primary color.</li><li>16dp of padding (unless you have a prominent icon or action then it should be left aligned with your text)</li></ul><p>The next step was to create the subheader for our recycler adapter.</p><p>One thing to note is that we wanted to use RecyclerView. There are many <a href="https://android-arsenal.com/tag/199">libraries out there</a> that provide list support, however a decent amount seemed clunky or provided more features then necessary. So lets break down the problem. What is a subheader? Just another item in your list, that is styled differently. We know that RecyclerViews allow for different types of items via the <a href="https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter.html#getItemViewType(int)"><em>getItemViewType()</em></a> method so this should be simple enough. To make it easier I went ahead and used the <a href="http://hannesdorfmann.com/android/adapter-delegates">Delegate Adapter</a> approach. One delegate to handle the items in our list, and another to handle the subheaders. After that all that was left was the <a href="https://gist.github.com/gabrielemariotti/4c189fb1124df4556058">math to determine</a> if we are displaying a subheader or an actual item.</p><p>By now you might be asking “<em>What about Kotlin? I thought I was going to learn something”</em>. Well the benefit that Kotlin provided was through an <strong><em>Interface. </em></strong>Yes. An Interface.</p><p><a href="https://kotlinlang.org/docs/reference/interfaces.html">https://kotlinlang.org/docs/reference/interfaces.html</a></p><blockquote>Interfaces in Kotlin are very similar to Java 8. They can contain declarations of abstract methods, as well as method implementations. What makes them different from abstract classes is that interfaces cannot store state. They can have properties but these need to be abstract or to provide accessor implementations.</blockquote><p>Why did an Interface help? Most of the Sectioned Adapters in Libraries I’ve seen have come from extending another class, and that class extends RecyclerView. Sooner or later that class grows and we know that we can only extend from one class. What if you wanted to add Swipe-to-dismiss support? Thankfully we can implement many interfaces and compose each into its own responsibility.</p><pre>/**<br> * An adapter that allows a RecyclerView to contain sections<br> * or subheaders much like the material docs describe.<br> * <a href="https://material.google.com/components/subheaders.html">https://material.google.com/components/subheaders.html</a><br> */<br>interface SectionedAdapter {</pre><pre>    /**<br>     * A list of sections to display in adapter.<br>     */<br>    var sections: SparseArray&lt;AdapterSection&gt;</pre><pre>...</pre><p>And we’re done! Almost. Variables in interfaces isn’t a new thing so wheres the benefit?</p><pre>...<br>    <br>    /**     <br>     * Returns true if the given position contains a section     <br>     */    <br>    fun isSectionHeaderPosition(position: Int) = <br>            sections[position] != null     </pre><pre>    /**     <br>     * Determines the correct position based off of the number<br>     * of currently displayed sections.     <br>     */    <br>    fun sectionedPositionToPosition(sectionedPosition: Int): Int {        <br>        if (isSectionHeaderPosition(sectionedPosition)) {            <br>            return RecyclerView.NO_POSITION        <br>        }         <br>        var offset = 0        <br>        for (i in 0..sections.size() - 1) {            <br>            if (sections.valueAt(i).sectionedPosition &gt; <br>                sectionedPosition) {                <br>                break            <br>            }            <br>            --offset        <br>        }        <br>        return sectionedPosition + offset    <br>    }</pre><pre>...</pre><pre>}</pre><p><a href="https://gist.github.com/jpshelley/4e0d4aa16c20e91a6c01e48d278b4282"><em>https://gist.github.com/jpshelley/4e0d4aa16c20e91a6c01e48d278b4282</em></a></p><p>The ability to create “Method Implementations” is the advantage.</p><p>If we wanted to achieve the same result in the Android/Java7 world we would need an abstract class to provide those methods for us. This allows us to maintain single responsibility for this class and not overcrowd our original adapter or a base class.</p><p>The power of the delegate adapter and method implementations make it really easy to add subheaders to our lists. It makes our code easier to read, easier to find potential bugs, and easer to test.</p><p>Hopefully this post showed you a little bit of the power behind Kotlin and maybe how to add subheaders to your next list.</p><p><em>Resources</em>:</p><ul><li>Material Docs: <a href="https://material.google.com/components/subheaders.html">https://material.google.com/components/subheaders.html</a></li><li>Delegate Adapters: <a href="http://hannesdorfmann.com/android/adapter-delegates">http://hannesdorfmann.com/android/adapter-delegates</a> &amp; <a href="https://medium.com/@juanchosaravia/keddit-part-4-recyclerview-delegate-adapters-data-classes-with-kotlin-9248f44327f7#.bfwiswuzl">https://medium.com/@juanchosaravia/keddit-part-4-recyclerview-delegate-adapters-data-classes-with-kotlin-9248f44327f7#.bfwiswuzl</a></li><li>Kotlin Interfaces: <a href="https://kotlinlang.org/docs/reference/interfaces.html">https://kotlinlang.org/docs/reference/interfaces.html</a></li><li>Sectioned Adapter Math: <a href="https://gist.github.com/gabrielemariotti/4c189fb1124df4556058">https://gist.github.com/gabrielemariotti/4c189fb1124df4556058</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3dbdff9bfa7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/in-the-hudl/kotlin-a-sectioned-adapter-for-android-d3dbdff9bfa7">Kotlin: A Sectioned Adapter for Android</a> was originally published in <a href="https://medium.com/in-the-hudl">In The Hudl</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Meetings, Meetings, and More Meetings]]></title>
            <link>https://medium.com/@jpshells/meetings-meetings-and-more-meetings-2460853500b3?source=rss-8c8131bd0ab8------2</link>
            <guid isPermaLink="false">https://medium.com/p/2460853500b3</guid>
            <dc:creator><![CDATA[John Shelley]]></dc:creator>
            <pubDate>Wed, 23 Jul 2014 16:33:01 GMT</pubDate>
            <atom:updated>2014-07-23T17:19:31.675Z</atom:updated>
            <content:encoded><![CDATA[<p>Our first week here in Boulder has now came to an end. Introductions were on Monday, ropes challenge course in the mountains on Tuesday, 9pm meetings on Wednesdays, Mentor Madness on Thursday, and Mentor Meetings on Friday. It’s been one long and exciting week. It feels like Bawte has made more progress this past week then it has this past month alone. Not necessarily from a technical standpoint, but from that of the business as a whole.</p><p>Most companies that are participating here at Techstars consist of multiple ‘co-founders’, and one or two software developers (with the given CTO title). For Bawte, we have only one ‘founder’ who is our CEO (Chief ‘Everything’ Officer), and 4 developers.</p><p>The majority of the events here at Techstars, so far, have been focused on the founders and CEO’s. The meetings we have attended so far have helped shape the CEO’s ability to pitch ideas to customers and investors, as well as gain valuable leadership skills. These include Metrics, KPI’s, MVP’s, hiring processes, and mentor etiquette just to name a few. It is difficult to come from a complete development background, with hardly any business related skills, and jump in head first into all of these meetings. I’ll admit there are times I don’t understand whats being said but I don’t think that is or should be a major hindrance. It is a benefit to our CEO to have our input and opinions and help with understanding how specific meetings went, and it also benefits the other developers and myself by allowing us to gain first-hand information from a business perspective. Most developers today get their instructions passed down through multiple channels and departments. This takes up a lot of time and dilutes the information. Our motto around here is “Do more faster”, and having only 3 (soon to be 4) current employees in the office allows for that.</p><p>This blog was originally going to be about the perspective of a developer here at Techstars, however I might have to change that title because at Techstars you no longer have the perspective of only a developer. Of course I’m still working on the Android app, but thats only one of many things that I do here now. One of the most important so far has been learning. Learning how other teams in the office work on their stacks, learning how to help in a business related manner, and learning how to take criticism in all aspects of the company.</p><p>The hard part now is trying to find time to enjoy Boulder!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2460853500b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[See you later Iowa..]]></title>
            <link>https://medium.com/@jpshells/see-you-later-iowa-766da9bd9a2c?source=rss-8c8131bd0ab8------2</link>
            <guid isPermaLink="false">https://medium.com/p/766da9bd9a2c</guid>
            <dc:creator><![CDATA[John Shelley]]></dc:creator>
            <pubDate>Mon, 14 Jul 2014 17:12:21 GMT</pubDate>
            <atom:updated>2014-07-15T22:38:12.341Z</atom:updated>
            <content:encoded><![CDATA[<h4>And hello Boulder, Colorado.</h4><p>A little over a year ago I was given the opportunity to join a startup called Bawte. The team was well on their way to launching their iOS app, but they had yet to begin any Android development. I began working as the initial Android developer for the company, and the app is now completed and released to the public as of this April. Building and maintaining the app was hectic and time consuming as it has to form to 1000&#39;s of device types and multiple operating system versions that Android supports. It has been a challenging and rewarding experience and I am continuing to learn more and grow in my abilities as a software developer.</p><p>In the spring, our founder and CEO, John Jackovin, announced the possibility of applying to an accelerator program called Techstars. If you’re in the startup community, or even the tech world, you’ve most likely heard of accelerators. There are many benefits and opportunities for companies that go through these programs. I have heard of companies that grow exponentially after graduating from the likes of Techstars or Y Combinator, and I’ve heard of companies that complain these accelerators tried to change to much about who they were. Whatever the case may be, it is hard not to get excited about it.</p><p>Which brings me to where I am today.</p><p>For the next three months I have the tremendous opportunity of participating in one of the greatest startup accelerators in the country, called Techstars. We were recently accepted to the program and today is the first official day for Bawte in Boulder, CO. Currently 3 out of the 5 Bawte members are participating, and we hope we can use this opportunity to grow not only as a company but individually as well. Very few people get the opporuntity to particiapte in an experience like this, let alone a 5th year Senior from Iowa State University. I am very grateful for this opportunity and for all of the incredible experience I am gaining so early on in my career.</p><p>It is difficult to pinpoint what I am most excited about. The city of Boulder is one of the most beautiful places I have ever seen. This morning I went on a run with an incredible mountain view in every direction. I am most excited to see how this will push the company to improve and grow. It is thrilling to be able to spend my time developing the app and building an experience that the app users will enjoy.</p><p>It is a lot easier to decide what I’m least excited about, which is spending these next three months away from my wife. We wrestled back and forth with the idea of me leaving. My wife is my biggest supporter and I would never make a decision like this without her full support. I know she is proud of where we’ve came from and where we’ve ended up now. However, it will still be one of the hardest things I will have to do.</p><p>I’ll try my best to keep everyone up to date about my adventures here, the happenings at Techstars, and the progress of the company.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=766da9bd9a2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>