<?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 Radhiansya Zain on Medium]]></title>
        <description><![CDATA[Stories by Radhiansya Zain on Medium]]></description>
        <link>https://medium.com/@RadhiansyaZ?source=rss-7d61e50c3686------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*sppx41DYcMciUdrcsd2G-A.jpeg</url>
            <title>Stories by Radhiansya Zain on Medium</title>
            <link>https://medium.com/@RadhiansyaZ?source=rss-7d61e50c3686------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 23:35:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@RadhiansyaZ/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[Every Journey has an End]]></title>
            <link>https://medium.com/@RadhiansyaZ/every-journey-has-an-end-29ac703afc72?source=rss-7d61e50c3686------2</link>
            <guid isPermaLink="false">https://medium.com/p/29ac703afc72</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[reflections-of-life]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[reflections]]></category>
            <dc:creator><![CDATA[Radhiansya Zain]]></dc:creator>
            <pubDate>Thu, 26 May 2022 08:02:21 GMT</pubDate>
            <atom:updated>2022-05-26T08:02:21.091Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>“The only journey is the one within.” — <strong>Rainer Maria Rilke</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*wMf21E4n1MAmzZo9.jpg" /></figure><p>As a closing for my Software Engineering Project article series, I want to reflect on all the journey that I’ve been through for the past ~4 months. Many things have happened along the way, but the experience is worth telling. Because of that, this article won’t get too technical because I just really want to share the joy and the sorrow by means of storytelling.</p><p>As a closing for my Software Engineering Project article series, I want to reflect on all the journey that I’ve been through for the past ~4 months. Many things have happened along the way, but the experience is worth telling. Because of that, this article won’t get too technical because I just really want to share the joy and the sorrow by means of storytelling.</p><h3>How It All Started</h3><p>I am really interested in taking the D class because in this class, every group will be partnered with startups in the tech industry. I think it was worth trying because it would be valuable if we can learn to build an application with an industry set of rules. I grouped up with six of my friends and named our group “Si Paling Pingin Lulus” or short SiPPL. At last, after a first week of class introduction we got ourselves an industry partner, Justika.</p><p>We got ourselves a partner, we were happy but we also felt scared. We are a seven person team, each with their own unique traits and experience, but only a few of us have been starting to work in industry (as an intern, part-time, etc.). So as a team, our experience was not that high.</p><p>Apart from experience, we are also scared in terms of our partner’s expectations. At the first meeting with our partner, they told us about the MVP that they planned, it’s called Tanya by Justika. It’s a paid Quora but for legal, the reason they want to launch this MVP is because their chat product still has some friction and they want to test some of their hypotheses about this product. The terrifying part of that meeting is that they planned to launch that product to production. We felt the expectation from our partner was high, but we also saw this as an opportunity to learn how to develop a product from scratch to production-ready. The result of the first meeting is what tech stack we’ll be using and some Atlassian documentation about their projects to help us onboard.</p><h3>Process and Result</h3><p>To build this product, we will do a 4 sprint with a timespan of 3 weeks/sprint with a Scrum method. What’s unique in this method is that every sprint one of us will get a double role (scrum master and developer) and the rest of us are developer. I got a chance to become the first scrum master of the project and it was an interesting experience. The story point for the first sprint is not that high compared to other sprints, it’s just ~23 points. At first, we wanted to take a lot more but our partner said this in the Sprint Planning “Take it easy, don’t push on yourself early. It’s sprint 1” so we considered lowering it down to ~23 points. What he said was true, in the first sprint we got many technical and non-technical issues. Some people are not familiar with the stacks therefore need time to learn and adapt, another experience problem with their tools not working as it should. It was a wise choice to not force ourselves to take on many story points.</p><p>The result of the first sprint in sprint review was quite good as a product, we finished it as expected and got acceptance from our partner. The problem in this sprint is not the product, but the process. Sprint planning and sprint review are too long and not effective, so in the next sprint we improved that process to split up the planning into two sessions (first with the team plus teaching assistant to split up tasks and second with the partner and discussing approval and align the tasks with the goal/priority).</p><p>In the next sprint, we found a lot of blockers because it clashed with our midterm exam. What we learned here is how we communicate with our partner and negotiate the changes in the Sprint Backlog we take from Product Backlog. They do not mind if we change the Sprint Backlog as long as we actively communicate and still pay attention to the priority list. In terms of code, we don’t find any significant blocker. The result of the second sprint is that we got a lot of feedback from the partner and they recommend us to immediately tell them about the product ready even before the sprint review so they can give feedback as early as possible.</p><p>In the last two sprints, we improved our code a lot and by the end of the third sprint our product is almost MVP. But there is a bug in its payment feature, so we cannot call it MVP yet. And in the fourth sprint we got another first priority backlog called event recorder. So, they forgot at the beginning to include this so they added this to the last sprint. Event recorders are so important because it will record activity of the users to test whether their early hypotheses are true. At the first week of the fourth sprint, the payment feature is done but as the new requirement for the MVP is changed, it’s not considered MVP before the event recorders are implemented.</p><p>After a long run of four sprints, at last we finished our problem. Unfortunately, at the sprint review they found a bug in the event recorders. We aren’t satisfied with the result, we agreed that we will fix any issues we found until next week before the product handover to the partner. Aside from event recorders, sometimes our page has gone 404 not found randomly and we’ll try to fix these issues as well.</p><h3>Lesson Learned</h3><p>Maybe the product isn’t perfect, but I felt I learned a lot of lessons. Technical skills are obvious, but non-technical soft skills unexpectedly come like a puzzle piece every day. I’ll try to elaborate some of it.</p><p>In this course, every project must use the Scrum method and it’s one of the agile methodologies out there. I figured that one way to learn Scrum effectively is to become a scrum master. I felt that after becoming scrum master in the first sprint because I frequently read the scrum guides and at the end I filled out a scrum maturity assessment.</p><p>Starting to code new tech stacks, working with tools and processes that you are not familiar with is hard. Interestingly, as time went by and a few weeks passed, you felt no problem and it’s like a second nature. In other words, practice makes perfect.</p><p>As the time went, we found a lot of blockers or sometimes we found bugs that cannot be fixed in a certain amount of time before sprint review. We learned to negotiate with our partner and suddenly we were aware that everything is negotiable as long as it benefits both of us and also makes sense. If we were experiencing technical problems and we asked nicely, their Lead of Engineering and Frontend Lead really welcome us with a warm help. So, good communication is the key.</p><p>I learned this in the last sprint from our partner that building without learning is just useless. I never thought this at first, but it was true after I changed my mindset from a single developer to a company stakeholder. Why would you invest resources if it won’t make you understand something about the problem that they’re facing, whether their hypotheses is true or not, what really matters is getting information because it is crucial. That is the usefulness of event recorders so they can really know about the relation between users and their product.</p><h3>Conclusion</h3><p>At first, it was scary but it becomes exciting as the time goes because of the experience we made along the way. There are so many lessons that aren’t easy to get if we are just doing a hobby project or even building our own startup. I’d really like to treat this learning process as a journey, but it looks like the journey has reached the end. Every journey has an end, but it is the mark of the new journey that waits ahead of us.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29ac703afc72" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kimi no Cloud Services]]></title>
            <link>https://medium.com/@RadhiansyaZ/kimi-no-cloud-services-6d9c010c2b9d?source=rss-7d61e50c3686------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d9c010c2b9d</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[cloud-services]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <dc:creator><![CDATA[Radhiansya Zain]]></dc:creator>
            <pubDate>Wed, 25 May 2022 20:18:22 GMT</pubDate>
            <atom:updated>2022-05-25T20:33:04.350Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>“Cloud computing is like tab water; you only use it when you need it but available 24/7” — Enamul Haque</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*Nla1xSQPhVfxtHQhoW1eUA.png" /><figcaption>Some example of cloud provider out there</figcaption></figure><h3><strong>Why use a Cloud Provider?</strong></h3><p>You have an application ready to deploy, but you are in a dilemma. Maybe if it’s just a hobby project, you will deploy to a Platform-as-a-Service free tier, like Heroku, Netlify, or Vercel. But you remember that you want a production ready. First option is setting up your own server on your physically set up hardware (on-premises), but it requires maintenance and it will cost more upfront and in the long run. Second, using a web-hosting provider, but the downside is that the resource you pay is fixed by space on the server and hard to scale.</p><p>The last option is to use a cloud computing provider and it sounds like a good deal because it solves the downsides of the first and second option. According to Google, cloud computing offers:</p><ul><li><strong>On-demand self service</strong>. No human intervention needed to get resources</li><li><strong>Broad network access. </strong>Access from anywhere</li><li><strong>Resource pooling. </strong>Provider shares resources to customers</li><li><strong>Rapid elasticity. </strong>Get more resources quickly as needed</li><li><strong>Measured service. </strong>Pay only for what you consume</li></ul><h4>Benefits of using Cloud Services</h4><p>Based on cloud computing offering before we can summarize it to a more technical view of it:</p><ul><li><strong>Resources Flexibility</strong>, choose what resources you really need.</li><li><strong>High Scalability</strong>, scale up or scale down your resources is just a click of button (or even API calls).</li><li><strong>Cost-Effective</strong>, pay what you use based on resources allocated.</li><li><strong>Security</strong>, some notable companies like Google, Amazon, and Microsoft usually have a set of security enabled by default.</li></ul><p>To choose which provider to use, Azure has several recommendations to assess. You can check out the guide <a href="https://azure.microsoft.com/en-us/overview/choosing-a-cloud-service-provider/">here</a></p><h3><strong>The Double Edged Sword of Cloud Services</strong></h3><p>At first, the scalability and flexibility of Cloud Services sound great. But the moment you realize you cannot take it for granted gives you insecurities about your projects. The moment you scale up and add more services equals using <strong>more resources </strong>and it will <strong>cost</strong> <strong>you a lot</strong>.</p><p>There are a lot of factors that can lead to inefficient costs aka burning money. Some of the mistakes are:</p><p><strong>Inaccurate pricing estimation</strong><br>For example, in GCP you can use its <a href="https://cloud.google.com/products/calculator/">pricing calculator</a> to estimate all your resources before use. Don’t just check the product, you need to also check the network ingress/egress pricing because providers like GCP also charges for network for every x inbound and y outbound of traffic.</p><p><strong>Overlook the IAM/role based restrictions</strong><br>The least privilege principle should be strictly applied to this one. Not all developers in your team need the same privilege as the Cloud Engineer. If some developers only need a view permission, don’t give them the role of maintainer or admin so they don’t accidentally request more resources or (worse) leak sensitive or classified information. All comes with a risk and price to pay.</p><p><strong>Not setting up budget and/or billing alerts</strong><br>Don’t underestimate this feature, because your projects are tied to your credit card and can charge unexpectedly high without you knowing. Flexibility and scalability offered sometimes bring catastrophe because of the misconfigured auto-scaling or it’s just you making an infinite loop in the cloud function. By enabling alerts it can give you early warning if your billing suddenly skyrockets and if your provider has a cut-off for a certain billing threshold you should enable it if you or your company have a limited amount of monthly budget.</p><p><strong>Not limiting number of instances</strong><br>The rule is simple, don’t scale when you don’t need to scale. If you are developing a hobby project or building an early startup you don’t need that many instances because your concurrent users aren’t that much. Control the resources you need.</p><h3><strong>Choosing the Right Cloud Product for you</strong></h3><p>Let’s say you fall in love with Google therefore you choose Google Cloud Platform (GCP) as your Cloud Services Provider. Now, you must be thinking about which product to use because GCP itself offers an enormous amount of product. Let’s take a look at some example below:</p><p>You already build an API that is built on Java and it interacts with a PostgreSQL database. There are many options for deployment, there are Compute Engine, App Engine, Cloud Run, and Google Kubernetes Engine (GKE). For the database, there are BigQuery, CloudSQL, Cloud Spanner, Firestore, Cloud Bigtable, and their newest service AlloyDB.</p><p>Here are your needs:</p><ul><li>A simple deployment process</li><li>A relational database server that not need horizontal scaling</li><li>Very limited budget (non-negotiable)</li></ul><p>First of all, the budget is very limited therefore we eliminate GKE and Cloud Spanner. Although both of them give a high scalability, it is also very expensive. Second, a relational database server is a must so we eliminate Firestore and Cloud Bigtable (key-value database) and BigQuery (serverless). So far, our options narrowed to Compute Engine, App Engine, Cloud Run and CloudSQL, AlloyDB.</p><p>For the database, do you need additional analytical tools? If not, choose <strong>CloudSQL </strong>(otherwise, choose <strong>AlloyDB</strong>). For the deployment platform, do you need to customize the platform down to its kernel? If yes, go for <strong>Compute Engine</strong>. If you want a simplicity of deployment like deploying to Heroku/Netlify/Vercel, go for <strong>AppEngine</strong>. Lastly, go for <strong>Cloud Run</strong> if your application is small and low-traffic because it’s cheaper.</p><h3><strong>Conclusion</strong></h3><p>To choose the right cloud provider, you need to understand needs. In regard to which cloud services provider to choose, just put your money in the provider you trust the most. Next, estimate the all needed resources with its costs to achieve high cost-efficiency according to your budget.</p><p><strong>Reference</strong></p><ul><li><a href="https://cloudacademy.com/blog/web-hosting-vs-cloud-hosting-whats-the-difference/">Web Hosting vs. Cloud Hosting: What&#39;s the Difference?</a></li><li><a href="https://aws.amazon.com/application-hosting/benefits/">Benefits</a></li><li><a href="https://cloud.google.com/free/docs/what-makes-google-cloud-platform-different">What makes Google Cloud Platform different? | Google Cloud Free Program</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d9c010c2b9d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software Architecture as the Pillar of your Code Base]]></title>
            <link>https://medium.com/@RadhiansyaZ/software-architecture-as-the-pillar-of-your-code-base-e7f70c2b82ea?source=rss-7d61e50c3686------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7f70c2b82ea</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[design-patterns]]></category>
            <dc:creator><![CDATA[Radhiansya Zain]]></dc:creator>
            <pubDate>Thu, 12 May 2022 21:09:54 GMT</pubDate>
            <atom:updated>2022-05-12T21:09:54.009Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>“Architecture is about the important stuff. Whatever that is” — Ralph Johnson</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lc0QCjL5RiUv9e07ASUR9Q.png" /><figcaption>A few example of Software Architecture</figcaption></figure><p>Admit it, deciding what software architecture to use in your next project is one of toughest decisions we’ve ever made. Maybe I’m overreacting a bit, but for a non-senior engineer like me it is hard because of a lack of knowledge and experience in the concepts of software architecture/system design. Besides that, choosing the right software architecture is the decision you wish you could get right early in a project so it won’t burden the development process in the long run.</p><h3><strong>What is Software Architecture?</strong></h3><p>By using definitions from “Software Architecture in Practice”:</p><blockquote>The software architecture of a system is the set of structures needed to reason about the system. These structures comprise software elements, relations among them, and properties of both.</blockquote><p>So, software architecture is a blueprint for both the system and the project. It is an abstraction of both design and behavior to achieve a managed system complexity and establish communication and coordination mechanisms between components. Because it is an abstraction, it will work as a high level guideline to our actual implementation because real world use cases can be vary and unique.</p><h3><strong>Significance of Software Architecture</strong></h3><p>Using a proper software architecture pattern can lead to many benefits compared to not using a proper one (referred as anti-pattern). Some of the benefits are:</p><ul><li>It creates a solid foundation for the software project</li><li>Makes your platform scalable</li><li>Increase code maintainability</li><li>Help manage complexity</li><li>Provides an abstraction to non-IT stakeholders</li></ul><p>In general any architecture patterns in software architecture will help us define the basic characteristics and behavior of an application. There is no silver bullet or the best architecture, every pattern has its own drawbacks. By knowing the characteristics, strengths, and weaknesses of each architecture pattern can help us achieve our business needs and goals. Deciding which architecture pattern to use can affect the internal quality of a code base and high internal quality leads to faster delivery of new features.</p><h3><strong>Commonly Used Patterns</strong></h3><h4>Layered</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yItcYHwkuEfkXD_S.png" /><figcaption>Layered Pattern (source: <a href="https://www.oreilly.com/library/view/software-architecture-patterns/9781491971437/assets/sapr_0101.png">https://www.oreilly.com/library/view/software-architecture-patterns/9781491971437/assets/sapr_0101.png</a>)</figcaption></figure><p>This pattern decomposes a giant service into four groups based on its task. Each layer provides services only to its next higher level.</p><p>The most common layered pattern are:</p><ul><li><strong>Presentation layer </strong>(also known as UI layer)</li><li><strong>Application layer </strong>(also known as service layer)</li><li><strong>Business logic layer</strong> (also known as domain layer)</li><li><strong>Data access</strong> <strong>layer </strong>(also known as persistence layer)</li></ul><h4>MVC</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*ipPeiV9plwQqpH_b.png" /><figcaption>MVC Pattern (source:<a href="https://developer.mozilla.org/en-US/docs/Glossary/MVC/model-view-controller-light-blue.png">https://developer.mozilla.org/en-US/docs/Glossary/MVC/model-view-controller-light-blue.png</a>)</figcaption></figure><p>This pattern separate concerns of application into 3 groups:</p><ol><li><strong>Model</strong>, contains the core functionality and data</li><li><strong>View</strong>, displays the information to the user (more than one view may be defined)</li><li><strong>Controller</strong>, handles the input from the user</li></ol><h4>Client-Server</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Yr7vYUWYJ1VhetcW.png" /><figcaption>Client-Server (source: <a href="https://darvishdarab.github.io/cs421_f20/assets/images/client-server-1-d85a93ea16590c10bed340dd78294d0d.png">https://darvishdarab.github.io/cs421_f20/assets/images/client-server-1-d85a93ea16590c10bed340dd78294d0d.png</a>)</figcaption></figure><p>This pattern consists of two parties, a <strong>server </strong>and multiple <strong>clients</strong>. One server will provide services to multiple clients. Clients will request resources from a server and the server provides relevant resources to those clients.</p><h3><strong>Software Architecture of Our Project</strong></h3><p>In terms of software architecture, our project uses a Client-Server architecture because it uses Next.js (React) as a Frontend and Django-Rest-Framework as a Backend. And as a consequence of using Django as our server, it uses MVC architecture. By looking at that case, it is possible to utilize more than one software architecture in a particular project.</p><h3>Conclusion</h3><p>Choosing the right software architecture is hard, because there are a lot of factors to be taken into account, like business needs and goals, system requirements, and your knowledge as a system designer. There is no best or jack of all trades architecture, all comes with its own drawback. So, choosing the right architecture for your specific needs in the beginning can benefit you in the long run.</p><p><strong>References</strong></p><ul><li><a href="https://martinfowler.com/architecture/">Software Architecture Guide</a></li><li><a href="https://medium.com/the-legend/software-arsitektur-dan-design-90f76288078e">Software Arsitektur dan Design</a></li><li><a href="https://apiumhub.com/tech-blog-barcelona/benefits-of-software-architecture/">15 benefits of software architecture you should know</a></li><li><a href="https://towardsdatascience.com/10-common-software-architectural-patterns-in-a-nutshell-a0b47a1e9013">10 Common Software Architectural Patterns in a nutshell</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7f70c2b82ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Art of Clean Code — Refactoring]]></title>
            <link>https://medium.com/@RadhiansyaZ/the-art-of-clean-code-refactoring-88d01c35f7e3?source=rss-7d61e50c3686------2</link>
            <guid isPermaLink="false">https://medium.com/p/88d01c35f7e3</guid>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[refactoring]]></category>
            <dc:creator><![CDATA[Radhiansya Zain]]></dc:creator>
            <pubDate>Thu, 12 May 2022 17:28:24 GMT</pubDate>
            <atom:updated>2022-05-13T07:35:43.924Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Art of Clean Code — Refactoring</h3><blockquote>“If you know how to refactor and know yourself, you need not fear the hundred lines of codes.” — Probably not Sun Tzu</blockquote><figure><img alt="Cover image of this article (Kamisato Ayato)" src="https://cdn-images-1.medium.com/max/1024/1*LTrsFpQvVy_zRhV2nIIwSw.png" /><figcaption>Ayato casting his Kamisato Art imbued with Martin Fowler’s book</figcaption></figure><p>As I previously mentioned in the clean code article, the concept of clean code is an integral part to refactoring.</p><h3><strong>What is Refactoring?</strong></h3><p>We are definitely familiar with the term “refactoring” in software development. The term itself is used loosely by a lot of software developers out there, including myself. But for clarity purposes, in this article we will use the refactoring definition according to Martin Fowler.</p><p>In his book “Refactoring: Improving the Design of Existing Code”, he states that refactoring is both a noun and a verb.</p><blockquote>Refactoring (noun): a change made to the internal structure of software to make it easier to understand and cheaper to modify without changing its observable behavior.<br>Refactoring (verb): to restructure software by applying a series of refactorings without changing its observable behavior.</blockquote><p>By using both definitions, we can say that refactoring is a <strong>particular</strong> <strong>approach of a code cleanup </strong>to improve the design of an existing code base, not just any kind of code cleanup. It works by applying a small but behavior-preserving state and making big changes by applying a series of small steps. Thus, each step shouldn’t break the code base so we can stop at any moment even before we finish.</p><h3>Benefits of Refactoring</h3><h4>Refactoring Improves the Design of Software</h4><p>Software architecture tends to decay because people will always have short-term goals in mind, thus making the code lose its structure.</p><h4>Refactoring Makes Software Easier to Understand</h4><p>Writing a code that a computer can understand is easy, but for humans to easily understand is a different thing. The bad news is there are likely to be other users of my source code, unfortunately the other users can be yourself trying to figure out what your code does :D.</p><h4>Refactoring Helps Me Find Bugs</h4><p>By refactoring, we’ll work deeply on understanding what the code does and put out the understanding back into the code. By clarifying the structure of the program, we then clarify certain assumptions we’ve made to the point where we surely spot bugs.</p><h4>Refactoring Helps Me Program Faster</h4><p>At first, it sounds counterintuitive. The real case for this benefit is that refactoring stops us from developing features rapidly at first and takes longer to add new features.</p><h3>When Should We Refactor</h3><p>Martin Fowler said that using a <strong>rule of three</strong> is a good starting point. In it’s book, it’s written:</p><blockquote>The first time you do something, you just do it. The second time you do something similar, you wince at the duplication, but you do the duplicate thing anyway. The third time you do something similar, you refactor.</blockquote><p><strong>Preparatory Refactoring</strong> <strong>— Making It Easier to Add a Feature</strong>, this a time when we refactor before adding new features.</p><p><strong>Comprehension Refactoring</strong> <strong>— Making Code Easier to Understand</strong>, this is a time when we refactor before changing some codes, because we need to understand what it does and sometimes the logic is structured awkwardly.</p><p><strong>Litter-Pickup Refactoring</strong>, this is a variation of comprehension refactoring when we understand what the code is doing, but realize it does something badly. The main difference with the comprehension refactoring is that the state of code that we want to refactor is readable but bad at doing it’s functionality.</p><p><strong>Long-Term Refactoring</strong>, this type of refactor if the refactoring process needs larger efforts that can take a team weeks to complete.</p><p><strong>Refactoring in a Code Review</strong>, code reviews is a knowledge transfer medium between developers, thus refactoring in this step is mostly from suggestions from other developers whether it’s our seniors or our peers.</p><h3>How We Apply Refactoring in Our Project</h3><p>There are many types of refactoring, Fowler’s Refactoring book can be a good starting point because it is a catalog of it. Some examples of our refactoring is an <strong>extract function</strong>.</p><p>Here are one of our method in View Set:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4bc1a5bc214917cf0cfc6a2fba5fbf9b/href">https://medium.com/media/4bc1a5bc214917cf0cfc6a2fba5fbf9b/href</a></iframe><p>The reason why we want to refactor that piece is that it is a method to check user token and it will be used anywhere. So to ease the test and reduce duplication, we need to extract it.</p><p>The result:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e004fded15b69f786cb0b0b8f328ec42/href">https://medium.com/media/e004fded15b69f786cb0b0b8f328ec42/href</a></iframe><p>It is a lot more better since it is both easily readable and maintainable.</p><h3>C<strong>onclusion</strong></h3><p>Refactoring isn’t a silver bullet in a software development process yet it is a valuable tool because it keeps a good grip on our code. The goal of refactoring should always make the code easier to understand and cheaper to modify (in terms of technical debts). So, mastering refactoring doesn’t make you a great programmer but a <strong>good programmer with a good habit</strong>.</p><p><strong>References</strong></p><p>Fowler, M. (2019). <em>Refactoring: Improving the design of existing code</em>. Addison-Wesley.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88d01c35f7e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Clean Code Manifesto]]></title>
            <link>https://medium.com/@RadhiansyaZ/the-clean-code-manifesto-4505605df83b?source=rss-7d61e50c3686------2</link>
            <guid isPermaLink="false">https://medium.com/p/4505605df83b</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[clean-code]]></category>
            <dc:creator><![CDATA[Radhiansya Zain]]></dc:creator>
            <pubDate>Mon, 11 Apr 2022 14:47:10 GMT</pubDate>
            <atom:updated>2022-05-26T08:34:25.065Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>“A specter is haunting Developers-the specter of Code Smells.”</blockquote><blockquote>–Absolutely not Marx</blockquote><p>That was a parody of the opening sentences of one of the most influential political documents in the world written by Karl Marx. It was so powerful that it created a rapid movement centered in the proletariat<em> </em>(working class). Instead of working class, “Clean Code: A Handbook of Agile Software Craftsmanship” written by Robert C. Martin unites the Developer under the banner of Clean Code in order to produce a better programmer through the arts of telling the difference between bad and good code, how to write good code, and how to transform bad code into good code.</p><h3>Definition of Clean Code</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iolIf5sq4b9rfeZq.jpg" /><figcaption>Source: <a href="https://cdn.dribbble.com/users/4976683/screenshots/14573929/media/cf5dfc0a1edcc743d8f38b3ebbdcd9e4.jpg">https://cdn.dribbble.com/users/4976683/screenshots/14573929/media/cf5dfc0a1edcc743d8f38b3ebbdcd9e4.jpg</a></figcaption></figure><p>Quoting Uncle Bob on his book, even the deeply experienced programmer like Bjarne Stroustrup (inventor of C++), Grady Booch (author of Object Oriented Analysis and Design with Applications), and Ron Jeffries (author of Extreme Programming Installed and Extreme Programming Adventures in C#) doesn’t come to agreement in terms of definition of clean code. They have their own definitions, and we should see this difference as a <strong>school of thought</strong>. None of this school of thought is 100% right, but the righteousness of one school doesn’t invalidate the others. They are as a whole, our school of thought on Clean Code.</p><p>Because they have their own definition of clean code, I should have my own interpretation of clean code based on the definition from the experienced. My interpretation on <strong>clean code</strong> is that it <strong>is a must-have thought process for every developer to create the art of human readable code, highly maintainable, and resilience to change</strong>. And yes, writing clean code is an art form.</p><h3>The Element and Importance of Clean Code</h3><p>By utilizing clean code, you can get some benefits from it. Some of it includes:</p><ul><li>Create easily maintainable &amp; extensible code</li><li>Easy to read</li><li>Easy to debug &amp; refactor</li><li>Easy to test</li></ul><p>After knowing the benefits of Clean Code, we need to know each element that corresponds to a clean code. Not knowing these will result in not gaining one or all benefits that were stated above. Uncle Bob in his book split the elements into several different categories.</p><ol><li><strong>Meaningful names</strong>, always use intention revealing names in variables, class name, method name, etc.</li><li><strong>Function</strong>, in terms of function it should be small, do one thing, one level abstraction, have no side effects, and don’t repeat yourself when writing.</li><li><strong>Comments</strong>, comments do not make up for bad code and good code doesn’t need comment. Good comments should always be about legal, explanation of intent, clarification, warning of consequences, and documentation of public API. Don’t use comments when you can use variables and functions. Bad comments like commented out code, redundant comments, and too much information should be deleted.</li><li><strong>Error Handling</strong>, the use of exceptions encouraged rather than return codes. We should always define an exception class in terms of caller needs and don’t return null.</li><li><strong>Formatting</strong>, use your language standard convention for space and tab between function, class, etc. One of the examples is PEP-8 in Python.</li><li><strong>Testable</strong>, every part of code should have unit tests. The unit tests should be Fast, Independent, Repeatable, Self-validating, and Timely or F.I.R.S.T for short.</li></ol><h3>Want to Achieve Clean Code? Use these Concepts!</h3><p>In his book, Uncle Bob discussed various aspects of how to produce better code. Starting from using <strong>meaningful names, rules of functions, where to comment, formatting, class rules, exception handling</strong>, and as far as <strong>smells and heuristics</strong>. If you are interested in detailed things, I recommend you to read the book, because I want to focus on some catchphrases that I think abstracts most concepts from Uncle Bob’s book. I’ll try to explain SOLID, DRY, YAGNI, and KISS as short as possible without losing its intention.</p><h4>SOLID</h4><p>SOLID or S.O.L.I.D is an umbrella term that consists five Object Oriented Design principles:</p><ul><li>S — Single-Responsiblity Principle</li><li>O — Open-closed Principle</li><li>L — Liskov Substitution Principle</li><li>I — Interface Segregation Principle</li><li>D — Dependency Inversion Principle</li></ul><p>I guess S.O.L.I.D needs its own section in another article, I’ll discuss this topic on the “The Art of Refactoring”. Just wait and see the next article. Quoting <a href="https://www.digitalocean.com/community/conceptual_articles/s-o-l-i-d-the-first-five-principles-of-object-oriented-design#:~:text=These%20principles%20establish%20practices%20that%20lend%20to%20developing%20software%20with%20considerations%20for%20maintaining%20and%20extending%20as%20the%20project%20grows.%20Adopting%20these%20practices%20can%20also%20contribute%20to%20avoiding%20code%20smells%2C%20refactoring%20code%2C%20and%20Agile%20or%20Adaptive%20software%20development.">this post on DigitalOcean</a>, “These principles establish practices that lend to developing software with considerations for maintaining and extending as the project grows. Adopting these practices can also contribute to avoiding code smells, refactoring code, and Agile or Adaptive software development.”.</p><h4>DRY (Don’t Repeat Yourself)</h4><p>I think the title is self explanatory, it encourages you to not write a duplicated code. Suppose you have a duplicated code in multiple places, and someday you realize that you want to refactor it. In order to maintain the code, you refactor the code in multiple places, and it’s a tiresome process. What if we change “multiple places” into 20 places? Can’t imagine that, it’s better to refactor your code to comply with DRY rules, your first approach can be to modularize the code.</p><h4><strong>YAGNI (You aren’t gonna need it)</strong></h4><p>This concept was taken from Extreme Programming and encourages us (developers) to not build functionality until you really need the functionality. It removes unnecessary impediment developers that frequently haunts developers, that is to<em> predict the future</em> by creating functionality based on “we will need this in the future” on an agile team where the requirements keep changing. Are those kinds of developers who have seen the future with a time stone or are they some kind of Stephen Strange?</p><h4>KISS (Keep it Simple, Stupid)</h4><p>We as a Software Engineer sometimes have something called “engineers pride” and tend to over-engineer a simple problem that requires a simple solution. I’m not saying that we shouldn’t use a complex solution at all, there are cases where simple solutions won’t work so we work towards a complex solution and that’s fine. What this means is that you should analyze your solution before implementing it. Does it really need a mega-super-giga complex solution or a simple solution can work as elegant as the mega-super-giga-complex solution? We need to contemplate on that.</p><h3>This is my (our) Tools!</h3><p>Don’t get me wrong, I’m not a purist that views clean code can be achieved solely on developers only. We can be helped by the right tools. Linter, code formatter, and static code analysis can help us tackle problems that we got along the way when we are learning about clean code.</p><h4>Python Extension</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bbYJMo24UKIT4AHs" /></figure><p>We develop an API in a single-monolithic Django Rest Framework Python application on a Docker container. Working with a gigantic codebase is challenging, but Python VSCode’s extension provide us with various tools, like:</p><ul><li>IntelliSense</li><li>Linting</li><li>Code formatting</li><li>Auto refactoring</li><li>Integration to popular unit tests library, such as Pytest</li></ul><p>Feature the most is IntelliSense because autocompletion saves a lot of time. It has a good integration with popular libraries like Django Rest Framework, Pytest, Factory_boy, Faker, and many more. There is not much people know about this, but this extension also has linter, code formatter, and auto refactoring, you just need to enable it manually first from the VSCode’s Command Palette.</p><h4>SonarLint and SonarCloud</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6o9HxAVlW37AWTZ7" /><figcaption>SonarLint extension on VSCode</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s0WpLTPCs4Jct6J3x0MyvA.png" /><figcaption>Quality Gate on SonarCloud when creating PR to staging</figcaption></figure><p>These two work as Static Code Analysis, one on the local and one on the Pull Request. Actually, you don’t need SonarLint but I think it is better to tackle common code smells and vulnerabilities even before it gets pushed to remote repositories.</p><h4>ESLint and Prettier</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*jAszoy_v_vAi03v7" /><figcaption>ESLint extension on VSCode</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/0*OCX57VCEmNmPsGAM" /><figcaption>Prettier extension on VSCode</figcaption></figure><p>Aside from Python, we also use NodeJS, specifically Next.js for the frontend web framework. Javascript as a language itself is messy, there are a lot of standards in terms of coding style. So, enforcing a particular format is a must. We utilize ESLint as a Linter using Next.js standard guide (using .eslintrc) and Prettier as a code formatter to automatically apply the same code style everytime we save .js files.</p><h3>Clean Code in Action: Clean Test</h3><p>This manifesto are nothing without the example, Torvalds once said “Talk is cheap. Show me the code.”, let’s jump into the backend codes of our project. In the backend, we are dealing with models with a lot of fields. Let’s take a quick look at the code snippets below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d6454714a64cc464c613149fe1fa07ff/href">https://medium.com/media/d6454714a64cc464c613149fe1fa07ff/href</a></iframe><p>By looking at the models above, we’re gonna create scenario for the setUp method an it would be:</p><h4>Question model</h4><ul><li>Create multiple Tag objects because of ManyToManyField</li><li>Initiate variables to test each field</li><li>Create a Question object using variables initiated + Tag</li></ul><h4>Answer model</h4><ul><li>Create a LawyerUser object because of ForeignKey</li><li>Create a Question object (we cannot use the created Question above because it would not isolate the unit-testing, we are testing each model in separate Class)</li><li>Initiate variables to test each field</li><li>Create an Answer object using variables initiated + LawyerUser + Question</li></ul><p>Notice there is some problem on Answer model setUp. First, we are recreating Question,that’s a duplication plus it is really tiresome work to re-instantiated the Question like we did in the QuestionTest’s setUp method. Second, the LawyerUsermodel is a model with <strong>20+ fields</strong>, that’s too many fields to instantiate in setUp and the setUp of AnswerTest would be so complex. We need to apply at least DRY and KISS to solve this problem.</p><h4>The Solution</h4><p>Because our project use a Pytest, factory_boy, and Faker, we have a workaround. Start from creating a factory to each model to be used in unit tests, the factory would be like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c4b0e2b81e704fddb88549340fdd1a9b/href">https://medium.com/media/c4b0e2b81e704fddb88549340fdd1a9b/href</a></iframe><p>By using factory, we can set a default value for some attribute and also we can call another factory like LawyerUserFactory and QuestionFactory. Now, let’s take a look at unit test created using model factories:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9bef0a63a4529ae68398577966d971b2/href">https://medium.com/media/9bef0a63a4529ae68398577966d971b2/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7a8f912c8a586f98ec0d50ebc9fb2134/href">https://medium.com/media/7a8f912c8a586f98ec0d50ebc9fb2134/href</a></iframe><p>Compared to setUp scenario which I was described above, it provide concise and straightforward setUp with simplicity and minimal duplication (anyway, we just used DRY and KISS here). Do you think what I think? it’s a lot cleaner and readable, right :D? Also, it provides a better developer experience when working with unit testing and TDD, because developer can focus more on the expected behavior of the implementation.</p><h3>Conclusion</h3><p>As I mentioned earlier in the definition, my take on clean code is more of an art form. It is not always the shortest code, but I guarantee you that this code is elegant therefore easier to understand and maintain. If the whole team applies the clean code, mainly on an agile team it can boost productivity because developers already have a good habit and they can be more focused on what they do, not waste their time reading or asking about what code in front of them does.</p><p><strong>References</strong></p><p>Martin, R. C. (2009). <em>Clean code: A Handbook of Agile Software Craftsmanship</em>. Prentice Hall.</p><p><a href="https://www.digitalocean.com/community/conceptual_articles/s-o-l-i-d-the-first-five-principles-of-object-oriented-design">SOLID: The First 5 Principles of Object Oriented Design | DigitalOcean</a></p><p><a href="https://www.digitalocean.com/community/tutorials/what-is-dry-development">What is DRY Development? | DigitalOcean</a></p><p><a href="https://martinfowler.com/bliki/Yagni.html">Yagni (martinfowler.com)</a></p><p><a href="https://www.interaction-design.org/literature/article/kiss-keep-it-simple-stupid-a-design-principle">KISS (Keep it Simple, Stupid) — A Design Principle | Interaction Design Foundation (IxDF) (interaction-design.org)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4505605df83b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TDD: An Engineer’s Light in the Blackest Night]]></title>
            <link>https://medium.com/@RadhiansyaZ/tdd-an-engineers-light-in-the-blackest-night-8fff66dfab2f?source=rss-7d61e50c3686------2</link>
            <guid isPermaLink="false">https://medium.com/p/8fff66dfab2f</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[test-driven-development]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <dc:creator><![CDATA[Radhiansya Zain]]></dc:creator>
            <pubDate>Mon, 11 Apr 2022 09:00:20 GMT</pubDate>
            <atom:updated>2022-04-11T12:59:28.272Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>“Write tests until fear is transformed into boredom”</blockquote><blockquote>— Phlip, in Beck’s Test-Driven Development by Example</blockquote><p>You just finished Sprint Planning with your Scrum Team and the current Sprint Backlog has been chosen. Some new tasks were created (based on user stories or product backlog items) and at the same time you’ll need to fix some bugs from previous sprints. Sometimes, you’ll feel overwhelmed, don’t know what to do, or don’t know where to start even though you seem to know what to do and have a lot of confidence to code at first.</p><p>That kind of feeling is terrifying, it is like you are lost in the middle of nowhere and there is no moon to illuminate your way. Suddenly, you got an idea that you need a flashlight to light up your path and the proper tool to do that is Test-Driven Development (TDD). Analogous to flashlight, TDD is going to illuminate your path by becoming a guide for your implementation.</p><h3>What is TDD and Why is it a Good Practice?</h3><p>Test-Driven Development (TDD) is a <strong>design methodology</strong> that hardly encourages developers to write tests before writing production code. Beck said in his book that TDD is a set of techniques which encourages simple designs and test suites that inspire confidence through an iterative process. Two simple rules of TDD are:</p><ul><li>Write a failing automated test before you write any code.</li><li>Remove duplication.</li></ul><p>From the definition and rules above, an action set of TDD can be broken down into a cycle of:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*IB03D5bZAT6p4pQ5.png" /><figcaption>source: <a href="https://cio-wiki.org/images/thumb/1/1f/TDD2.png/300px-TDD2.png">https://cio-wiki.org/images/thumb/1/1f/TDD2.png/300px-TDD2.png</a></figcaption></figure><h4>RED</h4><p>Create a unit test for the expected functionality of the code. You should note that this is going to fail because you haven’t implemented it yet.</p><h4>GREEN</h4><p>Write an implementation that is sufficient (minimum implementation) to just pass the test.</p><h4>REFACTOR</h4><p>Polish, improve, and make your code more efficient without changing the functionality of the code. Your code should have the same behavior as the expected behavior (in other words, still pass the unit test).</p><p><strong>Repeat.</strong></p><h3><strong>Mastering TDD</strong></h3><p>In this section, I would like to present some handy frequently asked questions which have been summarized by Kent Beck.</p><h4><strong><em>What don’t you have to test?</em></strong></h4><p>For this part, the rule of thumb is follow what Phlip just said in the quote above “Write tests until fear is transformed into boredom”. Compared to what things we don’t have to test, we should test:</p><ul><li>Conditionals</li><li>Loops</li><li>Operations</li><li>Polymorphism</li></ul><p>But you need only test code that you write. Unless you have reason to distrust it (or you really fear it so much), don’t test code from others (external source).</p><h4><strong><em>How do you know if you have good tests?</em></strong></h4><p>Tests in TDD are equivalent to flashlight, it illuminates paths you didn’t see before and helps you manage your fear. So, if your tests are:</p><p><strong>Long setup code </strong>— If you have to spend a hundred lines creating the objects for one simple assertion.</p><p><strong>Setup duplication</strong> — If you can’t easily find a common place for common setup code because too many objects are intertwined.</p><p><strong>Long running tests </strong>— TDD tests that run a long time won’t be run often, and often haven’t been run for a while. There is a chance it probably won’t work.</p><p><strong>Fragile tests </strong>— Tests that break unexpectedly suggest that one part of the application is surprisingly affecting another part.</p><p>Then, there is a huge suggestion that your test designs are problematic.</p><h4><strong><em>When should you delete tests?</em></strong></h4><p>More tests are better, but if there are redundant tests with respect to each other. The question is should you keep it? Well, Beck said it depends on two things:</p><ol><li>Confidence. <strong>Never</strong> delete a test if it reduces your confidence in the behavior of the system.</li><li>Communication. If you have two tests that exercise the same path through the code, but they speak to different scenarios for a reader, leave them alone.</li></ol><h3><strong>Some Example of TDD on our Project</strong></h3><p>The main reason we use TDD on our project is because we are working on our partner’s repository. So it’s mandatory for us to not break things and also carry a set of tools to manage our fear. And I think TDD can help us code in the dark (pun intended).</p><p>Suppose I want to create a resource called UserTagPreference. Here are the examples:</p><p><strong>RED Phase</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/0*x0tNEimGo-PwmjSJ" /><figcaption>A set of tests suites for creating UserTagPreference model</figcaption></figure><p>At first, it looked a little bit confusing because I’m using a pytest + factory_boy as a utility for testing and not using a “normal” Django-Rest Framework testing utility. But, this utility really helps, because it abstracts some necessary test data at first and creates a callable factory for our stub model through dependency injection.</p><p>Here are my expectations for the model functionality:</p><ul><li>UserTagPreference has a relation to ClientUser.</li><li>UserTagPreference has a ManyToMany to Tag.</li><li>String representation of that model should be “Preferences of &lt;ClientUser&gt;“</li></ul><p><strong>GREEN Phase</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Qr5KDmoOwYSj3uUe" /><figcaption>The Implementation of the UserTagPreference</figcaption></figure><p>I don’t implement tests for auto generated fields (code, created_at, updated_at) because I have confidence that those sections of code won’t break. Although a little bit controversial, our Uncle Beck said that it is okay as long as we have the confidences :D.</p><p><strong>REFACTOR</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qFai95PDEclrg14kxQxWYQ.png" /></figure><p>There is not much to refactor in this model, except related_name use in OneToOneField. It is necessary to be refactored because it is an attribute to be called from the side of ClientUser, it can help improve the readability of your code. You can solve this kind of problem in the refactor cycle, along with other code improvement if your implementation is minimal.</p><p><strong>Bonus:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*58_jTH4XaV7DPAppiHEusg.png" /><figcaption>Cycle of TDD after my example (the first RED and GREEN was the example)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*w867HaknEDmbv09iTKdo6g.png" /><figcaption>Whoops, we need a little bit of REFACTOR :D</figcaption></figure><h3>Conclusion</h3><p>In conclusion, TDD is a beneficial tool in software development. It works by making sure your code does what it is expected to do, not what is written to do. By writing the test first, you write up your code to match the expected behavior, even after the <strong>refactor</strong>. Personally, I don’t think TDD slows down my development because TDD encourages us to write a small and testable code that leads to a simpler design yet resilience codebase.</p><p><strong>References:</strong></p><p>Beck, K. (2015). <em>Test-driven development by example</em>. Addison-Wesley.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8fff66dfab2f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hey, Personas aren’t just Fictional Characters!]]></title>
            <link>https://medium.com/@RadhiansyaZ/hey-personas-arent-just-fictional-characters-aae33c06adaf?source=rss-7d61e50c3686------2</link>
            <guid isPermaLink="false">https://medium.com/p/aae33c06adaf</guid>
            <category><![CDATA[personas]]></category>
            <category><![CDATA[user-centered-design]]></category>
            <category><![CDATA[ux]]></category>
            <dc:creator><![CDATA[Radhiansya Zain]]></dc:creator>
            <pubDate>Mon, 21 Mar 2022 11:40:12 GMT</pubDate>
            <atom:updated>2022-03-21T11:40:12.348Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zuY054R1rThDITtT.jpg" /><figcaption>source: <a href="https://d35fo82fjcw0y8.cloudfront.net/2019/08/28115234/user-personas-header.jpg">https://d35fo82fjcw0y8.cloudfront.net/2019/08/28115234/user-personas-header.jpg</a></figcaption></figure><p>It’s been the second sprint of our Software Engineering Project. We’ve been working with our partner for almost 3+ weeks. One key tool for developing our product is Personas. We will discuss how personas can shape the product and what kind of personas we made.</p><h3><strong>How Personas Affect Products</strong></h3><p>According to the Interaction Design Foundation, personas are fictional characters, which you create based upon your research to represent the different user types that might use your service, product, site, or brand in a similar way. The goal is to understand your users’ needs, experiences, behaviors and goals. Constructing the right personas won’t only bring your product to life, but it’ll help you ask the right questions and answer those questions aligned with what your users truly need</p><p>We want our product to solve users’ problems, so we need a deep understanding of our target users. Those understanding can be acquired through user research in the result of users expectations, concerns, and its motivations. A successful product is not the most beautiful product, but the product that suits users the most.</p><p>There are a lot of articles out there who discuss the characteristics of the personas, but let’s focus on its benefits. Benefits of personas are:</p><h4><strong>Build Empathy</strong></h4><p>Personas help us to create understanding and empathy with the users who will use the product. It works by gaining a perspective similar to the user and recognizing that different people can have different expectations and needs. The more we put personas in mind, the more we consider it as part of our product.</p><h4><strong>Direction for Design Decision</strong></h4><p>It will make our development focus on what the user needs, not our ego. This allows us to prioritize what features are really necessary for our product and what’s not. But, personas shouldn’t be the only key tools to determine prioritization, we should consider business needs as the primary key tools and use personas as the complementary tool.</p><h4><strong>Communicate Research Findings</strong></h4><p>People in one development team don’t all come from the same background. Some of it’s come from business, design, engineering, or maybe from a law school background. Personas bridges all information about users in the same language that we all understand unhindered by which background we came from.</p><h3><strong>Personas of our Projects</strong></h3><p>Let me give the context about what product we are creating right now with our partner. It’s a Q&amp;A platform (much more like Quora) but for law/legal. Our partner is a Startup in the field of law, so they have a hypothesis that wants to be tested with our MVP product.</p><h4>The Personas</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*I4G15oPZdiboTE4G" /><figcaption>The first persona</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sxm04fDMvq3i8Hbe" /><figcaption>The second persona</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ft6bURAYbmN4FrfH" /><figcaption>The third persona</figcaption></figure><p>From three personas above, at least we can get a few guidelines about what our Q&amp;A platform would look like.</p><ul><li>Users need anonymity when asking questions</li><li>Users want to see similar questions from the same topics.</li><li>Users want to easily search and navigate the platform to find suitable answers.</li><li>Users want a credible answer from the experts.</li><li>User wants a recommendation that suits his interests.</li><li>Users want to continue to consult personally if the lawyer’s answer interests him the most.</li></ul><h3><strong>Conclusion</strong></h3><p>Personas are simple yet powerful to create a product that focuses on solving user problems. Even if its character is fictional, the personas itself aren’t fictional guesses at what a target user thinks. Every aspect of a persona’s description should be tied back to real data. Investing a lot in your design sprint will give you a favorable advantage when building products for your user. Making a proper personas, can help your team decision making because all the decisions you make in the future will be focused on what the user needs.</p><p><strong>References:</strong></p><ul><li><a href="https://www.interaction-design.org/literature/article/personas-why-and-how-you-should-use-them">Personas - A Simple Introduction</a></li><li><a href="https://xd.adobe.com/ideas/process/user-research/putting-personas-to-work-in-ux-design/">What Are User Personas and Why Are They Important? | Adobe XD Ideas</a></li></ul><p><a href="https://www.keepitusable.com/blog/personas-why-is-it-important-to-understand-your-users/">Personas: Why is it important to understand your users? — Learn UX (keepitusable.com)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aae33c06adaf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Everyone can be a Scrum Master! (or not)]]></title>
            <link>https://medium.com/@RadhiansyaZ/everyone-can-be-a-scrum-master-or-not-4d4cb1dfa3b6?source=rss-7d61e50c3686------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d4cb1dfa3b6</guid>
            <category><![CDATA[scrum]]></category>
            <category><![CDATA[people-person]]></category>
            <category><![CDATA[people-management]]></category>
            <category><![CDATA[scrum-master]]></category>
            <category><![CDATA[motivation]]></category>
            <dc:creator><![CDATA[Radhiansya Zain]]></dc:creator>
            <pubDate>Mon, 21 Mar 2022 09:06:18 GMT</pubDate>
            <atom:updated>2022-03-21T09:06:18.929Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SKQ0QfPsyhqX2Ji_.jpg" /><figcaption>source: <a href="https://image.shutterstock.com/shutterstock/photos/1285157965/display_1500/stock-vector-stand-up-meeting-vector-illustration-scrum-master-with-team-agile-and-scrum-methodology-kanban-1285157965.jpg">https://image.shutterstock.com/shutterstock/photos/1285157965/display_1500/stock-vector-stand-up-meeting-vector-illustration-scrum-master-with-team-agile-and-scrum-methodology-kanban-1285157965.jpg</a></figcaption></figure><p>In the previous article, I wrote about implementing a Scrum in my Software Engineering Project team. One of the actors in the Scrum is Scrum Master, which is I am the Scrum Master of the previous sprint. I got a lot of experience from becoming a Scrum Master + Developers, especially on becoming a people person. But before we deep dive into my experience, let’s take a look at the job of a Scrum Master.</p><h3><strong>What is the job of a Scrum Master?</strong></h3><p>Before defining the job of Scrum Master, we must define why we need a Scrum Master as a goal. We must admit that a three weeks sprint is exhausting and there will be four sprints, there is no guarantee that every developer will perform at their full potential in a total of twelve weeks. That’s where Scrum Master comes in to help the team enhance and streamline the processes so that we as a team can achieve a goal in every sprint. What makes Scrum Master interesting is Scrum Master does it as a team member, or a collaborator, so Scrum Master is not like someone in full control and can elevate the mentality of the developers.</p><p>The real goal of Scrum Master is to become one who ensures the scrum framework is followed. As one of the Agile methodologies, people are the main instrument of the methodology so in order for Scrum to generate values for the product and people, its guideline needs to be followed. So in general, the main job of scrum master consist of:</p><ul><li>Foster a positive work environment for the Developers.</li><li>Help Product Owner to define Product Backlog and Definition of Done of each Backlog.</li><li>Help Developers to understand Product Backlog items.</li><li>Elevate all team members Scrum adoption.</li><li>Facilitating stakeholder collaboration as needed and removing barriers between stakeholders and Scrum Team.</li></ul><p>Also, the responsibilities of Scrum Master, including:</p><ul><li>Facilitate the Daily Standups.</li><li>Aid the team in Sprint Planning.</li><li>Participate in Sprint Reviews.</li><li>Actively moderate the Sprint Retrospective.</li><li>Become administrator for the sprint board.</li><li>Eliminate blockers.</li><li>Constantly improve the team by consulting what’s best for the team with internal stakeholders and the team itself.</li></ul><h3><strong>My Experience as a Scrum Master</strong></h3><h4>What is the goal of the project?</h4><p>The goal of the project is to create a MVP of paid quora for legal. Here the Product Owner defines a set of goals of this project and approves the product backlog and sets the priorities of each backlog. After the backlog was refined, there is a possibility that developers need to ask the product owner about the backlog because there is an ambiguity or there was something that is not clear or not concise enough. That’s when I came in as a Scrum Master to aid my fellow developers team to communicate with the Product Owner via Slack.</p><h4>How well can my team perform?</h4><p>At first, my team performance was not great but not bad either. That was expected because the first week of the sprint is filled with setup and onboarding, but performances greatly increase towards the end of the sprint, proven by the amount of deliverables from each branch each PR. Aside from the deliverables, at the end of the sprint our team spotted a lot of bugs after all features were integrated in the staging branch. I really appreciate my team because we can fix the bugs before the deadline, they are really an outstanding team.</p><p>At the Sprint Review, we got a lot of feedback and input from Product Owner and Stakeholders. It’s not like all the feedback we got was negative feedback, but the Sprint Review changed from moment of celebration to moment of reflection real quick. We quickly address which issue that we can prioritize to carryover to the next sprint and which one needs to be postponed by the approval of the Product Owner.</p><h4>How to solve internal conflicts between developers?</h4><p>Conflict is inevitable in a team because there are many people with different ideas even though we have the same vision. Besides the difference in ideas of people, differences in working pace with other people can be a problem. Some people complain about the progress of other people or the pace of others are too slow, mainly if they’re working on a related feature.</p><p>What I usually do in this kind of situation is to reduce the tension using humor, or bring some joy so everyone can be happy with the current situation. After that, we talked and discussed the middle way so everyone can get the result they want. Those kind of dynamics are scary, but fun at the same time.</p><h4>How to keep everyone motivated?</h4><p>A good Scrum Team is a self-organizing team, so it is important to make sure that everyone stays motivated from the beginning until the end. And because every person must deliver a value to a product, that can be a pressure mainly for the Developers. They can easily become demotivated if they encounter a problem or blocker.</p><p>I usually take two different approaches two help my team. The first one is to help them directly, because mostly their problem lies in their technical knowledge in programming, or frameworks/tools used. In my opinion, that problem is easier than the second approach I’ll use because the problem is easily addressed and they are still motivated enough to get the job done.</p><p>The second one is a little bit trickier because it lies in the mind of a person. Sometimes, there are people who feel inferior because they think their working pace is too slow or even just think they aren’t good enough. They are the most vulnerable people to feel demotivated. To help them, I usually tell them that “It’s ok to feel that you lag behind. Take your time, just work at your own pace as long as you are confident that you will finish it on schedule. And if you need help, you can call us anytime you need because we are always ready to help”. I don’t know what I said can make a difference or not, but I hope that can make a difference and help them feel motivated.</p><h4>How to keep yourself motivated?</h4><p>I think this was the most important part as a Scrum Master. Everybody often forgets about themselves because they always focus on developing a good positive Scrum Team. But, actually how can you foster a positive Scrum environment if you aren’t motivated? You can affect the mood of other people in your Scrum Team. Remember what I said about “a good Scrum Team is a self-organizing team”? Just take everything slowly and enjoy the process. Just try to make your interaction with the Scrum Team like a children playing hide and seek or snake in a playground, besides make your team engaged with the game you should play along too because don’t forget we are Developers too :).</p><h3>Conclusion</h3><p>In my opinion and based on my experience, everyone can be a Scrum Master even considering the jobs and the responsibilities. Becoming a Scrum Master does not make you special, you don’t have everything under your control. Instead, you will learn a lot about people, tools, and the scrum process itself. Nonetheless, becoming a Scrum Master is worth your time. You’ll learn a lot about people and the internal dynamics are super fun.</p><p><strong>References:</strong></p><ul><li><a href="https://scrumguides.org/scrum-guide.html#scrum-master">Scrum Guide | Scrum Guides</a></li><li><a href="https://www.atlassian.com/agile/scrum/scrum-master">Scrum Master Roles and Responsibilities | Atlassian</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d4cb1dfa3b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Yes, we know Git. What about Git Workflow?]]></title>
            <link>https://medium.com/@RadhiansyaZ/yes-we-know-git-what-about-git-workflow-c3eb6af47ab4?source=rss-7d61e50c3686------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3eb6af47ab4</guid>
            <category><![CDATA[trunk-based-development]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[git-workflow]]></category>
            <category><![CDATA[gitflow]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Radhiansya Zain]]></dc:creator>
            <pubDate>Mon, 21 Mar 2022 04:10:00 GMT</pubDate>
            <atom:updated>2022-03-21T04:10:00.674Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*1dGuYDr8T09MsVJPh8E3Mg.jpeg" /><figcaption>source: <a href="https://marvel-b1-cdn.bc0a.com/f00000000075552/www.perforce.com/sites/default/files/image/2020-07/image-blog-git-branching-model.jpg">https://marvel-b1-cdn.bc0a.com/f00000000075552/www.perforce.com/sites/default/files/image/2020-07/image-blog-git-branching-model.jpg</a></figcaption></figure><p>Git was one of the most important tools in software development. It works as a version control system for your codebase and allows you to collaborate with other developers in a single codebase. Honestly, I can’t imagine a world without Git, how come developers work with each other in the same codebase? Are they zipping their work every time they want to integrate with other developers’ works? (Oh my god, don’t make me imagine that kind of thing).</p><p>In Fasilkom UI, using Git in a group project is a must. From small scale projects in Web Design and Programming into medium-big scale applications in Advanced Programming and Software Engineering Project. It allows our works to be tracked and enhances our productivity by allowing collaboration but at the same time independently.</p><h3>A Refreshing knowledge of Git</h3><p>We definitely agree on this, <strong>Git is difficult to learn</strong> especially for a newcomer. Yes, working on a Distributed Version Control System (DVCS), like Git, is a beneficial upgrade because everyone stores the history of the code base file changes and that opens up the possibility to work independently but still collaborate. But, aside from that, we need a remote repository to synchronize our local repository with another local repository another developer has (still remember Git is distributed?). That’s where GitHub, GitLab, or Bitbucket comes in as repository management and issue tracker for our remote repository.</p><p>The basic workflow of a git project usually consists of setting up an empty git repository (with <strong>git init</strong>) or clone an existing git repository from a remote repository (with <strong>git clone</strong>). After that, we can use <strong>git checkout -b &lt;branch_name&gt;</strong> to work on a feature by making a branch from the tip of <strong>master/main</strong>. Don’t forget to create a checkpoint for your progress with <strong>git add &lt;file&gt;</strong> to include which files you want to commit and commit it with <strong>git commit -m “&lt;commit_message&gt;</strong>”. To synchronize your changes with the remote repository, use <strong>git push</strong> to make remote repository updated with your local repository or <strong>git pull</strong> to make local repository updated with remote repository. Lastly, we can use the Pull Request/Merge Request feature of your preferred repository management or <strong>git merge</strong> to merge our feature branch to the <strong>master/main</strong>.</p><h3>Introducing the Git Workflow!</h3><blockquote>A Git workflow is a recipe or recommendation for how to use Git to accomplish work in a consistent and productive manner. — Atlassian</blockquote><p>Git is very flexible and there is no rule nor standard about how we use and interact with it. Basic workflow as previously mentioned is just one of the workflows of using Git. Let’s imagine a four person team working on the same repository with that workflow, it’s safe to say that there will be no problem. But, let’s square up that number to 16 people, there will be a bunch of problems if there is no agreement about the workflow or else there will be a lot of unnecessary conflicts on the codebase.</p><p>We need an agreement on the flow as a guideline to make sure everyone is on the same page, followed by team capabilities on adoption of that workflow so it’ll yield a greater productivity. According to Atlassian, some things to consider when choosing a workflow is</p><ul><li>Does this workflow scale with team size?</li><li>Is it easy to undo mistakes and errors with this workflow?</li><li>Does this workflow impose any new unnecessary cognitive overhead to the team?</li></ul><p>Therefore, we need to know a few popular and most used Git Workflow in the industry.</p><h4><strong>Git Flow</strong></h4><p>Gif Flow is a Git branching model that involves the use of feature branches as a development branch plus a multiple primary branch, like master/main and staging. The characteristics of this flow is that Git Flow has numerous, longer-lived branches and larger commits and that branches have very specific roles. In addition to that, Git Flow also has a strict control over the code base because every Pull Request needs to be approved. Because of that, Git Flow frequently introduces conflicting updates when merging as a side effect of deviating from the trunk branch where its tip came from, but ensures code quality and helps eliminate bugs early.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8kjpWhkUzCneVFES" /><figcaption>Git Flow in Software Engineering Project 2022 (source: Panduan PPL 2022 Git Flow Ver 4.1)</figcaption></figure><p>Instead of using one primary branch, Git Flow usually has at least two branches, master for the official releases and staging for integration branch for features. So, developers create feature branches from the staging branch and integrate it’s work when it’s done to the staging branch. Once the staging branch has acquired enough features for a release, we merge-squash the staging branch into the master/main and tagged with version number. And if something goes wrong, you can take advantage of this flow because it allows a dedicated branch to hotfix the production.</p><h4><strong>Trunk-Based Development</strong></h4><p>Trunk-based development is a practice in the opposites of Git Flow, where developers merge small, frequent updates to a “trunk” or main branch. Therefore avoid the merge hell flaw that Git Flow has. Moreover, this flow allows you to iterate quickly because it has fewer major conflicts that are hard to resolve and the changes are delivered straight to the master/main branch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cKQ39Lxrhqa55p6k" /><figcaption>Trunk-based development flow (source:<a href="https://uploads.toptal.io/blog/image/129305/toptal-blog-image-1551794424851-b3d5928bc33edfc954ef460062e5cbcc.png">https://uploads.toptal.io/blog/image/129305/toptal-blog-image-1551794424851-b3d5928bc33edfc954ef460062e5cbcc.png</a>)</figcaption></figure><p>But this flow can backfire as no one has strict control over what is being modified in the code base and the only way to code review is a whole code base review, which is lengthy. Developers that work with this flow should be experienced so that you know they won’t lower the code base quality. This flow can speed up productivity if we work with experienced developers so it enables them to introduce new improvements quickly and without the hassle of bureaucracy.</p><h3><strong>What Git Workflow do we use? Git Flow!</strong></h3><p>We use Git Flow because our team consists of not so experienced developers and we are working alongside a partner company that uses this flow too. Although the flow is a little bit different, it’s still considered a Git Flow. Here are the modified illustrations about our Git Flow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*VPDS1JKExLbQlWKeYXQrWg.jpeg" /><figcaption>The modified Git Flow</figcaption></figure><blockquote>You might be wondering, what does the so-called integration branch do in that flow? Isn’t there already a staging branch to integrate all the features?</blockquote><p>Yes, you are right, but we’re working alongside a company and they also work on another project in the same repository. So, it’s <strong>safer</strong> to create an integration branch for this project and if it’s working we test it on their cloud server by making a Pull Request to the Development branch and if it’s working we can make a Pull Request to Staging branch.</p><blockquote>You might ask again, why not directly merge from the Development branch into staging? Why after testing in Development, you are still creating PR from the feature/integration branch?</blockquote><p>Well, the answer is the Development branch is a <strong>sandbox testing ground</strong> for a newly implemented feature for a lot of developers from other projects and it’s quite <strong>unstable</strong>, there is a chance that it will break the Staging branch. The bureaucracy is a little bit long because before going into Staging, we must make sure that our features work in Development first, but that’s expected because it is one of the Git Flow disadvantages.</p><p>Because we worked on an existing monolithic repository and based on our partner mixed with Software Engineering Project guideline, the flow becomes :</p><ul><li>Create a feature branch named PBI-x-feature_name.</li><li>Implement that feature using Test Driven Development (TDD).</li><li>(optional) Merge that feature branch into integration branch with your friend to minimize bureaucracy. At least you just need the approval of a minimum of 2 members of your team.</li><li>Create Pull Request to Development from the integration branch or your feature branch. You need extra approval from the Lead Engineer for this.</li><li>If it works on Development, create a new Pull Request to Staging. Also, you need extra approval from the Lead Engineer for this.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bKkH2OP_ioByteiHR8tzdQ.png" /><figcaption>This is one of the PR that we use to integrate before stage that up to development</figcaption></figure><h3>Conclusion</h3><p>In conclusion, there is no “silver bullet” for a Git workflow. Every workflow has trade off of its own. One thing to consider when choosing a right workflow is the chosen workflow should be simple and enhance the productivity of the team, not burdening it. We chose Git Flow because our team consists of not so experienced developers and working alongside company that enforce this style. It suits our needs of strict code review and eliminating bugs as early as possible.</p><p><strong>References</strong></p><ul><li><a href="https://www.atlassian.com/git/tutorials/comparing-workflows">Git Workflow</a></li><li><a href="https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow">Gitflow Workflow | Atlassian Git Tutorial</a></li><li><a href="https://www.atlassian.com/continuous-delivery/continuous-integration/trunk-based-development">Trunk-based Development | Atlassian</a></li><li><a href="https://www.toptal.com/software/trunk-based-development-git-flow">Trunk-based Development vs. Git Flow | Toptal®</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3eb6af47ab4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scrum and How We Implement it on Our Project]]></title>
            <link>https://medium.com/@RadhiansyaZ/scrum-and-how-we-implement-it-on-our-project-89ab9bc66789?source=rss-7d61e50c3686------2</link>
            <guid isPermaLink="false">https://medium.com/p/89ab9bc66789</guid>
            <category><![CDATA[agile-methodology]]></category>
            <category><![CDATA[github-board]]></category>
            <category><![CDATA[scrum]]></category>
            <category><![CDATA[agile]]></category>
            <dc:creator><![CDATA[Radhiansya Zain]]></dc:creator>
            <pubDate>Mon, 28 Feb 2022 05:00:43 GMT</pubDate>
            <atom:updated>2022-02-28T09:18:01.017Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eB_qw0yNT6q5teiR.jpg" /><figcaption>source: <a href="https://image.shutterstock.com/z/stock-vector-scrum-process-diagram-as-educational-and-labeled-agile-software-development-scheme-outline-concept-1892676610.jpg">https://image.shutterstock.com/z/stock-vector-scrum-process-diagram-as-educational-and-labeled-agile-software-development-scheme-outline-concept-1892676610.jpg</a></figcaption></figure><p>As a Computer Science student at University of Indonesia, especially in the 6th term of our semester, most of us will take a Software Engineering Project. We will be partnered with a real world client (in our case, it’s <a href="https://www.justika.com/tentang-kami">Justika</a>), solving real world problems with high quality production-grade software. So, we need the right tools for the right thing, not only the tech stacks, but also the suitable framework for executing the Software Development Life Cycle (SDLC).</p><p>There are so many process models in SDLC, from the waterfall model to agile. We are mandated to adapt the agile process model (or agile methodology) using the scrum framework to tackle this project. Actually, I agree with the use of agile methodology in this case because <a href="https://www.justika.com/tentang-kami">Justika</a> wants to launch a Minimum Viable Product (MVP) for it’s newest product that we are working on and want to know whether their hypothesis for their product-market fit.</p><h3><strong>But, wait. What is an Agile Methodology?</strong></h3><blockquote>Agile is an iterative approach to project management and software development that helps teams deliver value to their customers faster and with fewer headaches. – Atlassian</blockquote><p>Judging by the sentence “deliver value to the customer faster and with fewer headaches” means a team that uses agile methodology delivers it’s value to it’s customer via small but consumable incremental delivery instead of delivering a grand gigantic pandora box of software.</p><h4>Agile Manifesto and it’s 12 Principles</h4><p>As a methodology, agile has a set of values on it’s own. Taken from the <a href="https://agilemanifesto.org/">Agile Manifesto</a>, these are the core values that must be fulfilled to achieve the best of the agile world.</p><p><strong>Individuals and interactions over processes and tools</strong>. Agile methodology is human-centered. It’s better to use a decade old tool but a lively team, than a bleeding edge technology no one is familiar with. It’ll slow down your delivery to customers.</p><p><strong>Working software over comprehensive documentation</strong>. Don’t get me wrong, you still need documentation and it’s great. But writing comprehensive documentation is time consuming and you’ll end up writing documentation instead of writing a working line of code.</p><p><strong>Customer collaboration over contract negotiation</strong>. After each iteration, customers will try using it’s product as a working software and will give feedback as soon as possible. Those feedback can help developers create a better product and customers will be happy if their problem is solved.</p><p><strong>Responding to change over following a plan</strong>. Fast feedback at each iteration means that changes in the midst of development is inevitable. Remember, we try to deliver things fast by the needs of customers.</p><p>All those manifesto are the 4 generalized core of the 12 principles of agile.</p><p>Aside from the manifesto above, I think the rise of startups also boosts agile popularity. Startups need to deliver things fast to their customers so they can get feedback even faster in order to gain advantages over competitors. And then, by using the gathered feedbacks as a requirements, startup must have a flexibility to change to meet ever changing requirements.</p><h3><strong>Our Implementation of Agile? Scrum!</strong></h3><p>There are different frameworks of agile, one of which is Scrum.</p><blockquote>Scrum is a lightweight framework that helps people, teams and organizations generate value through adaptive solutions for complex problems. — scrumguides.org</blockquote><p>The rules of scrum are not providing people using it with detailed instructions. Instead, the rules of scrum guides people by a set of pillars and values. Every team can have their own adjusted implementation of scrum as long it follows the scrum pillars and values.</p><figure><img alt="Three Pillars of Scrum" src="https://cdn-images-1.medium.com/max/694/1*Br6sLdp7xMvOo2ew9G8xsw.png" /><figcaption>Three Pillars of Scrum (source: <a href="https://www.visual-paradigm.com/servlet/editor-content/tw/scrum/what-are-scrum-three-pillars/sites/7/2018/10/01-three-pillars-of-scrum.png">01-three-pillars-of-scrum.png (694×304) (visual-paradigm.com)</a>)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*hskquZ5BTDkJD2Jq2uo4DQ.png" /><figcaption>Scrum Values (source: <a href="https://scrumorg-website-prod.s3.amazonaws.com/drupal/inline-images/2019-06/ScrumValues-1000.png">ScrumValues-1000.png (1000×647) (scrumorg-website-prod.s3.amazonaws.com)</a>)</figcaption></figure><h4>Scrum Actors</h4><p>There are three actors in a scrum team.</p><p><strong>Product Owner</strong>, a person whose responsibility is maximizing the value of product done by the scrum team using choosing order of priority for a set requirements and creating product backlog. In our case, our Teaching Assistant (Novia Ramadani) is the product owner.</p><p><strong>Scrum Master</strong>, a person whose responsibility is to keep the effectiveness of the scrum team. In our case, the Scrum master is one of seven people in our group. Usually, if someone is already a scrum master, that person can’t be a developer. But, for the sake of learning we’re gonna pass on this role to another person at each sprint. Luckily, I’m the first scrum master in our group.</p><p><strong>Developer</strong>, a group of people that deliver solutions through working software. In our case, all seven of us are developers.</p><h4>Scrum Events</h4><p>Each iteration of scrum is delivered via sprint. The duration of a sprint can vary from one to four weeks. Our projects split into 4 sprints with 3 weeks each.</p><p><strong>Sprint Planning</strong>, at this stage along with the product owner we decide which item from the product backlog we’re gonna take to the sprint backlog. After that, we break it into smaller tasks with story points quantified by fibonacci numbers.</p><p><strong>Daily Scrum</strong>, we should be doing this every day ~15 minutes and to make things clear and straightforward the developers are asked the following three questions: what did they do yesterday, what will they do today, and are there any blocking in their way. In our case, it’s adjusted to be 2 times a week, so there will be 6 daily scrums a sprint.</p><p><strong>Sprint Review</strong>, at this stage the scrum team does a meeting and the developers will give it’s working software as deliverables to the product owner and get the feedback for it’s deliverables.</p><p><strong>Sprint Retrospective</strong>, at this stage a scrum team will evaluate the overall performance of the scrum team in the sprint. There will be individual and team evaluations and it should be safe place for people to evaluate others anonymously.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L2HcUG2Edk3aIGUs" /><figcaption>Sneak peak of our Issues Board</figcaption></figure><h3>Conclusion</h3><p>Agile methodology ability to deliver things fast via incremental delivery and it’s flexibility to adapt from changing requirements are necessary and beneficial for our project. By utilizing scrum framework, we aim to deliver the high quality working software at each sprint. We’ll work harder and smarter to make that happen.</p><h4>References</h4><ul><li><a href="https://www.atlassian.com/agile">https://www.atlassian.com/agile</a></li><li><a href="https://agilemanifesto.org/">https://agilemanifesto.org/</a></li><li><a href="https://www.atlassian.com/agile/scrum">https://www.atlassian.com/agile/scrum</a></li><li><a href="https://scrumguides.org/scrum-guide.html">https://scrumguides.org/scrum-guide.html</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89ab9bc66789" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>