<?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 Jo Mahadevan on Medium]]></title>
        <description><![CDATA[Stories by Jo Mahadevan on Medium]]></description>
        <link>https://medium.com/@jo-mahadevan?source=rss-55c5905f10c1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*l8BXVG8KYpdBP3clk0sfDg.jpeg</url>
            <title>Stories by Jo Mahadevan on Medium</title>
            <link>https://medium.com/@jo-mahadevan?source=rss-55c5905f10c1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 19:26:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jo-mahadevan/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[Unveiling the World of Machine Learning for Beginners]]></title>
            <link>https://python.plainenglish.io/unveiling-the-world-of-machine-learning-for-beginners-72f6942b2697?source=rss-55c5905f10c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/72f6942b2697</guid>
            <dc:creator><![CDATA[Jo Mahadevan]]></dc:creator>
            <pubDate>Sun, 10 Mar 2024 20:44:32 GMT</pubDate>
            <atom:updated>2024-03-12T04:37:39.044Z</atom:updated>
            <content:encoded><![CDATA[<h4>Chapter 1: Introduction to Machine Learning</h4><h4>What is Machine Learning?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/0*tKpBWG0GXaOf6Q26.jpg" /><figcaption>Machine Learning — Image from google</figcaption></figure><blockquote>In this opening chapter, we’ll dive into the basics of machine learning, exploring what it is, its significance, and how it differs from traditional programming. We’ll lay the foundation for understanding the key concepts that make machine learning a transformative field</blockquote><p>Machine learning, a pervasive technology in our daily lives, often operates discreetly in the background. Its applications are diverse, addressing challenges such as distinguishing spam emails, enabling self-driving cars, and predicting a person’s likely product preferences. An everyday illustration of machine learning unfolds when your email automatically scans and classifies messages as spam, seamlessly organizing them into a designated folder. Over the years, companies like Google and Tesla have been diligently crafting self-driving systems, poised to augment or even replace human drivers. Meanwhile, tech giants like Google and Amazon leverage your search history to anticipate your purchasing preferences, strategically presenting tailored ads across various web pages. While these applications are undeniably beneficial, the omnipresence of machine learning can also be characterized by occasional intrusiveness and an eerie, predictive nature.</p><h4>Definition of Machine Learning</h4><blockquote>Arthur Samuel, an early American leader in the field of computer gaming and artificial intelligence, coined the term “Machine Learning ” in 1959 while at IBM. He defined machine learning as “the field of study that gives computers the ability to learn without being explicitly programmed</blockquote><p>However, there is no universally accepted definition for machine learning, This definition points out the key feature of machine learning, namely that the system learns how to solve the problem from example data rather than you writing specific logic. This is a significant departure from how most programming is done. Let&#39;s try and understand how machine learning differs from traditional programming.</p><h4>How does ML differ from traditional programming?</h4><figure><img alt="Software engineering Vs Machine learning differences" src="https://cdn-images-1.medium.com/proxy/0*RG53F2pzP1NRMm_p.png" /><figcaption>Software Engineering vs. machine Learning differences</figcaption></figure><p>In machine learning, the system learns to solve problems by observing examples, eliminating the need for manually writing specific instructions. This contrasts sharply with conventional programming practices. In regular programming, we meticulously study the problem and craft code to address it. This code processes data, relying on predefined rules to determine the correct steps for obtaining the desired outcome. Traditional programming involves using constructs like if statements, case statements, and loops, each requiring predefined tests in advance.</p><p>Contrastingly, in machine learning, we don’t explicitly write out detailed instructions. Instead, we gather relevant data and adapt its format for machine learning suitability. Subsequently, this prepared data is fed into an algorithm. The algorithm analyses the data and constructs a model that automatically implements a solution to the problem based on the gathered information.</p><h4>Classification of ML</h4><p>Machine learning implementations are classified into four major categories, depending on the nature of the learning “signal” or “response” available to a learning system which are as follows:</p><ul><li>Supervised</li><li>Unsupervised</li><li>Semi-Supervised Learning</li><li>Reinforcement Learning</li></ul><h4><strong>Supervised Learning</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/0*oC8N5cEuQDbxo9_d.png" /></figure><p><strong>Supervised learning</strong> is a type of machine learning where an algorithm is trained on a labelled dataset, which means the input data has corresponding output labels. The algorithm learns to map the input data to the correct output by generalizing patterns from the training data. The goal is for the algorithm to make accurate predictions or classifications when presented with new, unseen data. In supervised learning, the learning process is guided by the presence of labeled examples, enabling the algorithm to understand the relationships between input features and the target output.</p><p>Supervised learning is widely applied across various industries due to its capability to make predictions or classifications based on labelled data like healthcare, finance, retail, manufacturing, e-commerce etc</p><h4><strong>Unsupervised Learning</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/0*ObfW416etYPRUgvA" /><figcaption>Unsupervised Learning</figcaption></figure><p><strong>Unsupervised learning</strong> is a category of machine learning where an algorithm is tasked with exploring and extracting patterns from unlabelled data. Unlike supervised learning, there are no predefined output labels associated with the input data. The algorithm seeks to identify inherent structures, relationships, or clusters within the data without explicit guidance. Common tasks in unsupervised learning include clustering, dimensionality reduction, and density estimation. This approach is valuable for revealing hidden patterns or structures in data sets, often leading to insights or discoveries that may not be immediately apparent.</p><p>Unsupervised learning is also widely applied across various industries to discover patterns, relationships, and structures within data that may not be explicitly labelled like fraud detection, customer behaviour analysis, and analysis of medical imaging data for pattern recognition.</p><h4><strong>Semi-Supervised Learning</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*HWNDcIBF9ICfbR_A.png" /><figcaption>Semi Supervised Learning</figcaption></figure><p><strong>Semi-supervised </strong>learning is a machine learning paradigm that lies between supervised and unsupervised learning. In semi-supervised learning, a model is trained on a dataset that contains both labelled and unlabelled examples. The model leverages the labelled data to learn patterns and makes predictions on the unlabelled data, thereby improving its performance over purely unsupervised methods.</p><p>Some examples where semi supervised learning is used — speech recognition, natural language processing and networks security.</p><h4><strong>Reinforcement Learning</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_3bqCBBGd6dOU9W4.png" /><figcaption>Reinforcement learning</figcaption></figure><p><strong>Reinforcement learning</strong> is a machine learning paradigm where an agent learns to make decisions by interacting with an environment. The agent receives feedback in the form of rewards or punishments based on the actions it takes. The goal of the agent is to learn a policy, a mapping from states to actions, that maximizes the cumulative reward over time. Reinforcement learning is often used in scenarios where an agent must make a sequence of decisions to achieve a long-term objective, and it learns through trial and error.</p><p>Areas of application of reinforcement learning include robotics, game playing, autonomous systems like cars and drones, and content recommendation on streaming platforms.</p><h4>Conclusion</h4><p>So, we’ve just scratched the surface of this cool thing called machine learning. The big idea here is that instead of telling computers exactly what to do, we’re teaching them from examples. It’s like showing a friend how to solve a puzzle by doing it together instead of giving them a step-by-step guide. This is pretty different from how we usually make computers do stuff.</p><h4><em>Sources</em></h4><ul><li>“Machine Learning: A Probabilistic Perspective” by Kevin P. Murphy</li><li>“Python Machine Learning” by Sebastian Raschka</li><li>Online resources and tutorials from platforms like Geek for Geeks and Coursera</li><li>Various google images</li></ul><h4>Chapter 2 Synopsis</h4><p><strong>Types of Machine Learning -</strong> delves into the diverse types of machine learning, unravelling the intricacies of supervised, unsupervised, and semi-supervised learning. I will explore how supervised learning thrives on labeled examples, providing a clear path for the system to learn and predict. Unsupervised learning, on the other hand, ventures into the unknown, uncovering patterns in unlabeled data without predefined outcomes.</p><p>SOCIALS ??</p><h3>In Plain English 🚀</h3><p><em>Thank you for being a part of the </em><a href="https://plainenglish.io/"><strong><em>In Plain English</em></strong></a><em> community! Before you go:</em></p><ul><li>Be sure to <strong>clap</strong> and <strong>follow</strong> the writer ️👏<strong>️️</strong></li><li>Follow us: <a href="https://twitter.com/inPlainEngHQ"><strong>X</strong></a><strong> | </strong><a href="https://www.linkedin.com/company/inplainenglish/"><strong>LinkedIn</strong></a><strong> | </strong><a href="https://www.youtube.com/channel/UCtipWUghju290NWcn8jhyAw"><strong>YouTube</strong></a><strong> | </strong><a href="https://discord.gg/in-plain-english-709094664682340443"><strong>Discord</strong></a><strong> | </strong><a href="https://newsletter.plainenglish.io/"><strong>Newsletter</strong></a></li><li>Visit our other platforms: <a href="https://stackademic.com/"><strong>Stackademic</strong></a><strong> | </strong><a href="https://cofeed.app/"><strong>CoFeed</strong></a><strong> | </strong><a href="https://venturemagazine.net/"><strong>Venture</strong></a><strong> | </strong><a href="https://blog.cubed.run/"><strong>Cubed</strong></a></li><li>More content at <a href="https://plainenglish.io/"><strong>PlainEnglish.io</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72f6942b2697" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/unveiling-the-world-of-machine-learning-for-beginners-72f6942b2697">Unveiling the World of Machine Learning for Beginners</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementing and Configuring Google’s App Engine Application]]></title>
            <link>https://faun.pub/implementing-and-configuring-googles-app-engine-application-91ba1335e079?source=rss-55c5905f10c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/91ba1335e079</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[pandas]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[flask-python-appengine]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <dc:creator><![CDATA[Jo Mahadevan]]></dc:creator>
            <pubDate>Sat, 19 Feb 2022 18:22:04 GMT</pubDate>
            <atom:updated>2022-02-21T10:46:04.643Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O-7xsXzrWkN0yBPlmNZwYw.jpeg" /><figcaption>Google Cloud Platform App Engine Logo</figcaption></figure><blockquote>App Engine is a fully managed, serverless platform for developing and hosting web applications at scale. You can choose from several popular languages, libraries, and frameworks to develop your apps, and then let App Engine take care of provisioning servers and scaling your app instances based on demand. — <a href="https://cloud.google.com/appengine/docs">https://cloud.google.com/appengine/docs</a></blockquote><p>It is vital to understand how pricing works for services on cloud platforms prior to their use; various factors contribute to the cost of a service, moreover, price differs for every service. Therefore, I wanted to host the app on App Engine without exhausting all of my free credit. Hence, I spent quite a bit of time learning about various aspects of app engine and how that contributes to the cost. Essentially, I wished to host a simple web app on App Engine that I built using Python flask. The flask framework renders a Pandas data frame converted into an HTML table on a web page¹.</p><p>In doing so, I had learnt a lot about Google’s App Engine and its workings.</p><h4><strong>What is an App Engine?</strong></h4><p>App Engine mimics a micro-service architecture. Each service in an App Engine behaves like a microservice, and scales independently. Each service can be thought of as a logical component which share features and communicate with one another.</p><h4>App Engine Environment</h4><p>The obvious choice for my personal project was the standard environment. However, upon further research and referral to various resources (e.g. books, learning sites, YouTube, etc.) and trying out various trial and error experiments on my GCP free credits, the following were the key differences between the standard and flexible environments²:</p><p><strong>Standard Environment</strong></p><ul><li>Application runs on a proprietary sandbox</li><li>Code in few languages and versions supported</li><li>Custom runtimes not possible</li><li>Apps cannot access compute engine resources</li><li>Instances can start up in seconds</li><li>Scaling supported — Manual, Basic or Automatic</li><li>No background processes and no SSH debugging allowed.</li><li>Scaling to zero is possible</li></ul><p><strong>Flexible Environment</strong></p><ul><li>Application runs in a docker container on GCE</li><li>Code in far more languages and versions supported</li><li>Custom runtimes are possible</li><li>Apps can access certain computing engine packages and resources</li><li>Instances start up in min</li><li>Scaling — Manual or Automatic</li><li>Background processes allowed and SSH debugging allowed.</li></ul><h4><strong>Components Of App Engine and Types of Scaling</strong></h4><p>There are 4 components that make up the application in an app engine. Several GCP reference books discuss these topics in depth. A basic understanding of App Engine hierarchy helps in designing each underlying service as autonomous and independently scalable.</p><p><strong>Application</strong> : Single regional resource created in a GCP project. There can only be one application per project. Application consists of hierarchy of services, versions and instances.</p><p><strong>Service</strong>: Each service in an app engine behaves like a microservice and scales independently. Every app has at least one service.</p><p><strong>Version</strong> : A service can have multiple versions. Multiple live versions are also allowed. Every deployment creates a new version and unless the traffic is split the traffic is automatically set to the latest version.</p><p><strong>Instances : </strong>For App Engine, instances are the computing units on which an application is hosted. This includes the language, the runtime, the app engine API, the app code and memory. Instances belong to an instance class and instant class then determines the type of scaling and associated cost.</p><p><strong>Scaling : </strong>Scaling is when the number of instances are added or removed based on various parameters. There are 3 types of scaling — Automatic, Basic and Manual. In order to understand how the scaling works, we need to know more about instant types.</p><ul><li><strong>Resident Instance</strong> : These instances run all the time, they are ready to serve traffic. Using resident instances can improve performance. There is no latency but cost is high.</li><li><strong>Dynamic Instances</strong> : These starts up and shuts down based on the need of the app. They can be dynamically provisioned.</li></ul><p>Of the 3 types of scaling mention above, <strong><em>Manual scaling</em></strong> uses <strong><em>Resident</em></strong> instances to serve traffic<strong><em>. Automatic scaling</em></strong> uses a combination of both <strong><em>Resident</em></strong> and <strong><em>Dynamic</em></strong> instances. <strong><em>Basic</em></strong> <strong><em>scaling</em></strong> only uses <strong><em>Dynamic</em></strong> instances and it is used for apps that only need to be available intermittently.</p><h4>Pricing</h4><p>The cost for an <strong><em>App Engine Standard</em></strong> environment is based on instance class. The instance class that starts with a letter <strong><em>‘F’ </em></strong>supports Automatic scaling. The instance class that starts with a letter <strong><em>‘B’</em></strong> supports Basic or Manual scaling. Subsequently there is a cost per instance and also a cost per hour of usage.</p><p>The cost for the flexible environment is based on VCPU, memory and persistent disk usage³.</p><h4>Deploying an App Engine Application</h4><p>The three files in my source code which met the minimum requirement to deploy and run a Python app on App Engine were main.py, requirements.txt and app.yml</p><p>The requirements.txt had all my app’s necessary dependencies declared.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a326ae1854aa18939747eee1447020b5/href">https://medium.com/media/a326ae1854aa18939747eee1447020b5/href</a></iframe><p>app.yml had the following configuration, set up with the aim of keeping the price low. I chose manual scaling even though it uses resident instances: however, I kept my instances, memory, and disk size to the lowest possible configuration. That way, it would cost less, and since my app won’t have any users apart from the people I shared the link to, I kept the number of instances as 1.</p><p>How we configure app.yml, dictates how effectively the app engine platform will be used to host our apps.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/93405a4395eb97f14fb6e78eccc4b1db/href">https://medium.com/media/93405a4395eb97f14fb6e78eccc4b1db/href</a></iframe><p>The next steps to deploy the app is straightforward. Install and set up Google Cloud CLI and run the following commands:</p><ul><li><em>gcloud projects create</em> — to create a new project</li><li><em>gcloud auth login</em> — to obtain new credentials</li><li><em>gcloud config set project PROJECT_ID —</em> to set the default project</li><li><em>gcloud app deploy</em> — to deploy your application. You will be prompted to choose a region if the default region hasn’t been set. The python run time will install all your dependencies declared in requirements.txt</li><li>The default app is located at <em>project_id.appspot.com</em></li></ul><p>Once the application is running you could try deploying another version of the service and try and split the traffic between the two versions. There are several parameters available for the type of scaling, resources and various other options one should consider in configuring an app and also minimising the cost.</p><p>The best thing about App Engine for me was of course the ease with which I could deploy: all I needed to think about was my code.</p><p><strong>Footnotes</strong></p><p>[1] <em>The base logic behind the application can be found in my blog here: </em><a href="https://faun.pub/create-chart-visualisation-with-python-pandas-using-apis-in-5-steps-eefaf42f3f64"><em>https://faun.pub/create-chart-visualisation-with-python-pandas-using-apis-in-5-steps-eefaf42f3f64</em></a><em>.</em></p><p>[2] <em>This Google Document provides more information on each environment type : </em><a href="https://cloud.google.com/appengine/docs"><em>https://cloud.google.com/appengine/docs</em></a></p><p>[3] <em>More info on pricing can be found here: </em><a href="https://cloud.google.com/appengine/pricing#app-engine-pricing"><em>https://cloud.google.com/appengine/pricing#app-engine-pricing</em></a></p><figure><a href="https://faun.to/bP1m5"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BCiLLad3dvZLwBa-B5cAVQ.png" /></a></figure><p>Join FAUN: <a href="https://faun.to/i9Pt9"><strong>Website</strong></a><strong> </strong>💻<strong>|</strong><a href="https://faun.dev/podcast"><strong>Podcast</strong></a><strong> </strong>🎙️<strong>|</strong><a href="https://twitter.com/joinfaun"><strong>Twitter</strong></a><strong> </strong>🐦<strong>|</strong><a href="https://www.facebook.com/faun.dev/"><strong>Facebook</strong></a><strong> </strong>👥<strong>|</strong><a href="https://instagram.com/fauncommunity/"><strong>Instagram</strong></a><strong> </strong>📷|<a href="https://www.facebook.com/groups/364904580892967/"><strong>Facebook Group</strong></a><strong> </strong>🗣️<strong>|</strong><a href="https://www.linkedin.com/company/faundev"><strong>Linkedin Group</strong></a><strong> </strong>💬<strong>|</strong> <a href="https://faun.dev/chat"><strong>Slack</strong></a> 📱<strong>|</strong><a href="https://thechief.io/"><strong>Cloud Native</strong> <strong>News</strong></a><strong> </strong>📰<strong>|</strong><a href="https://linktr.ee/faun.dev/"><strong>More</strong></a><strong>.</strong></p><p><strong>If this post was helpful, please click the clap 👏 button below a few times to show your support for the author 👇</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91ba1335e079" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/implementing-and-configuring-googles-app-engine-application-91ba1335e079">Implementing and Configuring Google’s App Engine Application</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[API Chart Visualisation with Python Pandas]]></title>
            <link>https://faun.pub/create-chart-visualisation-with-python-pandas-using-apis-in-5-steps-eefaf42f3f64?source=rss-55c5905f10c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/eefaf42f3f64</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[python-pandas]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Jo Mahadevan]]></dc:creator>
            <pubDate>Tue, 17 Aug 2021 01:51:23 GMT</pubDate>
            <atom:updated>2022-02-02T13:45:37.564Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/481/1*n_ms1q5YoHAQXXUIfeADKQ.png" /></figure><p><strong>Pandas: </strong>a software library written for the Python programming language, typically used in data manipulation and analysis. An API can be used as a data source in tandem with Pandas to convert data into a DataFrame with Datap visualisation: this blog covers how to do this in only five steps.</p><p><strong>Step 1: Get Data</strong></p><ul><li>Request: a simple HTTP library for python — makes sending http requests simple. Installation is available via pip.</li></ul><pre><strong>$ python -m pip install requests</strong></pre><ul><li>It is ideal to set your chosen endpoint as the data source: there are several public APIs available that can be used for this; I wanted to use something that supported both numeric and text data — and due to my love of the Star Wars film franchise, I decided on this public “Star Wars” API— <a href="https://swapi.dev/api/people">SWAPI</a>.</li><li>I did a GET request on the endpoint and stored the result as a json object using the .json() function.</li><li>response.json() returns a JSON object of the result. Try printing a response with and without .json() — You will notice that with .json() requests, the output is a Python dictionary.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/178a9e0c89562df7310428ba748ef362/href">https://medium.com/media/178a9e0c89562df7310428ba748ef362/href</a></iframe><p><strong>Step 2: Store Data</strong></p><ul><li>I had stored the data in a list and at every iteration, appended it with a new set of data; there were around 82 datasets (of which only around 56 were valid). Here I used the datasets for the Star Wars “people”.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2c000209b0e622e4a0c1e200cb43dd5b/href">https://medium.com/media/2c000209b0e622e4a0c1e200cb43dd5b/href</a></iframe><p><strong>Step 3: Create a data frame</strong></p><pre><strong>$ python -m pip install pandas</strong></pre><ul><li>There are several processes that the panda&#39;s library enables. Their documentation is particularly useful and can be found here: (<a href="https://pandas.pydata.org/docs/getting_started/index.html">Pandas Doc</a>)</li><li>I created a data frame using pandas — as shown below. Dataframe() creates two-dimensional, size-mutable, potentially heterogeneous tabular data.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4942fb996b51b9dc48343751ab4309ff/href">https://medium.com/media/4942fb996b51b9dc48343751ab4309ff/href</a></iframe><p><strong>Step 4: Prep for data visualisation</strong></p><ul><li>I wanted to do one more thing before I visualised my data: to compute the BMI of all the Star Wars characters, so as to visualise their BMI in a graph.</li><li>My createPeopleInfo class looked like this:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6f5c295b2cac692da0dc73d562ebfccf/href">https://medium.com/media/6f5c295b2cac692da0dc73d562ebfccf/href</a></iframe><p><strong>Step 5: Visualising the data</strong></p><ul><li>When I printed the data frame, the output turned out how I had wanted it to.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5ae50af02dc05e32b69812c00bd84d72/href">https://medium.com/media/5ae50af02dc05e32b69812c00bd84d72/href</a></iframe><ul><li>I then instantiated the class from the main function and visualised the BMI using a bar graph plot.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/eda0a8dfe01f421d9de937a436d479db/href">https://medium.com/media/eda0a8dfe01f421d9de937a436d479db/href</a></iframe><ul><li>The bar graph looked like this:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CkW4vCgaBJHEEKrIo9um2A.png" /></figure><p>There are several ways in which data could be visualised and analysed. The options seem to be infinite and ever-expanding.</p><p>DataFrame also can be converted to HTML. One of the uses that piqued my interest is converting my DataFrame into a web app.</p><figure><a href="https://faun.to/bP1m5"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BCiLLad3dvZLwBa-B5cAVQ.png" /></a></figure><p>Join FAUN: <a href="https://faun.to/i9Pt9"><strong>Website</strong></a><strong> </strong>💻<strong>|</strong><a href="https://faun.dev/podcast"><strong>Podcast</strong></a><strong> </strong>🎙️<strong>|</strong><a href="https://twitter.com/joinfaun"><strong>Twitter</strong></a><strong> </strong>🐦<strong>|</strong><a href="https://www.facebook.com/faun.dev/"><strong>Facebook</strong></a><strong> </strong>👥<strong>|</strong><a href="https://instagram.com/fauncommunity/"><strong>Instagram</strong></a><strong> </strong>📷|<a href="https://www.facebook.com/groups/364904580892967/"><strong>Facebook Group</strong></a><strong> </strong>🗣️<strong>|</strong><a href="https://www.linkedin.com/company/faundev"><strong>Linkedin Group</strong></a><strong> </strong>💬<strong>|</strong> <a href="https://faun.dev/chat"><strong>Slack</strong></a> 📱<strong>|</strong><a href="https://thechief.io/"><strong>Cloud Native</strong> <strong>News</strong></a><strong> </strong>📰<strong>|</strong><a href="https://linktr.ee/faun.dev/"><strong>More</strong></a><strong>.</strong></p><p><strong>If this post was helpful, please click the clap 👏 button below a few times to show your support for the author 👇</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eefaf42f3f64" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/create-chart-visualisation-with-python-pandas-using-apis-in-5-steps-eefaf42f3f64">API Chart Visualisation with Python Pandas</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Make Time]]></title>
            <link>https://medium.com/swlh/make-time-727447f2fd1a?source=rss-55c5905f10c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/727447f2fd1a</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[lifestyle]]></category>
            <category><![CDATA[time-management]]></category>
            <dc:creator><![CDATA[Jo Mahadevan]]></dc:creator>
            <pubDate>Sun, 28 Mar 2021 17:33:57 GMT</pubDate>
            <atom:updated>2021-03-28T17:49:43.819Z</atom:updated>
            <content:encoded><![CDATA[<h3>Making Time</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*1HVngB5aOBHvjo5q.gif" /></figure><p>A few years ago, I had read a book by Jake Knapp and John Zeratsky; “Make Time —<em> How to focus on things that matter”. </em>The book’s contents were particularly intriguing to me, and one of the central themes of the book is the idea that two different forces compete for every single handful of our time — namely, <em>The Busy Bandwagon </em>and <em>The Infinity Pool</em>.</p><p>To provide some context, The Bandwagon effect is a psychological phenomenon whereby people do something primarily because others are doing it as well, regardless of their own beliefs (which typically become abhorrent to those under the influence of the effect). Most of us in the 21st century have the bandwagon mindset — in that we see it vital to consume every minute with productivity — in order to present oneself as a functioning member of society and meet the demands of a modern workplace.</p><p><em>The Infinity Pool</em> consists of apps and social networks of endlessly replenishing content. This always-available, always new content is the reward for your exhaustion from constant busyness.</p><p>Both of these forces desensitise us and make us indifferent to whatever ‘defaults’ are imposed upon us.</p><p>Our lives seem to be driven by defaults — things which are accepted without question, that nobody seems to challenge — For example, by default we are okay with back to back meetings; we are notified for even insignificant messages; our phone apps are set up to do what is best for the manufacturer and the data provider, rather than us, the users. To further elaborate on what I said above, both the <em>Busy Bandwagon</em> and the <em>Infinity Pool</em> both make us default to adverse stuff: while the former defaults to making us feel like we’ve to do endless tasks, the latter defaults us to perpetual distraction.</p><p>I didn&#39;t follow everything the book recommended to make time — as I felt that I had to commandeer my own life, and what was best for me was not what was written. Below is the steps I took in my journey towards making time — which I’m still finding my way across.</p><h4>Not using To-Do Lists</h4><p>You would think that to-do lists gave us a means to achieve a better work life balance. However, that could not be farther from the reality: To-Do lists lie to you — not in the literal sense, but in the sense that the tasks which we regularly update in our lists are often other people’s priorities, rather than our own. The highs that we get out off crossing off a task are extinguished by several more tasks cluttering our backlogs. While keeping lists for the purpose of memory are usually effective, To-Do lists give us neither reason nor a process in which to minimise <em>The Busy Bandwagon</em> mindset.</p><h4>Bullet Journaling</h4><p>Bullet journals (Bu-Jo) are a serious technical innovation, giving a method to sort information in any order into even an ordinary notebook and be able to easily find it later on. Whatever you call it — a planner, journal, diary, or otherwise — creator <a href="https://bulletjournal.com/">Ryder Carroll</a> says this method will help you live a more productive and meaningful life.</p><p>The artistic element of Bu-Jo allows the inner artiste in us run wild, and gives us a sense of mindfulness. While my Bu-Jo improved my ability to visualise stuff, helped me focus on a given particular problem at hand, it neither aided me in better organising my daily life nor in prioritising my goals.</p><h4>Highlights of the Week and the Year</h4><p>When tasks feel too repetitive and goals seem unreachable, Highlights seem just right. The book that I mentioned above talks in detail about the highlights, this is that one thing that I adapted to make my time more meaningful. Highlights help you focus on the brightest spot of your day. Imagine this: hypothetically, if someone asked you the question; “What was the highlight of your day?”, think about what <em>you </em>would like the answer to be. Highlights may be a form of To-Do lists; however, they are much more effective as you can prioritise and choose tasks based on:</p><ul><li>Urgency — What’s the most pressing thing that needs to be done for the week?</li><li>Satisfaction — Tasks which would give you the most satisfaction, like preparing for a presentation or a meeting.</li><li>Joy — Tasks that you would find fun to do, such as spending time with family, exercising, or reading a book.</li></ul><p>I also started having highlights for the year: Picking one major change that I would gradually take steps towards throughout the course of the year. Last year was taken by storm from COVID — as you know, many of us were stuck at home in lockdown. Thus, I set my highlight of the year to focus on my health and nutrition, so that my health would not deteriorate by being stuck at home. I took more calculated, strategic, gradual steps towards my transformation into plant based nutrition, rather than going cold turkey.</p><p>I was still using my Bu-Jo to track my highlights of the week and the start of this year I decided to start using personal Kanban as my weekly highlights tracker.</p><h4>Personal Kanban</h4><p>I have been trying to master the art of being more organised for a long time. Although for the last few years, I had started taking this more seriously; as both family and work commitments increased. This year, I felt that I was ready to have a more sustainable personal Kanban, as it would no longer be my To-Do list tracker, rather, it would actually be used to track my highlights of the week while my Bu-Jo would still help me with my visualisation, doodling, journaling and other creative measures.</p><p>For the personal Kanban, I grouped all my key priorities as themes.</p><p>As the week goes, I’d capture all the tasks that I needed to do under these themes and record them on sticky notes. I’d refine my backlog of tasks that I had captured through the week, at the same time every weekend. The tasks that would go into my <em>To-Do </em>column would be based on the priorities I had outlined. I have WIP limits of not more than 2 in the <em>Doing </em>column. Should there be any new tasks that needed to be prioritised over the one I had already picked, I would re-adjust my <em>To-Do</em> and <em>Doing </em>columns.</p><p>In conclusion, I fail a lot in mastering the whole <em>Making Time </em>process. However, it took 6 years of taking small steps to get to where I am now. I have improved in many aspects of managing my day-to-day; but ultimately, when it comes to making time, it’s not about crossing off tasks or setting far-fetched goals — it’s about mastering the system.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=727447f2fd1a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/make-time-727447f2fd1a">Make Time</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Guide To Build and Run CoP]]></title>
            <link>https://medium.com/swlh/a-guide-to-build-and-run-cop-91dacf48d00?source=rss-55c5905f10c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/91dacf48d00</guid>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[transformation]]></category>
            <category><![CDATA[agile-methodology]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[community-of-practice]]></category>
            <dc:creator><![CDATA[Jo Mahadevan]]></dc:creator>
            <pubDate>Sat, 26 Dec 2020 23:06:11 GMT</pubDate>
            <atom:updated>2020-12-26T23:06:11.956Z</atom:updated>
            <content:encoded><![CDATA[<p>A Community of Practice (CoP) shares a common concern, a set of problems, or an interest in a topic; consisting of individuals who — in the pursuit of fulfilling both individual and group goals — come together. They often focus on sharing best practices and creating new knowledge to advance a domain of professional practice: a key factor of this is continual interaction.</p><h4>Components of a CoP</h4><p>According to Etienne Wenger, aspiring CoPs must have three distinct traits to be truly considered a Community of Practice: as shown in Figure 1.1 below.</p><ul><li><strong>Domain </strong>— An area of shared interest</li><li><strong>Practice </strong>— A shared body of knowledge, experiences, and techniques</li><li><strong>Community </strong>— A self-selected group of individuals who care enough about the topic to participate in regular interactions</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*QwfzYeB687Qpf16wmnDSvQ.png" /><figcaption><a href="https://en.wikipedia.org/wiki/%C3%89tienne_Wenger">https://en.wikipedia.org/wiki/etienne_Wenger</a> — Fig. 1.1</figcaption></figure><p>Agile framework supports cross-functional teams to help focus on a specific outcome. While this is a great way to remove functional silos where people doing the same role sit together, in an Agile setup, communication among people doing the same role is still vital: Engineers need to talk to other Engineers; Architects to other Architects; Scrum masters need to communicate with their peers from other Agile Teams; et cetera.</p><p>There are two types of Communities of Practice that can work in an Agile Organisation:</p><ul><li>A Role-based CoP</li><li>A Topic-based CoP</li></ul><p>The former tends to exists longer than a Topic-based CoP. It is always better to start with a Role-based CoP before creating CoPs of the latter kind.</p><h4>Role-based CoP:</h4><p><em>also called chapter meetings.</em></p><p>A Role-based Community of Practice brings people performing the same role in multi-disciplinary teams together to interact regularly whilst keeping the value of the multi-disciplinary team. This is critical in leveraging the multiple experiences and different types of practical knowledge available.</p><h4>Topic-based CoP:</h4><p>These are often called ‘guilds’ and are usually lead by the subject matter expert or anyone who is interested in the topic.</p><p>As the Role-based CoP gains acceptance and popularity, Topic-based CoPs emerge. They are focused on a particular topic and would last as long as the agreed goals are achieved: Topic-based CoPs typically entail more diverse activities than their Role-based counterpart.</p><h4>Benefits of a CoP</h4><p>Organisations who don’t have Communities of Practice in place will notice that work is often duplicated and people are not benefitting from others’ experiences. Those in organisations who do not have CoPs in place are highly susceptible to counterproductive redundancies within their workflows as they are unaware of others’ roles within the company and as a result lack necessary support in. For this reason, the use of CoPs is vital in an Agile organisation.</p><p>So, how does one start out?</p><h4>Good leadership and support</h4><p>A success or failure of a CoP depends on its leader*. As a leader of the community/chapter/practice, one must awaken their potential and always look forward. In the beginning, a Role-based CoP often feels superior to its Topic-based variant as it provides more opportunity and common interest to bring people together.</p><p><em>*Having support from the senior leadership team also helps.</em></p><h4>Creating clear vision and goals</h4><p>Create a mission statement for your community and publish it — it may seem quite peculiar (especially if you are doing this for the first time) but have an enterprising attitude — and soon you will see people understanding the vision better.</p><p><strong><em>An example of a mission statement is provided below:</em></strong></p><p><em>Our community of practice will help set and improve our skills and competencies as a &lt;role&gt; , to enable us to contribute and adapt better to &lt; any vision&gt;We will do this by :</em></p><p><em>&lt;list of actions and good practices you want the community to follow&gt;</em></p><h4>Be aware of the experience and knowledge each member brings :</h4><blockquote>“Always pass on what you have learned.” — Yoda</blockquote><p>A community only works with people’s participation. To encourage people in making more effective contributions, attempt to understand the knowledge and experiences of each member. This helps in generating content for discussion and thus encourages people to share knowledge. Albeit that people are generally interested to share knowledge, it is vital that a leader of the community identifies what every member can share: this will motivate the individual and also benefit the community. This is more effective in a Role-based CoP as you (the members) perform the same role (meaning greater quantities of experience)</p><h4>Patience , Patience and More Patience</h4><p>It is natural to think of oneself as a ‘content machine’. Sometimes you may be the only person talking and sometimes you may perhaps notice that many chose not to attend the meeting. It is at this point that one must exercise patience and persevere.</p><p>These behaviours are completely normal; soon you will notice people wanting to participate more, wanting to talk about something they have learned and even thanking you for a good session.</p><h4>Fostering a safe and supportive environment</h4><p>The foundations of an organisation is the individual. Those who don’t feel supported at work quickly lose motivation and may leave.</p><p>A key factor in ensuring productivity, therefore, is a secured environment for the member. What are the consequences of developing this environment?</p><ul><li>The encouragement of sharing stories and challenges will enable members to start building trust.</li><li>Consequently, problem solving is improved as a wider range of people will be willing to work to solve issues.</li><li>Better working practices will emerge.</li><li>The validation of ideas and accelerates learning will be facilitated</li></ul><h4>Make CoPs a part of the learning and development plan</h4><p>CoPs should be seen as a part of the organisations learning and development plan. If made part of the employees’ objective, the participation is taken more seriously. Participation in a CoP is not mandatory — but for an organisation which is in its early transformation journey, a little push in the right direction enables people to participate in CoP better — until the community becomes more matured and can self-sustain.</p><p>Learning is more effective when it is done as a group as individuals are able to collaborate and build upon others’ work. In a Community of Practice there are various ways to support learning:</p><ul><li>Presentations by internal and external speakers</li><li>Practicing new skills in a safe environment (I often encourage my members to create a working group to research on a topic and come and present their ideas).</li><li>Making individuals Proof-of-Concept new ideas and present them back to the community</li><li>Organising games and workshops; assorted teambuilding exercises.</li></ul><h4>Meet Regularly</h4><p>The community meetings are only effective if they happen regularly. Decide on what works, and keep at it.</p><p>Ultimately, let the community evolve. When strong bonds and trust starts developing among the members of the community, it is able to self-sustain: this is when it becomes an integral part of the organisation.</p><p><strong>References</strong></p><p><a href="https://tacitlondon.com/publications/building-successful-communities-practice/">https://tacitlondon.com/publications/building-successful-communities-practice/</a></p><p><a href="https://en.wikipedia.org/wiki/Community_of_practice">https://en.wikipedia.org/wiki/Community_of_practice</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91dacf48d00" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/a-guide-to-build-and-run-cop-91dacf48d00">A Guide To Build and Run CoP</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Create an API System Integration Test Framework Using Python]]></title>
            <link>https://python.plainenglish.io/situp-for-apis-a78dedae56a8?source=rss-55c5905f10c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/a78dedae56a8</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[spotify]]></category>
            <dc:creator><![CDATA[Jo Mahadevan]]></dc:creator>
            <pubDate>Wed, 21 Oct 2020 09:02:45 GMT</pubDate>
            <atom:updated>2022-02-25T07:46:09.385Z</atom:updated>
            <content:encoded><![CDATA[<h4>A guide on creating an API system integration test framework using Python.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*BicliTTLme6W9DBVjj8CjA.png" /><figcaption>Picture from Microsoft Docs — Fig 1.1</figcaption></figure><p>A Microservice architecture consists of a collection of small, autonomous services. Each service is self-contained and should implement a single business capability. Although this type of architecture helps teams with agility, scalability, easy fault isolation, etc., there are several challenges when it comes to development and testing: testing a small service that relies on other dependent services requires a different approach than testing a traditional monolithic or layered application; adapting the automation pyramid or traditional tools and practices that have helped us in the past are currently unfeasible.</p><h4><em>Test strategies for microservices consist of </em>four <em>key parts:</em></h4><ol><li>The Unit Test</li><li>The Component Tests — The behavior of every endpoint in a microservice under a test using mocks and stubs for the external microservice it needs to interact with is tested.</li><li>System Integration Test - here we spin up all the microservices to verify the combined behavior of all the microservices. These tests are helpful to test the shared behavior between microservices and to validate user journeys using endpoints without the need for a client.</li><li>Contract Tests — there are two peers — a consumer (client) and a provider (service). We define an API contract on the ‘consumer’ side - the contract must be enforced on the service provider. The contract tests are useful as they eliminate the need to set up the entire platform in a test environment. They help in verifying message formats (requests and responses). In the picture above (Fig 1.1), client interaction with the microservices can be confirmed by contract testing.</li></ol><p>In this blog, I’m going to discuss some ideas on how to create an API System Integration Test framework using Python. To exemplify this, I will be using Spotify endpoints.</p><h4>I aim to create a user journey that would:</h4><p>1 -Create a playlist</p><p>2 -Search for a track</p><p>3 -Add the track to the playlist</p><p>4 -Assert that the track is available in the playlist</p><p>5 -Delete the track and the playlist so that the data is removed and tests start clean the next time</p><p>Spotify has really useful documentation on every endpoint they maintain and is available for use by the general public. They can be found here :</p><p><a href="https://developer.spotify.com/console/">Spotify API Docs</a></p><p>An API specification documentation is very important for engineers to build their tests.</p><p>I like using gherkin as a tool to define my user journeys as they help me focus on the behavior I’m trying to achieve. I want to be able to create a playlist, add a track to the playlist, and verify that my playlist has the desired track. My gherkin scenario is similar to the one below.</p><pre><strong>Feature</strong>: A spotify user can create and amend playlists<br>  <strong>Scenario</strong>: Creating and adding one song to a playlist<br>    <strong>Given </strong>that a playlist called cool songs is created in my spotify account<br>    <strong>When </strong>I search for a track from album called star wars<br>    <strong>And  </strong>I add my favourite track to my playlist<br>    <strong>Then </strong>my favourite track is available in my playlist</pre><p>I then move on to create bindings for each of the statements. Every statement is implemented using an endpoint. What’s important to note is that</p><ul><li>I’m not testing an interaction here but a behavior that verifies the combined behavior of the APIs to complete a user journey.</li><li>These behaviors can also be validated by the UI despite that it is cheaper and faster to implement these Integration Tests using APIs as they remove the need for having a UI</li><li>The client (web/mobile app) which consumes the data’s interactions should only be checked via consumer tests; we don’t need to run these E2E tests via the client too.</li></ul><p>Following is my step definition implementation for every step in my gherkin scenario:</p><p>I created a class for each unique action — and then in my step implementation, I used them as ‘Legos’ to achieve the behaviour I needed. The whole test took a few milliseconds to run. Obviously in a ‘real-life scenario’, you can achieve better results by dockerizing your dB or dockerizing your test suite for a clean start every time. For this example, I just chose to use Spotify’s delete endpoint to remove the playlist: I had also had to create a Spotify account to be able to demonstrate this.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0f2c5dfb6c63d9136485eadba5e337d0/href">https://medium.com/media/0f2c5dfb6c63d9136485eadba5e337d0/href</a></iframe><h4>Wrapping up</h4><p>The code for the above can be found here: <a href="https://github.com/jothetester/api_sit_example">api_sit_example</a>.</p><p>Integration tests are important and can be time-consuming: however, using the right tool and approaches, these tests can be implemented in such a way that they test what is important.</p><p><em>More content at </em><a href="https://plainenglish.io/"><strong><em>PlainEnglish.io</em></strong></a><em>. Sign up for our </em><a href="http://newsletter.plainenglish.io/"><strong><em>free weekly newsletter</em></strong></a><em>. Follow us on </em><a href="https://twitter.com/inPlainEngHQ"><strong><em>Twitter</em></strong></a><em> and </em><a href="https://www.linkedin.com/company/inplainenglish/"><strong><em>LinkedIn</em></strong></a><em>. Join our </em><a href="https://discord.gg/GtDtUAvyhW"><strong><em>community Discord</em></strong></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a78dedae56a8" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/situp-for-apis-a78dedae56a8">How to Create an API System Integration Test Framework Using Python</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Verification and Validation In Sprints]]></title>
            <link>https://medium.com/swlh/verification-and-validation-in-sprints-b21f7ae8dcae?source=rss-55c5905f10c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/b21f7ae8dcae</guid>
            <category><![CDATA[agile-development]]></category>
            <category><![CDATA[automation-testing]]></category>
            <category><![CDATA[scrum]]></category>
            <category><![CDATA[agile-transformation]]></category>
            <category><![CDATA[agile-methodology]]></category>
            <dc:creator><![CDATA[Jo Mahadevan]]></dc:creator>
            <pubDate>Mon, 04 May 2020 09:10:43 GMT</pubDate>
            <atom:updated>2020-05-12T08:59:03.200Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*h8FHkhFI12UMePNdnX9xHw.jpeg" /><figcaption>Image source : <a href="https://matrixti.com/matrix-on-manufacturing/key-concepts-machine-safety-verification-validation/">https://matrixti.com/</a></figcaption></figure><p>In agile development, both verification and validation happen as close to simultaneously as possible. Largely, this is due to the necessity to keep refining and updating the user stories, requiring small V&amp;V loops for continuous feedback.</p><p>Prior to any further exploration on this however, we must disambiguate the full definitions of the terms ‘Verification’ and ‘Validation’.</p><h4>Verification</h4><blockquote>A test of a system to prove that it meets all its specified requirements at a particular stage of its development.</blockquote><h4>Validation</h4><blockquote>An activity that ensures that an end product stakeholder’s true needs and expectations are met.</blockquote><p>However — acknowledging the fact that verification and validation activities happen practically in tandem, it is vital to find as to how teams could enable the process to occur quick, whilst retaining a high level of quality — this is imperative to the Agile process.</p><h4>Automation first approach</h4><p>Every story that gets played in a sprint should be verified and validated automatically, wherever possible. A git push should run both verification and validation tests, and provide fast feedback.</p><p>So, what helps automation?</p><ul><li>Good analysis sessions</li><li>Automated code review</li><li>Service virtualization</li><li>Synthetic data generation</li><li>Thin slice regression for end-to-end automated tests</li><li>Exploration</li></ul><h4>Testability of the software component</h4><p>When the testability of the software component is high, achieving the following criteria is made simpler:</p><ul><li>Every component undergoing a test has a single, well defined responsibility.</li><li>The degree to which we can automate our test at various layers of the architecture is high.</li><li>The degree to which we can use diverse technology and diverse test method in parallel is high.</li></ul><p>For a quality engineer to design a good test automation framework, i.e. there is good layering and the tests don’t just run on the UI layer, a very good understanding of the system architecture is important. Validation starts at the lowest component level.</p><h4>Environments</h4><p>A strategy for a non-production environment is always useful. The environments should be easily provisioned, torn down and spun whenever needed. In a route to live pipeline, teams usually have Dev, Test, Staging and Production environments.</p><p>For each non-production environment it is worth considering:</p><p><strong>The ownership</strong></p><ul><li>Let’s state that the dev environment is owned by a team. This team should have the flexibility to spin up as many environments as is necessitated. Most of the validation and verification tests on the services owned by the team should be run here, and it should make best use of the service virtualization (mocks and stubs) in the dev environments.</li></ul><p><strong>Purpose</strong></p><ul><li>While a dev environment might be needed to run all automated tests for verification and validation, an integrated test environment might be needed to validate scenarios which cannot be automated, or perhaps required in order to run end-to-end regression tests. The aforementioned environment should aid in supporting our quality-with-speed approach.</li></ul><p><strong>Maintainability</strong></p><ul><li>In order to collectively create an effective environment strategy, some things for teams to consider include a strategy around how test data is generated and used, so as to limit the use of live data.</li><li>Good DevOps processes supported by the right non production environment set-up would help make faster and safer verification and validation activities within sprints.</li></ul><h4>Techniques and Practices</h4><p>Ultimately, the goal is to achieve faster delivery in sprints, whilst retaining a good amount of quality.</p><p>Software development and testing techniques and practices have a lot to contribute to that. Teams could consider —</p><ul><li>Using the TDD/BDD development process</li><li>Risk based testing - for test scenarios that cannot be verified or validated automatically, as it uses risks to prioritise and emphasise on an appropriate test’s scenarios.</li><li>Exploratory testing (this feeds into the maturity of our automated test suite).</li><li>Model based testing, validating whether the runtime behavior of the software under test is contradictory to the prediction made by the model.</li></ul><p>In conclusion, for enabling quality-with-speed in our verification and validation processes, we need to remember that:</p><ul><li>Automating everything is not possible, and should not be primarily focused on.</li><li>Creating editing and maintaining manual tests scripts is not only time consuming, but cannot give us the confidence wanted to release software in an agile process.</li></ul><p>Confidence in the quality of software comes with faster feedback. When even a minute change is made to the source code, the verification and validation tests should happen soon enough to enable continuous integration and deployment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b21f7ae8dcae" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/verification-and-validation-in-sprints-b21f7ae8dcae">Verification and Validation In Sprints</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transformational Leadership]]></title>
            <link>https://medium.com/swlh/transformational-leadership-209fa9bcbb8f?source=rss-55c5905f10c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/209fa9bcbb8f</guid>
            <category><![CDATA[transformational-leaders]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[digital-transformation]]></category>
            <category><![CDATA[transformation]]></category>
            <category><![CDATA[agile]]></category>
            <dc:creator><![CDATA[Jo Mahadevan]]></dc:creator>
            <pubDate>Sat, 22 Feb 2020 21:57:43 GMT</pubDate>
            <atom:updated>2022-04-30T09:55:38.782Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/765/0*AGdi--EvZjcBBQPv.jpg" /><figcaption>Transformational Leadership</figcaption></figure><p>There are two key things that must be considered when organisations are transitioning into new ways of working :</p><blockquote>1) Has the change improved the employees’ experience and helped them develop?</blockquote><blockquote>2) Has the change improved the business by enabling fast and safe delivery whilst adding value to the customers?</blockquote><p>Without the above two conditions being satisfied for every step taken towards transformation, the entire process becomes devoid of positive outcomes. Decidedly, a series of inconvenient and detrimental after effects would occur due to this lack of focus (with regards to fulfilling the criteria), resulting in uncertainty and frustration for the company.</p><p>Implementing change can be excruciatingly tedious and difficult, thus it is easy to forget or omit the purpose of the transformation itself. Furthermore, unnecessary amounts of ambiguity may be present. And ambiguity occurs when :</p><ul><li>There are new roles added,</li><li>An existing role is mapped into a dissimilar one,</li><li>Processes and tools have been changed,</li><li>There are new coaches, training programs, etc.</li></ul><p>Ultimately — ‘real’ working time may seem quite scarce, as some may say that they are being ‘pulled in multiple directions’. It’s certain that more reasons exist, although the above are the most common.</p><p>So how does one present themselves as a transformational leader to enable and champion change through inspiration, implementing change in tandem with the organisation’s direction, whilst simultaneously keeping the morale,motivation and performance of the team high?</p><h4>The Boundary Conditions</h4><p>In the context of computing a ‘boundary condition’ is often used when dealing with the designing, testing and proving of algorithms (as well as the implementation of said algorithms). When designing or testing an algorithm, paying attention to the ‘boundaries’ of the input is a must.</p><p>You may be wondering how exactly this correlates to the subject at hand. A simple answer is that employing these conditions will always be handy in certain scenarios. These could be conditions around values and behaviors, capabilities and competencies, tools, techniques, and processes. Some of these conditions are static and some some of these conditions change as we make progress and have fresh set of problems to solve.</p><p>An application of boundary conditions would be to utilise them as additional criteria that can further shape and give substance to an organisation’s transformation process.</p><h4>The To Be’s</h4><p>To-Be visions are very important in the stage of post-transformation as they set a guideline with regards to the course of action necessary for the evolution of the team. A key aspect of these visions is their relevancy in enabling change, therefore, they should be centered around key areas that will be relevant post-transformation, such as people, process(es), and technology. This exercise helps setting high and reasonable goals for the team we lead and also the organisation. This also inspires commitment and a shared vision for the organisation and helps communicate expectation clearly.</p><h4>The Current State</h4><p>This involves understanding the As-Is situations in teams and grouping them into key areas (people, processes and technology)- this acts as an indicator to how far you are away from the To-Be state. Taking time to understand the current situation is very important as it helps to prioritize needs of the teams before trying to influence them to change.</p><h4>The Journey</h4><p>The path between the ‘As-Is’ and ‘To-Be’ states is a long and winding one, with certain levels of unpredictability. Leaders need to consider the next ideal condition for their teams to be in.</p><p>For the teams to move between states, it is imperative that they are being encouraged to think with a team-oriented sentience. Visualise the team’s path as a winding labyrinth, wherein dead-ends are set up to symbolise actions that could be counterproductive; for example, continuing to use obsolete processes and tools. This ‘labyrinth’ is different for each team based on where they are in the journey.</p><h4>The Leader in you</h4><p>Being open to new ideas, encouraging creativity and innovation helps with transformation, thereby making the journey interesting. It’s about the people and the organisation so be tolerant of mistakes.</p><p>Connect your team’s sense of identity with yourself, and with the collective identity of the organisation. Understand your team’s strengths and weaknesses and align them with tasks that enhance their performance. Allocate time to develop your team’s potential and challenge them to take ownership of their work.</p><p>Adapt to different situations, self manage, stay current, share collective consciousness, keep inspiring, and be the change you want to see.</p><p>Identify the doers, the followers, and the supporters who are in this journey with you and who share the same vision as you.</p><p>Finally, be open to setbacks and seek actively for solutions — change cannot occur without a significant amount of frustration!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=209fa9bcbb8f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/transformational-leadership-209fa9bcbb8f">Transformational Leadership</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Measuring Quality]]></title>
            <link>https://medium.com/swlh/measuring-quality-dd8b236b320c?source=rss-55c5905f10c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd8b236b320c</guid>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[scrum]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[kpi]]></category>
            <dc:creator><![CDATA[Jo Mahadevan]]></dc:creator>
            <pubDate>Sun, 01 Dec 2019 22:32:33 GMT</pubDate>
            <atom:updated>2020-06-06T16:56:32.056Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*aT9PiQXZ0lpVWeX7TWgbTA.png" /></figure><p>In software development we always talk about measures. There are several key performance indicators (KPI) and metrics in the agile software development process which provide guidance for strategic planning , evaluation and improving operational process. Some of the most common KPIs in agile are cumulative flow, sprint burn down, velocity, cycle time, code coverage, automated vs manual tests, et cetera. I was in a workshop recently which was dedicated to measures; There were several types of measures discussed, which got me thinking more deeply about them.</p><p>Measures are important and don’t need to be associated with a number. Like happiness, love , feeling appreciated or valued — everything has a measure. So at the workshop , I kept reflecting on how measuring something is such an important aspect of how far you are away from an objective/goal, provided it is measured properly, regularly and if these measures feed into the maturity and pace of your journey towards your goal.</p><p>The journey towards a goal is not about intensity but rather the accumulation of lots of little things that by themselves, are innocuous; But those boring things — when done consistently and measured regularly — helps you pace your journey towards the goal. For instance, one of the scrum masters I and my team worked with would insist on adding appropriate comments in the story before progressing the story to the next stage. We, as engineers, found this completely pointless and chose to just not do it, but the scrum master would be persistent and would ensure that we did the task, until it became a habit. We were not doing continuous deployment at that time but when we did plan a release, after every 2 sprints, the comments served as the micro documentation and provided good trace ability. The measure here was more fuzzy, we as a team agreed that writing comments on the story was a good practice; And thus, it became a part of our definition of a done review.</p><p>Going back to the workshop - where I was wrapped in the conundrum of what exactly these measures mean to me. I thought about how I measured quality of software thus far — and how I would’ve liked to measure quality going forward.</p><p>I never measured quality based on the number of post live issues, number of automated vs manual tests, the time taken to deliver something, how well the automation test pyramid was established in the teams, although objectively decent indicators of where we were in the journey, in my opinion, they were never a good measure of quality for me. I measured quality by the purpose of planned tests, the frequency in which those test ran, and the time taken to get feedback. The quality of the tests themselves were measured based on if they failed for the right reasons, i.e. their maintainability and their re usability.</p><p>The type of tests a team decides for ensuring quality is not just about fitting it into the pyramid, such as 70% unit tests, 20% service layer test and 10% UI driven tests, these are guidelines - not a required measure of quality!</p><p>Consider a simple architecture, a web page that interacts with an API; On a successful post request, the the users of the web page would get an order number on a modal window on the same page, and the database gets updated. The order was further processed by a desktop application, and the API also consumed a third party API to get a specific type of data.</p><p>So, here there was no need for a UI driven automated test for a web page. It would be exploratory tested for typos, compatibility and accessibility. The API did most of the work, so while all the parameters were validated by unit tests, the behaviour of the API was tested on a dev environment. These tests were then decided to be run after every new commit triggered a deployment into the dev. The journey around completing the order was tested once - for regression manually, prior to releasing on a staging environment, as the desktop application was not owned by us and our web page didn’t change any process in the desktop application.</p><p>So now we had a measure.</p><ul><li>Unit tests — Validated each unit of the code (purpose) — Ran after every commit (Frequency)</li><li>Api Tests — Integration / smoke test (purpose) — Ran after every deployment to dev (Frequency)</li><li>UI Tests — Sanity(purpose) — was run only once as there no changes made</li><li>Regression tests — validation of end to end journey(purpose) — before a planned release as the risk of failure was less.</li></ul><p>As the application grew, we added more layers; Every time we added a new layer of tests, it served a purpose — to ensure quality. And the frequency was decided based on the risk of something breaking and the impact it would have. The more frequent tests (fast tests) were run earlier on in the pipeline to production. The production was then monitored and the metrics then fed into the maturity of our tests.</p><p>In conclusion, our approach to quality changes as our application grows. Proper measures help us improve, and set us in the right path. The aim is not build a test pyramid — or automate everything, whereas, the aim is to build a robust quality approach such that changes to the software could be accommodated for, whilst not impacting delivery.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd8b236b320c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/measuring-quality-dd8b236b320c">Measuring Quality</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Docker The Hard Way]]></title>
            <link>https://faun.pub/learning-docker-the-hard-way-eabe3e259c65?source=rss-55c5905f10c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/eabe3e259c65</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[agile-testing]]></category>
            <category><![CDATA[automation-testing]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[python3]]></category>
            <dc:creator><![CDATA[Jo Mahadevan]]></dc:creator>
            <pubDate>Wed, 23 Oct 2019 22:55:26 GMT</pubDate>
            <atom:updated>2019-11-03T09:43:41.079Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/269/1*hClfljxq29JkJrgiwR_v5g.png" /><figcaption>Docker Logo</figcaption></figure><p>The first time I heard about Docker was at XP 2016, when the speakers kept talking about how it was going to solve all the problems. I was curious, not knowing what Docker was or what problems it could be used to solve - which made me have hunch that I might need to learn it . I’m not a big fan of new acronyms and terminologies thrown at me .I was told by colleagues that my automated tests would run much faster if I used Docker, and that I wouldn’t have to worry about my selenium tests running on a physical machine .Yeah — having tons of UI driven selenium tests was <em>the</em> automation strategy back then, i.e. 2014. Looking back on it, I cannot fathom the fact that I considered UI driven tests to be <em>awesome</em>! Yikes. Moving swiftly onward — I went in a group to XP, and the bunch of us came back with fabulous ideas (as is <em>always</em> the case when you go to any good conference). One of those fabulous ideas was bringing -drum roll please- Docker into the workplace .</p><h4>First Steps</h4><p>The DevOPS folks, advised me that although it was not impossible, it was tricky to use Docker on Windows OS, I set up my dev machine with Linux. I tried a few commands and since there was no real pressure to get everything Dockerized, It fell to the bottom of my to do list.</p><h4>Testing In Production</h4><p>I had a request from one of my colleagues in IT service to set up automated test, for a search portal in production. They needed a simple UI test, which would monitor the app frequently, in order to detect failures. Upon further examination of the problem, I realised that I could not set up the selenium grid without the aid of a certain whale.</p><h4>Docker grid setup</h4><p>As I didn&#39;t know much about Docker, I tried to visualise what a selenium grid set up looked like using VMs and then translated it to the Docker world. It took a bit of hard work to get my head around headless browsers, etc.</p><p>A traditional grid set up with physical machines looks like the below image. It has a lot of overhead in terms of maintenance — the PC needs to be on all the time. It had to be time shared amongst different teams. The tests became more flaky and maintaining the set up always caused trouble.</p><figure><img alt="Selenium Grid Set Up On VMs" src="https://cdn-images-1.medium.com/max/800/1*4uuwB2VQ8zVTntVg_wQSFQ.png" /><figcaption>Traditional Grid Set Up Using VMs</figcaption></figure><p>A selenium grid set up in the Docker world would look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lG1nsfaShlRxjajO9fQdVg.png" /><figcaption>Selenium Docker Grid</figcaption></figure><p>So how does the two diagrams differ ?</p><ul><li>The physical machines are replaced by containers</li><li>In the traditional set up I had to set up every node with a selenium .jar file, and the browser drivers, and also the hub, with the .jar file . Then I had to register each node with the hub and put a Post-It Not on the PC which read “Do NOT switch off”. This was all replaced by a simple link command in docker.</li><li>I could spin up tons of nodes and get it linked up with my hub container</li><li>I could tear them all down and fire them all up again as opposed to the traditional set up</li></ul><p>Docker images and containers are very simple to understand; tons of resources are available on the internet these days.</p><p>Defined below are Docker images and containers:</p><blockquote>Docker Images are the blueprints of our application which form the basis of containers.</blockquote><blockquote>Container images become containers at run-time. An image can have more than one container. The containers run as a discrete process on the host machine</blockquote><p>So, in order to run a grid in my machine, I needed the images for the hub and the nodes, I then had to run them and link them. The following commands were in the order below:</p><blockquote><strong>$ docker pull selenium/hub<br>$ docker pull selenium/node-chrome<br>$ docker run -d -p 4444:4444 -name selenium-hub selenium/hub<br>$ docker run -d -link selenium-hub:hub selenium/node-chrome</strong></blockquote><p>I didn’t have to pull the image every time. I just the last two commands for firing up my grid.</p><p>When you then try the <strong><em>$ docker -ps</em></strong> command , you should see your container running. Also, if you try and connect to <em>http://localhost:4444/grid/console </em>, you will notice that the hub is running accompanied by the node.</p><h4>Getting the tests to use the docker grid</h4><p>The first simple thing I tried was to change the grid configuration in my test to use <strong><em>gridUrl = </em></strong><a href="http://localhost:4444/wd/hub."><strong><em>http://localhost:4444/wd/hub</em></strong></a><strong><em> .</em></strong> I ran my tests the usual way from the command line and they ran fine . In a traditional setup the tests would be configured like this :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*JPOL5JwPsXrz_H3lb8TPSw.png" /></figure><p>The test code will be pulled into the Jenkins host and the tests would be run from the Jenkins host, the code is set up to use the grid(this all is done by the pipeline script). When using the docker grid everything remains the same except the old style grid. So my setup is now simplified to look like this :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*kWrNbFgwcrZmKMWUBOFW_w.png" /></figure><p>As you can see a huge chunk of ugly fat has been removed (from the physical selenium grid VM), and I could tear down the grid after a test run, and fire it up for every subsequent run. I wanted to do this with my tests too. I wanted to containerise them such that I had a clean host every time I ran the tests.</p><p>To containerise my tests I had to setup a docker file, which is what an image is built off of. My docker file was very simple. It was a set of bash commands which would create a copy of my test folder structure , set my root directory and it also had a cmd command which would trigger my tests when the container starts. The test container and grid are linked again, via the link command.</p><p>After numerous hours of googling and retrying, everything clicked. I was learning the hard way - and every time I was in doubt , I made a mind map of the stuff I already knew, what I wanted to change - and then googled the rest. It was a fun learning experience.</p><p>My final pipeline looked like this :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*AmiotGQ7rAHP3QF2KSFHQQ.png" /></figure><p>The joy of everything going green after several tries is incredible. In the end I did learn Docker enough to let me do what I wanted to do.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/0*Piks8Tu6xUYpF4DU" /></figure><p><strong>Follow us on </strong><a href="https://twitter.com/joinfaun"><strong>Twitter</strong></a><strong> </strong>🐦<strong> and </strong><a href="https://www.facebook.com/faun.dev/"><strong>Facebook</strong></a><strong> </strong>👥<strong> and join our </strong><a href="https://www.facebook.com/groups/364904580892967/"><strong>Facebook Group</strong></a><strong> </strong>💬<strong>.</strong></p><p><strong>To join our community Slack </strong>🗣️ <strong>and read our weekly Faun topics </strong>🗞️,<strong> click here⬇</strong></p><figure><a href="https://www.faun.dev/join/?utm_source=medium.com%2Ffaun&amp;utm_medium=medium&amp;utm_campaign=faunmediumbanner"><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oSdFkACJxs5iy1oR" /></a></figure><h4>If this post was helpful, please click the clap 👏 button below a few times to show your support for the author! ⬇</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eabe3e259c65" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/learning-docker-the-hard-way-eabe3e259c65">Learning Docker The Hard Way</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>