<?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 Kosala (KP) Perera on Medium]]></title>
        <description><![CDATA[Stories by Kosala (KP) Perera on Medium]]></description>
        <link>https://medium.com/@kosperera?source=rss-f1ac113a522a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zH5pq91gveDDGVYQsuZDfA.jpeg</url>
            <title>Stories by Kosala (KP) Perera on Medium</title>
            <link>https://medium.com/@kosperera?source=rss-f1ac113a522a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 14:12:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kosperera/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[Dead simple dev containers]]></title>
            <link>https://kosperera.medium.com/docker-dev-containers-6c0cc1066f67?source=rss-f1ac113a522a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c0cc1066f67</guid>
            <category><![CDATA[tools]]></category>
            <category><![CDATA[devcontainer]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[developer-productivity]]></category>
            <dc:creator><![CDATA[Kosala (KP) Perera]]></dc:creator>
            <pubDate>Sun, 29 Jun 2025 01:24:08 GMT</pubDate>
            <atom:updated>2026-06-09T19:20:14.439Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UiiQSqeV30KkvQijDGCyyg.jpeg" /></figure><h4>Building apps with development containers using Docker</h4><blockquote>2024. Docker Team has deprecated native dev environments feature. They <a href="https://github.com/docker/awesome-compose/pull/488">removed references</a> and archived the <a href="https://github.com/docker/dev-environments">@docker/dev-environments</a> repo.</blockquote><p>It’s October 2016. Pluralsight is open on my work PC and <a href="https://github.com/danwahlin">Dan Wahlin</a> is showing how to <a href="https://www.pluralsight.com/courses/docker-web-development">Hook the Source Code into a Container</a>. Easy enuf, except, I need to bake in dev environment as part of the source code repo. It’s not such a great idea and probably not even fun to begin with. But I like the idea of dev containers. It keeps the <a href="https://producingoss.com/en/producingoss.html#starting-from-what-you-have"><em>Hacktivation Effort</em></a> to minimal.</p><pre>docker run --name stoic_goldstine \<br>           --rm \                    # clean up<br>           -w /workspaces \          # working directory<br>           -v &quot;$(pwd):/workspaces&quot;   # sync immediate file changes to container<br>           -p 3000:3000 \            # expose port 3000<br>           node:lts-bullseye \       # node image<br>           npx serve . --listen 3000 # run the http server in port 3000</pre><p>Unfortunately, docker runs in the foreground and requires another Terminal to stop to and remove the container. It would be impossible to run in <a href="https://docs.docker.com/engine/reference/run/#detached--d">detached </a><a href="https://docs.docker.com/engine/reference/run/#detached--d">-d mode</a> without giving away docker <a href="https://docs.docker.com/engine/reference/run/#clean-up---rm">clean up </a><a href="https://docs.docker.com/engine/reference/run/#clean-up---rm">--rm option</a> completely. And I do want docker to automatically clean up when the container exit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9lDqXckG2EvG6-mXyDPDTw.png" /></figure><p>2022. It’s time to switch to <a href="https://docs.docker.com/desktop/dev-environments/">Docker Dev</a>. I prefer docker dev over docker. They&#39;re technically the same as docker compose, except docker dev is specifically for dev environments. It also requires <a href="https://docs.docker.com/get-started/08_using_compose/#create-the-compose-file">a compose YAML file to configure the container</a>, so I don&#39;t need to memorize all the bells and whistles. All I need to do is break out the same docker command that I use to spawn the container in detached mode to <a href="https://docs.docker.com/desktop/dev-environments/set-up/">create a </a><a href="https://docs.docker.com/desktop/dev-environments/set-up/">compose-dev.yaml file</a> and we&#39;re all set.</p><pre># ./compose-dev.yml<br>services:<br>  node:<br>    image: node:lts-bullseye<br>    container_name: stoic_goldstine<br>    ports:<br>      - 3000:3000<br>    working_dir: /workspaces<br>    volumes:<br>      - ./:/workspaces<br>    command: /bin/sh -c &quot;npx serve . --listen 3000&quot;</pre><p>Then I can use docker dev commands to spawn the dev environment and docker will do the rest for me. <em>Excellent!</em></p><pre>#!/bin/zsh<br># Spin up the dev environment<br>docker dev create $(pwd)<br># Stop the dev environment<br>docker dev stop devcontainers-try-docsify-hungry_elion</pre><blockquote><strong>NOTE!</strong> <a href="https://docs.docker.com/desktop/dev-environments/dev-cli/">Docker Dev CLI</a> is handy if you would want to stick to the Terminal. Use <a href="https://www.docker.com/products/docker-desktop/">Docker Desktop</a> or the <a href="https://github.com/docker/dev-envs-extension">Browser Extension</a>, to create and <a href="https://docs.docker.com/desktop/dev-environments/create-dev-env/">launch dev environments</a> otherwise.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3LMh-WI979HZUZUr43UgKg.gif" /></figure><p>I can use <a href="https://code.visualstudio.com/">Visual Studio Code</a> with a few <a href="https://github.com/kosperera/articles/blob/main/.vscode/extensions.json">extensions</a> but there are more problems. Not only is there no language recognition, but no intellisense at all. I’m going to go ahead and say that they don’t have access to the node runtime inside the container, so they have no way of knowing what syntax highlighting and intellisense to show. And I do want to them to work.</p><p>Time to install the <a href="https://aka.ms/vscode-remote/download/containers">Remote — Containers</a> extnesion and Attach to Running Container. Then I can install the required extensions for node and JavaScript. It&#39;s slightly obnoxious that VS Code doesn&#39;t install recommended extensions from the .vscode/extensions.jsonautomatically, so I&#39;m going to have to install recommendations manually.</p><p>Time to push this initial content to a git repo and let the teammates contribute.</p><p>/KP<br>w: <a href="https://kosperera.github.io/">kosperera.github.io</a></p><blockquote>Originally, this bliki — or microblog or article or whatever you wanna call it — was posted in <a href="https://dev.to/kosperera/homogenize-your-dev-environments-with-docker-gio">my DEV.to hub</a>.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c0cc1066f67" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Non-opinionated engineering practices]]></title>
            <link>https://kosperera.medium.com/non-opinionated-eng-guidelines-1078892dab9b?source=rss-f1ac113a522a------2</link>
            <guid isPermaLink="false">https://medium.com/p/1078892dab9b</guid>
            <category><![CDATA[review]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[code-newbie]]></category>
            <dc:creator><![CDATA[Kosala (KP) Perera]]></dc:creator>
            <pubDate>Sat, 28 Jun 2025 02:09:22 GMT</pubDate>
            <atom:updated>2025-06-29T03:07:18.075Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dcxwdyfy6T4x5yyQUKwJkQ.jpeg" /></figure><h3>Non-opinionated Engineering Practices</h3><h4>A set of ground rules for agile development teams, contributors, and maintainers</h4><p>I’m not going to lie, opinions are like Arseholes, everyone has one. It would have been acceptable but the objectives of code reviews are simple. In general, not only is to get the best possible pull request, but also improving skills of the fellow contributors. Easy enuf, except we need a set of ground rules.</p><h3>Etiquette</h3><p>The first thing we’re going to need is a contributor etiquette. I like the idea of <a href="https://en.wikipedia.org/wiki/Law_of_Jante#Definition">Jante Law</a>. It gives everyone a very <em>Egalitarian</em> feel since <em>you are not to think you’re anyone special or you’re better than everyone else</em>, as they teach in Scandinavian schools.</p><h3>Workflow</h3><p>The next is the release engineering strategy. All we need is a version control tool and <a href="https://git-scm.io/docs/">git</a> is the mainstream thingy for that. But <a href="https://atlassian.com/docs/git/gitflow/">some of the branching strategies are pretty horrendous</a> so you have to keep the branch integrations to minimum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*5MzGmmqVH6i_Be8KYDUyNw.gif" /></figure><p><a href="https://trunkbaseddevelopment.com/">Trunk-based development</a> seems extraordinarily uncomplicated but there are more to consider.</p><ul><li>Branch policies for protecting the default branch.</li><li>Naming conventions for branches.</li><li>Pipelines for release engineering.</li></ul><h3>Changesets</h3><p>Some organizations often call this a <em>Pull request</em> or a <em>Changelist</em>. And it has to be small-enuf to one self-contained change. Unfortunately, no playbook has a recipe for this so I’m going to have to let individual contributor decide the size of the pull request.</p><p>Once the pull request is ready to review, they have to describe it, specifically <em>what</em> has been done and <em>why</em> it was made <em>as-is</em>. This can be tricky, so a <a href="https://www.conventionalcommits.org/en/v1.0.0/#summary">conventional-based description</a> seems like a great way of adding structure and meaning to it.</p><h3>Design and Health</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*79nHg_TxyOJxEbLCDwhHnA.gif" /></figure><p>This covers a lot of ground and can be challenging enuf. Unfortunately, you can only boil so many oceans at the same time, so what does each reviewer should look for in a pull request? In general, <em>readability and maintainability</em> would hint a few mistakes here and there, but there are more to review.</p><ul><li>Intended functionality and the design.</li><li>Over-engineering and complexity.</li><li>Clear naming and conformance to style guide.</li><li>Parallel programming and thread safety.</li><li>Sufficient exception handling and logging et al.</li></ul><h3>Style Guide</h3><p>Yes, a homegrown standards and conventions isn’t such a great idea. The major issue is that it would demand an intense concentration to keep up with each tech stack without giving away the <em>egalitarian culture</em> completely since you would want to <em>Dictate-It-All</em>. And you do want contributors to maintain consistency of the code. This may be difficult. I need a community-adept style guide to start with.</p><h3>Faster Reviews</h3><p>A pull request won’t get reviewed itself. And a contributor must intervene at some point. I can review shortly after it comes in. But that seems a little unproductive since it takes time to get back to <em>The Zone</em> after been interrupted. So how fast should code reviews be? <em>One business day or 24 hours</em> sounds reasonable but there is more to this.</p><ul><li>Professional courtesy when pointing out problems.</li><li>Code analytics for obvious smelly codes, anti-patterns, conformance to standards, et al.</li></ul><h3>Summary</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*L0zTmuZK7V6JbgkutaABWA.gif" /></figure><p>All we need is non-opinionated guidelines for all kinds of contributors, so in doing a code review, you should value for:</p><ul><li>Technical facts and data over opinions and personal preferences.</li><li>Style guides over personal preferences.</li><li>Software design principles over opinionated-design.</li><li>Consistency of the code over personal preferences.</li><li>Team velocity over personal velocity.</li></ul><p>/KP<br>w: <a href="https://kosperera.github.io/">kosperera.github.io</a></p><blockquote>Originally, this bliki — or microblog or article or whatever you wanna call it — was posted in <a href="https://dev.to/kosperera/non-opinionated-code-review-guidelines-16h1">my DEV.to hub</a>.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1078892dab9b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Re-thinking the first use experience]]></title>
            <link>https://engineering.99x.io/re-thinking-the-first-use-experience-d979c3bb293d?source=rss-f1ac113a522a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d979c3bb293d</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[product-design]]></category>
            <category><![CDATA[design-thinking]]></category>
            <category><![CDATA[ux-design]]></category>
            <category><![CDATA[ux]]></category>
            <dc:creator><![CDATA[Kosala (KP) Perera]]></dc:creator>
            <pubDate>Tue, 31 Jan 2017 10:45:27 GMT</pubDate>
            <atom:updated>2017-01-31T10:58:30.312Z</atom:updated>
            <content:encoded><![CDATA[<h4>1400% increased in active users within a month, after redesign and strategic turnaround.</h4><h4>What is Approve.ly</h4><p><a href="http://www.approve.ly/">Approve.ly</a> gives you a smart, fast and easy way to capture and share any content that needs formal or informal approval. Users can take pictures of the content — documents, projects, pictures, sketches, invoices and more — through the phone camera and send it for approval.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*NhY4QOGbpIh1e9EvVPjAfg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*qKpzWWKKD-v9B0AdTeWA1w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*-KQTP6OE5vjdd3UwBqYurA.png" /><figcaption>Approvely mobile app take a tour self-explaining the content stream.</figcaption></figure><h4>The brief</h4><p>As a tech startup, <a href="http://www.approve.ly/">Approve.ly</a> wanted to iterate the product ideas and development in a rapid pace. The solution is a fully automated mobile-only design that is easy for users to complete capture, share, and approval tasks. Upon observing how the app was used, via telemetry, over the course of 6 months, the team observed a transition rate of customer acquisition to activation of less than 0.001%.</p><p>An important observation during this time was that more than 90% of the incidents were related to the onboarding experience. Feedback related to these flows was received on many occasions.</p><h4>The approach</h4><p>Initially, the designers envisioned a mobile app with an Instagram onboarding style but a more simplistic experience. One idea arose during the initial phase of design sprint for the MVP version 2 from the possibility of having context-oriented onboarding journey maps. Another revolved around creating contact groups over networks and companies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TQ2ERLJMVmlYS0SPkzHK_w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g3o8nXTq0vjNFpChh2tmKA.jpeg" /><figcaption>Approvely new design sketches from the design sprint and the red dots are the super votes.</figcaption></figure><h4>The process</h4><p>In Colombo, designers and engineers co-located a meeting room in order to have a full workshop building and prototyping. The team worked on revising the initial screens to account for logical factors and began to sketch screen interfaces and formulate onboarding journeymaps.</p><p>Once the sketches were in use, stakeholders and few co-workers were invited to give their feedback and voice their desires for core features. Human centered design is all about designing for adoption, and you cannot be more confident that the person you’re designing for will use what you’ve made.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rCxxbeciiypVvuNgbxPDaw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rhulcWm9uRCX0FM43LtGtw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bfO-GktawdRaBEKbZV9HPw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XMkDESarz-DFX8mlUTBo7Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k3Qk-IaHpwEmLesH1or9aA.jpeg" /><figcaption>Design sprint in action to re-think the first use experience.</figcaption></figure><h4>The new design direction</h4><p>Once the final phase of the design sprint workshop was over, the team began creating prototypes for journey maps in the form of slides before moving onto fully fleshed out mobile app screens. Learnings continue to emerge thanks to feedback from stakeholders and co-workers who work with the program. The minimalistic design of the sign up process, to capture and to share content encourage customers to complete their onboarding tasks easily with quick informed decisions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9r_4dmqN_5xDg_w3qhkH7g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eSruj6AyFJZ-DP9awTQ2FA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*YcVIH9IWvc6JTtn0MnNLzg.png" /><figcaption>Some of the sketches from the journey maps to demonstrate at the end of the design sprint and telemetry after few sprints.</figcaption></figure><p>By the time the team wrapped up their new version of the Approve.ly mobile app, the product roadmap had led them to establish the market they would be serving. Remarkable agility was required by the team to create several versions of the app in the span of one-week iterations. It wasn’t all perfectly smooth. When Approve.ly went live later in the year, the team was delighted to see the increased number of active devices. During the next few iterations the team observed that installations have increased nearly 200%.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d979c3bb293d" width="1" height="1" alt=""><hr><p><a href="https://engineering.99x.io/re-thinking-the-first-use-experience-d979c3bb293d">Re-thinking the first use experience</a> was originally published in <a href="https://engineering.99x.io/">Engineering at 99x</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>