<?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 Fairuza Raryasdya A on Medium]]></title>
        <description><![CDATA[Stories by Fairuza Raryasdya A on Medium]]></description>
        <link>https://medium.com/@raryasdya?source=rss-3cd4f5b3fbea------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*O9pAtGFI7MXs4vT34AqzAA.jpeg</url>
            <title>Stories by Fairuza Raryasdya A on Medium</title>
            <link>https://medium.com/@raryasdya?source=rss-3cd4f5b3fbea------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 01:03:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@raryasdya/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[A Glimpse About docker]]></title>
            <link>https://medium.com/@raryasdya/a-glimpse-about-docker-d23f9fee90e9?source=rss-3cd4f5b3fbea------2</link>
            <guid isPermaLink="false">https://medium.com/p/d23f9fee90e9</guid>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Fairuza Raryasdya A]]></dc:creator>
            <pubDate>Fri, 13 May 2022 00:51:38 GMT</pubDate>
            <atom:updated>2022-05-13T01:56:47.994Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*_yrWzHZx6yqvU1Dz" /><figcaption>source: <a href="https://www.howtogeek.com/devops/how-to-check-if-the-docker-daemon-or-a-container-is-running/">https://www.howtogeek.com/devops/how-to-check-if-the-docker-daemon-or-a-container-is-running/</a></figcaption></figure><p><em>This article is part of Proyek Perangkat Lunak (PPL) or Software Engineering Project Course.</em></p><p>Docker is an open-source software that was created in 2008 by Kamel Founadi, Solomon Hykes, and Sebastien Pahl. Its function is to pack an application with all of its dependencies that are required to run the application. Your app and dependencies setup will be melted into an “Image” that can then be instantiated into a “Container” that is ready to run with Docker.</p><h3>Why Docker?</h3><h4><strong>Isolation</strong></h4><p>When your code runs in a container, it has no impact on other programs. It’s completely cut off from the rest of the world. If you’ve ever had unexpected failures in one of your scripts after updating a globally installed library, you’ll be familiar with this issue.</p><h4><strong>Version Control</strong></h4><p>In our Docker file, we can keep track of changes. This allows us to try out newer versions of our software. For example, we can build a branch where we experiment with the most recent version of Python.</p><h4><strong>Composing Containers</strong></h4><p>The majority of the time, many containers must work together to create all of the functions of an application. For instance, a website, API, and database must all be connected. Docker Compose enables us to accomplish just that. We can make a file that specifies how containers are linked together. This file may be used to create all of the Dockerfiles for all of our containers at once!</p><h4><strong>Portability</strong></h4><p>We can ship not only our application code but also our environment using the Dockerfile. Not only can we publish the app’s source code to git, but we can also include the Dockerfile. When someone else pulls our repository, they can use the Dockerfile to construct the source code in a Docker container.</p><h4><strong>Lightweight</strong></h4><p>With Docker, you can run your app’s dependencies just like another app on the computer. It will be considerably lighter than the conventional way which consumes large resources of our machine.</p><h4><strong>Easy to Deploy</strong></h4><p>The bulk of cloud providers, including Amazon Web Services, Google Cloud Platform, Microsoft Azure, and others, have been using Docker as a containerization platform for some years. Our magical Docker Container runs seamlessly on AWS EC2, Google Compute Engine, and other cloud providers.</p><h3>The downsides</h3><p>Containers address a lot of difficulties, but they don’t solve all of the problems that developers face.</p><h4><strong>Containers in Docker are not virtual machines</strong></h4><p>Containers, unlike virtual machines, employ limited sections of the host operating system’s resources, which implies elements aren’t as isolated as they would be on a VM.</p><h4><strong>Docker containers are immutable and stateless</strong></h4><p>Containers start up and run from an image that explains what they contain. By default, that image is immutable — it cannot be changed once it has been created. However, a container instance is just temporary. It’s gone for good once it’s been deleted from system memory. You must design for persistence if you want your containers to persist state across sessions, similar to a virtual machine.</p><h4><strong>The learning curve</strong></h4><p>For beginners, it might be not so easy to grasp tons of concepts in a short time. It is often confusing for one who already got a headache from learning some frameworks and tried to learn docker, given the different syntax and pretty advanced concept.</p><h3>What’s in it?</h3><p>Docker became popular among software developers as it discovered an innovative approach to package the tools needed to construct and launch a container in a more streamlined and simplified manner than was before achievable.</p><h4><strong>Dockerfile</strong></h4><p>A Dockerfile is the foundation of every Docker container. This text file contains instructions for creating a Docker image, including the operating system, languages, environmental variables, file locations, network ports, and any other components required to run the image.</p><h4><strong>Docker image</strong></h4><p>A Docker image is a portable, read-only, executable file that contains the instructions for establishing a container as well as the specifications for which software components the container will run and how. It’s similar to a snapshot in the VM world.</p><h4><strong>Docker run utility</strong></h4><p>Docker is a tool for running containers. The run command in Docker is used to start a container. Each container represents an image instance, and numerous instances of the same picture can run at the same time.</p><h4><strong>Docker Hub</strong></h4><p>It is a website that hosts Docker containers. Docker Hub is a repository for storing, sharing, and managing container images. Consider it Docker’s own version of GitHub, but tailored to containers.</p><h3>Put Into Practice</h3><p>Let’s say you already have a Python Django application with all its dependencies listed in requirements.txt. The next step you can do to utilize docker is to create a Dockerfile.</p><pre># pull the official base image<br>FROM python:3.9.6-alpine</pre><pre># set work directory<br>WORKDIR /usr/src/app</pre><pre># install dependencies<br>RUN pip install --upgrade pip<br>COPY ./requirements.txt .<br>RUN pip install -r requirements.txt</pre><pre># copy project<br>COPY . .</pre><p>What happens above is we chose Alpine-based for Python 3.9.6 Docker image as our starting point of the container, then we set a working directory. Finally, we try to update pip, use requirements.txt to install all of the listed dependencies, and copied over the Django project itself.</p><p>Next, you actually already can run your docker container by building the image first, but let’s use docker compose for this example. You need to add docker-compose.yml file at the root of your project.</p><pre>version: &#39;3.8&#39;</pre><pre>services:<br>  web:<br>    build: ./app<br>    command: python manage.py runserver 0.0.0.0:8000<br>    volumes:<br>      - ./app/:/usr/src/app/<br>    ports:<br>      - 8000:8000<br>    env_file:<br>      - ./.env</pre><p>The configuration above assumes that you already have a .env file also in the project root.</p><p>The next step is to run our container using</p><pre>docker-compose up -d</pre><p>And voila, now your django application should be live and accessible through <a href="http://localhost:8000/">localhost:8000</a>.</p><p>This is merely a basic overview of Docker. There are several ideas not covered here. All in all, docker isn’t a required technology for software development. People are still capable of rapid development long before Docker was invented. However, Docker makes it easier and allows developers to build more quickly.</p><p><strong>References:</strong></p><ul><li><a href="https://www.docker.com/blog/au-revoir/">Au revoir - Docker</a></li><li><a href="https://iamondemand.com/blog/5-key-benefits-of-docker-ci-version-control-portability-isolation-and-security/">5 Key Benefits of Docker: CI, Version Control, Portability, Isolation and Security - IOD - The Content Engineers</a></li><li><a href="https://www.microfocus.com/documentation/enterprise-developer/ed40pu5/ETS-help/index.html?t=GUID-F5BDACC7-6F0E-4EBB-9F62-E0046D8CCF1B.html">Micro Focus Documentation</a></li><li><a href="https://quintagroup.com/cms/technology/docker">Docker: portable containers for consistent development and deployment</a></li><li><a href="https://nickjanetakis.com/blog/differences-between-a-dockerfile-docker-image-and-docker-container">Differences between a Dockerfile, Docker Image and Docker Container</a></li><li><a href="https://www.ionos.com/digitalguide/server/know-how/dockerfile/">Dockerfile: what is behind the format</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d23f9fee90e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Types of Software Architecture Patterns]]></title>
            <link>https://medium.com/@raryasdya/types-of-software-architecture-patterns-d32ade65a8f5?source=rss-3cd4f5b3fbea------2</link>
            <guid isPermaLink="false">https://medium.com/p/d32ade65a8f5</guid>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Fairuza Raryasdya A]]></dc:creator>
            <pubDate>Fri, 13 May 2022 00:41:19 GMT</pubDate>
            <atom:updated>2022-05-13T01:53:01.946Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*A2TPy-5s6CSGZD6l" /><figcaption>source: <a href="https://unsplash.com/photos/ZQSs0YZUNfA">https://unsplash.com/photos/ZQSs0YZUNfA</a></figcaption></figure><p><em>This article is part of Proyek Perangkat Lunak (PPL) or Software Engineering Project Course.</em></p><p>Architecture patterns help define the basic characteristics and behavior of an application. It is important to understand the qualities, strengths, and weaknesses of each architecture pattern in order to select the one that suits your business the most. This article contains some common types of software architecture patterns.</p><h4>Layered (n-tier) Architecture</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/0*3S1KJYorHpCbfWaW.png" /><figcaption>Layered Architecture (<a href="https://www.simform.com/blog/software-architecture-patterns/">https://www.simform.com/blog/software-architecture-patterns/</a>)</figcaption></figure><p>In software development, Layered Architecture (also known as n-tier architecture) is believed to be the most popular and commonly used architectural framework. It’s a design pattern that consists of numerous horizontal layers that work together as a single software unit. Each layer provides support to the layer above it.</p><p>The number of levels in a Layered Architecture is normally determined by the developer or software architect and is not fixed. It is important to note that this framework will almost always include a user interaction layer, a processing layer, and a data processing layer.</p><h4>Model-View-Controller Pattern</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/419/0*C2Zhs4SrPdmmFVQT.png" /><figcaption>MVC Pattern (<a href="https://overiq.com/django-1-10/mvc-pattern-and-django/">https://overiq.com/django-1-10/mvc-pattern-and-django/</a>)</figcaption></figure><p>Model-View-Controller or MVC Pattern is actually a three-tier architecture. MVC Pattern separates an interactive program into three parts:</p><ul><li><strong>Model </strong>— represents how data in a database is structured. It define database tables and their relationships.</li><li><strong>View </strong>— is what you see when you visit a website. It holds all of the data that will be sent and displayed to the client.</li><li><strong>Controller </strong>— is controlling the information flow. A request is delivered to controller and its response are delivered by controller. It also communicates with view and model to determine the response.</li></ul><p>This pattern is used by major web frameworks such as Django, Laravel, and Ruby on Rails.</p><h4>Client-Server Architecture</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*QHoIyw_6BSRGhcSm.png" /><figcaption>Client-Server Architecture (<a href="https://en.wikipedia.org/wiki/Client%E2%80%93server_model">https://en.wikipedia.org/wiki/Client%E2%80%93server_model</a>)</figcaption></figure><p>There are two parties in Client-Server Architecture: a server and many clients. Multiple client components will be served by the server component. Clients request services from the server and the server responds by providing those services. The server also continues to listen for client requests. But due to its dependency to the main server, this architecture is prone to a single point of failure.</p><h4>Software Architecture Used in Our Project</h4><p>Our project separates frontend and backend services. The frontend is built with Next.js, and the backend is built with Django Rest Framework. Due to working on an existing server that our client has already created, the server where we developed our project has already contained several services that are unrelated to our project. As a result, even though our backend uses MVC architecture (since DRF is a framework that uses MVC pattern), our project also uses client-server architecture for integrating frontend and backend services.</p><h4>Afterwords</h4><p>Deciding on which software architecture that your project will use is not an easy thing, but it will pay off in the long term if you actually choose it carefully. There isn’t any perfect software architecture as each of them has their own traits, strengths, and drawbacks. You need to understand them first in order to select the one that best suits your project’s needs and objectives. As it is possible to use multiple software architecture for one project, it also gives you more flexibility on developing your project. Try to explore other architectures that hasn’t been covered in this article.</p><p><strong>References:</strong></p><ul><li><a href="https://towardsdatascience.com/10-common-software-architectural-patterns-in-a-nutshell-a0b47a1e9013">10 Common Software Architectural Patterns in a nutshell</a></li><li><a href="https://overiq.com/django-1-10/mvc-pattern-and-django/">MVC Pattern and Django</a></li><li><a href="https://www.oreilly.com/library/view/software-architecture-patterns/9781491971437/">Software Architecture Patterns</a></li><li><a href="https://www.simform.com/blog/software-architecture-patterns/">10 Software Architecture Patterns You Must Know About</a></li></ul><p><a href="https://www.baeldung.com/cs/layered-architecture">Layered Architecture | Baeldung on Computer Science</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d32ade65a8f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Refactoring? How to Do It?]]></title>
            <link>https://medium.com/@raryasdya/why-refactoring-how-to-do-it-3cad3c78c72d?source=rss-3cd4f5b3fbea------2</link>
            <guid isPermaLink="false">https://medium.com/p/3cad3c78c72d</guid>
            <category><![CDATA[refactoring]]></category>
            <dc:creator><![CDATA[Fairuza Raryasdya A]]></dc:creator>
            <pubDate>Thu, 12 May 2022 23:40:41 GMT</pubDate>
            <atom:updated>2022-05-12T23:40:41.111Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*XLn-F_U_AFrPqzZS" /><figcaption>source: <a href="https://unsplash.com/photos/95YRwf6CNw8">https://unsplash.com/photos/95YRwf6CNw8</a></figcaption></figure><p><em>This article is part of Proyek Perangkat Lunak (PPL) or Software Engineering Project Course.</em></p><blockquote><em>“</em><strong>Refactoring</strong> is a disciplined technique for restructuring an existing body of code, altering its internal structure without changing its external behavior.<em>”</em></blockquote><blockquote><em>— Martin Fowler</em></blockquote><p>Refactoring is an essential routine during software development. This article will cover reasons on doing refactor and some best practices on how to do it.</p><h3>Why should we refactor?</h3><h4>It makes your code easier to understand</h4><p>Along the way, other people need to understand your code. Even, you might also need to re-understand how your code works. As refactor improves your software design, it will also improve the readability of your code.</p><h4>It improves m<strong>aintainability and scalability</strong></h4><p>When you want to change a small logic in your code, you don’t want to missed changing the value of any variable. By implementing refactor, you will be sure that changing the value of one thing has actually affect every related variables.</p><h3>An example of refactoring in our project</h3><p>The first time I knew that our code needs to be refactored was when I noticed that we’ve got several identic access to Authorization headers for multiple endpoints.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*qqMd7n8b9hVQB4PSNH8b1A.png" /><figcaption>multiple identic variables</figcaption></figure><p>Then I realized that those authorization_header variables are being used to retrieve same information, but all of them were written in a slightly different way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GlaabNWKyCunt4oHJ3UPFw.png" /><figcaption>same</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7o39RpD3tNflX_Ju8w8kuQ.png" /><figcaption>but different</figcaption></figure><p>So our solution was to extract it to a new method called get_client_user() that we place inside utils.py .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FQtS_uMHofoXUg34vll2cg.png" /><figcaption>extract the function</figcaption></figure><p>Then, it will be imported by views.py to replace those identic lines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*j79GUWlS-w2pPn_yEAvu3w.png" /><figcaption>then import and replace them</figcaption></figure><p>And guess what? That refactor actually reduces more than 40 lines of code :D</p><p>In short, refactoring is essential and it should be done as you add new features to the code, especially when you see anything that should be written more clearly so that others can understand it better.</p><p><strong>References:</strong></p><ul><li><a href="https://www.coscreen.co/blog/refactoring-your-code-in-agile/">Why Is Refactoring Your Code Important in Agile?</a></li><li><a href="https://www.techtarget.com/searchapparchitecture/definition/refactoring">What is Refactoring (Code Refactoring)?</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3cad3c78c72d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Team Dynamics During Pandemic]]></title>
            <link>https://medium.com/@raryasdya/team-dynamics-during-pandemic-ae11dd07b73c?source=rss-3cd4f5b3fbea------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae11dd07b73c</guid>
            <category><![CDATA[team-dynamics]]></category>
            <dc:creator><![CDATA[Fairuza Raryasdya A]]></dc:creator>
            <pubDate>Thu, 12 May 2022 10:32:47 GMT</pubDate>
            <atom:updated>2022-05-13T02:13:05.588Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*LkrdPT09Vdhp3vnm" /><figcaption>source: <a href="https://unsplash.com/photos/eTgMFFzroGc">https://unsplash.com/photos/eTgMFFzroGc</a></figcaption></figure><p><em>This article is part of Proyek Perangkat Lunak (PPL) or Software Engineering Project Course.</em></p><p>Working with other people is something you will always have to do as a social person. No one wants to be a part of a team that isn’t working smoothly. The key to a good teamwork is by maintaining your team dynamics even though it’s not an easy thing to do, especially during this pandemic.</p><p>This semester, I’m working on a web application with a group of seven people. Despite many ups and downs, I believe the dynamic of my team is always improving every day. In this article, I have written some tips that have helped my team stay on track with our project throughout this online class era.</p><h4>Small chit-chat does matter</h4><p>Often time, we communicate with other team members solely at meetings or when discussing our tasks. It is not a bad thing to do, but you can improve your team dynamic by having small short chit-chat with the other team members once in a while. It will show them that you are interest to be closer with them, to know them more than just <em>“someone who is tasked to finished X at Y”</em>. You don’t need to set an official occasion to do it, you can do small talks before or after your meeting. It will also serve to lighten the mood before discussing a serious subject.</p><p>I personally am not the type of person who can start or open a small chit-chat, so I’m grateful that my other team members can do so. This surely help us being more comfortable with each other.</p><h4>Get to know more about your teammates via team building event</h4><p>Small chit-chat is just a <em>small</em> occasion. Now make it big, team building. Before pandemic, it’s easy for people to meet up at the amusement park, movie theatre, or escape room to strengthen their bond. While our space is limited during a pandemic, you can still do team building by playing any of the online group games available in the internet. Of course, the vibes of online and actual meetings differ, but it’s better than doing nothing at all.</p><p>It was lucky for my team, pandemic in Indonesia has subsided during the second quarter of 2022. We managed to arranged two offline meet ups to break our fast together (under the guise of sprint planning). Unfortunately, one of our member lives in the other island so she couldn’t join us (sorry Sonia😢). But we dealt with it by organizing a Meet together with our Product Owner and Teaching Assistant while displaying it on TV.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P5-8gTgv3vF4GM7HLdXFig.png" /><figcaption>Breaking fast together under the guise of sprint planning</figcaption></figure><h4>Be transparent with the others</h4><p>Being transparent means that you are being honest with your trouble, your progress, and your thought. No one can see inside your thoughts, try to be more open about yourself so that other people can help you.</p><h4>Try to understand the others</h4><p>Even though I just mentioned “try to speak up more” a few words earlier, I understand how tough it is for some people to seek for help. This is when you can help your friends by considerately asking their difficulties. You should also try to put yourself in their shoes, because not everyone thinks the same way you do.</p><h4>Give feedbacks honestly, accept feedbacks gracefully</h4><p>When you care about your team, you want to increase individual performance as well as the team’s overall performance. The most straightforward way to do that is by giving and receiving feedback. Give your teammates honest feedbacks in a courteous manner. Don’t be defensive when you receive comments. Instead, strive to learn from it. If you have any questions, ask your team member to explain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*fdlfYaU13OoyxPNeXi0Feg.png" /><figcaption>boards full of honest words✨</figcaption></figure><p>Moment full of blunt truths for our team always happens during sprint retrospective. We wrote our thoughts anonymously via Metro Retro and discussed each one of it thoroughly. As a result, our team’s performance has improved as we try to learn from the feedbacks that we received (based on our scrum maturity assessment chart).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/447/1*HtCDAdWHt3SHwItDQ4Wfgw.png" /><figcaption>our scrum maturity assessment chart</figcaption></figure><p>While there are many more aspects of team dynamics that I haven’t addressed in this article, I hope that it will still assist some of you in improving your team dynamics. Thank you for sticking with this article all the way to the end!</p><p><strong>References:</strong></p><ul><li><a href="https://hbr.org/2021/02/make-time-for-small-talk-in-your-virtual-meetings">Make Time for Small Talk in Your Virtual Meetings</a></li><li><a href="https://www.thebalancecareers.com/what-is-team-building-1918270">What Is Team Building?</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae11dd07b73c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simple Introduction to Clean Code]]></title>
            <link>https://medium.com/@raryasdya/simple-introduction-to-clean-code-a024452a55cb?source=rss-3cd4f5b3fbea------2</link>
            <guid isPermaLink="false">https://medium.com/p/a024452a55cb</guid>
            <category><![CDATA[clean-code]]></category>
            <dc:creator><![CDATA[Fairuza Raryasdya A]]></dc:creator>
            <pubDate>Mon, 11 Apr 2022 10:51:15 GMT</pubDate>
            <atom:updated>2022-05-26T05:18:43.998Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This article is part of Proyek Perangkat Lunak (PPL) or Software Engineering Project Course.</em></p><blockquote>“Writing clean code is what you must do in order to call yourself a professional. There is no reasonable excuse for doing anything less than your best.”</blockquote><blockquote>— <em>Robert C. Martin</em></blockquote><h3>Clean Code</h3><p>A clean code is easy to be understood and easy to be changed. It was popularized by Robert C. Martin or Uncle Bob in his book named <strong>Clean Code: A Handbook of Agile Software Craftsmanship.</strong></p><h3>The Importance of Clean Code</h3><h4>Increase readability</h4><p>Increase in readability will surely help the new developers who want to implement some things in the existing code</p><h4>Ease maintaining</h4><p>When you implement clean code, you will be sure that there’s no line of codes that you’ve missed to refactor when you change the value of any variable.</p><h4>Ease testing</h4><p>Simpler code → easier to test! :)</p><h4>Easily spots bugs</h4><p>Clean code also reduce the time spent to find a bug. It can be achieved because simpler code lets developers track the code flow easier.</p><h3>Popular Acronyms for Clean Code Principles</h3><h4>DRY — Don’t Repeat Yourself</h4><p>Duplicated codes aren’t allowed! Maintaining same codes that exist in different places are hard. There would be some code that slipped through our eyes and that’s why code duplication should be avoided. Anyway, the term <em>same code </em>in here isn’t limited to a mere copy-paste code. It also includes different code that has got different line of code (i.e. different variable naming) but is actually doing the same thing.</p><h4>KISS — Keep it Simple, Stupid</h4><p>Reduce the complexity of your code to improve comprehension and ease maintaining. This principal includes DRY, removing unnecessary features, variables, and methods, and let functions and class be cohesion. Basically, you need to refactor your code until it has simple complexity. You also need to understand that reinventing the wheel is not demanded.</p><h4>YAGNI — You Ain’t Gonna Need It</h4><p>While KISS tries to remove unnecessary complexity, YAGNI tries to remove unnecessary functionality and logic. This principal teaches you to be a minimalist person in two steps:</p><ul><li>Step 1: Remove unnecessary functionality and logic</li><li>Step 2: Implement anything only when you actually need it</li></ul><h3>Implementation of Clean Code</h3><h4>Meaningful Name</h4><p>Naming variable and method with descriptive name is part of clean code. By doing so, it will increase understanding about the purpose of the variable or method without needing any additional comments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*vuh1eNH8kiVoYiWudte_iw.png" /><figcaption>good method naming</figcaption></figure><h4>Use constants instead of copying its value</h4><p>Constants will let you keep track of where the value is utilized. It will also assist you in refactoring when the values need to be changed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/412/1*9eMBB0yqJtJRWQLpCP38SQ.png" /><figcaption>defining repetitive values as constants</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*VAfFKnyo_opsUuAOsW7hzw.png" /><figcaption>and turns out one of them is being used for 12 times</figcaption></figure><h4>Extract repeated logic to method</h4><p>This concept is similar to using constants as the main benefit of doing this is ease tracking and refactoring.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*-6yuHSHuoyv_AQuhPaMXiQ.png" /><figcaption>extracting logic to method</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/353/0*BXDijFQHRSIpxk--.png" /><figcaption>resulting to cleaner codes✨</figcaption></figure><h3>Afterword</h3><p>As what I have stated above, clean code will bring a lot of benefits without decreasing developer’s time during developing. This is why implementing clean code is a habit that every programmer should have, whether they’re working individually or as a team.</p><p><strong>References:</strong></p><p>Martin, R. (2008). Clean Code. Prentice Hall.</p><ul><li><a href="https://henriquesd.medium.com/dry-kiss-yagni-principles-1ce09d9c601f">DRY, KISS &amp; YAGNI Principles</a></li><li><a href="https://blog.bitsrc.io/kiss-solid-yagni-and-other-fun-acronyms-b5d207530335">KISS, SOLID, YAGNI And Other Fun Acronyms</a></li><li><a href="https://medium.com/@waterprinciple/advantages-of-clean-code-e24500a5fc06">Advantages of Clean Code</a></li><li><a href="https://garywoodfine.com/what-is-clean-code/">What is Clean Code ? | Gary Woodfine</a></li><li><a href="https://www.freecodecamp.org/news/clean-coding-for-beginners/">Clean Code Explained - A Practical Introduction to Clean Coding for Beginners</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a024452a55cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Test-Driven Development — What, How, and Why?]]></title>
            <link>https://medium.com/@raryasdya/test-driven-development-what-how-and-why-b3cc3741a5b0?source=rss-3cd4f5b3fbea------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3cc3741a5b0</guid>
            <category><![CDATA[tdd]]></category>
            <dc:creator><![CDATA[Fairuza Raryasdya A]]></dc:creator>
            <pubDate>Mon, 21 Mar 2022 12:56:49 GMT</pubDate>
            <atom:updated>2022-03-21T12:56:49.282Z</atom:updated>
            <content:encoded><![CDATA[<h3>Test-Driven Development — What, How, and Why?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*h8hFj3gLKfGJMpxi.png" /><figcaption>source <a href="https://marsner.com/blog/why-test-driven-development-tdd/">https://marsner.com/blog/why-test-driven-development-tdd/</a></figcaption></figure><p><em>This article is part of Proyek Perangkat Lunak (PPL) or Software Engineering Project Course.</em></p><p><strong>Test-Driven Development </strong>— a concept, a practice, or a tool that every programmer ever come across to it at least once in their life.</p><h3>What is <strong>Test-Driven Development</strong>?</h3><p>The name Test-Driven Development or TDD itself is actually already pretty self-explaining. Referring to Oxford Dictionary,</p><blockquote><strong>driven (</strong>adjective)<br>influenced or caused by a particular thing</blockquote><p>So in short, Test-Driven Development means that the development itself happens because the test exists. When implementing TDD, every time you want to implement a feature, you need to create and commit the test first before actually implementing the real feature. Why? Because it is called <strong><em>Test-Driven </em></strong>Development :D</p><h3>Flow of TDD</h3><p>TDD has got three steps in its flow, with two of them are mandatory.</p><h4>RED</h4><p>Most of the time, the red color is associated with failure, and that also applies to the RED in TDD. RED phase in TDD means that the test <strong><em>must </em></strong>fail. It must fail since the feature that is being tested hasn’t been implemented yet. But the test is created with a belief in mind that it will become passed when the feature is implemented in the next phase.</p><h4>GREEN</h4><p>The green color indicates success, so does the GREEN in TDD. It means that the test <strong><em>must</em></strong> succeed, as in it must pass. How to make it pass? Obviously by correctly implementing the feature that is being tested:)</p><h4>REFACTOR</h4><p>The optional step! REFACTOR only happens when developers feel that the newly implemented code can be improved, whether only the cleanness or even the efficiency itself. Even though this phase is optional, it is not an uncommon thing to do.</p><h3>So Why Do People Implement TDD?</h3><p>If TDD doesn’t serve any benefit, it wouldn’t still exist until this day. So what are the benefits of implementing TDD?</p><h4>Simple and cleaner code</h4><p>Well, if you don’t count the number of codes in the tests, TDD actually forces you to write a much simpler code. Since every code that you write must be testable, it means every line of code is important so there is no unnecessary code in your implementation.</p><h4>Reduce bugs</h4><p>By having tests that guarantee the already existing codes, it will help developers discover any bugs early, especially when you (and even your other team members) add new features. Even if you refactor your code, you don’t need to worry that your code will break because the test that you have previously made will instantly reflect it.</p><h4>Confidence to refactor</h4><p>As what has been stated previously, TDD will ease your refactoring phase due to the existence of tests that will ensure that the codes are still working properly.</p><h3>How About the Reality of TDD?</h3><p>Sometimes reality doesn’t meet your expectations, and so does TDD. Here are some realities about TDD that I personally experienced.</p><h4>It does help you detect bugs (and ease refactoring)</h4><p>Well yeah, TDD doesn’t give you false hope. It really helps you detect bugs. I recently experienced it when refactoring my actually-already-working code to a cleaner code.</p><h4>An unexpected blocker</h4><p>When you just learn a new language or framework, it is rather hard to do TDD. Because when you create a test, you actually already have a pretty clear picture in mind on how to implement the real code. But when you are still clueless, it becomes an endless loop of “Well, to implement a feature, I need to create the test. But to create the test, I need to understand the feature that I want to implement. But I need to understand how to implement the feature first to create the — “.</p><h3>Afterwords</h3><p>TDD is a great tool to help developers debug and develop. I personally think that TDD is suitable to be implemented on projects that already have clear goals and the developers involve in the project also already have a great understanding of the frameworks and tools. But if your team is the YOLO type person with an “If it breaks, that’s our future self’s problem” mindset, you might just want to skip TDD and just go straight implement your features.</p><p><strong>References:</strong></p><ul><li><a href="https://marsner.com/blog/why-test-driven-development-tdd/">Why Test-Driven Development (TDD) | Marsner Technologies</a></li><li><a href="https://www.guru99.com/test-driven-development.html">What is Test Driven Development (TDD)? Example</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3cc3741a5b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Personas, Why Do We Need Them?]]></title>
            <link>https://medium.com/@raryasdya/personas-why-do-we-need-them-c34e09d0ec96?source=rss-3cd4f5b3fbea------2</link>
            <guid isPermaLink="false">https://medium.com/p/c34e09d0ec96</guid>
            <category><![CDATA[personas]]></category>
            <dc:creator><![CDATA[Fairuza Raryasdya A]]></dc:creator>
            <pubDate>Mon, 21 Mar 2022 09:18:48 GMT</pubDate>
            <atom:updated>2022-03-21T09:18:48.485Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IW5P_swTbrSwXtvY" /><figcaption>Photo by <a href="https://unsplash.com/@neonbrand?utm_source=medium&amp;utm_medium=referral">NeONBRAND</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><em>This article is part of Proyek Perangkat Lunak (PPL) or Software Engineering Project Course.</em></p><p>Many people treat personas as just some fictional characters that we create before developing a product, but then left forgotten in dust while developing the product. While actually, there is a solid reason why we create personas first before developing our product. It is because persona can help us explore our products.</p><h3>So What is Persona?</h3><p>Personas are fictional characters that are made to help designers, developers, and anyone who wants to create products understand their potential or target users. It should be created in the early stage of product development. Here are three important points to think about while creating personas.</p><ol><li>Purpose of the product</li><li>User behaviors</li><li>User motivations and goals</li><li>User pain-points or frustrations</li></ol><p>By knowing the purpose of your product, you can define the scope of your product, which then helps you define the scope of your target users. Meanwhile, knowing their motivations and pinpointing their frustrations, can help you create a product that fulfills their goal and expectations.</p><h3>Benefits of Personas</h3><p>Obviously, there are a lot of benefits by having personas. Here are some of them:</p><h4>Gain diverse perspectives</h4><p>Sometimes we think simply in our own way and forget that other people have different problems and different ways of thinking. That’s why putting yourself in other shoes is a very important thing to do while doing anything in this life, including developing a product. A product, service, or anything similar to that is created with the intention to be used by other people. Thus having diverse perspectives regarding their problems and demands is a solid step to designing anything.</p><h4>Having one source of truth when deciding anything</h4><p>Often time, we are faced with a moment to decide important things, whether it’s regarding features, design, and even flow of some functionalities. If you have personas, you can rely on them to choose the decision. Personas let you be more neutral when deciding important things since they won’t be affected by any of the stakeholder’s personal wish lists.</p><h4>Cost-efficient</h4><p>Instead of trying to please everyone, you only try to fulfill your personas’ expectations. Doing it that way will save a lot of your time and probably money while marketing your product. But obviously, it also depends on how good and serious you were when creating your personas.</p><h3>Personas in Our Project</h3><p>In this course, my team is tasked with developing a question and answer platform that focuses on law topics. Law itself is a not-so-easy topic for a large part of our society. Thus it was rather tricky for us to create the personas.</p><h4>How we use personas to define our project’s features</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WIU6ip0ewWuZj1Np5CHRxQ.png" /><figcaption>one of the personas used in our project</figcaption></figure><p><strong>“Andriani wants to see questions from similar topics.”<br></strong>Every question will be tagged with multiple topics such as intellectual property, criminal, and business. Using that information, users can filter the question list to only show what they want to see based on their chosen topics.</p><p><strong>“Andriani wants to ask questions regarding her married life in a safe platform”<br></strong>Users can ask unlimited questions to lawyers and see the answer to their questions for free. The identity of the user will stay anonymous when asking any question. <em>(This feature will be implemented in the next phase of this project).</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fypn1XVRSa03fTbwp1aklQ.png" /><figcaption>another persona in our project</figcaption></figure><p><strong>“Tony is a real estate agent who doesn’t have enough time to browse every question that exists in this product. He wants to see questions that are only related to his problem — properties.”<br></strong>We let user choose 1–2 topics that interest them the most and we associate their preferences to personalize their homepage with questions that correspond with their chosen topics.</p><p><strong>“Well, Tony also wants to communicate and consult with a lawyer that he feels compatible with.”<br></strong>We provide information regarding the lawyer who answers each question and then the user can access the lawyer’s full profile page. On the profile page, the user will also have options to consult personally with the lawyer.</p><h4>Lesson learned while creating personas</h4><p>We tend to forget that other people have different problems and different ways of thinking. We realize that by having personas, we can make firm decisions regarding our products.</p><h3>Conclusion</h3><p>Personas are powerful tools for developing anything. It is important to make it <strong>before </strong>developing your product and keep referring to it <strong>while </strong>developing your product. If in the beginning, you make personas wholeheartedly, it sure will give you a lot of advantages along the way. Hope this article could give you insights into why persona is an important thing that we need to have before developing our product furtherly.</p><p><strong>References:</strong></p><ul><li><a href="https://www.interaction-design.org/literature/article/personas-why-and-how-you-should-use-them">Personas - A Simple Introduction</a></li><li><a href="https://www.usability.gov/how-to-and-tools/methods/personas.html">Personas</a></li><li><a href="https://xd.adobe.com/ideas/process/user-research/putting-personas-to-work-in-ux-design/">What Are User Personas and Why Are They Important? | Adobe XD Ideas</a></li><li><a href="https://www.seguetech.com/persona-development-important/">What is Persona Development and Why is it Important?</a></li><li><a href="https://www.campaigncreators.com/blog/the-importance-of-personas">The Importance of Personas</a></li><li><a href="https://careerfoundry.com/en/blog/ux-design/how-to-define-a-user-persona/">How to Define a User Persona [2023 Complete Guide]</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c34e09d0ec96" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Overview of Scrum (with Additional Personal Experiences)]]></title>
            <link>https://medium.com/@raryasdya/overview-of-scrum-with-additional-personal-experiences-bc8ade2f7bf2?source=rss-3cd4f5b3fbea------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc8ade2f7bf2</guid>
            <category><![CDATA[scrum]]></category>
            <dc:creator><![CDATA[Fairuza Raryasdya A]]></dc:creator>
            <pubDate>Mon, 28 Feb 2022 16:22:11 GMT</pubDate>
            <atom:updated>2022-03-21T13:19:40.374Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*hmr4NF2LgeIyak5e.png" /><figcaption>scrum framework</figcaption></figure><p><em>This article is part of Proyek Perangkat Lunak (PPL) or Software Engineering Project Course.</em></p><blockquote>“Scrum is a framework within which people can address complex adaptive problems, while productively and creatively delivering products of the highest possible value.” — Scrum official website</blockquote><p>In this article, I will give an overview regarding Scrum (especially Scrum that is implemented in our course) and some of our team’s experiences in undergoing Scrum.</p><h3>Scrum Roles</h3><h4>Product Owner</h4><p>Product owner bridges developers and customers. This person highly understands the product and has excellent skills in communication since they need to convey many important things. For this course, our team’s Product Owner roles are assigned to teaching assistants and clients.</p><h4>Scrum Master</h4><p>While Product Owner bridges developers and customers, Scrum Master is someone who sides to the developer team. Scrum Master must make sure that all of the Sprint events run smoothly and all backlogs tasked were finished on schedule. This is why Scrum Master wouldn’t hesitate to reject proposed backlogs from Product Owner if the development team isn’t capable enough.</p><h4>Developers</h4><p>The rest of the team that are responsible on developing the project according to the backlogs. Developers are important on creating a potentially releasable increments of value for a product at the end of each Sprint.</p><h3>Scrum Events</h3><h4>Sprint</h4><p>Sprint has got fixed duration and will start immediately after the previous Sprint concluded. During Sprint, the proposed idea will be implemented into a real value. The other 4 events of Scrum will happen during Sprint.</p><h4>Sprint Planning</h4><p>Sprint Planning marks the start of a Sprint. The three main points that will be discussed are:</p><ul><li>Why is this Sprint valuable?</li><li>What can be done in this Sprint?</li><li>How will the chosen work get done?</li></ul><h4>Daily Scrum / Daily Stand-Up Meeting</h4><p>Daily Stand-Up meeting (twice a week meeting in PPL course) is held relatively short just to update each of the team members’ progress. The three main points that will be discussed are:</p><ul><li>What did you accomplish yesterday?</li><li>What will you do today?</li><li>Any blockers in your way?</li></ul><h4>Sprint Review</h4><p>Sprint is held at the end of the sprint. The main event of Sprint Review is demonstrating the finished features to the Product Owner.</p><h4>Sprint Retrospective</h4><p>Sprint Retrospective is held after Sprint Review, mainly to improve the quality and effectiveness of the next sprint. The three main points that will be discussed are:</p><ul><li>What went well in the Sprint</li><li>What could be improved</li><li>What will we commit to improve in the next Sprint</li></ul><h3>Scrum Artifacts</h3><h4>Product Backlog</h4><p>Product Backlog is basically the product goal. It lists of what is needed to create or improve the product.</p><h4>Sprint Backlog</h4><p>Sprint Backlog is the result of Sprint Planning. Using the previously stated three main points of Sprint Backlog, here are the answers</p><ul><li>Why is this Sprint valuable? → the sprint goal</li><li>What can be done in this Sprint? → selected Product Backlog for the Sprint</li><li>How will the chosen work get done? → actionable plan for delivering the increment</li></ul><h4>Increment</h4><p>Increment is the definition of done. It defines the stepping stone to become a step closer to the product goal.</p><h3>What Happened so Far in Our Team</h3><p>Even though I stated it as “so far”, it actually has only been 6 days since our first sprint began. Still less than a week, but that doesn’t mean nothing noteworthy happened right?</p><h4>Be agile</h4><blockquote>“Are you implementing Scrum or Waterfall framework? Don’t forget that you can be agile in each sprint”</blockquote><p>— said our Project Owner during our first sprint planning. It hit us hard that we were too stiff while organizing our backlog. We were too focused on making sure that we have the exact amount of backlog as to what we needed. But in fact, Scrum is agile and allows us to change our plan midway through the sprint.</p><h4>Pretty smooth sprint planning</h4><p>I didn’t expect that our first sprint planning would run as smoothly as it was, especially during story point discussion. Shout out to Radhi, the Scrum Master in our first sprint that managed to implement his understanding regarding Scrum framework to the real case flawlessly🙌</p><p>Here’s a snippet of our notes during sprint planning</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*EGBpLsZJnCEWu7dTnztbdw.png" /><figcaption>reviewing result of story point voting</figcaption></figure><h4>The agility that instantly happened during a long weekend</h4><p>Our deadline for the first Pull Request was rather awkward, the last day of a long weekend. During those time, one of my teammates and I just realized that our backlogs are too closely related. Since our team’s client is supposed to code review our PR before merging, we couldn’t merge any of our progress to development at that time. Thus we decided to merge it to a temporary branch (obviously with our client’s permission) for the sake of accommodating that relation. We also decided to reorder the assignee for some backlogs.</p><h4>Tracking our backlog</h4><p>After contemplating between Trello and GitHub project boards, we finally chose GitHub project boards to track our backlog progress. The main reason was GitHub project boards easily automates updates card from related issues and pull requests which cost us less effort👍</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SG_Hc3OvEaIYBRrtsQm4TQ.png" /><figcaption>GitHub project boards for our team project</figcaption></figure><h4>Early daily stand-up meeting</h4><p>Our team <em>somehow </em>agreed to schedule our daily stand-up meeting every Monday and Friday at 7.30 am. Well, I guess it’s a hidden opportunity for us to fix our messed up sleeping schedule🙃</p><h3>Afterwords</h3><p>Scrum is a simple framework that anyone can easily understand and implement. The one thing that people usually need to adapt first during implementing Scrum is the agility itself. But, as long as your whole team spares their time to understand it and be responsible for their task, Scrum is far from a problem.</p><p>Hopefully, my explanation and my personal experience can help you understand Scrum framework more. Up to this point, I still enjoy doing Scrum with my team. Well, there are still more than 10 weeks left to finish this project (and this course). Let’s hope that all of us safely finish our project on time without any significant problems.</p><p><strong>References:</strong></p><ul><li><a href="https://www.scrum.org/resources/what-is-scrum">What is Scrum?</a></li><li><a href="https://scrumguides.org/scrum-guide.html">Scrum Guide | Scrum Guides</a></li><li><a href="https://www.zeolearn.com/magazine/scrum-master-vs-product-owner">Scrum Master Vs Product Owner</a></li><li><a href="https://friday.app/p/daily-standup-meetings">Daily Standup Meetings (everything you should know)</a></li><li><a href="https://www.qrpinternational.be/blog/glossary/who-is-the-scrum-developer-role-and-responsabilities/">Who is the Scrum developer: role and responsibilities</a></li><li><a href="https://scele.cs.ui.ac.id/mod/url/view.php?id=101496">SCELE Fakultas Ilmu Komputer Universitas Indonesia: Log in to the site</a></li><li><a href="https://scele.cs.ui.ac.id/mod/url/view.php?id=101497">SCELE Fakultas Ilmu Komputer Universitas Indonesia: Log in to the site</a></li><li><a href="https://scele.cs.ui.ac.id/mod/url/view.php?id=101498">SCELE Fakultas Ilmu Komputer Universitas Indonesia: Log in to the site</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc8ade2f7bf2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git Flow in PPL feat. VSCode Version Control]]></title>
            <link>https://medium.com/@raryasdya/git-flow-in-ppl-feat-vscode-version-control-1e4f39ad8dcb?source=rss-3cd4f5b3fbea------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e4f39ad8dcb</guid>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Fairuza Raryasdya A]]></dc:creator>
            <pubDate>Mon, 28 Feb 2022 14:06:31 GMT</pubDate>
            <atom:updated>2022-03-19T15:43:38.181Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nWfV73waUNxy1SdJ7EESAg.jpeg" /></figure><p><em>This article is part of Proyek Perangkat Lunak (PPL) or Software Engineering Project Course.</em></p><p>In this course, we are required to collaborate with more than 5 other people to develop a project. Therefore, the Git flow for our course has been standardized to the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_fk7ARagY79IbJ7nQrKr3g.png" /><figcaption>Git flow in PPL course</figcaption></figure><h3>Git Flow in PPL</h3><h4>Branching</h4><ol><li><strong>Master </strong>→ Main branch that will be deployed to <strong>production </strong>environment</li><li><strong>Staging → </strong>Also main branch, but will be used for <strong>development </strong>environment</li><li><strong>PBI[1..n]</strong> → Branch to <strong>implement </strong>specific Product Backlog Item</li><li><strong>Hotfix</strong> → Branch to <strong>fix bug at master branch</strong></li><li><strong>Coldfix </strong>→ Branch to <strong>rollback</strong> some implemented features</li></ol><h4>Flow</h4><ol><li>Initialize <strong>master </strong>and <strong>staging </strong>branch</li><li>Initialize <strong>PBI </strong>branch to implement a feature</li><li>Implement <strong>TDD </strong>to implement the feature</li><li><strong>Merge</strong> PBI branch to staging branch<br>Merging can only be done after Merge Request / Pull Request had been approved by at least 2 other team members</li><li><strong>Adjust </strong>staging branch <strong>before merging</strong> to master branch<br>Adjusting can be done using feedback that developers received during demo to the Product Owner</li></ol><h4>Local vs GitLab/GitHub</h4><p>GitLab and GitHub are both platforms that accommodate Git repositories. Their interfaces let users easily organize their repositories, such as code reviews, merging, and issues. That’s why steps 4 and 5 of this course Git flow usually are done in GitLab or GitHub.</p><p>Then what about steps 1–3? Some people use git bash or terminal and manually type git commands to execute git features. Some other people — including me — use Visual Studio Code’s built-in feature named Version Control. Visual Studio Code has integrated version control which supports Git. This feature helps developers easily control their repository.</p><p>In the rest of the article, I will show you a quick guide on using VSCode Version Control to do PPL project. This article assumes that readers are already familiar with Git.</p><h3>Prerequisites</h3><ul><li>Visual Studio Code</li><li>Git with version at least 2.0.0</li></ul><h3>Clone Repository</h3><p>1. Open VSCode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rLkwwIOynRSUwCx8gpIsaQ.png" /></figure><p>2. Open Source Control and press Clone Repository.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/305/1*8Unz6PHMsdV658dlNzSdUw.png" /></figure><p>3. Choose which repository that you want to clone to your local.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*_vq7W-IdBPWrMOjMcJvmGQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*JhMLDcXa18hIGH2fEy_Nlg.png" /><figcaption>you can clone private repository as long as your GitHub account has got access to it</figcaption></figure><p>4. You can see the progress at the bottom right of your interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*nj8Dyro1sCNO-GZUpy32tQ.png" /></figure><p>5. After the cloning process is finished, the Source Control tab will change to the image below which contains 7 sections.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*A1g8WzQ7dAs9jwkqe1raCA.png" /></figure><p>There are actually many other sections, but this article will only cover some of them that will be useful in this course.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*tjFXNosug20BNEBVmFDaTw.png" /></figure><h3>Branch</h3><h4>Create Branch Option 1 — via Branches Section</h4><p>If you create a branch using this method, it will automatically create it from the current branch. Refer to <strong>Option 2 </strong>if you want to create it from another branch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/353/1*YnC9QXvEsMqSdrZ-3rq8oQ.png" /><figcaption>it shows that there is only 1 branch in this repository, click + to create a new branch</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*-xWLBXQb-tGyeaPacCFkgA.png" /><figcaption>enter the new branch name</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*xita41bRZmuBoMNto1yUww.png" /><figcaption>choose which option you want</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/353/1*Sv6lJRxDGIqZ4M1rRikEBA.png" /><figcaption>now there are 2 branches in this repository</figcaption></figure><h4>Create Branch Option 2 — via Status Bar</h4><p>You can see the current branch name at the bottom left of the interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*jTKg1yReEg1UvgbVcX15pw.png" /><figcaption>current git branch</figcaption></figure><p>If you click it, you can create a new branch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*S5Po9D1hqRglEMqAW-yv5w.png" /><figcaption>choose which option you want</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*IpzRf4UO8YuOBDe4IwBo_w.png" /><figcaption>I chose “create new branch from” and named it “git-demo”</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*bjGkVkjieHEJWaO4noqyrg.png" /><figcaption>choose which branch do you want to create it from</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/251/1*495sQBjpuBoIXMgPss5xtg.png" /><figcaption>current branch changed from “master” to “git-demo”</figcaption></figure><h4>Checkout to Existing Branch</h4><p>You can checkout to the other branch by clicking this icon in <strong>Branches </strong>section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*h6l6lUUywE3GhFz6colI5A.png" /><figcaption>checkout to branch “git-demo-2”</figcaption></figure><h3>Commits</h3><h4>Review Changes</h4><p>If you click on one of the changed files, you can see the difference between the previously committed file and the new unstaged file. This feature help developers review their works before committing it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nd77oQqJOItr-tjQiUOIpg.png" /></figure><h4>Stage Changes (git add)</h4><p>You can stage all changes by clicking the + button at the top of the Changes subsection in the Source Control section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*83sGV9idxXR9npSElFyCPw.png" /><figcaption>stage all changes</figcaption></figure><p>Or you can manually stage it one by one per file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/317/1*u9mOkwHwjzua0ODKzqE1Qg.png" /><figcaption>stage per file</figcaption></figure><h4>Unstage Changes (git reset)</h4><p>Same as staging, you can unstage all changes by clicking the — button at the top of the Staged Changes subsection in the Source Control section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/366/1*XCp74obCbApSigmAHO3oFQ.png" /><figcaption>unstage all changes</figcaption></figure><p>Or you can manually unstage it one by one per file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/370/1*T81n5qGWX6AICnLNNWbBjw.png" /><figcaption>unstage per file</figcaption></figure><h4>Commit the Changes (git commit)</h4><ol><li>Write your commit messages at the message bar</li><li>Click the check button or press Ctrl + Enter to commit the changes</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/1*_8EDu_P85c6_6h6tQ_tBGw.png" /><figcaption>commit your changes</figcaption></figure><h4>Commits History</h4><p>You can see all of the commit histories of the current branch in the <strong>Commits </strong>section</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*JoX9giEq_IIeuNf2bkzd9w.png" /></figure><p>Or you can see only the commits for a particular file at the <strong>File History</strong> section</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*6vetMh9IcXrsCCwdCr62NA.png" /><figcaption>commit history for file tests.py</figcaption></figure><h4>Undo a Commit</h4><p>This feature is my lifesaver as it helps me change commit comments or the included changes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*komzgGnUOnBuGtT906SNRQ.png" /><figcaption>before undoing a commit</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*k_d2chEMKbWumi8YmJVbjg.png" /><figcaption>after undoing a commit</figcaption></figure><h3>Pull</h3><p>You can pull from your remote branch by clicking this icon in the <strong>Commits </strong>section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*VLIICWJdIRFQFkZOi2fT7A.png" /></figure><h3>Push</h3><p>There are a lot of options to push your branch to the remote repository. Whichever one you choose, it will all lead you to the same end.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*8JnbVIOWSJC8hdRec9Lr3g.png" /></figure><h3>Afterwords</h3><p>Git is an important tool for developers especially during collaborating. But learning Git is not that easy and using it via terminal doesn’t help you understand Git faster either. Thus the existence of VSCode Version Control helps many people utilize Git easily. Besides understanding how to use Git, understanding and implementing the Git flow that your project use is also important since it lets you organize branches by specific tasks. Well, I hope this article will help you understand more about Git flow with an example of Git flow that is used in PPL course and how to implement it using VSCode Version Control. I also hope some of you become interested in using this feature since I personally love it and keep using it for all my works. Thank you for reading this article until the end!</p><p><strong>References:</strong></p><ul><li><a href="https://scele.cs.ui.ac.id/mod/url/view.php?id=101502">SCELE Fakultas Ilmu Komputer Universitas Indonesia: Log in to the site</a></li><li><a href="https://vscode-docs.readthedocs.io/en/latest/editor/versioncontrol/">Versioncontrol - vscode-docs</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e4f39ad8dcb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>