<?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 Patrick Millais on Medium]]></title>
        <description><![CDATA[Stories by Patrick Millais on Medium]]></description>
        <link>https://medium.com/@patrickmillais?source=rss-4517c5a31d0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qkPpz5LFqQ2Lf1c8Gq8yZQ.jpeg</url>
            <title>Stories by Patrick Millais on Medium</title>
            <link>https://medium.com/@patrickmillais?source=rss-4517c5a31d0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 16:20:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@patrickmillais/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[Collapsible Extended Floating Action Buttons with a LazyColumn in Jetpack Compose]]></title>
            <link>https://medium.com/@patrickmillais/collapsible-extended-floating-action-buttons-with-a-lazycolumn-in-jetpack-compose-a5909fada6a1?source=rss-4517c5a31d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5909fada6a1</guid>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[material-design]]></category>
            <dc:creator><![CDATA[Patrick Millais]]></dc:creator>
            <pubDate>Fri, 01 Jul 2022 10:05:54 GMT</pubDate>
            <atom:updated>2022-07-01T10:05:54.374Z</atom:updated>
            <content:encoded><![CDATA[<p>Android users with a keen eye will have spotted small behavioural changes across apps made by Google in recent months.</p><p>Extended Floating Action Buttons (FABs) are wide buttons that typically appear in the bottom right of an app. These buttons enable users to perform a primary app function. A great example is the <em>Compose </em>button in Gmail:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kDHO7GOrDarFlL9HdmOY0g.png" /><figcaption>Image from m3.material.io</figcaption></figure><p>With the arrival of <a href="https://m3.material.io/">Material Design 3</a>, there are new recommendations on how these Extended Floating Action Buttons should behave when a user scrolls the content behind the button. In short: extended FABs should now collapse into a regular FAB on scroll.</p><p>This scrolling behaviour is already present in the latest Gmail app. The video below shows the transitions from extended to regular FABs when the app content is vertically scrolled.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F725644720%3Fh%3D8657107ce9%26app_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F725644720%3Fh%3D8657107ce9%26autoplay%3D1%26loop%3D1%26title%3D0%26byline%3D0%26portrait%3D0&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F1460807562-deb567c62a62c409f6e962953b5de84789984d2092728c31bf9ecc20337157ed-d_1280&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="1352" height="812" frameborder="0" scrolling="no"><a href="https://medium.com/media/847ff1cc318f266982dca442867e44c2/href">https://medium.com/media/847ff1cc318f266982dca442867e44c2/href</a></iframe><p>Prior to Jetpack Compose, developers could achieve this behaviour with extendedFab.extend() and extendedFab.shrink() in combination with a RecyclerView scroll listener.</p><p>However, in the new world of Jetpack Compose the approach changes.</p><p>At the point of migrating <a href="https://play.google.com/store/apps/details?id=com.livefootballontv.free">my app</a> to Jetpack Compose, there was little documentation online describing how to approach this with Android’s new view paradigm. Below I will share the approach I took so you can build this behaviour into your app.</p><p>There are three main building blocks to this approach:</p><ul><li>Add a basic extension function to LazyListState</li><li>Prepare theScaffold and FloatingActionButton slot</li><li>Connect everything up!</li></ul><h3>Extend LazyListState</h3><p>We need a way to detect how the user interacts with your LazyColumn, similar to a scroll listener on a RecyclerView. Specifically, we are interested in whether the user scrolls vertically upwards so that we can extend or collapse the FAB accordingly.</p><p>Enter <a href="https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/LazyListState">LazyListState</a>. LazyListState is used across Jetpack Compose to control and observe scrolling. It comes with some useful properties — such as isScrollInProgress — but none that will immediately tell us whether the user is scrolling upwards.</p><p>To detect whether the user scrolls upwards, the easiest thing to do is to extend LazyListState and add our own extension function isScrollingUp(). In fact, this is exactly what Google do in one of their <a href="https://github.com/googlecodelabs/android-compose-codelabs/blob/7a6330facd54f4f7c8d07f5fad481fb13587e422/AnimationCodelab/finished/src/main/java/com/example/android/codelab/animation/ui/home/Home.kt#L337">Codelabs</a>, and this is where this code snippet is taken from:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*Nf-xfn0Bi50_557jekt4zg.jpeg" /><figcaption>isScrollingUp() function from Google Code Labs (<a href="https://github.com/googlecodelabs/android-compose-codelabs/blob/main/AnimationCodelab/finished/src/main/java/com/example/android/codelab/animation/ui/home/Home.kt#L337">line 337</a>)</figcaption></figure><h3>Prepare The Scaffold</h3><p>Next, we need to update the scaffold in your screen’s composable to take advantage of the new <em>isScrollingUp()</em> extension function.</p><p>The changes below are simple. First, declare a new <em>listState </em>variable on Line 1 with rememberLazyListState(). Second, connect this up with the <em>expanded </em>parameter of the ExtendedFloatingActionButton composable. This takes advantage of the extension function we created in the first step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bA3ZogFioMGksjSVeLjc_Q.jpeg" /></figure><h3>Joining Everything Together</h3><p>Finally, we provide the LazyListState variable (<em>listState</em>) to LazyColumn so that we can observe and react to changes in its scroll position.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*Ck5ZejkLNDFeQhbwm03ehA.jpeg" /><figcaption>In Line 2 we provide the state object from the previous steps</figcaption></figure><p>And you are done!</p><p>Note that in many cases the listState will be <a href="https://developer.android.com/jetpack/compose/state#state-hoisting">hoisted</a> across multiple composables. In my app’s case that looks something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*kFHfOtUemnTiN4gv6HR8fw.jpeg" /></figure><p>In this post we:</p><ul><li>Created an extension function on LazyListState to detect the user’s vertical scroll</li><li>Connected LazyListState with an ExtendedFloatingActionButton</li><li>Observed the state on LazyColumn</li></ul><p>And that’s it! The Extended FAB will now collapse into a regular FAB when the user scrolls down, and expand to an extended FAB when the user scrolls up.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5909fada6a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[75X Growth: Scaling Postman Enterprise Across PayPal]]></title>
            <link>https://medium.com/paypal-tech/75x-growth-scaling-postman-enterprise-across-paypal-528e24bc0777?source=rss-4517c5a31d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/528e24bc0777</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[postman]]></category>
            <category><![CDATA[paypal]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Patrick Millais]]></dc:creator>
            <pubDate>Tue, 22 Jun 2021 18:47:18 GMT</pubDate>
            <atom:updated>2021-06-22T18:47:18.613Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*H_WNgrx424cFeSNTTHXfUw.jpeg" /></figure><p>This is a story of a team initiative skyrocketing into a company-wide developer tool. It is a story about how a small idea to improve the speed at which PayPal launches new merchants and partners took on a new meaning in a cross-organizational context. It is a story of a community of developers and technologists growing together on the Postman Enterprise platform to onboard to new APIs faster.</p><h3>What is Postman?</h3><p>Postman is an industry-standard development tool used by 15 million people globally. Postman’s collaborative API platform simplifies each step of building an API from API design to automated testing. In 2020 Postman became the fourth Indian SaaS company to become a unicorn, entering the one billion dollar club in record time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*Jfbp7UinQVC12PCCadcGGA.png" /></figure><p>At its simplest, Postman is a tool to send an API request and get an API response back. Using Postman, you can build collections of API requests representing a product, solution or API schema. These API collections enable developers to rapidly onboard with your API in a self-service manner.</p><h3>How do we scale new experiences to our merchants and customers faster?</h3><p>This question was the theme for a <a href="https://www.paypal.com/us/webapps/mpp/jobs/jobs-by-category/global-professional-services">Global Professional Services</a> initiative in 2019 and where the idea to introduce Postman Enterprise started to form. Global Professional Services needed a scalable, customer-centric way to launch new PayPal experiences faster. All of our merchants and partners used Postman. Nearly every Global Professional Services teammate used Postman. However, scale remained just out of reach because Postman’s individual licenses forced siloed, non-scalable execution.</p><p>To scale PayPal experiences faster with our merchants and partners, we saw an opportunity to move to Postman Enterprise for greater:</p><ul><li><strong>Collaboration: </strong>A single source of truth for API collections. Users automatically stay in sync with any team changes to API collections.</li><li><strong>Productivity:</strong> Best practice, high-quality API collections available for teammates to quickly get up to speed with APIs.</li><li><strong>Discoverability:</strong> Enable teammates to discover existing API collections. Prevent reinventions of the wheel.</li></ul><p>The opportunity, however, was bigger than that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*tovo9vH54yUxxuHolqKW6g.png" /></figure><h3>Seamless API Collaboration From Product Inception To Launch</h3><p>Thousands of developers at PayPal already use Postman today as part of their daily workflow.</p><p>Extending the Enterprise license beyond Global Professional Services would allow API best practices and tribal knowledge to spread between domains, organizations and platforms. It would encourage collaboration between teams, and enable users to learn from each other through bidirectional knowledge sharing. This momentum would empower API consumers to self-serve, onboard to new APIs faster, and scale new experiences to our customers faster.</p><p>This became our mission. Over the next 18 months, Postman Enterprise grew from a handful of users to a company-wide developer tool. So how did we get there?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Eq3T0VzGWzfOsIzOoJeZlw.png" /></figure><h3>Build A Community</h3><p>Community engagement was the key ingredient for success. We wanted to create a grassroots movement and go on a journey together with the community. The following factors were important to build momentum in the community:</p><ul><li><strong>Start With Why.</strong> Every community member received a welcome email: the vision for Postman Enterprise, links to helpful resources, and a simple onboarding guide.</li><li><strong>Personal And Open.</strong> We created community awareness through personal conversations, Slack channels and Confluence pages.</li><li><strong>Teams Over Individuals.</strong> With a finite number of licenses, we prioritized onboarding groups over single users to encourage collaboration within and across teams.</li><li><strong>Tailored Training.</strong> In partnership with Postman, we developed training sessions tailored to the specific needs of technology and engineering teams.</li><li><strong>Influencers. </strong>Every community has ‘power users’ — evangelists who are committed to bring the vision to life. From day 0 we sought out PayPal’s Postman influencers and included them in decisions affecting the Postman community.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*QudCLT6kYS2cSt7omLmLXg.png" /></figure><h3>Trust: Leadership’s Leap Of Faith</h3><p>Global Professional Services leadership challenged us to innovate and to try something new. When presented with our vision, they took a leap of faith and invested their budget. Their initial investment enabled us to test and learn with early adopters. We were able to <em>capture demand</em> from the early users who immediately benefited from Postman Enterprise’s richer API collaboration functionality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*rnqaD7dBKHktd5FmYf4qGw.png" /></figure><p>As more and more users from across PayPal joined the platform, we experienced a large wave of users <em>creating demand</em>. These users invited other users to join them to collaborate more efficiently. As a result, we quickly ran out of licenses.</p><p>Keen to support the growing number of Enterprise users, we constructed a deal with Postman’s leadership team. Postman took a leap of faith in our partnership and extended additional licenses in support of our vision and the community we were building. However, even with additional licenses, demand soon overwhelmed supply, and we once again reached a limit on licenses.</p><h3>The Viral Effect</h3><p>With licenses maxed out we had to think like a startup to grow further. We created a waiting list which helped us to:</p><ul><li>Create a buzz and maintain momentum while we worked to secure additional licenses for the community. We couldn’t afford to stall the momentum we had built up.</li><li>Quantify the actual, but hidden, demand to support our business case for license expansion.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9yt6nkpiYugq3QtdFt5Rag.png" /></figure><p>Equipped with a full platform and a growing waiting list, we were ready to begin discussions to deepen PayPal’s partnership with Postman.</p><h3>Insights, Not Data</h3><p>Data driven insights were critical for the Postman Enterprise expansion business case. We tracked team and individual engagement meticulously. At any point, we understood how a user was utilizing Postman (individual or Enterprise license) and whether they were on the waiting list. While the raw totals of these metrics were somewhat useful, connecting our data with PayPal’s Organisational APIs enabled much richer hierarchical reporting. This provided meaningful insights into where the demand for Postman was across PayPal for next-level discussions.</p><p>Furthermore, Postman provided key insights around productivity. For example, we learned that Postman Enterprise users at PayPal spend 1.11 hours per week less in Postman compared to those with individual licenses. This supplemented qualitative feedback from PayPal developers on the time saved through Postman Enterprise functionality:</p><blockquote>“Testing a new API now takes minutes with a shared Postman collection, rather than hours to days”.</blockquote><h3>75x Growth</h3><p>In December 2020, the seeds we planted for the prior 18 months were ready for harvest: Postman is now an official developer tool alongside Github and Jira.</p><p>A small idea to improve collaboration, transparency and productivity in our organization skyrocketed when we introduced it into a cross-organizational context. The Postman Enterprise community grew from 10 to 750 users by the end of 2020 with developers across PayPal joining to rapidly adopt and test APIs. We’re delighted to see the growth of the platform across PayPal. Quicker API onboarding accelerates the speed at which PayPal connects products and platforms together which ultimately means we can launch new experiences to our customers faster.</p><p>From day 0 our focus was on community and collaboration. We’re excited where the community will take the Postman Enterprise partnership in 2021 and beyond.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*-vR3Q46IF9yDsK2VahTzSQ.png" /><figcaption><em>With thanks to Ian Dewey and the Postman community.</em></figcaption></figure><p><em>Images 1,2,3,5,6,7,8 © </em><a href="https://www.postman.com/"><em>Postman</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=528e24bc0777" width="1" height="1" alt=""><hr><p><a href="https://medium.com/paypal-tech/75x-growth-scaling-postman-enterprise-across-paypal-528e24bc0777">75X Growth: Scaling Postman Enterprise Across PayPal</a> was originally published in <a href="https://medium.com/paypal-tech">The PayPal Technology Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Brief response to today’s ECJ ruling]]></title>
            <link>https://medium.com/@patrickmillais/brief-response-to-todays-ecj-ruling-283a138d13b?source=rss-4517c5a31d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/283a138d13b</guid>
            <category><![CDATA[ipbill]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[surveillance]]></category>
            <category><![CDATA[civil-liberties]]></category>
            <category><![CDATA[government]]></category>
            <dc:creator><![CDATA[Patrick Millais]]></dc:creator>
            <pubDate>Thu, 22 Dec 2016 12:34:41 GMT</pubDate>
            <atom:updated>2016-12-22T13:18:21.317Z</atom:updated>
            <content:encoded><![CDATA[<p>Today’s ECJ ruling is excellent news for human rights and civil liberties in the UK.</p><p>Last month the government passed the Investigatory Powers Bill, which has been described as the most extreme surveillance law ever passed in the history of a western democracy. This invasive bill mandates that communication providers collect communications data in bulk for millions of UK citizens, requiring your private messages, emails and internet history to be stored in full for 12 months. All of this is without proper independent judicial authorisation.</p><p>The bill been criticised by the UN’s privacy chief <em>[1]</em>, the inventor of the World Wide Web <em>[2]</em>, large technology companies such as Google, Facebook and Twitter <em>[3]</em>, Amnesty International <em>[4]</em> and multiple human/digital rights organisations <em>[5][6][7]</em>. The European Court of Justice has now ruled legislation found within the IP Bill cannot be justified within a democratic society — in a case rather ironically brought forward by the Brexit minister.</p><p>There are exceptional dangers to allowing bulk, non-targeted interception of personal communications data. ISPs and telecom companies will be required to retain deeply sensitive databases of all communications data — a comprehensive “activity log of your life” <em>[8]</em> — covering every website you visit, every message you send, every person you email and every phone call you make.</p><p>What’s more, it will be companies like TalkTalk, O2, Three and Vodafone (all of whom have had significant data breaches in the last 2 years) storing this information. With last week’s news that Yahoo — one of the largest technology companies in the world — lost over one billion user accounts in a 2013 hack, how can we trust these companies to keep even more sensitive personal records safe?</p><p>Wide-reaching surveillance adversely affects everyone: from journalists, health professionals and lawyers, to minority groups and victims of police misconduct. There are multiple, real documented examples of abuse centred around mass surveillance <em>[9]</em>. It is however fully possible to have both security and privacy. With no convincing evidence that mass surveillance actually saves lives, instead we should look towards a targeted approach (with judicial warrants) <em>[10]</em>.</p><p>As it is, all of your messages, emails and internet history will be accessible from over 45 government departments. The IP bill in its current form contains incredibly little oversight, leading to a lack of crucial accountability in this process. It is a privacy disaster waiting to happen.</p><p>Bulk surveillance is a disproportionate response to extremism. Even if you do subscribe to the flawed ‘nothing to hide, nothing to fear’ argument and trust the current government, what about future governments? The unaccountable, invasive powers that this bill legitimises, alongside the infrastructure built to support it, could be used by future governments to censor and self-censor specific demographics</p><p>Even with Brexit looming, today’s ECJ ruling is welcome and is some positive news to end 2016 on.</p><p>_________________</p><p><em>[1] </em><a href="http://www.wired.co.uk/article/un-privacy-ip-bill-not-compliant-international-law"><em>http://www.wired.co.uk/article/un-privacy-ip-bill-not-compliant-international-law</em></a></p><p><em>[2] </em><a href="http://www.bbc.co.uk/news/technology-38134560"><em>http://www.bbc.co.uk/news/technology-38134560</em></a></p><p><em>[3] </em><a href="http://www.publications.parliament.uk/pa/cm201516/cmpublic/investigatorypowers/Memo/IPB21.htm"><em>http://www.publications.parliament.uk/pa/cm201516/cmpublic/investigatorypowers/Memo/IPB21.htm</em></a></p><p><em>[4] </em><a href="https://www.amnesty.org.uk/press-releases/new-surveillance-bill-adding-extra-storeys-burning-building"><em>https://www.amnesty.org.uk/press-releases/new-surveillance-bill-adding-extra-storeys-burning-building</em></a></p><p><em>[5] </em><a href="https://www.liberty-human-rights.org.uk/news/press-releases-and-statements/government-breaking-law-collecting-everyones-internet-and-call"><em>https://www.liberty-human-rights.org.uk/news/press-releases-and-statements/government-breaking-law-collecting-everyones-internet-and-call</em></a></p><p><em>[6] </em><a href="https://www.openrightsgroup.org/press/releases/2016/investigatory-powers-act-most-extreme-surveillance-law"><em>https://www.openrightsgroup.org/press/releases/2016/investigatory-powers-act-most-extreme-surveillance-law</em></a></p><p><em>[7] </em><a href="https://medium.com/@privacyint/press-release-landmark-ruling-by-european-court-could-render-the-uk-governments-new-snoopers-e7caff2b59e7#.l16hhd6cd"><em>https://medium.com/@privacyint/press-release-landmark-ruling-by-european-court-could-render-the-uk-governments-new-snoopers-e7caff2b59e7#.l16hhd6cd</em></a></p><p><em>[8] </em><a href="https://twitter.com/snowden/status/661924092451397632"><em>https://twitter.com/snowden/status/661924092451397632</em></a></p><p><em>[9] </em><a href="https://www.openrightsgroup.org/blog/2015/responding-to-nothing-to-hide-nothing-to-fear"><em>https://www.openrightsgroup.org/blog/2015/responding-to-nothing-to-hide-nothing-to-fear</em></a></p><p><em>[10] </em><a href="https://www.liberty-human-rights.org.uk/campaigning/no-snooperscharter/8-point-plan"><em>https://www.liberty-human-rights.org.uk/campaigning/no-snooperscharter/8-point-plan</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=283a138d13b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>