<?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 Figo Muhammad on Medium]]></title>
        <description><![CDATA[Stories by Figo Muhammad on Medium]]></description>
        <link>https://medium.com/@figomuhammad?source=rss-f451b7ae505e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*WCc3Nfaa6-ijWNr9uRvJDQ.jpeg</url>
            <title>Stories by Figo Muhammad on Medium</title>
            <link>https://medium.com/@figomuhammad?source=rss-f451b7ae505e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 23:29:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@figomuhammad/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[How to release your app faster (DevOps)]]></title>
            <link>https://medium.com/group-a/how-to-release-your-app-faster-devops-ba708ccd79d2?source=rss-f451b7ae505e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba708ccd79d2</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[guides-and-tutorials]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <dc:creator><![CDATA[Figo Muhammad]]></dc:creator>
            <pubDate>Wed, 30 Dec 2020 00:59:18 GMT</pubDate>
            <atom:updated>2021-02-06T14:09:02.136Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to release your application faster (DevOps)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UIdAfOJciXARlk7tB9tKEg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@scienceinhd?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Science in HD</a> on <a href="https://unsplash.com/s/photos/server?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Traditionally, to develop software there is a software development team that deals with the source code, a quality assurance (QA) team that tests the application (app), and IT operation team that takes care about the deployment and monitoring.</p><p>Above’s framework is OK, but it is not responsive to change. Using this framework, every time a change is demanded, each team has to do much paperwork to communicate while passing the app. It is simply because each team are less integrated with others, a team does not know what other teams have done. A QA team does not know what the development team has done. They just simply test the app according to the document made by the development team. If they found a failing test, fixing it may take ages. This leads to a slower response to change and hence less deployment.</p><p>Less collaboration in each team also leads to a not optimal result in many aspects. IT operations team decisions on projection about failover, redundancy, data centre locations, and storage requirements may be skewed because there may be no inputs from the development team. The IT team may also monitor the app badly because of little communication with the development team.</p><h3>DevOps</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*V1gb-20xvfJ5PcJhpKfEmQ.png" /><figcaption><a href="https://en.wikipedia.org/wiki/File:Devops.svg">Image by Rajiv.Pant. Derived from Wylve</a></figcaption></figure><p>DevOps word comes from combining the word <strong>developments </strong>and <strong>operations</strong>. This signifies an integration between these two words. In definition, DevOps is a set of practices to automate and integrate the processes between development and IT operations team. However, these days, DevOps also includes the automation of the testing done by QA assurance team. These practices make building, testing, and deploying the app much faster and more reliable.</p><p>Integrating these processes also enables these teams to work together. Using the automation, all teams can see the log of each process that makes all eyes focus on it. This may enhance collaboration between the teams and also identify errors faster than before.</p><h4>The Cycle</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*g8Za-Xmk8kwmuUDox9QBfQ.png" /><figcaption>Image by <a href="https://en.wikipedia.org/wiki/File:Devops-toolchain.svg">Kharnagy</a></figcaption></figure><p>This is a cycle that the teams perform when developing and deploying an app. DevOps, the automation, makes the verify, package, release, and configure processes much faster. <strong>This four processes can be combined and renamed as <em>continuous deployment</em>. </strong>The continuous deployment consists of two processes: continuous integration (verify and build) and continuous delivery (release and configure). The term that is commonly used in industry is CI/CD. You might have heard of this term.</p><h4>My App</h4><p>A month ago, I developed an app called <strong>Sistem Informasi Penilaian dan Database Praktikum</strong> with my friends for my class project. This app uses GitLab for the online repository and I am going to use this app as an example for the following explanation.</p><h4>GitLab CI/GitHub Actions, The Main Tool</h4><p>These online repositories do not only enable collaboration between developers, with their new features, it also enables DevOps teams to do a DevOps practice using CI feature in GitLab and Actions in GitHub.</p><p>This feature uses a machine called a runner to automate commands the DevOps teams have defined. Usually, the commands are defined in the YML file. In GitLab, the commands can be grouped into a job and jobs can be grouped into a stage. Jobs in one stage is run parallel and stages are run sequentially, so stage one, then stage two, and so on. DevOps teams can define each DevOps process as a stage.</p><p>I am not going to explain the technical part of the GitLab CI/GitHub Actions. Consider learning more about them on the internet.</p><p>In practice, there are usually three environments that are used in developing an app: development, staging, and production. Each of them has its own functionality in software development and each of them has its own DevOps approaches.</p><h3><strong>Development</strong></h3><p>This is the place where developers do their things. Usually, they develop new features or make modifications of existing features here and hence, this place contains many under-development/unfinished features. Each of the features usually has its own Git branch and usually, the branch is used by one developer only. This is to minimize source code conflicts (Learn more about Git <a href="https://medium.com/group-a/git-tutorial-for-noob-devs-8e28dae6258c">here</a>), although special cases may occur. Hence, the development environment may have many branches. In this place, developers only run the app in their own machine or in local and only using the development server.</p><h4>Test and lint (Verify)</h4><p>Continuing the explanation above, the DevOps process that is used in the development environment aside from planning and creating/developing is <strong>just testing and linting (verifying) </strong>although this process can also be implemented locally. Today’s app framework has a built-in automated test features hence manual test can be minimized.</p><p>In local, I think the command to do the automated-testing has to be done manually in the terminal. However, linting can be automatically done while coding using good text editor apps, such as VSCode. If you implement this on the online repository, then each pushed commits in the development branches will trigger the runner to test and lint the app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DNp8asV8-65Z7hwhQHbtZw.png" /><figcaption>Local testing in my app</figcaption></figure><h3>Staging</h3><p><strong>This is the environment to merge developed features and to present those features internally</strong>. The app can only be accessed by the company members. If you are familiar to Scrum, this environment is for the app presentation during the sprint review (learn Scrum <a href="https://medium.com/group-a/agile-and-scrum-tutorial-for-noob-dev-team-d6aa313ca16b">here</a>).</p><p><strong>In this environment, the DevOps teams use all the DevOps processes except monitoring</strong>. Differ from the development environment, the staging environment runs the verifying process in the cloud (using the runner).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*7sBahM6AC6_gY93UpvL-bQ.png" /><figcaption>Verifying using the GitLab CI</figcaption></figure><p>In this environment, cloud servers are usually needed. However, it does not to be as powerful as the production environment because the staging’s purpose is just for presentation. You can even use free services. I used Heroku free service for my app’s staging environment (more on Heroku later). I am going to explaining the deployment process of the DevOps in the production section because it’s pretty much the same thing.</p><h3>Production</h3><p>This environment is the environment that is used by users and it is the most challenging environment because it uses all the DevOps processes. The difference between this environment and the staging is <strong>you need a real server in production. </strong>You can get servers from Amazon Web Services, Google Cloud Platform, DigitalOcean, or the paid version of Heroku.</p><h4>Server Scaling</h4><p>I would like to explain first the usual topography of servers/machines used in the production environment. Usually, as a start, an app has four machines for production: the app server, database server, the storage server, and the monitor server.</p><p>As the active user increases, these machines may need to be expanded to be able to handle the expanding load from users. There are two options, whether to increase the specs of the machine, from 2 CPU cores to 4 CPU cores and this is called vertical scaling. The other option is to increase the number of machines, for example, increasing the number of the app server. This is called horizontal scaling. Developers may use <a href="https://en.wikipedia.org/wiki/Load_balancing_(computing)">load balancers </a>after horizontal scaling.</p><h4>Platform as a Service (PaaS) Approach</h4><p>Nowadays, there are services where you just need to release the app and the services handle the rest of the deployment processes like Heroku or App Platform in DigitalOcean. <strong>You just need to release and it’s done! </strong>These services also enable you to scale your app in an instant, directly on their website!</p><p>These services are very easy because you do not need to have any IT Operations knowledge and you can ignore thinking about the build and configure processes, even the release process can be minimized! For example, if you are using Heroku and GitHub, you just need to connect the GitHub repository in the Heroku website and it is directly connected. However, they usually cost you more money compared to the traditional approach.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*CPX4Knc1Q_Xt05zHJjhpGQ.png" /><figcaption>Deployment to Heroku from GitLab CI</figcaption></figure><h4>Infrastructure as a Service (IaaS) / The Traditional Approach</h4><p>This approach is more tedious, but it is usually cheaper. In this approach, DevOps teams rent machine(s) with a stock OS, such as Ubuntu. Next, they first build their app (if needed) and then send the build file to the machine(s). Then, they install the app’s dependencies, add environment variables, configure the proxy server, and so on. Notice that I mention all the build, release, and configure processes of the DevOps.</p><p>Scaling using this approach is a nightmare! Imagine if you want to scale the app server from just one to five. You have to configure each server one by one and note that each system may have different configurations.</p><p>My app uses this approach and uses the free tier of AWS because we have no budget :( The free tier provides all the servers, app, database, and storage.</p><h4>Docker</h4><p>One way to tackle the traditional approach problem is by using Docker. This tool packages your application, its dependencies, and its environment variables into one image using one command. Then, you just need to install Docker in the app server and copy the image to it. Last, you just need to run the image also using one command. Docker makes the deployment much faster and easier. However, learning Docker may take time. Learn more about Docker <a href="https://medium.com/group-a/docker-in-software-development-5c436a731294">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/584/1*v1OR2nGNXmRZDpH1xgfEOA.png" /><figcaption>Docker settings for my app to build the image</figcaption></figure><p>DevOps teams can also use Docker in the runner to make the image building and image releasing automated. Just define a new stage in the YML file.</p><p>Send the image to the server using runner is usually complicated as you have to do SSH stuff. I also have trouble with how to do that. Although, you can use container registry service and then just pull the image using the Docker command, but the service costs you more.</p><p>I have a trick that I used in my other app. I cloned the source code to the app server and build the image there. Then, you can also run the image. The drawback is that this trick is less automated.</p><h4>Monitoring</h4><p>In my app, monitoring can be done by adding Prometheus feature for Django app and also Spring Boot app. Grafana can also be used as a GUI dashboard using the Prometheus data. However, I have not implemented this yet, so consider search more on the internet.</p><h3>Closing</h3><p>These are basically the processes of the whole DevOps and also the implementation in my app. I hope this helps you in developing your new software. Thank you!</p><h3>References</h3><ul><li><a href="https://www.atlassian.com/devops/what-is-devops">DevOps Principles | Atlassian</a></li><li><a href="https://aws.amazon.com/devops/what-is-devops/">What is DevOps? - DevOps Models Explained - Amazon Web Services (AWS)</a></li><li><a href="https://www.guru99.com/devops-tutorial.html">DevOps Tutorial for Beginners: Learn Now (Training Course)</a></li><li><a href="https://en.wikipedia.org/wiki/DevOps">DevOps - Wikipedia</a></li><li><a href="https://www.atlassian.com/continuous-delivery/principles/continuous-integration-vs-delivery-vs-deployment">Continuous integration vs. delivery vs. deployment | Atlassian</a></li><li><a href="https://devops.com/what-is-devops/">What is DevOps?</a></li><li><a href="https://en.wikipedia.org/wiki/DevOps">DevOps - Wikipedia</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba708ccd79d2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/group-a/how-to-release-your-app-faster-devops-ba708ccd79d2">How to release your app faster (DevOps)</a> was originally published in <a href="https://medium.com/group-a">Siprak Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Refactoring and its Implementation in ReactJS]]></title>
            <link>https://medium.com/group-a/refactoring-explanation-and-the-implementation-in-reactjs-310ecb9fa068?source=rss-f451b7ae505e------2</link>
            <guid isPermaLink="false">https://medium.com/p/310ecb9fa068</guid>
            <category><![CDATA[refactoring]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[guides-and-tutorials]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Figo Muhammad]]></dc:creator>
            <pubDate>Mon, 28 Dec 2020 14:29:32 GMT</pubDate>
            <atom:updated>2020-12-29T23:55:20.949Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iedeXlTbcJMHFhqDqIRGLQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@jefflssantos?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Jefferson Santos</a> on <a href="https://unsplash.com/s/photos/programming?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p><strong>Refactoring </strong>is one of the necessary stages in software development. If you had experienced using the <a href="https://medium.com/group-a/test-first-test-first-tdd-517bd7321705">test-driven development (TDD)</a> approach for developing your software, you might notice that it has its own refactoring phase after the green phase. Even if you are not using the TDD approach (although you should), you may still refactor your own code consciously with some refactoring knowledge or unconsciously using your “feelings” on what is right. I hope by reading this article, you can make yourself consciously refactoring by using the knowledge.</p><p>To learn more about refactoring, we have to learn about the term <strong>technical debt</strong> first. It is the main problem and purpose of why we need to refactor our code.</p><h3>Technical Debt</h3><p>Technical debt, also known as design debt or code debt, is a phrase originally coined by Ward Cunningham. He made an analogy of technical debt with the financial debt concept to explain the problem with nontechnical stakeholders at that time.</p><blockquote>If you get a loan from a bank, this allows you to make purchases faster. You pay extra for expediting the process — you don’t just pay off the principal, but also the additional interest on the loan. Needless to say, you can even rack up so much interest that the amount of interest exceeds your total income, making full repayment impossible.<br> — Refactoring Guru on Ward Cunningham’s metaphor</blockquote><p>Technical debt is any code that costs the agility of the overall code, making the code harder to be maintained in future development. The same as financial debt, it makes you achieve the goal faster at the cost of agility, just like taking a loan.</p><h4><strong>Business Pressure</strong></h4><p>Sometimes, there are business circumstances that force developers to release features with “uglier” implementation of the code, prioritizing delivery deadline over a better design implementation. Developers may take a “shortcut” to deliver it.</p><blockquote>“Well, I just need to get this done quick to meet the deadline. I’ll come back to fix it later.”<br> — Programmers</blockquote><h4>Not a mess</h4><p>Technical debt is NOT a mess. Technical debt is based on a logical decision over the project, not an irrational one. A mess is always based on unprofessionalism and lack of knowledge of writing code. It may be appropriate to have technical debt, but it also had better be clean! Even though the code is dirty with technical debt, it is made because of a logical reason, not because of the laziness of the programmer.</p><p>For example, you have to decide whether to choose solution A or B to tackle a problem. A is faster to implement but bad for future design and B is future-proof but it takes time to implement and you have a tight deadline. Even though you chose solution A, you have to make sure that the workmanship of the solution is top-notch. Otherwise, the messy code will make you confused and you will get a hard time changing the implementation to solution B later on in the future.</p><h4>Neutral</h4><p>Technical debt is not necessarily bad. Just like debt in financial analogy, it is a tool, a risky one. It becomes a bad thing if you never pay the debt.</p><h3>Refactor</h3><blockquote>“Refactoring is a disciplined technique for restructuring an existing body of code, altering its internal structure without changing its external behavior.”<br> — Martin Fowler on his website</blockquote><p>Refactoring is changing the implementation of your code without editing the feature behavior itself. It is a behind-the-stage activity. It improves the application, but it is not observable to the users.</p><p>Refactoring is done to pay off the application’s technical debt explained above. Refactoring sometimes is also done to fix messy code. Refactoring makes the application become more agile, more flexible, and easier to be maintained by developers.</p><h4>Criteria of a success refactor</h4><ol><li><em>The code should become cleaner or better.</em></li><li><em>There should be no new functionality.</em></li><li><em>It should pass all existing tests.</em></li></ol><p><a href="https://refactoring.com/catalog/">Martin Fowler’s website</a> and <a href="https://refactoring.guru/refactoring/techniques">Refactoring Guru</a> have a full list of refactoring techniques. I also made an article about <a href="https://medium.com/group-a/clean-your-code-75b5b331aed5">clean code</a> that may support refactoring knowledge. In this article, I am just going to explain a few of them, not all the techniques mentioned on those websites.</p><h3>Refactoring in ReactJS</h3><p>My friends and I are currently working on an application called <strong>Sistem Informasi Penilaian &amp; Database Praktikum</strong>. It is an information system application for a faculty at my university. This application is mainly made using ReactJS and Django. This application was already developed by my seniors and my team has a job to develop it further and that’s why a lot of refactoring was needed. I would like to use this application as an example.</p><h4>Renaming props, methods, and components</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*TichSOpvf7h8K77n5kF1hQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/419/1*dXsIjTanQb0flE0NHFr9sQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*H4vp_hyeNclsgUCzhMvdsg.png" /></figure><p>The first refactoring technique that I used is renaming things. On the first image, I renamed auth and admin to isAuthenticated and isAdmin to make the variable datatype clearer.</p><p>I changed the method’s name in the second image because the previous name is not correct (not representing the purpose of the method). The same applied for the third image.</p><h4>Using functional components over class components</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/387/1*1z6GneHdvJCGvPgSSPATdQ.png" /></figure><p>By version 18.6 of React, it is better to use a functional component than a class component. Using the same example as above, I changed the implementation of the code. I also deleted the async because I do not need anymore.</p><h4>Removing dead code</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*rzAQ7ZVq3OnfL9LoQ8YdzQ.png" /></figure><p>In my application, dead code was everywhere! There were several short and long commented codes. There were also unused components and codes. I deleted it all.</p><h4>Remove unnecessary props</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*VDmBT48OB1EUohMWn8hw2A.png" /></figure><p>Unnecessary or unused props are one of the things that have to be refactored. This thing is too easy to be forgotten. Make sure to delete these!</p><h4>Making things DRY</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q_n9VeCfmvwV30o25rSIdg.png" /></figure><p>DRY means <strong><em>Don’t Repeat Yourself</em></strong>. One of the technical debt that was inherited by previous developers is duplicate codes. I refactored the application by removing duplicate codes and ensuring that the code can be used by many other interfaces.</p><h4>Extracting Components</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*xyX9aSy08S4Jg_5KdzoPYg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*CwVPwdRs0jJuTCk--q7Gcw.png" /></figure><p>Extracting components is often used in React. Using the three rules, we can remove duplicate codes and also keep the code short in each file.</p><p><strong>Rule of Three</strong></p><ol><li><em>When you’re doing something for the first time, just get it done.</em></li><li><em>When you’re doing something similar for the second time, cringe at having to repeat but do the same thing anyway.</em></li><li><em>When you’re doing something for the third time, start refactoring.</em></li></ol><h4>Closing Statements</h4><p>Well, this is refactoring. It is a very important stage in software development. It saves developers from nightmares in the future, especially in developing applications with large features. So be sure to pay your (technical) debt!</p><p>This article is only an entry point for you to learn about refactoring. There are still lots of things to learn. You can find other articles on the internet or read books like the <em>Refactoring</em> book by Martin Fowler.</p><p>I think that is all from me. Any corrections or comments are highly appreciated.</p><p>Thank you!</p><h3>References</h3><ul><li><a href="https://refactoring.guru/refactoring/technical-debt">Technical debt</a></li><li><a href="https://www.productplan.com/glossary/technical-debt/">Technical Debt</a></li><li><a href="https://hackernoon.com/the-fallacy-of-technical-debt-202f7406337e">The Fallacy of Technical Debt | Hacker Noon</a></li><li><a href="https://sites.google.com/site/unclebobconsultingllc/a-mess-is-not-a-technical-debt">A Mess is not a Technical Debt. - Clean Coder</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=310ecb9fa068" width="1" height="1" alt=""><hr><p><a href="https://medium.com/group-a/refactoring-explanation-and-the-implementation-in-reactjs-310ecb9fa068">Refactoring and its Implementation in ReactJS</a> was originally published in <a href="https://medium.com/group-a">Siprak Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Make a Usability Test Report]]></title>
            <link>https://medium.com/group-a/how-to-make-a-usability-test-report-e4deff643a5b?source=rss-f451b7ae505e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4deff643a5b</guid>
            <dc:creator><![CDATA[Figo Muhammad]]></dc:creator>
            <pubDate>Wed, 23 Dec 2020 02:30:43 GMT</pubDate>
            <atom:updated>2020-12-23T02:51:12.517Z</atom:updated>
            <content:encoded><![CDATA[<p>Usability testing (UT) is one of the method that can be used to gather knowledge about the customers. From that event, we can identify user interface design flaws, design that the customers feels wrong. In this article, I am only going to cover how to make a UT report. The usability testing itself is already explained in <a href="https://medium.com/group-a/using-usability-testing-to-minimize-design-flaws-11a2c62fa50b">another article</a> of mine.</p><p>A UT report explains everything happened in the UT. It consists everything from the beginning to the end, from the research question to the recommendation.</p><p>I am currently developing an application with my friends called <strong>Sistem Informasi Penilaian &amp; Database Praktikum</strong>. I am going to explain what components or sections needed in writing the UT report based on the UT my team held recently. The UT report my team made is based on the template from <a href="https://www.usability.gov/how-to-and-tools/resources/templates/report-template-usability-test.html">usability.gov</a> .</p><h3>Introduction</h3><p>This section are the preface of the report. My report explains briefly about the application, the business logic, and the roles. My team also explains briefly what a UT is, the purpose, and the method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*j-IJO7L-R5513IOVdBl1xQ.png" /><figcaption>My team’s introduction</figcaption></figure><h3>Executive Summary</h3><p>You may need this section as a summary for executives, especially if you are making a UT report for a company. This is a summary of the UT for the executives only. Well, we all know that they are busy people (perhaps). Making this section helps them because reading all pages of the report takes a long time.</p><h3>Methodology</h3><p>This section are the explanation of all the methods used in holding the UT.</p><h4>Research Question</h4><p>This section just consist of one question as the main goal of the UT. This is the question that needs to be answered by holding the UT.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*f4g9eGSOxzbObdh0l6uCUg.png" /><figcaption>My team’s research question</figcaption></figure><h4>Sessions</h4><p>This section explains about the how the event/session is conducted. As I mentioned in my other article, there are three methods in holding the session: in-person, remote, and guerilla method. Each of them has its own advantages and disadvantages. This sections also explains the duration of the session and what the testers need to do in the session.</p><h4>Participants</h4><p>This section explains all the things about the testers/participants, who they are, how many they are, their roles, and so on.</p><h4>Evaluation Tasks and Scenarios</h4><p>This section is the tasks and scenarios that was tested in the UT.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*EUjuD_lhPIJUf67Yow3G8Q.png" /></figure><h3>Result</h3><p>This section tells about the result of the UT. The subsections in this section are the data you wanted to be measured that you have defined before holding the UT, such as, task success rate, elapsed time to do each task, the difficulty rate, and so on. These data measurement can be qualitative or quantitative.</p><p>You may want to use tables or graphs in this section to enhance the experience of the readers. In my report, there is also a summary of all the data.</p><h3>Recommendations</h3><p>This sections explains about the recommendations from the UT facilitators based on the data taken from the participants. You may also want to add the severity level of each recommendation.</p><h3>Conclusions</h3><p>Like a typical essay, this report also needs a conclusion to summarize all the things mentioned above.</p><h3>Attachments</h3><p>This is the section to attach several documents that support the report.</p><p>I think that is all from me. Thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4deff643a5b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/group-a/how-to-make-a-usability-test-report-e4deff643a5b">How to Make a Usability Test Report</a> was originally published in <a href="https://medium.com/group-a">Siprak Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker in Software Development]]></title>
            <link>https://medium.com/group-a/docker-in-software-development-5c436a731294?source=rss-f451b7ae505e------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c436a731294</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[servers]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Figo Muhammad]]></dc:creator>
            <pubDate>Tue, 22 Dec 2020 18:33:51 GMT</pubDate>
            <atom:updated>2020-12-29T23:55:33.441Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-5rAWUhOYosLBVUUx0WJig.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@schaffler?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">michael schaffler</a> on <a href="https://unsplash.com/s/photos/dock?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Developing software nowadays is not an easy task. Not only the developers have to deal with the coding, but they also have to deal with other stuff such as the frameworks and architectures that are interdependent on each other. These many tools make an inflexible complex system that is too difficult to be changed or distributed. This is where the Docker comes in.</p><h3>What is Docker?</h3><p>Docker is an open-source platform that enables developers and system administrators to easily create, test, and deploy applications.</p><p>In standard modular units called containers, Docker bundles an application with all the packages and dependencies, such as libraries, machine resources, code, and runtime that are required in order for the application to run into a Docker image. Then, this Docker image becomes a container at runtime. This container isolates the application from other applications and ensures that it performs uniformly despite discrepancies between stages, environments, or systems.</p><h4>Docker Container Characteristics</h4><ul><li><strong>Standard:</strong> Docker containers nowadays become an industry standard for software development so that they can be run in many places.</li><li><strong>Lightweight:</strong> Unlike virtual machines, containers share the machine’s OS system kernel and therefore do not require an OS per application. This leads to higher server efficiencies and hence reducing server renting costs.</li><li><strong>Secure:</strong> Isolation between applications makes the applications safer.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iI-W_0-KMovJMimo1lrt0w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dyHQi6Q_XdUkRZ99an68Kw.png" /><figcaption>Differences between virtual machines and containers — Images taken from <a href="https://www.docker.com/resources/what-container">Docker.com</a></figcaption></figure><h3>How to use it?</h3><h4>Install the Docker Engine</h4><p>The method of installing the Docker Engine is different in every operating system. I recommend you to follow <a href="https://docs.docker.com/engine/install/">the guide</a> made by Docker. I am going to Ubuntu 18.04.5 for this article. Keep in mind that some commands may differ if you are using other than Ubuntu 18.04.5.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*PDw9EXpiDd5TaeSwNFVHwQ.png" /></figure><p>As you can see, I have installed the Docker Engine on my PC. I ran sudo docker run hello-world and the message is shown. This means that the installation is succeeded.</p><h4>Make a Dockerfile file inside your repository</h4><p>To build the Docker image, you have to make a file name Dockerfile as the place to define the steps in building the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*07odi5AgD52mcaEbhsbfsg.png" /></figure><p>These are the content of my Dockerfile as I am currently developing a ReactJS application. The content of the Dockerfile should be adjusted to your own application.</p><p>These are several explanations of the commands above:</p><ul><li><strong>FROM</strong>: This command specifies the <a href="https://docs.docker.com/glossary/#parent_image">parent image</a> as the base of your Docker image.</li><li><strong>RUN</strong>: This command executes a command inside the parent image.</li><li><strong>WORKDIR</strong>: This command sets the working directory for any RUN, CMD, ENTRYPOINT, COPY, and ADD commands that follow this command in the Dockerfile.</li><li><strong>COPY</strong>: This command copies new files or directories from &lt;src&gt; and adds them to the filesystem of the container at the path &lt;dest&gt;.</li><li><strong>CMD</strong>: This command executes the given command whenever you run the image. So, the <strong>RUN</strong> command is executed in the building process and <strong>CMD</strong> is executed whenever you run sudo docker run command.</li></ul><p>There are other commands such as <strong>ENTRYPOINT, EXPOSE,</strong> etc. You can learn more about them on the internet.</p><h4>Build the Docker image</h4><p>We can build the Docker image using sudo docker build -t &lt;image-name&gt; command. -targument is used to enable us to fill in the image name. My image name is praktikum-frontend. The building process consists of the steps that we have defined in Dockerfile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wZblaJ0W_v9Ojojdcf8UEQ.png" /></figure><p>Next, we can check whether the image has been built using sudo docker images command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*AXqIkvA2g9rxDaq3pkHzvw.png" /></figure><p>As you can see, our new image has been created.</p><h4>Test the image</h4><p>After building the image, we can run the image using sudo docker run &lt;image-name&gt;</p><h3>Summary</h3><p>Docker is a tool that is very beneficial for software developers and system administrators. Docker makes the deployment and scaling process much faster. I recommend you to learn more about Docker and use it for your next project.</p><p>Thank you!</p><h3>References</h3><ul><li><a href="https://aws.amazon.com/docker/">What is Docker?</a></li><li><a href="https://www.docker.com/why-docker">Why Docker? | Docker</a></li><li><a href="https://www.docker.com/resources/what-container">What is a Container?</a></li><li><a href="https://docs.microsoft.com/en-us/dotnet/architecture/microservices/container-docker-introduction/docker-defined">What is Docker?</a></li><li><a href="https://medium.com/group-a/docker-3044b406ba03">Docker</a></li><li><a href="https://medium.com/group-a/docker-orchestration-7302e0f57855">Docker Orchestration</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c436a731294" width="1" height="1" alt=""><hr><p><a href="https://medium.com/group-a/docker-in-software-development-5c436a731294">Docker in Software Development</a> was originally published in <a href="https://medium.com/group-a">Siprak Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Usability Testing to Minimize Design Flaws]]></title>
            <link>https://medium.com/group-a/using-usability-testing-to-minimize-design-flaws-11a2c62fa50b?source=rss-f451b7ae505e------2</link>
            <guid isPermaLink="false">https://medium.com/p/11a2c62fa50b</guid>
            <category><![CDATA[usability-testing]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[Figo Muhammad]]></dc:creator>
            <pubDate>Thu, 03 Dec 2020 06:30:29 GMT</pubDate>
            <atom:updated>2021-01-19T10:37:24.060Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N-IOWoUrNSdGMZK6pVK9Ew.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@nordwood?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">NordWood Themes</a> on <a href="https://unsplash.com/s/photos/app?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Let’s say, you decided to make an application with your friends. You have completed all the required design steps, such as concept testing (problem validation) and making the prototype, or maybe you have built the application. Now, one of the remaining steps is to <strong>test your application or prototype for the target customers</strong>.</p><h3>Why?</h3><p>Your application or prototype is the solution to the customers’ problem that you have validated earlier in concept testing. For example, you have validated a problem that some people need to be tackled. While finding and validating the problem, you might have also identified their personalities, needs, preferences, etc. Then, you built a tool based on your knowledge, the science, and the target customers (the people are now your target customers). In the development process, you might make some features based on your assumption only. The concept testing that you have conducted earlier only produces a list of high-level features. UI styling, procedures, etc. are detailed things that developers usually assume.</p><p><strong>That’s where the problem is. Your assumptions on what is considered the right solution may not be “right” according to your customers because you and your customers have different preferences, and this is called design flaws.</strong> Remember that you make an application for the customers, not yourself. Hence, you need to test the application or the prototype to get insights on how well and easily the application or prototype works (of course based on the customers&#39; preferences).</p><h4>Objectives</h4><p>There are several objectives in usability testing:</p><ol><li>Identifying design flaws and problems by evaluating the testers&#39; results in doing the tasks, whether it passes or fails. More about “task” below.</li><li>Learning about potential customers’ preferences and behaviors by seeing the testers&#39; mental state and performance in doing the tasks.</li><li>Opening opportunities to improve the design by fulfilling the first and second points.</li></ol><h3>How?</h3><p>While writing this article, I also had held a usability testing for my application project with my friends called <strong>Sistem Informasi Penilaian &amp; Database Praktikum</strong>. I am going to use my experience in this project to explain the things below.</p><h4>Plan the event</h4><p><strong>Make research questions</strong> — Answering this question will be the main goal of the event. You can define the questions by asking yourself. Why do you want to conduct the test? What aspect(s) do you want to test? There are several examples, such as “Can users successfully order an item?” or “What kind of button that users preferred?” You can also make a hypothesis to make things clearer. Make sure that the event sticks to the questions you made.</p><p>My first usability test’s research question is “Can users understand and easily use the overall business logic?” In my case, the question is very general because I had limited time to do usability testing for the application as my team can only do the testing twice. However, it is a good practice to test a few features, but often.</p><p><strong>Decide the method of the test</strong> — There are three main methods: in-person, remote, and guerilla. <strong>In-person</strong> means conducting a face-to-face meeting. Many preferred this method because the researchers can see the body gestures of the testers. <strong>The remote method</strong> is usually conducted online. You can use several online meeting tools, such as Google Meet or Zoom. Tracking tools like heatmap can also be beneficial. This is a very convenient method and using the tester&#39;s own environment can reveal more accurate insights. However, this method restricts some insights, such as seeing the body gesture due to the limited perspective from a camera. <strong>Guerilla method</strong> means testing your design informally to passers-by or colleagues. This method has a risk of getting inaccurate data due to the unsuitable tester criteria.</p><p>I tested three testers online using Google Meet for my application. I think it was pretty convenient for us as amateurs because we do not need to have detailed data about the testers like body gestures. My friend (observer) and I (facilitator) supervised the testers one at a time.</p><h4><strong>Create the tasks</strong></h4><p>A task is a realistic activity that the testers will perform in the event. That way, you can observe the tester&#39;s behaviors and performance while doing the task. Usually, there are <strong>three to five tasks in each event</strong>. You have to be careful in making the tasks for an event because the number of tasks affects the event’s duration. Usability testing is usually held for <strong>60 to 90 minutes</strong>. You also have to prioritize tasks so that the main goal can be achieved. For example:</p><ul><li>Search the desired apartment for rent</li><li>Upload an assignment</li></ul><p><strong>Scenarios</strong> — This is another artifact that is needed to conduct the test. Whereas a task is just an imperative sentence, a scenario is a context so that the testers can feel like they are testing the application or prototype naturally, like they normally do at their home or office. The scenario of the examples above are:</p><ul><li><em>You are trying to find an apartment for rent at a cost between Rp5 Million — Rp10 Million per month in Jakarta. Try to find a suitable option on our website and tell us what you picked.</em></li><li><em>You have an assignment that needs to be submitted in the DAA course. Try to upload and submit the assignment on our website.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*SzLO0SkYWvX1T3NJcf_BGA.png" /><figcaption>My application’s UT tasks and scenarios</figcaption></figure><h4>Recruit testers</h4><p>The testers should be your customers, people that are already using the application. If the application hasn’t been deployed yet, you can work with the target customers, people who have a problem that needs to be tackled by your application.</p><p><strong>You only need five people as testers.</strong> There is <a href="https://www.nngroup.com/articles/why-you-only-need-to-test-with-5-users/">research</a> that says testing just 5 target customers can still reveal 85% of the usability problems.</p><p>Luckily, for my team, my product owner (to know more about this role, check my other <a href="https://medium.com/group-a/agile-and-scrum-tutorial-for-noob-dev-team-d6aa313ca16b">article</a>) helped my team in searching for the right testers. Hence, no additional effort is needed.</p><p>Screening questionnaires can help you find testers that match the target customers. Tools like Google Forms can be used to ask questions to the people in a convenient way. Advertising and incentives may also be necessary. The questions can varies, such as:</p><ul><li><em>What is your profession?</em></li><li><em>How old are you?</em></li><li><em>What is the highest level of education you have completed?</em></li></ul><h4>Make an agreement form</h4><p>It may also be necessary to make an agreement form for the testers about how the development team will use the data. It is a promise from the development team and an agreement of that promise from the testers. My team used a Google Form. <strong>It has the identity fields such as name, student number, so on, and agree/disagree fields about how the development team will use and distribute the data.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*4uPg0fYjf8LkUg2yu4DDRA.png" /><figcaption>My team’s agreement form</figcaption></figure><h4><strong>Facilitate the event</strong></h4><p>As a facilitator, you have to make sure that the environment is cozy enough for the testers. You also have to set up the documentation tools like notes, camera, and microphone, screen capture application, etc. Using records can help you revisit moments you forgot to write about after the event.</p><p>For my application, I used Google Meet for holding the usability testing and it has a recording feature. This is very convenient. I think other online meeting applications also have this feature and I recommend you to use this feature.</p><p>During the testing, there are some tips for the facilitator to get the most insights in the event:</p><ol><li>Use a <strong>flat tonality</strong> with the testers</li><li>Encourage testers to interact with the interface and <strong>let the testers struggle</strong>. Do not give the answers to the testers</li><li>Ask the testers to <strong>think aloud and tell you how they feel</strong> to get more insights about them</li><li><strong>Use open-ended questions</strong>. Avoid using questions like “Are you satisfied with the UI layout?” because the answer is just a simple Yes or No. Instead, change it to “How satisfied or dissatisfied are you with the UI layout?”</li><li><strong>Do not use leading questions</strong> — Example: “You are confused with the navigation, aren’t you?”</li><li><strong>Make an event script or guideline</strong> consisting of what the moderator will say during the event if needed</li><li><strong>Read more</strong> about the common pitfalls <a href="https://uxdesign.cc/five-pitfalls-to-avoid-when-writing-ux-research-questions-854b19d94f02">here</a> and other sources</li></ol><h4><strong>Measuring results</strong></h4><p>The result data is divided into two types:</p><p><strong>Quantitative</strong> — Example: Elapsed time the testers took to perform a task, The number of clicks, Success or failure rates, Cursor heat map, Number of errors, etc.</p><p><strong>Qualitative </strong>— Example: Tester’s mental state, Design preferences, The difficulty of doing tasks, etc.</p><p>Before holding the test, it is necessary to make a document for the observer to fill in while observing the testers. I do not know the term that is usually used. Hence, I will call it a result form document. My team used a simple Google Sheets to record all the data collaboratively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*VZXt7fxDCu5xjc9T1w0jPw.jpeg" /><figcaption>My team’s result form document</figcaption></figure><h4>Making the test report — all things in one document</h4><p>After gathering the data, you have to review and analyze them, maybe review the documentation, etc. and the result is the test report. The test report covers all the things you have done from the start until the end of the testing, from <strong>the research questions/goals, testers profiles, the method of screening, the method of advertising, the method of the test, the tasks, the scenarios, the scripts/questions of the moderator, the results, the bugs, and issues, and the last thing is the recommendations</strong>. You can also add a disclaimer and an appendix if needed. To ease the executives reading the information, you may want to make an executive summary.</p><p>I found this template made by <a href="https://www.usability.gov/how-to-and-tools/resources/templates/report-template-usability-test.html">usability.gov</a>. Though the format is up to you, you can use this as a reference, especially for those of you who are still new to the testing.</p><h3><strong>Closing Statements</strong></h3><p>Usability testing is a useful technique to get to know more about the target customers’ preferences and it is commonly used in the software development industry. Learning this can improve your application’s design to be more welcomed by the target customers. I recommend you guys to learn more about it in other resources to enhance your understanding because I cannot cover all the materials to keep the article short.</p><p>Note that I am still a learner of this method. Any comments and corrections are highly appreciated so that this article can be more accurate. My goal is to help people understand more about usability testing by reading this short article.</p><p>Thank you for all the authors of all the references below! Thank you guys for reading this article!</p><ul><li><a href="https://www.interaction-design.org/literature/topics/usability-testing">What is Usability Testing? - updated 2024</a></li><li><a href="https://uxdesign.cc/rapid-usability-testing-for-designers-b429a9b1e2c">Rapid usability testing for designers</a></li><li><a href="https://www.nngroup.com/articles/usability-testing-101/">Usability (User) Testing 101</a></li><li><a href="https://www.nngroup.com/articles/task-scenarios-usability-testing/">Task Scenarios for Usability Testing</a></li><li><a href="https://www.hotjar.com/usability-testing/questions/">Usability Testing Questions: Asking the Right Questions | Hotjar</a></li><li><a href="https://uxdesign.cc/five-pitfalls-to-avoid-when-writing-ux-research-questions-854b19d94f02">Five pitfalls to avoid when writing UX research questions</a></li><li><a href="https://xtensio.com/how-to-write-a-usability-testing-report/">How To Write a Usability Testing Report | Xtensio</a></li><li><a href="https://www.usability.gov/how-to-and-tools/resources/templates/report-template-usability-test.html">Report Template: Usability Test</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11a2c62fa50b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/group-a/using-usability-testing-to-minimize-design-flaws-11a2c62fa50b">Using Usability Testing to Minimize Design Flaws</a> was originally published in <a href="https://medium.com/group-a">Siprak Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Eight Components for a Successful Team]]></title>
            <link>https://medium.com/group-a/values-for-a-successful-team-60061a6480b9?source=rss-f451b7ae505e------2</link>
            <guid isPermaLink="false">https://medium.com/p/60061a6480b9</guid>
            <category><![CDATA[team]]></category>
            <category><![CDATA[success]]></category>
            <category><![CDATA[management-and-leadership]]></category>
            <category><![CDATA[teamwork]]></category>
            <category><![CDATA[human-resources]]></category>
            <dc:creator><![CDATA[Figo Muhammad]]></dc:creator>
            <pubDate>Tue, 01 Dec 2020 14:38:29 GMT</pubDate>
            <atom:updated>2020-12-22T14:14:30.009Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iaTEd8RzGX4Zl9j01OG0Lg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@quinoal?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Quino Al</a> on <a href="https://unsplash.com/s/photos/team?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>A team, by definition, is a group of individuals that are working together to achieve their goals. They can consist of just three members up to an entire army. They are dependent on each other to achieve the common goal in which they have determined. Collaboration is an essential key that cannot be erased in a team. In fact, a group of individuals can be defined as a team only if they have complementary skills and are collaborating.</p><blockquote>“A team is a group of people who are interdependent with respect to information, resources, knowledge and skills and who seek to combine their efforts to achieve a common goal.” <br>— Professor Leigh Thompson of the Kellogg School of Management</blockquote><h3>1. Responsibility</h3><p>Responsibility is the main factor in the success of the team’s common goal. Without responsibility, no team can achieve its goal. Being responsible means fulfilling our promise. Being responsible means making a real effort to complete tasks that we have accepted. Therefore, it is a must to understand the task and the goal in the first place. In an effective team, the leader must distribute the tasks clearly and each member must be responsible for their own task.</p><h3>2. Flexibility</h3><p><strong>Flexibility is the ability to make changes when, where, and how a task is going to be completed</strong>. Flexibility is the ability to readjust a goal in a short time. Flexibility is the ability to tackle unexpected tasks effectively and calmly. Flexibility corresponds to minimized bureaucracy and encourages an innovative environment.</p><p>It is a necessary component as it affects the effectiveness of a team. It can improve the satisfaction of the work, the engagement between members, and it can also reduce stress.</p><h3>3. Proficiency</h3><p>Proficiency, according to the Cambridge Dictionary, means <strong>the fact of having the skill and experience for doing something</strong>. It means sacrificing energy and willingness to excel in completing the task, beyond the minimum criteria.</p><p>Although covering all aspects is quite hard to achieve, having proficiency in every member of a team will increase the team’s effectiveness. It will lead to an excellent job in a task.</p><h3>4. Accountability</h3><p>Accountability is a term that is sometimes interchangeable with responsibility, but they are different. Responsibility means the duty to complete a task, whereas accountability means the duty to give an account or report of a task, experiences, and events. It happened after the work of the task. Responsibility can also be shared with other people in a team, whereas accountability for a specific task should be assigned to one person. It is to prevent thoughts between the assignee that his/her colleague(s) has taken charge of the task. The one who is assigned must take the potential consequences if the task was failed to be completed.</p><h3>5. Consistency</h3><p>Another important component is consistency, especially as a leader. A team needs to be consistent in performing tasks, maintaining the standards, and pursuing a sustained environment. It will help people (outside and inside the team) know what to expect. Because of that, they will make better planning because of the more accurate prediction. Hence, trust is built.</p><p>Consistency also means staying firm on track during rough times and maintain a solid vision ahead and <strong>the most important note is that to be consistent requires patience at a high level</strong>. One of the concepts that I like about consistency is the “20 Mile March” concept from the book <em>Great by Choice</em> by James C. Collins.</p><blockquote>The 20 Mile March is a concept developed in the book <em>Great by Choice.</em> Enterprises that prevail in turbulence self-impose a rigorous performance mark to hit with great consistency — like hiking across the United States by marching at least 20 miles a day, every day. The march imposes order amidst disorder, discipline amidst chaos, and consistency amidst uncertainty. The 20 Mile March works only if you actually hit your march year after year; if you set a 20 Mile March and then fail to achieve it, you may well get crushed by events.<br>- James C. Collins, on his website</blockquote><h3>6. Resolve</h3><p>Resolve means <strong>strong determination </strong>according to the Cambridge Dictionary. To become a resolute team, clarity of the team’s goal is required so that each member can do their own role in achieving that goal.</p><h3>7. Commitment</h3><p>A commitment of a team means each member understands and agrees to support the team’s decision even though he/she disagrees in the first place. Commitment is required in a team to move forward, a team where its members getting behind the team’s decision wholeheartedly.</p><p>Intrinsic ethical values relate closely to the team’s commitment. A team that displays strong fondness towards ethical values in its members shows relatively high commitment. Therefore, it is necessary to build a strong sense of ethical values, such as righteousness, honesty, justice, truth, etc. to make a team committed.</p><h3>8. Satisfaction</h3><p>Satisfaction implies how satisfied and content team members are inside their teams. Increases in satisfaction mean increases in motivation in a team. There are three types of satisfaction that are needed to be fulfilled to make an effective team: <strong>material satisfaction, environmental satisfaction, and spiritual satisfaction</strong>.</p><p>Material satisfaction means a financial reward of a member based on their performance. It is one of the boosts of the motivation of a team.</p><p>Environmental satisfaction involves the working atmosphere in which team members communicate with each other when conducting their tasks and the most important key is <strong>respecting each other, helping each other, and staying united</strong>.</p><h3>Servant Leader</h3><p>There is this theory of leadership in which the leader’s main purpose is to serve. A servant leader shares control puts the employees’ needs as the main interest and encourages individuals to grow and perform as highly as possible, whereas, in practice, the leader’s main concern is the prosperity of their company or organizations.</p><blockquote>“Do those served grow as persons? Do they, while being served, become healthier, wiser, freer, more autonomous, more likely themselves to become servants?”<br> — Robert K. Greenleaf</blockquote><p>This type of leadership may be a good choice for your team. Little experiments may be needed.</p><h3>My Team —<em> Siprak Team</em></h3><p>I am now currently working on an application called <strong>Sistem Informasi Penilaian &amp; Database Praktikum</strong> with my friends: Fransiscus, Harold, Figo, and Edina. It is an information system application for a faculty at my university, Universitas Indonesia. Our team is not developing the application from scratch, rather, we are continuing the work of previous developers (our seniors). I would love to tell my experience with this team. I hope this story can help you get more insights in the practical term.</p><blockquote><strong>One team — one spirit</strong><br> — My team’s slogan</blockquote><h4>Experiences</h4><p>My team uses a Scrum framework and Agile principles to follow as it is a good methodology in developing a highly complex application. In Scrum, we breakdown tasks every two weeks and assign a single person to each task. Hence, accountability and responsibility is greatly controlled</p><p>Using Scrum also makes the team pretty flexible in changing direction. We can decide to change direction at every two weeks (every sprint planning event). To learn more about Scrum and Agile, you can read my <a href="https://medium.com/group-a/agile-and-scrum-tutorial-for-noob-dev-team-d6aa313ca16b">other article</a> about them.</p><p>Although, at first, we lacked skills in using tools to develop the application like ReactJS, having a strong will of learning makes our skills improved greatly. Not only we are able to develop the application, but we can also identify and fix mistakes that were made by previous developers. Helping each other is also a value that my team has and this really helps us become proficient in many aspects.</p><p>Consistency in my team is also pretty decent. We can nearly finish all the tasks in every sprint (every two weeks). Although, we had a bit off guard in some sprints like missing some daily working schedules. We evaluated the mistake early. Scrum also helps us in staying consistent because there is an event after a sprint called sprint retrospective. There, we evaluate what was good and bad in our team and then find the solution to tackle bad things and keeping the good things.</p><p>All the members of my team are also pretty resolute towards the team’s goal: make the application works and also pass the course with a good grade. In addition,<strong> some of us just love developing software.</strong></p><p>Using Scrum also needs each member to be honest and open to each other and thank God, these are the values that my team has. This value helps us being committed to the team direction by being honest and open in every discussion. Although there were some disagreements, it can be resolved quickly.</p><h4>Team Capacity Building</h4><p>Besides the primary eight components needed in a team, I think openness, as I mentioned earlier, is also needed to make an effective team. this component and the other eight components build trust in each other. In my hometown, there is this proverb <strong>“Tak kenal maka tak sayang” </strong>or in English, <strong>“Do not know, then do not love.”</strong> It means that getting to know each other is needed to build love in the team.</p><p>Although we have known each other for 2.5 years because we attended the same classes every semester, we still held a team-building event in order to make us more closer. Because of the Covid-19 situation, we could only hold it online. We played a game called <a href="https://skribbl.io/">skribbl.io</a> where someone draws a thing and others guess what the drawing is. This game made some laugh in the middle of stressful times. It helped us become more open with each other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8COcefg7VAeOOXx_GfuTkA.png" /><figcaption>Team Siprak playing skribbl.io</figcaption></figure><blockquote>“Tak kenal maka tak sayang.”<br>“<strong>Do not know, then do not love.”</strong></blockquote><h3>Conclusion</h3><p>A team must have these <strong>eight plus one components </strong>to be effective and efficient in achieving its goal and. Although being perfect is a difficult task, I encourage you to improve your team consistently because <strong>small acts will lead to a big act</strong>. I hope this article helps you all. Any feedback and comments are highly appreciated. I would like to say thank you to all the authors of the references below. Bye!</p><h3>References</h3><ol><li>Thompson, Leigh (2008). <em>Making the team: a guide for managers</em> (3rd ed.). Pearson/Prentice Hall. ISBN 9780131861350.</li><li>Sage, Andrew P.; Rouse, William B. (eds.). <em>Handbook of Systems Engineering and Management</em>. Wiley series in systems engineering and management (2 ed.). Hoboken, New Jersey: John Wiley &amp; Sons. p. 347. ISBN 9780470083536.</li><li>Abbasi, Abdus &amp; Hameed, Imran &amp; Bibi, Amna. (2010). Team Management: The Islamic Paradigm.</li><li><a href="https://www.terrapinadventures.com/blog/what-makes-a-good-team-part-one-flexibility/">https://www.terrapinadventures.com/blog/what-makes-a-good-team-part-one-flexibility/</a></li><li><a href="https://www.mindtools.com/pages/article/flexibility-at-work.htm">https://www.mindtools.com/pages/article/flexibility-at-work.htm</a></li><li><a href="https://www.yourtimetogrow.com/why-consistency-matters-in-leadership/">https://www.yourtimetogrow.com/why-consistency-matters-in-leadership/</a></li><li><a href="https://sprigghr.com/blog/hr-professionals/responsibility-vs-accountability-whats-the-difference/">https://sprigghr.com/blog/hr-professionals/responsibility-vs-accountability-whats-the-difference/</a></li><li><a href="https://ardencoaching.com/essentials-of-team-performance-commitment/">https://ardencoaching.com/essentials-of-team-performance-commitment/</a></li><li><a href="https://en.wikipedia.org/wiki/Servant_leadership">https://en.wikipedia.org/wiki/Servant_leadership</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60061a6480b9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/group-a/values-for-a-successful-team-60061a6480b9">Eight Components for a Successful Team</a> was originally published in <a href="https://medium.com/group-a">Siprak Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Test first, test first!” (TDD)]]></title>
            <link>https://medium.com/group-a/test-first-test-first-tdd-517bd7321705?source=rss-f451b7ae505e------2</link>
            <guid isPermaLink="false">https://medium.com/p/517bd7321705</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[guides-and-tutorials]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[tdd]]></category>
            <dc:creator><![CDATA[Figo Muhammad]]></dc:creator>
            <pubDate>Thu, 19 Nov 2020 09:59:40 GMT</pubDate>
            <atom:updated>2020-12-03T12:04:31.522Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D1_wN2vPBxT2WPAj9ZIo0g.jpeg" /><figcaption>Max Duzij — Unsplash</figcaption></figure><p><strong>Test-driven development (TDD)</strong> is a software development process or life cycle that is begun by converting the software requirements, a new feature request or change request of the existing feature, into test cases before writing the code of the requirements. It is a reversed process of the traditional development where developers write the code first and then write the tests that fit the written code. In TDD, developers make failing tests and then write code to make them pass.</p><h3>Why TDD?</h3><blockquote>Ultimately, programming is hard. Often, we are smart, so we succeed. <strong>TDD is there to help us out when we’re not so smart. </strong>Kent Beck (who basically invented TDD) uses the metaphor of lifting a bucket of water out of a well with a rope: when the well isn’t too deep, and the bucket isn’t very full, it’s easy. And even lifting a full bucket is pretty easy at first. But after a while, you’re going to get tired. TDD is like having a ratchet that lets you save your progress, take a break, and make sure you never slip backwards. That way you don’t have to be smart all the time.</blockquote><blockquote>— Harry Percival on Test-Driven Development with Python Book</blockquote><p>TDD helps developers to work toward a goal which are the requirements that have been translated into tests. It helps to motivate the team. Setting a goal also makes the team more focused. Hence, it protects the team from derailing into developing less prioritized work. TDD also helps to increase the coverage percentage, a percentage that determines how many lines the code has been covered with the tests.</p><h3>How to do TDD?</h3><p>While making this article, my team and I currently working on an application called <strong>Sistem Informasi Penilaian &amp; Evaluasi Praktikum</strong>. I will use this as an example for explaining the TDD below.</p><p>There are the basic laws that must be followed to excel using TDD:</p><ol><li><strong>You can’t write any production code until you have first written a failing unit test.</strong></li><li><strong>You can’t write more of a unit test than is sufficient to fail, and not compiling is failing.</strong></li><li><strong>You can’t write more production code than is sufficient to pass the currently failing unit test.</strong></li></ol><h4>TDD Cycle</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*IlPpwJObUWg1sbGO96jmew.png" /><figcaption>Source: <a href="https://cheesecakelabs.com/blog/tdd-mobile-dev-matter-timing/">https://cheesecakelabs.com/blog/tdd-mobile-dev-matter-timing/</a></figcaption></figure><h4>Red</h4><p>This is the initial point of the TDD. Developers convert the software requirements into failing tests. Software requirements can be in any form, an acceptance criteria list, a mock-up, or else. After converting to tests, make sure that the tests are failing by running the test command as there is no implementation of the code yet. I am using ReactJS as the framework of my application. Hence, I use npm test .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nY5eRiM0SnZOewaUJkE6BA.png" /><figcaption>My acceptance criteria</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*ap4vIafGclHVm3sQ0Out7A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uDzpQ8C_cnOveR8EwiKX-A.png" /><figcaption>My tests and mockup</figcaption></figure><h4>Green</h4><p>This next phase is the development phase. The goal of this phase is to make all the tests pass. Developers should minimize writing a code that does not contribute to making the tests pass. They must be focused, no derailing into other less prioritized work. <strong>They should only write sufficient code</strong>.</p><p>Developers move to the next phase if all the tests made in the Red phase have passed. If some tests fail, they have to stay in this phase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*pP4CFRKWnrC8HQ7s3ZRVmQ.png" /><figcaption>Example in my project — all the green commit tests have passed.</figcaption></figure><h4>Refactor</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u3dujpEnufi324TsCF6OJA.png" /><figcaption>By Xarawn — Own work, CC BY-SA 4.0, <a href="https://commons.wikimedia.org/w/index.php?curid=44782343">https://commons.wikimedia.org/w/index.php?curid=44782343</a></figcaption></figure><p>This phase is all about cleaning the code. Developers clean the code to make it easily understandable, adaptive to change, and also more time and space-efficient. In this phase, developers must frequently run the tests after refactoring to check the integrity of the code and they have to fix the code or tests until all tests are passed.</p><p>I made an article on how to clean codes in the link below.</p><p><a href="https://medium.com/group-a/clean-your-code-75b5b331aed5">Clean your code!</a></p><h4>Additional Workflow</h4><p>In my team’s workflow, we add a tag at the beginning every commit message in Git:</p><ol><li><strong>“[Red]”</strong> in every “Red” commits,</li><li><strong>“[Green]”</strong> in every “Green” commits,</li><li>and <strong>“[Refactor]”</strong> in every “Refactor” commits.</li></ol><p>This helps us to identify in what phase is each commit. Therefore, we can easily roll back to a certain commit if there is a problem.</p><h3>Frontend vs. Backend Testing</h3><p>What to test is different for the backend and frontend application. <strong>Frontend testing</strong> focuses more on the user interface (UI) or the presentation layer, e.g. ReactJS. It tests the existence of the UI and its functionality (the event handlers). For example, it tests whether a page has correct components and also tests the functionality of an input field, a button, an image, etc. The tests are often the direct translation of the mockup. Hence, the tester must know the business logic of the application in order to make the tests. Frontend testing does not deal with the database nor use the SQL queries.</p><p><strong>Backend testing</strong> performs in the application, e.g. Django, and the database layer, e.g. PostgreSQL. It uses the data stored in the database while performing the test. Backend testing is important to check data loss, data corruption, deadlock, etc. Sometimes, the backend testing also has to deal with business logic that is located in the application layer. Backend testing does not deal with the UI as the frontend testing does. Therefore, the tester must have the knowledge of databases and some algorithms for the business logic in the application layer.</p><h3>Summary</h3><p>Test-driven development or TDD is a reversed development process that can benefit developers in the long run. It has three phases:</p><ol><li><strong>Red </strong>— make failing tests from the software requirement,</li><li><strong>Green </strong>— develop the code to pass all the tests,</li><li>and <strong>Refactor </strong>—make the written code more readable, understandable, and more efficient.</li></ol><p>I think that is all from me. Any suggestions or comments are highly appreciated. They help this article to be more helpful to others, so please let me know. <strong>Thank you!</strong></p><h3>References</h3><p>Percival, Harry. Test-Driven Development with Python, O’Reilly, June 2014.</p><ul><li><a href="https://www.guru99.com/test-driven-development.html">What is Test Driven Development (TDD)? Example</a></li><li><a href="https://developer.ibm.com/devpractices/software-development/articles/5-steps-of-test-driven-development/">5 steps of test-driven development</a></li><li><a href="https://dev.to/christopherkade/introduction-to-front-end-unit-testing-510n">Introduction to Front-End unit testing</a></li><li><a href="https://medium.com/@amaliadmyt/frontend-testing-vs-backend-testing-529d6a940835">Frontend Testing vs Backend Testing</a></li><li><a href="https://www.guru99.com/frontend-testing-vs-backend-testing.html">Frontend Testing Vs. Backend Testing: What&#39;s the Difference?</a></li><li><a href="https://www.tutorialspoint.com/difference-between-frontend-testing-and-backend-testing">Difference between Frontend Testing and Backend Testing</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=517bd7321705" width="1" height="1" alt=""><hr><p><a href="https://medium.com/group-a/test-first-test-first-tdd-517bd7321705">“Test first, test first!” (TDD)</a> was originally published in <a href="https://medium.com/group-a">Siprak Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Clean your code!]]></title>
            <link>https://medium.com/group-a/clean-your-code-75b5b331aed5?source=rss-f451b7ae505e------2</link>
            <guid isPermaLink="false">https://medium.com/p/75b5b331aed5</guid>
            <category><![CDATA[oop]]></category>
            <category><![CDATA[guides-and-tutorials]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[clean-code]]></category>
            <dc:creator><![CDATA[Figo Muhammad]]></dc:creator>
            <pubDate>Tue, 17 Nov 2020 23:12:11 GMT</pubDate>
            <atom:updated>2020-11-18T05:10:55.542Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*la6c-wr0NS9F6fpPB5Q7qA.jpeg" /></figure><h3>What does the title mean?</h3><p>The word <em>clean</em>, according to Merriam-Webster means, to rid of dirt, impurities, or extraneous matter or to rid of corruption. Then, what does code cleaning means? <strong>To clean our code means to get rid of impurities, “dirt”, or corruption from our code</strong>.</p><p>There are actually several terms as the alternatives of impurities which are <strong>code smells</strong>, <strong>bad codes, dirty codes</strong>, etc. In this article, I will stick with the term <strong>dirty codes</strong>, but do not be confused if you found other terms. It usually means the same things.</p><blockquote>“Clean code is code that has been taken care of. Someone has taken the time to keep it simple and orderly. They have paid appropriate attention to details. They have cared.”</blockquote><blockquote>— Robert C. Martin</blockquote><h3>What are those <strong>dirty codes</strong>?</h3><p>First, dirty codes are <strong>codes that are hardly understood</strong>. A code is considered dirty if it satisfies one of the following statements:</p><ol><li>The execution flow or how different objects collaborate is hardly understood.</li><li>The role and responsibility of the class(es) are hardly understood.</li><li>The purpose of the method(s) is hardly understood.</li><li>The purpose of the variable(s) is hardly understood.</li><li>The purpose of the expression(s) is hardly understood.</li><li>And other statements that make the code hardly understood.</li></ol><p>Second, dirty codes are <strong>codes that are nonadaptive to changes</strong>. A code is considered dirty if it satisfies one of the following statements:</p><ol><li>It has duplication of codes.</li><li>Classes and methods have more than one responsibility.</li><li>Classes and methods are tightly coupled and low cohesion.</li><li>It has an inefficient number of classes and methods.</li><li>It has no tests, or</li><li>The tests are hardly understood and hard to change.</li></ol><h3>Why do we have to clean our code?</h3><p>Making the code easily understood by other people. Most of the time, developers read to understand the existing code and then write their improvements. Hence, the code easily understood may help them to understand it easily and may increase the speed of development.</p><p>It will also help you to understand your own code easily. Commonly, developers develop many applications at once. Hence, they may forget how some of what they have written and have to reread them.</p><blockquote>“If you want your code to be easy to write, make it easy to read.”</blockquote><blockquote>— Robert C. Martin</blockquote><h3>Principles for a clean code</h3><p>I have this project that I am currently developing called <strong>Sistem Informasi Penilaian &amp; Database Praktikum</strong>. The project uses Django (Python) and ReactJS (JavaScript) as the main frameworks. I am going to use that project as an example of the principles below.</p><h4>Proper Naming</h4><p><strong>The names of entities (classes, methods, variables, etc.) should be descriptive and meaningful.</strong> The name should represent the usage or purpose of the entity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*rlanlb_sg4Ly_0d2peo7ww.png" /></figure><p><strong>The names of entities (classes, methods, variables, etc.) should be searchable and unambiguous. </strong>The name should be specific. For example, naming a variable <em>button </em>is a bad one because there may be many other variables named <em>button</em> in that code. Change it to <em>loginButton, etc</em>.</p><p><strong>Replace magic numbers with named constants</strong>. For example, in a method that returns the value of the area of a circle. the π (pi) value should be defined in a variable named PI_VALUE at the start of the method and the next lines should use that variable instead of 3.14.</p><p><strong>Class Names</strong> — Name of classes and object should be a noun, such as Administrator, Role, Notification, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*l6s0YY92qeXBhLTfByYADg.png" /><figcaption>Django Models</figcaption></figure><p><strong>Method Names — </strong>Name of methods should be a verb handleClick, validateField, fetchData, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/287/1*kL8gRc3iHM9I1KwhWl4WCw.png" /></figure><h4>Proper Methods</h4><p>In a clean code, a method should be/have:</p><ol><li>Small,</li><li>Only does one thing or responsibility (Single-responsibility principle),</li><li>Avoiding using the flag parameter, having a boolean type parameter,</li><li>Not returning null,</li><li>Few parameters (preferred).</li></ol><h4>Commenting</h4><p><strong>A code should be self-explanatory without the help of comments</strong>. Although, you can still use comments for things, such as an explanation of intent, clarification of code, and warning of consequences.</p><p>There are five things we have to do to achieve a clean code in commenting:</p><ol><li><strong>Don’t be redundant</strong></li><li><strong>Don’t add obvious noise</strong></li><li><strong>Don’t use closing brace comments</strong></li><li><strong>Don’t comment out code</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*pd8NSgfL3e6dTSutwKyb8w.png" /><figcaption>Bad comments</figcaption></figure><h4>Source Code Structure</h4><ol><li>Every line should be short.</li><li>Related code should be together and blank line(s) is/are used to separate weakly related code.</li><li>Variables are declared close to their usage.</li><li>Each method should be separated vertically.</li><li>Dependent and similar methods should be close and the if a function calls another function, the caller should be on top of the callee.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/447/1*41wMA9K_b0fitoIdvU-ZTg.png" /></figure><h4>Don’t Repeat Yourself (DRY)</h4><p>DRY means avoid duplication anywhere in our code. We should have not the same piece of code in different places. Using this principle improves the code’s adaptability to changes. If changes are needed, we can just change it in one place, rather than change it in every piece of the code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*Z57X_V8ImbNO3mGhF0wiFw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*Ip9YsBIKM9gNmaVkyM99Fg.png" /><figcaption>To change the entire RoleButton, I just need to change at one location (left picture).</figcaption></figure><h4>SOLID</h4><p>SOLID is an acronym. It is the core principle of Object-Oriented Programming. S stands for <strong>Single-responsibility principle</strong>. O stands for <strong>Open–closed principle</strong>. L stands for the <strong>Liskov substitution principle</strong>. I stands for <strong>Interface segregation principle</strong>. D stands for <strong>Dependency inversion principle</strong>. I am not going to explain it here to keep the length of this article short.</p><h4>Design Patterns</h4><p>Design Pattern is a layout or scheme of entities (class, methods, etc.) that are established to solve a reoccurring problem in object-oriented programming. <strong>It is a reusable solution for a specific problem</strong>. Design patterns are classified to four: creational patterns, structural patterns, behavioural patterns, and concurrency patterns.</p><p>Refactoring Guru has provided us with explanations of design pattern and the code examples in many languages. You can check it out in the link below.</p><p><a href="https://refactoring.guru/design-patterns">Design Patterns</a></p><h4>Tests</h4><p>Clean code should have tests that follow the FIRST principles.</p><ol><li><strong>Fast </strong>— It should be run quickly.</li><li><strong>Independent </strong>— No dependencies between tests</li><li><strong>Repeatable </strong>— Tests should be able to be run in any environment and computers.</li><li><strong>Self-Validating</strong> — Tests should automatically validate itself whether they pass or fail. You should not need to check manually.</li><li><strong>Timely </strong>— Tests need to be written in a certain time in the development cycle. in TDD, developers write the tests first before developing the application.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*Lm58Z32Hw5sF3BNGrd1C5A.png" /></figure><h3>Are we done?</h3><p><strong>No!</strong> This is just a summary of the clean code topic and it does not cover everything about the topic. Most of this information is gotten from articles that summarized a book called <a href="https://www.goodreads.com/book/show/3735293-clean-code"><strong>Clean Code by Robert Cecil Martin</strong></a>. Many developers recommend that book as it is considered as the main resource to learn about the Clean Code topic. Read it!</p><h3>References</h3><p><a href="https://www.goodreads.com/book/show/3735293-clean-code">Clean Code by Robert C. Martin</a></p><p><a href="https://gist.github.com/wojteklu/73c6914cc446146b8b533c0988cf8d29">https://gist.github.com/wojteklu/73c6914cc446146b8b533c0988cf8d29</a></p><ul><li><a href="https://medium.com/@muhammadardivan/mengenal-clean-code-lebih-dekat-7d670413084b">Mengenal Clean Code Lebih Dekat</a></li><li><a href="https://blog.gojekengineering.com/the-basics-of-writing-clean-code-39ed770b626d">The basics of writing Clean Code</a></li><li><a href="https://medium.com/mindorks/how-to-write-clean-code-lessons-learnt-from-the-clean-code-robert-c-martin-9ffc7aef870c">How to write clean code? Lessons learnt from “The Clean Code” — Robert C. Martin</a></li><li><a href="https://medium.com/group-a/clean-code-makes-a-green-code-7d97bf6787eb">Clean Code Makes a Green Code</a></li><li><a href="https://medium.com/@tasdikrahman/f-i-r-s-t-principles-of-testing-1a497acda8d6">F.I.R.S.T principles of testing</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75b5b331aed5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/group-a/clean-your-code-75b5b331aed5">Clean your code!</a> was originally published in <a href="https://medium.com/group-a">Siprak Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agile and Scrum Tutorial for Noob Dev Teams]]></title>
            <link>https://medium.com/group-a/agile-and-scrum-tutorial-for-noob-dev-team-d6aa313ca16b?source=rss-f451b7ae505e------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6aa313ca16b</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[scrum]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[agile]]></category>
            <dc:creator><![CDATA[Figo Muhammad]]></dc:creator>
            <pubDate>Thu, 22 Oct 2020 15:14:57 GMT</pubDate>
            <atom:updated>2020-12-28T09:03:36.152Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nPRgTP9R7gD-M0Cy1hIAjw.jpeg" /></figure><p>You are new in the software development world. You already know about developing applications (apps) on your own and now you are trying to develop a new app, but you know you cannot do that by yourself, maybe due to the big scale of the project or you don’t have some knowledge needed to develop this new app. You might have started to gather your classmates or colleagues that wanted to help and have made a team.</p><p>Then, you might think about what approach you might use to complete your goal of making a working app and might come up with five steps of the development or something similar:</p><ol><li>Gathering requirements from the customer</li><li>Planning the design, such as the diagrams</li><li>Implement or develop the app</li><li>Validate the implementation matches the requirements</li><li>Maintenance</li></ol><p>Well, <strong>that is the Waterfall model or paradigm</strong>. It is a pretty common paradigm in the industry.</p><p>Using the Waterfall paradigm will raise a new problem if we try to develop the app for a long period of time, months, a year, or more. The launched app may not fit in the market because the paradigm only gathers requirements at the beginning of the development. The market or the customer’s needs may change during the development of the app. To tackle this problem, Agile appears as a solution.</p><h3>What is Agile?</h3><p>Agile is not just a user story on the sticky notes. Agile is not just a daily standup meeting. Agile is not a methodology, nor a framework.</p><blockquote><strong>Agile is a set of values and principles.</strong></blockquote><p>While some several tools and activities might be used in an Agile team, such as user stories on sticky notes, boards, etc. <strong>The team is said Agile only if it follows the Agile values and principles</strong>.</p><h4>Values/Manifesto</h4><ol><li><strong>Individuals and interactions</strong> over processes and tools</li><li><strong>Working software</strong> over comprehensive documentation</li><li><strong>Customer collaboration</strong> over contract negotiation</li><li><strong>Responding to change</strong> over following a plan</li></ol><blockquote>“That is, while there is value in the items on the right, we value the items on the left more”, said the makers of Agile.</blockquote><h4>The Twelve Principles</h4><ol><li>Our highest priority is to satisfy the customer through early and continuous delivery of valuable software.</li><li>Welcome changing requirements, even late in development. Agile processes harness change for the customer’s competitive advantage.</li><li>Deliver working software frequently, from a couple of weeks to a couple of months, with a preference to the shorter timescale.</li><li>Business people and developers must work together daily throughout the project.</li><li>Build projects around motivated individuals. Give them the environment and support they need, and trust them to get the job done.</li><li>The most efficient and effective method of conveying information to and within a development team is face-to-face conversation.</li><li>Working software is the primary measure of progress.</li><li>Agile processes promote sustainable development. The sponsors, developers, and users should be able to maintain a constant pace indefinitely.</li><li>Continuous attention to technical excellence and good design enhances agility.</li><li>Simplicity — the art of maximizing the amount of work not done — is essential.</li><li>The best architectures, requirements, and designs emerge from self-organizing teams.</li><li>At regular intervals, the team reflects on how to become more effective, then tunes and adjusts its behavior accordingly.</li></ol><p>These are the values and principles of Agile. There are many tools and frameworks to follow the values and principles of Agile in a team. The most common frameworks are Scrum and Kanban. <strong>Note that the tools that are used by a team are flexible, as long as, the team follows those values and principles of Agile, then the team is Agile</strong>.</p><p>I have this running project of software development that is currently trying to follow Agile values and principles and it has been running for three weeks. My team uses Scrum and I think enables us to follow all the values, although, in reality, my team has to improve more on the second and third values. For the principles, many improvements are needed on the fourth and seventh.</p><p>All the values and principles are cited from this website. Feel free to learn more about it on the link below! There is also an article from Atlassian that may help you learn more about Agile.</p><ul><li><a href="https://agilemanifesto.org/">Manifesto for Agile Software Development</a></li><li><a href="https://www.atlassian.com/agile">What is Agile? | Atlassian</a></li><li><a href="https://www.atlassian.com/agile/manifesto">Agile Manifesto for Software Development | Atlassian</a></li></ul><h3>Scrum</h3><p>As I mentioned earlier, the most common frameworks in the most common frameworks are Scrum and Kanban. If you are interested more in Kanban, I recommend reading about it from the Atlassian website: <a href="https://www.atlassian.com/agile/kanban">https://www.atlassian.com/agile/kanban</a>.</p><p>Scrum is a framework for developing and sustaining complex products. Scrum has actually been developed earlier than Agile. Scrum enables us to follow several values and principles of Agile if the team successfully applying Scrum. It derives the theory of Agile values and principles into a practice that we can follow, from meetings, tools, and roles.</p><p>It is an iterative framework for developing, delivering, and sustaining complex products. Iterative means that the framework has a repetition of activities, a cycle. It is said that Scrum can also be used for other kinds of teamwork, other than software development. That is why Scrum is very popular.</p><h4>Sprint</h4><p>Scrum is an iterative framework and uses the so-called <strong>sprint cycle</strong> which consists of a series of events:</p><ol><li><strong>Sprint Planning</strong></li><li><strong>Daily Scrum</strong></li><li><strong>Sprint Review</strong></li><li><strong>Sprint Retrospective</strong> and goes back to the first point.</li></ol><p>If a team has performed that series of events, the team has performed a sprint. My team often uses the term sprint to mention a single iteration. There is a first sprint, second sprint, third sprint, and so on.</p><p><strong>The length of a sprint is flexible, although it must be in a short period</strong>. My team has a sprint length of two weeks and I actually have another project that uses the length of one month. It is really flexible, depends on the number of hours the team wants to put into the development.</p><h3>Roles</h3><p>All the roles that are going to be mentioned below are not static. A person can have many roles in a team or different teams.</p><h4>Product Owner</h4><p>This role is responsible for delivering the most value to the users. A product owner has to understand the users’ needs while still balancing other stakeholders’ needs. A product owner must sort all work items based on the business value considering all the inputs and other factors, more on this later. Then, those responsibilities are poured into a single document/artifact called a product backlog.</p><h4>Scrum Master</h4><p>A scrum master is responsible for creating a scrum environment and ensuring the scrum is maintained and done well. A scrum master is also a servant-leader type of leadership that supports all the members of the team. A scrum master helps the product owner understand and communicate the backlog better. For the development team, a scrum master helps the team focus on the outcome and self-organize.</p><h4>Development Team</h4><p>This is the team that does the work. It doesn’t only consist of engineers, but others like writers or designers can be in this team.</p><h3>Events</h3><p>In each event, there are tools to help each event’s goal. My team and other developers usually call it <strong>artifacts</strong>.</p><h4>Sprint Planning</h4><p>Before this event, <strong>the product owner has to define a sprint goal based on the value that he/she seeks considering all feedback from other stakeholders, lessons learned in the previous sprint, and the vision of the product. The product owner also has to define several potential work items that can contribute to the goal.</strong> The product owner also has to review the existing work items and readjust it if needed. In Scrum, these potential work items are written in an artifact called <strong>a product backlog</strong>. This artifact functions as a connection between the product owner and the development team and the product owner have to make sure that every stakeholder can access it anytime.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VPpiM8-vtbc-VLYN3ffBag.png" /><figcaption>My project’s product backlog</figcaption></figure><p>A product backlog consists of product backlog items or PBI that define the work items. You can make any types of PBI: user stories, bugs, design changes, technical stuff/chores, or anything. The product owner also has to sort the PBIs based on each business value.</p><p>Google Sheets is the most simple tool that can be used to make the product backlog. However, you may find trouble in sorting the PBIs. There are alternatives like Trello and others that come with their own advantages and disadvantages.</p><p>There is a special template called the Connextra template for the user story type of the PBI that is used by my project team: “As &lt;<strong><em>user</em></strong>&gt;, I want to &lt;<strong><em>activity</em></strong>&gt; so that &lt;<strong><em>goal</em></strong>&gt;”. It helps us in defining the features that are needed by the users to be more clear.</p><p>You may want to define acceptance criteria(s) for each PBI for the development team to make it clearer for the development team.</p><p>Next, at the sprint planning meeting, the product owners and the development team discuss what PBI(s) that will be taken in the current sprint. The development team “pulls” the PBI(s) based on their velocity of the development and put it/them in another backlog called <strong>Sprint Backlog</strong>. This backlog is a simple container. In my project, we just highlighted the pulled PBIs with color on their IDs on the product backlog. <strong>Note that the meeting’s output is a negotiation of the product owner and the development team. Nobody has to force each other.</strong></p><p>After selecting PBIs, my team usually break each PBI down into <strong>tasks. </strong>Each of them defines what each member must do to help the team completing the PBI. <strong>A single task can usually be done in total work hours in the gap of two daily meetings</strong>. For example, in my project, we hold a daily meeting twice a week, Monday and Thursday. We define a single task to be a five-hour length. If your workhour are 8 am to 5 pm and you want to hold a daily meeting every day, then a single task should have a length of more or less seven hours.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zzkTH04xJ1Y5hhP4AuzzjQ.png" /><figcaption>My project uses the board feature in the GitLab to manage tasks.</figcaption></figure><h4>Daily Scrum</h4><p>This meeting is the most frequently performed event in a sprint. <strong>The goal of this event is held is to enable members of the team to discuss progress toward the goal.</strong> The daily scrum is short, a 15-minute length max. As I said earlier, the daily scrum can be held every day or less, it depends. The team should evaluate their daily meeting in the sprint retrospective to get the most effective amount of daily meetings in a week, more on this later. Its method is also unique to every team.</p><h4>Sprint Review</h4><p>It is said that “Product Review” is a better name than “Sprint Review”. In this meeting, members demonstrate the implemented features of the app in the sprint. It is usually held for thirty minutes to one hour in length. <strong>The goal of this meeting is to get feedback from other stakeholders.</strong> It is also encouraged to celebrate the hard work the team has done in the sprint.</p><p>Speaking of done, a team must have a clear definition of done, how a PBI can be defined as done. Making a “<strong><em>definition of done”</em></strong> document can help to make sure each member is on the same page when someone says “done”. It can contain the done definition of code review, testing, deployment, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*0gBsqEMbtu9VaGRANvgQBQ.png" /><figcaption>Definition of Done of my project</figcaption></figure><p>Making acceptance criteria as I mentioned earlier in the sprint planning section can also help to define what “done” means in each PBI.</p><h4>Sprint Retrospective</h4><p>This is the final event of a sprint where the team:</p><ol><li>Inspect how the last sprint has been done, the tools, the relationship, etc.</li><li>Identify what went well and what needs to be improved</li><li>Create a plan for the improvements that are going to be implemented in the next sprint.</li></ol><p>The Sprint Retrospective is usually 1.5–3 hours. This is one of the key elements of Scrum. This event, if done appropriately, will improve the speed of the development and the quality of the product.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rG3tL7vBwFSvUwyTgAIKEA.png" /></figure><p>My team uses <a href="https://metroretro.io/">https://metroretro.io/</a> in this event as the tool. My team uses the Good-Bad-Start-Stop board. It helps us define what went wrong and what went right. It also helps us define the improvements that can be made in the next sprint. The steps of using the board are:</p><ol><li>Make sure all the members hide their sticky notes</li><li>Set a timer, usually 5 minutes</li><li>Each member fills the Good and Bad sections until the time runs out.</li><li>Then, All members show the sticky notes.</li><li>Scrum master navigates to each sticky note and ask for an explanation from the member who wrote it if needed, Start section first and then Stop.</li><li>Do step 1–5 for the Start and Stop sections</li><li>Scrum master makes a summary of the improvements that are going to be implemented in the next sprint in the Actions section.</li></ol><p>I encouraged you guys to learn more about Scrum in detail in the links below. This article is just a simple version of the guide.</p><ul><li><a href="https://www.atlassian.com/agile/scrum">What is Scrum? [+ How to Start] | Atlassian</a></li><li><a href="https://www.scrumguides.org/">Home | Scrum Guides</a></li></ul><h3>Summary</h3><p>Agile is not a methodology or a way to develop software. It is a set of values and principles. To follow the values and principles of Agile, a team can use various tools and frameworks. Scrum and Kanban are the most common framework that is used in the industry nowadays. You can experiment and try new things because every team has its own unique advantages and disadvantages.</p><p>I would like to thank Atlassian for explaining Agile and Scrum in their article. It helps me a lot in understanding those topics and writing this short tutorial.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6aa313ca16b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/group-a/agile-and-scrum-tutorial-for-noob-dev-team-d6aa313ca16b">Agile and Scrum Tutorial for Noob Dev Teams</a> was originally published in <a href="https://medium.com/group-a">Siprak Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git Tutorial for Noob Devs]]></title>
            <link>https://medium.com/group-a/git-tutorial-for-noob-devs-8e28dae6258c?source=rss-f451b7ae505e------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e28dae6258c</guid>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[gitflow]]></category>
            <dc:creator><![CDATA[Figo Muhammad]]></dc:creator>
            <pubDate>Wed, 21 Oct 2020 04:35:30 GMT</pubDate>
            <atom:updated>2020-11-16T09:22:43.839Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gtPvdSw2gXyoEbW_iGNumQ.jpeg" /></figure><p>For those who are diving into the computer science or software engineering world, you may be asked by your teacher, classmates, or colleagues to use Git to help the development of your new application, especially if you are working in a team. As a noob who is reading this article, you must haven’t understood Git at all! That’s why you are here, aren’t you?</p><h3>What is Git?</h3><blockquote>Git is a free and open-source <strong>distributed version control system</strong> designed to handle everything from small to very large projects with speed and efficiency.</blockquote><p>This is the definition that is written on the official website of Git. This sentence is a simplified definition and I think it needs more elaboration to help you understand it better.</p><h4>Version Control System</h4><p>Imagine you were developing an application! You code for some time and it finally finished (version 1). Then, you wanted to share the application with your friends and colleagues to validate the idea and get some things that are not suitable for them. After getting those feedbacks, you revised the application and you got yourself version 2. Next, you deployed the application to the public and the users now wanted even more features and adjustments. You now had to develop version 3 of the application. After the release of version 3, users encountered many bugs in the new version of the application. You wanted to revert back to version 2 so that the application can still be used by users until the bugs in version 3 are fixed. <strong>Now, you have a problem.</strong></p><p>You cannot go back to version 2 of the application because you have changed the existing code while developing version 3. You might also think to make several copies of the source code for each version to solve this problem, like “app”, “appV2”, and “appV3”. However, the amount of copies increases with an increasing number of versions. This solution will make a large number of files to be saved on your computer. <strong>That’s why you need a version control system</strong>.</p><p>It is a system that records changes to a set of files over time so that we can recall specific versions later. It only records the modifications between versions for a more efficient size of the files.</p><h3>How to use Git?</h3><p>I am going to use my current application development project in my university called <strong>Sistem Informasi Penilaian &amp; Database Praktikum </strong>as an example.</p><h4>Step 1: Install Git</h4><p>First of all, you have to install Git. The installer can be found on the official website here: <a href="https://git-scm.com/">https://git-scm.com/</a>. I recommend you to just the default settings whenever an option is promoted to you by the installer.</p><h4>Step 2: Initialize Git in your project folder</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*tOd7hI-NaDMoHHGDeILcrg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*WqR0t9ANjujfN-MBfvU3sw.png" /></figure><ol><li>Go to your project folder</li><li>Right-click on the folder and select Git Bash</li><li>Write <strong>git init</strong></li></ol><p>Now, the project folder is ready to use Git.</p><h4>Step 2a (Optional): Clone existing repository from GitLab or other services</h4><p>A repository is just a main directory of a project in GitLab or other services that have its own page in GitLab. It also contains environment variables of the project, history, and some settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*evNmWsjr43PonlxjMluHQQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*IWuAi0KKJbPHKlkXzGLVTQ.png" /><figcaption>My project’s repository</figcaption></figure><p>You can use the command <strong>git clone &lt;HTTPS URL&gt; </strong>to get the project&#39;s file to your local computer. The URL can be found by pressing the blue “Clone” button.</p><h4>Step 3: Make the first commit in your project</h4><p>Commit is another term for version in Git. Commit (verb) means to include the modified chosen/staged files in the new version/commit. For example, we have files A, B, and C. Then, we changed the contents of those files. If we commit file A and B, then the new version of the application includes the modified file A and B, but still contains the old C.</p><p>It is recommended to make the first commit after the initialization of the application where the application hasn’t been implemented yet.</p><ol><li><strong>git add &lt;file name&gt;</strong>, this command stages file(s) to be committed. We can use “.” to select all files. Thus, the command becomes <strong>git add .</strong> .</li><li><strong>git commit -m “&lt;message&gt;”</strong>, this command commits the staged files. The message can be anything. It is a description of the commit.</li><li>Now, we have the first commit.</li></ol><h4>Step 4 (Optional): Push the project files to your online repository</h4><p>Push means to upload the commits from our local computer to an online repository like GitLab so that the online repository has the latest commit and in sync with the local computer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NLNn06HBlqRN6fEAUk40_w.png" /><figcaption>Commit lists of my repository</figcaption></figure><ol><li>Make a new repository on the online repository service.</li><li>Make reference to the online repository in the Git of our local project by adding the HTTPS URL (inside the blue clone button) of the online repository to the Git configurations of our project using <strong>git remote add &lt;remote name&gt; &lt;URL&gt;</strong>. The remote name of the online repository reference is usually called “origin”. <strong>If you cloned an existing project, you do not need to do this.</strong></li><li><strong>git push &lt;remote name&gt; &lt;branch name&gt;</strong>, this command is going to push commits that haven’t been pushed to the online repository. I am going to explain the branch system later, just use “master”: <strong>git push origin master</strong></li></ol><p>That is the main cycle of the Git. You commit and push to make commits/versions of the project. The system is usually visualized using a <a href="https://en.wikipedia.org/wiki/Directed_acyclic_graph">directed acyclic graph</a>, a circle represents a single commit. Next, I will show you how to to go back to the previous commit if to undo your works.</p><h3>Undoing changes</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s-3vZpu9x84NX3XF8vC0-A.png" /></figure><p>Every commit has an ID. From the image above, you can see the ID of my commits, 7dd983b9, and so on. We can use this ID to specify our desired location when undoing changes. There are special commands to go undo changes in Git: <strong>git revert &lt;id&gt; </strong>and <strong>git reset &lt;id&gt;</strong>.</p><p>There is also a term called <strong>HEAD</strong>, which is a pointer that points to the latest commit.</p><h4>git reset &lt;ID&gt;</h4><p>This command moves HEAD to the chosen commit and unlinks the commits after it.</p><p>A =&gt; B =&gt; C =&gt; D[HEAD] (Before)</p><p>A =&gt; B[HEAD] (After <strong>git reset &lt;ID of B&gt;</strong>)</p><p>The reset command does not undo the changes in the files. It only makes the changes unstaged. Then, we can choose to restore the changes back to the B version in the above example or still use the changes and recommit them.</p><h4>git revert &lt;ID&gt;</h4><p>This command is different compared to <strong>git reset</strong>. It takes the modification information of the chosen commit and then applies it invertedly to the HEAD commit. Then, the command makes a new commit of the invert-modified HEAD commit. Let see the example!</p><p>A =&gt; B =&gt; C =&gt; D[HEAD] (Before)</p><p>A =&gt; B =&gt; C =&gt; D =&gt; C Revert[HEAD] (After <strong>git revert &lt;ID of D&gt;</strong>)</p><h3>Collaboration</h3><p>Collaboration is key. Application nowadays is mostly developed by a team. Using an online repository (repo) such as GitHub or GitLab enables us to collaborate with other people. I have explained the <strong>git clone </strong>command earlier. This command can be used for other team members so that each member has a copy of the project on his/her local computer.</p><p>The workflow is going to be:</p><ol><li>Each member has their latest commit copy on his/her local computer.</li><li>Each member developed some features.</li><li>Each of them <strong>git commit</strong> and then <strong>git push</strong> and now they have a problem.</li></ol><p>If member A, for example, has pushed a commit to the online repo first (earlier than other members), it makes the other members developing the application behind the latest commit. The HEAD position of the local project and the online repo is different. Hence, if the other members try to push their work to the online repo, it is going to return an error.</p><p>The other member has to “pull” commits that have been pushed by member A to their local computer so that the HEAD positions of the local and the online repo matches.</p><p>We can use <strong>git pull &lt;remote name&gt; &lt;branch name&gt; </strong>to get the latest commits from the online repo. When we pull commits from the online repo, the development works (the local commits, uncommitted works) of the application in our local computer are not deleted. It is going to be “merged” with the commits from the online repo. <strong>Merge means combine files between the two versions</strong>. The new files are going to include contains both versions.</p><p>The merging process might have a conflict. Conflict arises when two separate versions have made edits to the same line in a file, or when a file has been deleted in one version but edited in the other. Though, <strong>you can fix the conflict by adjusting the conflict files (there are signs on the files) and commit the changes.</strong></p><h3><strong>Branching (Collaboration contd.)</strong></h3><p>Branching is another feature from Git to help collaboration between team members. This feature helps us to work in parallel with other team members without interfering with other works and also keeps the parent branch from features that are still in development. There are several “workflows” or methods in using the branching feature. I will explain two common workflows that are used.</p><h4>Git Workflow I: Three-way merging</h4><ol><li>The main branch that is automatically created is the master branch. This branch is usually used to contain commits of the applications that can already be used by the users.</li><li>From there, create a new branch using <strong>git branch &lt;branch name&gt; </strong>from a certain commit</li><li>There, develop your application freely without any intervention</li><li>After the development has been done, merge the development branch to the master so that the master containing the new feature</li><li>To merge, first, go to the master branch using <strong>git checkout master</strong></li><li>Next, <strong>use git merge &lt;development branch name&gt;</strong></li></ol><h4>Git Workflow II: Rebase</h4><ol><li>From the main branch, create a new branch using <strong>git branch &lt;branch name&gt; </strong>from a certain commit</li><li>There, develop your application freely without any intervention</li><li>After the development has been done, rebase the development branch to the master so that the master containing the new feature using <strong>git rebase master</strong>! This command will move all split commits in the current branch to the head of the target of the branch. <strong>Hence, the result of this command is a one-line commit-graph</strong>, no branch in the graph although we have two branches according to the Git (It plays with the pointers). I know the statement is confusing. Consider learning more about <strong>git rebase</strong> on other resources!</li><li>Then, go to the master branch using <strong>git checkout master</strong></li><li>Lastly, <strong>use git merge &lt;development branch name&gt;</strong></li></ol><h4>My Experience</h4><p>In my project and usually many projects, they use three main branches: master, staging, dev branches.</p><ol><li><strong>Master</strong>: This contains the ready-to-be-used commits of the application.</li><li><strong>Staging</strong>: This branch functions as a development branch for developers. It may contain under-development features or developed features that haven’t been reviewed. After the commits pass the review (checking its functionality, bug-free, etc.), My team merges the staging into the master branch.</li><li><strong>Dev Branches</strong>: These are branches that are made from the staging branch. It is used to develop a certain feature of the app.</li></ol><h3>Other Useful Command</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*rsLDMtUcHaqa90J8we6CYw.png" /></figure><p>There is also this useful called <strong>git stash. </strong>This command stashes your works that haven’t been committed so you do something else, for example going to the other branch using <strong>git checkout. </strong>Then, after finishing doing other stuff, you can simply go back to the stashed works using <strong>git stash pop</strong>.</p><h3>Summary</h3><p>Git is a very useful thing for developing applications because it can tackle many problems. It is commonly used by many software engineers around the world. Therefore, you have to master this tool.</p><p>There several commands that you can remember:</p><ol><li><strong>git add &lt;file&gt;</strong></li><li><strong>git commit -m “&lt;message&gt;”</strong></li><li><strong>git add &lt;remote name&gt; &lt;URL&gt;</strong></li><li><strong>git push &lt;remote name&gt; &lt;branch name&gt;</strong></li><li><strong>git revert &lt;commit ID&gt;</strong></li><li><strong>git reset &lt;commit ID&gt;</strong></li><li><strong>git pull &lt;remote name&gt; &lt;branch name&gt;</strong></li><li><strong>git checkout &lt;branch name&gt;</strong></li><li><strong>git merge &lt;branch name&gt;</strong></li><li><strong>git rebase</strong> &lt;branch name&gt;</li><li><strong>git stash</strong></li><li><strong>git stash pop</strong></li></ol><p>This is just a simplified tutorial of the Git. Please learn more in other sources to help you understand Git better. Feel free to contact me for any questions and feedbacks!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e28dae6258c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/group-a/git-tutorial-for-noob-devs-8e28dae6258c">Git Tutorial for Noob Devs</a> was originally published in <a href="https://medium.com/group-a">Siprak Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>