<?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 Adib yusril Wafi on Medium]]></title>
        <description><![CDATA[Stories by Adib yusril Wafi on Medium]]></description>
        <link>https://medium.com/@adibyw29?source=rss-36240f7758a7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5h3BpCxDNw8FTPO3Byv9bA.jpeg</url>
            <title>Stories by Adib yusril Wafi on Medium</title>
            <link>https://medium.com/@adibyw29?source=rss-36240f7758a7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 20:07:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adibyw29/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[Developing project “Kape” — part 1]]></title>
            <link>https://medium.com/@adibyw29/developing-project-kape-part-1-1911d7b34701?source=rss-36240f7758a7------2</link>
            <guid isPermaLink="false">https://medium.com/p/1911d7b34701</guid>
            <category><![CDATA[python2]]></category>
            <category><![CDATA[django]]></category>
            <dc:creator><![CDATA[Adib yusril Wafi]]></dc:creator>
            <pubDate>Sun, 06 Oct 2019 11:37:21 GMT</pubDate>
            <atom:updated>2019-10-07T07:04:40.712Z</atom:updated>
            <content:encoded><![CDATA[<h3>Developing project “Kape” — part 1</h3><p>As part of the assignment for the Software Quality Assurance course at my university, I am obliged to participate in a class project. The class project is working on an existing project called <strong>Kape</strong>.<strong> </strong>The students of the class are responsible to add or improve a feature, fix a bug, or upgrading a dependency of the project based on their own decision. Throughout the working progress of the assignments, We are encouraged to uphold the Software Quality Assurance theory that we have gotten in the class.</p><h3>Kape</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*jstaTi6pP1PrcCD3qeYX_Q.png" /><figcaption>Logo Kape</figcaption></figure><p>Kape is a project that was developed by my upperclassmen. It is a job portal website, targeted for the students of my university that are looking for an internship and is planning to use that internship to get credits for the Kerja Prakik or KP (pronounces as <em>Kape</em>) course at my university.</p><h3>Working on Kape</h3><p>I choose to add a feature of <strong>editing feedbacks </strong>submitted by a user. It is inspired by the fact that a user can create and delete feedbacks, but not edit them. So if a user made a mistake in one of their feedback, to correct it, they will have to delete that feedback and create another one. I think that process is a bit roundabout, even more so if that particular user doesn’t have access to a fast internet connection, and that process will take more time than is actually needed. Adding the edit feature will hopefully shorten that process to make it faster for the user.</p><p>My scope of work is only adding a <strong>unit test </strong>for editing feedback and then <strong>implementing </strong>that feature to pass the unit test, following the test-driven development (TDD) methodologies.</p><h4>Feature Behavior</h4><ul><li>Every request should provide feedback id that will be edited.</li><li>It should update the feedback if it existed in the database and then return a response of the updated feedback and a success message.</li><li>It should send an error message if the feedback doesn’t exist in the database.</li><li>It should forbid access if the request doesn’t contain a feedback id.</li></ul><h4>Domain Input</h4><ul><li>Integer (feedback_id)</li><li>String (title and content of the updated feedback)</li></ul><h3>Creating Test</h3><p>This time, I focus my testing based on the input field feedback_id, the reason for that is because I still haven’t implemented the front end side of the feature. So I still don&#39;t whether to validate the input through the back end side or the front end side.</p><h3>Functionality Based Test</h3><p>The main functionality of this feature is to update feedbacks given from a user, but there is a problem, in the design of the database there is no relation between a user and their feedback, so I cannot put their relationship to the test. In the end, I decided to just test only the feedback object, so my function will have a functionality such as this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/397/1*0-B9MTjAjuQuZfQ9JnrBkQ.png" /><figcaption>Functionality Based Test Case</figcaption></figure><p>I name every block by a combination of &lt;A/B&gt;&lt;1/2&gt; where A1 indicates the condition in row A and block 1. Because I only have a small amount of test condition, I decided to try every combination that is possible between each block, which will result in 4 different test cases condition. The test cases look something like this.</p><ul><li>A1-B1: feedback_id and feedback object exist, update the feedback object</li><li>A1-B2: feedback_id does exist but feedback object doesn’t exist, raise an error “Object doesn’t exist”</li><li>A2-B1: feedback_id doesn’t exist but feedback object does. Raise an error “Method not allowed”</li><li>A2-B2: feedback_id and feedback object doesn’t exist. Raise an error “Method not allowed”</li></ul><p>After listing all the possible combinations, we could see that pair A2-B1 and A2-B2 raise the same error, that is because every request should contain a feedback_id as its parameters. And so I decided that the condition A2-B2 is redundant because it has been covered by the condition A2-B1. With that, the list of unit test that I create is are (A1-B1, A1-B2, A2-B1).</p><h3>Implementing The Function</h3><p>after creating all the unit tests and making sure that it fails (as intended), I started working on my function implementation little by little. Firstly, I create a stub for the function, this will satisfy the A2-B1 condition because of the inherent function from the Django-Viewset. And then I implement the A1-B1 where the functions will update a feedback object and return the data of the updated object and a simple success message. Lastly, I implement the A1-B2 condition where the function will raise an error message stating that the feedback object doesn’t exist. After a quick check, all my unit tests have passed.</p><p>That will be all for my experience for this iteration of working on the Kape project. Thank you very much for reading it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1911d7b34701" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working with Haskell]]></title>
            <link>https://medium.com/@adibyw29/working-with-haskell-d8397f4b5b3a?source=rss-36240f7758a7------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8397f4b5b3a</guid>
            <category><![CDATA[haskell]]></category>
            <category><![CDATA[functional-programming]]></category>
            <dc:creator><![CDATA[Adib yusril Wafi]]></dc:creator>
            <pubDate>Thu, 03 Oct 2019 12:56:55 GMT</pubDate>
            <atom:updated>2019-10-03T13:20:04.954Z</atom:updated>
            <content:encoded><![CDATA[<p>In my last year as a computer science student at the University of Indonesia, I decided to choose the <strong>Functional Programming</strong> course as one of my elective courses. The reason for that is because I want to widen my knowledge of the <strong>Declarative Programming </strong>paradigm, as because during the three years I spent in my university, I have gotten pretty familiar with the <strong>Imperative Programming </strong>paradigm <strong>where we “command” our program to do specific things in a specific order<em>.</em></strong></p><p>On the other hand, the <strong>Declarative programming </strong>paradigm doesn’t require us to explicitly tell our program how to do something, we just need to declare the logic of the computation. I was first introduced to declarative programming through one of my other elective course, Logic Programming, which got me pretty interested in the declarative programming paradigm and became another reason why I took the functional programming course. Well enough about me, now I would like to share with you the things that I’ve learned during the first 4 weeks of my functional programming course.</p><h3>Haskell</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/0*Nj7x0CStehozNTEa.png" /><figcaption><em>Haskell Icon</em></figcaption></figure><p>For my functional programming course, my teacher suggested that we use <strong>Haskell</strong> as our programming language because of its purely functional programming design, and a little research gave me a bit of insight about what is Haskell. Haskell is a programming language that was first introduced in 1990. It is named after <strong>Haskell Curry</strong>, a renown mathematician and logician, that is best known for his work in <strong>combinatory logic</strong>.</p><p>Haskell as a programming language has many features that cannot be found in other programming languages, such as, <strong>Lazy Evaluation</strong> where Haskell evaluates an expression only when needed, <strong>Purely Functional</strong> where Haskell guarantees that every function will have a return value.</p><p>Here is a little example of code in Haskell.</p><pre>func1 xs = [ x+1 | x &lt;- xs]</pre><p>the code above has the function to add every element of a list with 1, what makes Haskell better is that we don’t really need to explicitly write out the type that will be used in a function as Haskell have a feature called Type Inference where types will be inferred by unifying every type bidirectionally. However, we could write the types used inside the function if we want, it could serve as a handy code documentation.</p><p>For comparison purposes, here is the code in Python.</p><pre>def func1(xs):<br>    for i in range(len(xs)):<br>        xs[i] = xs[i] + 1</pre><pre>    return xs</pre><p>Notice the difference in the number of lines it take between Haskell and Python to execute the same logic. That is because Haskell is a declarative programming language that doesn’t need to be told explicitly how to do something.</p><h3>Practicing with Haskell</h3><p>One of the things my teacher tasked me to do is to practice the Higher-Order Function of functional programming. A <strong>Higher-Order Function</strong> is a function that could accept another function as one of its parameters or have another function as one of its return values. The practice was done using Haskell and I would like to share my experience and reflection regarding those practices.</p><p>One of the problems given in the practice is to define a function that could compute the length of a list using the map and sum function that is predefined by Haskell. If we want to solve this problem easily we could just define a code that goes along something like this.</p><pre>length [] = 0<br>length (x:xs) = 1 + legth(xs)</pre><p>That code is fine in and of itself, but it could be improved by converting it into a higher-order function. Which goes like this.</p><pre>length xs = sum (map (\x -&gt; 1) xs)</pre><p>That is all the line of code we need to finish the job. Now, to explain what is what, I will walk through every function that is used in the code. First, our primary function, the length function, which will take a list of things and put it into the xs variable. This will be then processed by the map function, the map function will be executed first because it is placed inside a bracket and just like any other mathematic expression, the things inside the bracket will be executed first. The map function will take a function and a variable as its parameters, the function (\x -&gt; 1) is a function that will turn anything into 1. The Map function will then map that function to every element of xs. After that, the Sum function just has to add every element of the list to get the length of the list.</p><p>The problem above is just one of the few and easy examples of how you could turn an ordinary function into a higher-order function in order to improve it. But please keep in mind that defining a higher-order function is not easy, especially how you need to design a higher-order function that will not change the behavior of the original function. It will take a lot of practice and experiences to be able to code a higher-order function from the get-go, and that is something I will need to work hard to achieve.</p><p>Anyways, this is where I will end my story, thank you for reading it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8397f4b5b3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Block Chain]]></title>
            <link>https://medium.com/@adibyw29/block-chain-155bea8d11b5?source=rss-36240f7758a7------2</link>
            <guid isPermaLink="false">https://medium.com/p/155bea8d11b5</guid>
            <dc:creator><![CDATA[Adib yusril Wafi]]></dc:creator>
            <pubDate>Wed, 21 Aug 2019 10:45:35 GMT</pubDate>
            <atom:updated>2019-08-22T06:23:40.577Z</atom:updated>
            <content:encoded><![CDATA[<h3>Learning About Usage of Block Chain</h3><p>In my search for a literature to study for BukaMagang monthly report, I came across one interesting paper called <strong><em>“Multi-Agent System for E-commerce Security Transaction with Block Chain Technology”. </em></strong>The paper basically design an e-commerce system using a Multi-Agent strategy that utilize a block chain technology. Now, I will try my best to explain it according to my understanding of it.</p><h3>Multi-Agent System For e-Commerce</h3><p>The idea behind a multi-agent system for e-commerce is that, it is thought to be almost impossible for a customer to search all shopping websites, analyze related information and make reasonable decisions when trying to buy something. That is when a multi-agent system comes in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ix3wvD0TUjHZYBti.png" /><figcaption><a href="https://www.prowler.io/ASSETS/header/images/_1200x675_crop_center-center_none/research-banner.png">https://www.prowler.io/ASSETS/header/images/_1200x675_crop_center-center_none/research-banner.png</a></figcaption></figure><p>Just as the name suggest, a multi-agent system is a system with a lot of agent associated with the user. A user acting as a seller will have multiple supplier agent while a user acting as a buyer will have multiple buyer agent. A supplier agent contains the product’s price, model number, quantity, and other detailed information. Its job is to supply those information to a business center about its product and responding to the buyer agents query.</p><p>A buyer agents job is to make the buyer life easier. When a user acting as a buyer wanted to purchase an item, they will create a buyer agent to ask for information to the business center regarding the item, and in response will receive information regarding supplier agents that correspond to that specific item. After that, the user will compose multiple buyer agent to negotiate with the supplier agent regarding the price, stock, etc., after which the user could choose between the buyer agents that gave the most suitable product and deal. When the buyer agent has confirm the buyer choice, the buyer agent “fills out” the order according to the deal. After the supplier Agent receives the order, the buyer agent requires the buyer to authorize it and obtain the money from the buyer’s bank, after the buyer’s authorization is obtained. After that is the sending and receiving of goods (physical goods are distributed by logistics).</p><p>There are still some security risks in the multi-agent e-commerce system, such as : Information leakage, Tampering, Identification, and information destruction. And the way to address this risk is by using the block chain technology.</p><h3>Block Chain</h3><p>Block Chain, like the name indicate, is a chain of blocks that contains information. This technique was originally described in 1991 by a group of researchers and was originally intended to timestamp digital documents so that it’s not possible to backdate them or to to tamper with them. However it went by mostly unused until it was adapted in 2009 to create the digital cryptocurrency Bitcoin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PGM_EtJFSI2CzhBpqtAGUw.png" /><figcaption><a href="https://www.youtube.com/watch?v=SSo_EIwHSd4">https://www.youtube.com/watch?v=SSo_EIwHSd4</a></figcaption></figure><p>Block chain is a distributed ledger that is completely open to anyone that can be programmed to record or track anything of value, from financial transaction, medical records, to land titles. Block chain has an interesting property where it becomes very difficult to change some data that has been recorded inside a block chain. That is possible because each block of a block chain contains some data, the hash of the block and the hash of the previous block. The data that is stored inside a block can be anything such as details of transaction, details of someones medical record, etc..</p><p>A block also has a hash, where you can compare the hash to a fingerprint, meaning the is always unique and can be used to identify the block it associated with. The hash of a block is generated once a block is created, and changing something inside the block will cause the hash or the fingerprint to change, so using the hash to detect changes to a block is very useful because the block will no longer be the same block.</p><p>The third element of a block is the hash of the previous block, that is used to associate and in return creating a chain of blocks. This element is also what makes a block chain so secure. For example, if you tamper with a block, and causes its hash to change, in turn that will make the next block and all the following block invalid because they no longer store a valid hash of the block you change. So changing a block will make all following block invalid.</p><p>Hashing method may be good, but it is not enough to prevent tampering. Because computer these days are very fast, and it could change the data of a block, calculate the hash of that block and the other following block to make the changed block valid again. Block chain have something called proof-of-work to address this issue. It’s a mechanism that slows down the creation of new blocks, for example to 10 minutes, and makes it very hard to tamper with the blocks. Because if you tamper with 1 block, you need to calculate the proof-of-work for all the following blocks.</p><p>Another thing that makes block chain secure is that by being distributed, instead of a centralized data structure, block chain use peer-to-peer network that anyone is allowed to join. Everyone on the network will get a full copy of the block chain, this will allowed the block chain to verify that everything is still in order. When someone creates a new block, that block is send to everyone on the network, then checks that the block hasn’t been tampered with, and if everything checks out, everyone will add this block to their chain. This system create a consensus, everyone on the network agree what blocks is valid and which aren’t, because when someone tried to tamper with a block, they will have to tamper with every chain that belongs to everyone on the network, and that is almost impossible to do.</p><p>Based on the properties of block chains above, it creates trust in the data because everyone can view the data without intermediaries.</p><h3>Block Chain and e-Commerce System</h3><p>Back on the first topic of e-commerce multi-agent system, we could address the issue of Information leakage, Tampering, Identification, and information destruction with the use of block chain. Because as stated above, block chain is secure, hard to tamper with, and have a trusted data. By way of using block chain on a e-commerce multi-agent system, I figure that we could create a safer e-commerce system and thus creating a better user and customer experience.</p><h4>Reference:</h4><p><strong>Multi-Agent System for E-commerce Security Transaction with Block Chain Technology</strong> — XU Hao, SHI Xiao-Hong, and YI Dian — 2018 International Symposium in Sensing and Instrumentation in IoT Era (ISSI)</p><p>https://www.youtube.com/watch?v=SSo_EIwHSd4</p><p>https://www.youtube.com/watch?v=3xGLc-zz9cA</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=155bea8d11b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementing Scoring Metric for A/B Testing]]></title>
            <link>https://medium.com/@adibyw29/implementing-scoring-metric-for-a-b-testing-be8abdbc717b?source=rss-36240f7758a7------2</link>
            <guid isPermaLink="false">https://medium.com/p/be8abdbc717b</guid>
            <dc:creator><![CDATA[Adib yusril Wafi]]></dc:creator>
            <pubDate>Fri, 16 Aug 2019 09:28:08 GMT</pubDate>
            <atom:updated>2019-08-19T03:48:48.430Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s been a month since i start my internship at Bukalapak. This internship is the first I ever have in my entire life, imagine how nervous I am on my first day of work. Luckily it wasn’t as bad as I thought and I was able to go through it pretty normally in my opinion.</p><p>It all started out with an induction for the intern and then I got into my squad which is Home &amp; Category where I will work during my period of internship. There, I met with Mrs. Winda who is my product manager, and Mr. Rudi who will be my mentor throughout my internship. Mrs. Winda told me that my squad mainly deals with the organization of the Homepage and the structure of the category for Bukalapak application, but She also told me that there is also A/B testing that needs to be done and the implementation of the metric will be tasked for me. This is where I first heard of the term A/B test.</p><h3>What is A/B Test?</h3><p>A/B testing means conducting a controlled experiments, where users of the software service are randomly divided between the variants of the service (alternately A or B). The variants can either be two completely new versions of a service or they can be an existing service and a service where an improvement has been implemented. A key issue for the experiment is that users should have a consistent experience for the service, that is, they should always see the same variant when coming back to the service. The results of experiment are then evaluated based on collected customer metrics and using standard statistical techniques.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/0*--B5BdmOgpTpS1fO.png" /><figcaption><a href="https://www.optimizely.com/optimization-glossary/ab-testing/">https://www.optimizely.com/optimization-glossary/ab-testing/</a></figcaption></figure><h3>Why Use A/B Test?</h3><p>Every company needs to discover their customers needs and present it in a way that can be communicated to the stakeholders of the project and can be implemented by the developers. These things are done so that the product of this company can be well received by their customer. Discovering their customers needs and then transforming it into a requirement is a process called validation. After a set of requirements are elicited, there are often multiple alternative solutions that can satisfy these requirements. A/B testing can be a way to validate which of the alternatives best fits customer needs by providing data on customer behavior.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*TwE1O6_1R_dsRKi2.png" /><figcaption><a href="https://images.ctfassets.net/zw48pl1isxmc/1YfPYCiEBycSUykq2gs6OC/119fa2d798195e2ecfec2a9f4618b147/ab-testing-process-6.png">https://www.optimizely.com/optimization-glossary/ab-testing/</a></figcaption></figure><p>The implicit assumption is that the requirements capture the needs of the users of the system and testing against requirements is one way to ensure the quality of the system. This assumption can also be problematic. If the requirements have not been elicited well, the requirements may not represent<br>real user needs. Furthermore, it is possible that companies do not always understand their customers processes and the value which the customer can receive from the usage of the system. The assumption is that A/B testing can be a practice to collect data on user behavior in a real context. If customer<br>metrics of A/B testing relate to customer value, A/B testing can support iterative customer value evaluation. As an example from Bukalapak which is an e-commerce company, one such metric should be the average paid gross merchandise volume (paid gmv). The higher the value of paid gmv from a person is, the more satisfied (s)he is with the service.</p><h4>Reference</h4><p><strong>A/B Testing: A Promising Tool for Customer Value</strong> — Peitsa Hynninen &amp; Marjo Kauppinen — 2014 IEEE 1st International Workshop on Requirements Engineering and Testing (RET)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be8abdbc717b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Seeding and Migration]]></title>
            <link>https://medium.com/sinadin/seeding-and-migration-c330970628e4?source=rss-36240f7758a7------2</link>
            <guid isPermaLink="false">https://medium.com/p/c330970628e4</guid>
            <category><![CDATA[adib]]></category>
            <dc:creator><![CDATA[Adib yusril Wafi]]></dc:creator>
            <pubDate>Wed, 01 May 2019 20:17:36 GMT</pubDate>
            <atom:updated>2019-05-01T20:17:36.161Z</atom:updated>
            <content:encoded><![CDATA[<h4>Data Seeding</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/1*8qbS8bQkWAuSEqIq-y9ZoQ.png" /></figure><p><em>Data seeding </em>adalah pengisian suatu <em>database</em> kosong dengan suatu data awal. Hal ini dilakukan untuk mempermudah pengembangan aplikasi. <em>Data seeding </em>biasanya digunakan atau dilakukan dengan proses automasi pada awal pembuatan atau pengaturan aplikasi. Data yang dimasukan tidak harus benar, namun boleh merupakan <em>data dummy </em>seperti <em>random text </em>selama dapat digunakan pada aplikasi. Tetapi sebelum melakukan <em>data seeding, </em>kita perlu membuat tabel <em>database </em>dimana data akan ditempatkan.</p><h4>Migration</h4><p>Pada dunia <em>software engineering</em>, <em>migration </em>merujuk kepada perubahan pada suatu <em>database relational</em>. Perubahan tersebut dapat berupa pembuatan tabel <em>schema</em>, penambahan kolom atribut atau <em>foreign key</em> pada sebuah tabel, ataupun penghapusan sebuah tabel. <em>Migration</em> dilakukan dengan menggunakan sebuah <em>migration tool </em>yang berfungsi agar <em>database </em>yang dimigrate tidak hancur atau rusak integritasnya.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/1*1UwErGqeF9YN2Lag_9BEPA.png" /><figcaption>Create Units Table in SINADIN</figcaption></figure><h4>Data Seeding</h4><p>Pada projek SINADIN, kami melakukan <em>data seeding</em> karena aplikasi menggunakan <em>database </em>yang sudah dibuat dan berisi data sebelumnya, jadi untuk menyimulasikan hal tersebut kami melakukan proses <em>data seeding</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/276/1*3oacwJkz4r6ht7VfdwiPng.png" /><figcaption>User Data Seeding</figcaption></figure><h4>Implementasi Pada Project</h4><p>Pada project SINADIN <em>data seeding </em>dan <em>migration</em> dilakukan dengan menggunakan satu <em>command </em>saja, yaitu php artisan migrate:fresh --seed dimana migrate:fresh akan mereset <em>database </em>dan --seed akan menjalankan <em>data seeding</em>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c330970628e4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sinadin/seeding-and-migration-c330970628e4">Seeding and Migration</a> was originally published in <a href="https://medium.com/sinadin">sinadin</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploy Docker]]></title>
            <link>https://medium.com/sinadin/deploy-docker-7e5dd78f909f?source=rss-36240f7758a7------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e5dd78f909f</guid>
            <category><![CDATA[adib]]></category>
            <dc:creator><![CDATA[Adib yusril Wafi]]></dc:creator>
            <pubDate>Wed, 01 May 2019 19:52:14 GMT</pubDate>
            <atom:updated>2019-05-22T18:26:53.546Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/373/1*4aKeSVh43tk5DT05371qww.png" /></figure><h4>Docker</h4><p><em>Docker </em>merupakan sebuah <em>platform </em>yang menyediakan sebuah layanan dimana kita dapat membangun dan menjalankan sebuah aplikasi dengan mudah.</p><p><em>Docker </em>mengembangkan dan menjalankan aplikasi dengan menggunakan <em>container</em>. <em>Container </em>ini sendiri memungkinkan <em>developer </em>mengemas sebuah aplikasi dengan semua bagian yang dibutuhkan seperti <em>library </em>dan <em>dependency </em>lainnya yang dikemas menjadi satu yang nantinya dapat dijalankan pada berbagai macam environment yang berbeda.</p><p>Ada 3 hal mendasar yang ada pada <em>docker</em>, yaitu <em>Docker Registry</em>, <em>Docker Image</em>,<em> </em>dan <em>Docker Container</em>.</p><h4>Docker Registry</h4><p><em>Docker Registry </em>adalah sebuah repository yang berfungsi menyimpan, mengambil, dan mendistribusikan <em>Docker Image. </em>Jika diibaratkan, maka <em>Docker Registry </em>adalah GitHub/GitLab untuk <em>Docker Image</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*az_-iq9PdsdjqbGjtzR_mg.png" /><figcaption>Pulling Docker Image from Registry</figcaption></figure><h4>Docker Image</h4><p>Docker Image dapat berupa kode, <em>dependencies, library</em>, atau bahkan <em>operating system</em>, dsb. yang terkait dengan fungsionalitas yang akan menentukan bentuk dari <em>Docker Container</em>. <em>Docker image</em> dibuat dari file bernama <em>Dockerfile</em>. <em>Dockerfile</em> berisi command-command atau langkah-langkah yang diperlukan dalam pembuatan sebuah <em>Docker Image</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/1*EQHUScQVHle7jEezLdLJbg.png" /><figcaption>Snippet Dockerfile</figcaption></figure><h4>Docker Container</h4><p><em>Container</em> adalah hasil dari <em>Docker Image</em>. <em>Container </em>hampir mirip dengan sebuah <em>Virtual Machine</em>(VM) yang menjalankan aplikasi dan <em>dependencies</em>-nya. <em>Container </em>muncul dan berjalan ketika <em>Docker Image</em> dijalankan menggunakan <em>command</em> docker run image_name. Aplikasi nantinya akan dijalankan pada <em>container</em>.</p><h3>Deployment</h3><h4>Continuous Integration</h4><p><em>Continuous Integration </em>atau CI ialah proses integrasi kode yang telah dibuat oleh <em>developer </em>di dalam repositori bersama dengan tujuan untuk memudahkan dalam pendeteksian error sehingga perbaikan dapat lebih cepat diatasi.</p><p>SINADIN melakukan stage <em>testing</em> yang akan dilakukan setiap kali terjadi <em>push</em> ke dalam sebuah <em>branch</em>. <em>Testing</em> dilakukan dengan men-<em>setup environtment </em>terlebih dahulu seperti <em>composer install</em> dan <em>generate key laravel</em>, dan kemudian melakukan <em>seeding data</em>. <em>Testing </em>juga memberikan <em>code coverage </em>untuk memberikan informasi berapa <em>coverage test </em>yang sudah dilakukan developer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*3cqsju69SmBXYNd_XapXXw.png" /><figcaption>Script for Test staging</figcaption></figure><h4>Deploy &amp; Orchestration</h4><p>Flow program SINADIN menggunakan docker dapat disingkat sebagai berikut:</p><ol><li>Kode akan dipush ke Gitlab</li><li>gitlab-ci.yml akan menjalankan script testing</li><li>Dockerfile akan menjalankan script untuk build image docker</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*LsykR-A4fzs54GVuVAb2XA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e5dd78f909f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sinadin/deploy-docker-7e5dd78f909f">Deploy Docker</a> was originally published in <a href="https://medium.com/sinadin">sinadin</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[So Klin Code]]></title>
            <link>https://medium.com/sinadin/so-klin-code-ebc4d93159ef?source=rss-36240f7758a7------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebc4d93159ef</guid>
            <category><![CDATA[adib]]></category>
            <dc:creator><![CDATA[Adib yusril Wafi]]></dc:creator>
            <pubDate>Mon, 15 Apr 2019 18:31:28 GMT</pubDate>
            <atom:updated>2019-05-22T19:24:40.494Z</atom:updated>
            <content:encoded><![CDATA[<p>Dalam penulisan sebuah kode program, kita tidak boleh hanya mengutamakan aspek fungsionalitasnya saja, melainkan juga harus memperhatikan aspek <em>readability </em>dari kode tersebut.</p><p>Sebuah kode yang memiliki aspek <em>readability </em>yang baik sering kita sebut dengan <em>clean code</em>. Ada beberapa keuntungan yang bisa dicapai dengan menerapkan <em>clean code</em>, di antaranya sebagai berikut :</p><ul><li>Mempercepat proses <em>development </em>secara signifikan, terutama ketika proses tersebut dijalankan oleh tim development yang tidak sama karena mereka lebih mudah memahami kode yang dikerjakan oleh tim <em>development </em>sebelumnya.</li><li>Memudahkan proses <em>debugging</em>. Karena kode tersebut mudah dipahami, proses <em>debugging </em>pun akan menjadi lebih mudah.</li></ul><h4>Things to Remember</h4><p>Ada beberapa hal yang harus dilakukan untuk menerapkan prinsip <em>clean code</em>, di antaranya sebagai berikut :</p><ol><li><strong>Penamaan <em>variable </em>dan <em>function </em>yang jelas.</strong></li></ol><p>Penamaan <em>variable </em>dan <em>function </em>yang dilakukan harus sesuai dengan isi dan tujuan dari <em>variable </em>dan <em>function </em>tersebut. <em>Function </em>biasanya menggunakan nama berbentuk kata kerja dan <em>variable</em> menggunakan kata benda. Penamaan yang bagus dapat memudahkan kita dalam memahami kode dengan cepat.</p><p>2. <strong>Pengkodean Error dan Exception Handling.</strong></p><p>Antipasi diperlukan untuk <em>handling error</em> sehingga aplikasi tidak rusak saat <em>runtime.</em></p><p>3. <strong>D.R.Y</strong></p><p>Penulisan kode yang berulang-ulang sangat tidak efektif dan hanya akan membuat aplikasi berjalan lama.</p><p>4. <strong><em>Layout Formatting.</em></strong></p><p>Penulisan kode yang rapih akan enak dipandang, karena penulisan yang berantakan akan membuat <em>developer </em>lain pusing saat melihat kode kita.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*WpxtgqcWBceqH3V0Nn7hyA.png" /></figure><h3>REFACTORING</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3DPEMsnSUXDW1fZG.jpg" /><figcaption>TDD Cycle</figcaption></figure><p><em>Refactoring </em>adalah proses menata ulang struktur kode yang telah kita buat. Dalam proses TDD, tujuan pertama kali kita menulis sebuah kode adalah agar kode yang kita buat dapat lulus dalam semua tests (GREEN). Karena tujuan inilah biasanya kita menulis kode dalam struktur yang buruk dan tidak mengikuti <em>best practice </em>yang ada. Oleh karena itu, dilakukanlah refactoring.</p><p><em>Refactoring</em> berguna agar kode yang kita buat lebih <em>maintainable </em>dan lebih optimal. Disinilah <em>tests </em>yang telah kita buat akan menjadi sangat berguna. Ketika kita melakukan <em>refactoring, </em>kita tidak perlu khawatir akan merusak fungsionalitas dari code yang sudah kita tulis. Berikut salah satu refactoring yang telah saya lakukan.</p><ul><li><strong>Before Refactoring.</strong></li></ul><p>Pada proses awal penambahan <em>super_nip </em>pada tabel <em>users </em>saya hanya mengganti <em>migration </em>tabel <em>users </em>saja. Hal ini tidak baik dilakukan karena dapat menyebabkan konflik pada pekerjaan teman saya yang lain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/1*Ji-lLc5b78HTxMRcg_gIjw.png" /><figcaption>super_nip still masih di migration tabel users</figcaption></figure><ul><li><strong>After Refactoring.</strong></li></ul><p>Saya melakukan <em>refactoring </em>dengan cara membuat sebuah <em>migration </em>baru yang akan menambahkan kolom <em>super_nip </em>pada tabel <em>users. </em>Sehingga tidak akan terjadi konflik pada <em>migration </em>tabel <em>users </em>pada branch yang lain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/1*eC7hJE1SqwRpD2Rhekl8nQ.png" /><figcaption>super_nip berada di migration baru.</figcaption></figure><h3>Design Pattern</h3><ul><li><strong>Factory Pattern.</strong></li></ul><p>menyediakan interface yang dapat digunakan untuk membuat objek tanpa harus menspesifikasikan concrete class nya.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*xounbaLoL0XH1GulRbTgsw.png" /><figcaption>Using View Factory</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/1*er6JM_M9d_IXxvdVsrRYBA.png" /><figcaption>View Factory</figcaption></figure><ul><li><strong>Facade Pattern.</strong></li></ul><p>Sebuah kelas yang membungkus kelas lain yang lebih kompleks agar memudahkan penggunaan kelas lain tersebut.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*82ra4Cruq4uOfKXnl00LIg.png" /><figcaption>Facade Class for Storage</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/344/1*dhWpPdFrQSq2z_Fq6cNvYg.png" /><figcaption>Using the Storage Facade Class</figcaption></figure><ul><li><strong>Model-View-Controller Pattern.</strong></li></ul><p>pattern ini lebih bersifat architectural, penggunaannya sendiri merupakan dasar dari framework laravel. Dimana terdapat Models sebagai pengatur relasional database, Controllers yang menghandle input dari user dan fungsi-fungsi yang digunakan aplikasi, serta Views yang menjadi jembatan antara user dengan aplikasi berupa sebuah User Interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/210/1*5eon5Itoke5ZVUzMNDNqrQ.png" /><figcaption>Models</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/278/1*QZLcaQeTM8DQzLgEVZ1rOQ.png" /><figcaption>Controllers</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/207/1*ovaspaiNCvauNT-7N8NKIg.png" /><figcaption>Views</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebc4d93159ef" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sinadin/so-klin-code-ebc4d93159ef">So Klin Code</a> was originally published in <a href="https://medium.com/sinadin">sinadin</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Together Ape Strong]]></title>
            <link>https://medium.com/@adibyw29/together-ape-strong-b6bd4f6e2732?source=rss-36240f7758a7------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6bd4f6e2732</guid>
            <category><![CDATA[adib]]></category>
            <dc:creator><![CDATA[Adib yusril Wafi]]></dc:creator>
            <pubDate>Mon, 01 Apr 2019 16:46:14 GMT</pubDate>
            <atom:updated>2019-04-01T17:02:40.031Z</atom:updated>
            <content:encoded><![CDATA[<p>Halo Semua…!</p><p>Gak terasa sudah 9 minggu PPL berjalan, tetapi semangatnya gaboleh turun dong dalam ngerjain tugas-tugas yang ada~~ Pada post pertama publikasi ini kita sudah berkenalan dengan nama-nama anggota kelompok pengembangan SINADIN, tapi alangkah baiknya jika kita makin kenal dekat dengan setiap anggotanya.</p><h3>The Hustler</h3><p>Perkenalkan nama saya Adib Yusril Wafi, yang berperan sebagai hustler dalam kelompok pengembangan SINADIN. Peran hustler sendiri terdiri dari berkomunikasi dan memahami semua anggota kelompok, serta sebagai jembatan anggota kelompok kepada partner. Saya memilih peran ini karena saya ingin meningkatkan <em>soft skill</em> saya dalam berhubungan dengan orang lain dan juga membantu teman-teman saya dalam bekerja sebagai kelompok selama PPL berlangsung. Sekian dulu tentang saya mari kita bahas tentang temen-temen saya yang lainnya.</p><h3>The Hipster</h3><p>SINADIN memiliki 2 orang laki-laki yang menaruh atensi mereka kepada desain yang akan digunakan SINADIN sebagai <em>User Interface</em>-nya. Mereka adalah Daus dan Bagas.</p><h4>Daus</h4><p>Daus memiliki nama asli Sukma Firdaus, tetapi lebih sering dipanggil dengan nama Daus. Lelaki ganteng ini dapat dibilang memiliki passion terhadap desain, saat pembuatan revisi <em>mock up,</em> Daus berperan penting dalam memberikan garis besar desain yang akan dipakai. Kenapa disebut lelaki ganteng karena dari semua anggota kelompok SINADIN, daus merupakan satu-satunya anggota yang memiliki kekasih, Cieee…</p><h4>Bagas</h4><p>Bagas atau Tio Bagas merupakan orang yang membantu Daus ketika sedang membuat revisi <em>mock up, </em>Bagas merupakan orang yang cekatan dalam mengerjakan tugasnya, apalagi jika tugasnya sudah memiliki prosedur pengerjaan yang jelas, maka Bagas akan dengan cepat dapat menyelesaikannya. Dapat diandalkan banget gasih???</p><h3>The Hacker</h3><p>Selain Saya, Daus, dan Bagas, SINADIN juga memiliki 3 teknisi yang berperan dalam pengembangan teknologi yang SINADIN akan gunakan. Mereka adalah Kak Fandy, Zain, dan Kak Troy.</p><h4>Kak Fandy</h4><p>Kenapa dipanggil Kak? Karena Kak Fandy merupakan kakak tingkat saya di kampus. Oleh karena itu Kak Fandy sudah memiliki pengalaman yang lebih banyak dalam bidang pemrograman, apalagi Kak Fandy sudah pernah bertanggung jawab dalam pengembangan sebuah aplikasi menggunakan framework Laravel juga sehingga membuat Kak Fandy menjadi <em>The Go To Guy</em> jika anggota kelompok yang lain memiliki pertanyaan mengenai Laravel.</p><h4>Zain</h4><p>Zain adalah teman dekat saya semenjak masa SMA. Disini Zain berperan sebagai salah satu teknisi yang dapat diandalkan dalam mengerjakan fungsi SINADIN. Apalagi jika fungsi tersebut sudah memiliki contoh pengerjaannya di internet, maka Zain akan dengan bangga menyatakan kalau fungsi itu mudah untuk dikerjakan. Zain merupakan seseorang yang sangat suka mencari pengetahuan di internet, jika kita memiliki tugas maka Zain akan pertama-tama mencari tugas itu di internet.</p><h4>Kak Troy</h4><p>Seperti Kak Fandy, Kak Troy juga merupakan kakak tingkat saya di kampus. Pengaruh terbesar Kak Troy dalam SINADIN adalah Kak Troy bertanggung jawab sebagai <em>devops</em> yang mengurus <em>deployment</em> SINADIN ke server. Meskipun dalam proses pengerjaannya Kak Troy menemui masalah-masalah seperti keterbatasan memori, tetapi Kak Troy tidak akan menyerah dalam menemukan solusi dari permasalahan itu, tanpa takut bertanya bahkan ke tim Dosen PPL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6EfR-l6WBrVSviBZkZ9TFQ.png" /><figcaption>Foto Setelah Sprint Review 1</figcaption></figure><p><em>And here is one of our proper photo (Meskipun belum full team)! Semoga kita banyak foto-fotonya yah!</em></p><h3>How Do We Meet</h3><p>Pada dasarnya Saya, Zain, Daus, dan Bagas merupakan teman dekat yang sering melalui hari-hari perkuliahan selama bersama-sama, dan kami juga sudah beberapa kali bekerja bersama dalam kelompok. Tetapi kami baru bertemu dengan Kak Fandy dan Kak Troy saat pembentukan kelompok mata kuliah PPL. Kita mengetahui keberadaan satu dengan yang lain saat memilih topik PPL, karena kami kekurangan anggota, maka kami mengajak Kak Fandy dan Kak Troy untuk bergabung.</p><p>Saya dan semua orang di dunia ini pasti percaya bahwa setiap orang memiliki karakteristiknya masing-masing. Kita juga percaya bahwa tidak ada manusia yang sempurna. Kita pun juga tahu bahwa kita memiliki preferensi yang berbeda-beda. Perbedaan ini yang kemudian menjadi perhatian saya ketika menjadi seorang Hustler.</p><p>Strategi saya dalam menyatukan setiap anggota SINADIN agar menjadi sebuah tim adalah dengan menerapkan prinsip <strong>Teman Seperjuangan. </strong>Dengan mengembangkan SINADIN bersama-sama, Ngoding bersama-sama saya percaya anggota SINADIN akan memiliki topik pembicaraan yang dapat mulai memicu interaksi dan mulai lebih akrab dengan satu sama lain.</p><h3>The Obstacle</h3><p>Perjalanan menuju kesuksesan tidak akan pernah berjalan mulus, lurus dan sekejap. Setelah 9 minggu kami lewati, Sprint 1 merupakan sprint yang paling berat setidaknya untuk saya dan beberapa teman yang lain. Dinamika pada sprint 1 seperti teknologi baru dan error yang tidak pernah dirasakan sebelumnya dan kecemasan atas bayang-bayang PPL yang menyeramkan menjadi salah satu penyebab demotivasi dini yang dirasakan saya dan beberapa teman.</p><h3>The Solution</h3><p>seperti pepatah bahwa orang bijak akan belajar dari kesalahannya, Kami mengadakan <em>Sprint Retrospective </em>untuk mengevaluasi hasil kerja kami selama sebuah <em>Sprint</em>. Hasil dari evaluasi itu kami jadikan sebagai poin yang harus diperbaiki dalam <em>Sprint </em>berikutnya. Perbedaan cara kerja, perbedaan karakter yang kurang sesuai dengan satu sama lain juga menjadi evaluasi kami. Dan salah satu poin yang kami dapatkan adalah kami harus saling bahu-membahu dan bantu-membantu satu sama lain.</p><p>Tidak lupa beberapa poin penting yang harus diterapkan oleh setiap anggota kelompok, meskipun kami sudah lebih akrab tetapi poin-poin ini tetap tidak boleh dilupakan. Poin ini merupakan prinsip <em>manusia yang memanusiakan lainnya</em>. Hal ini mencakupi:</p><ul><li><strong>Saling menghormati cara bekerja dan karakter orang lain</strong></li><li><strong>Bertutur kata yang positif dan baik.</strong></li><li><strong>Merangkul seseorang yang kesulitan.</strong></li><li><strong>Mendengarkan ketika orang lain berbicara.</strong></li></ul><h3>Conclusion</h3><p>Pada akhirnya semua butuh proses. Perjalan PPL anggota tim SINADIN masih belum selesai dan pastinya akan memberikan cerita dan warna lainnya dalam diri masing-masing setiap anggota SINADIN.</p><p>Tetapi Saya berharap bahwa pada akhirnya anggota kelompok SINADIN dapat menjadi anggota yang kompak dan memberikan hasil yang memuaskan. AMIN….</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6bd4f6e2732" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agile Person]]></title>
            <link>https://medium.com/sinadin/agile-person-1c0f86af705f?source=rss-36240f7758a7------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c0f86af705f</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[adib]]></category>
            <dc:creator><![CDATA[Adib yusril Wafi]]></dc:creator>
            <pubDate>Wed, 20 Mar 2019 17:09:32 GMT</pubDate>
            <atom:updated>2019-04-01T15:53:16.692Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Agile software development </em>merupakan suatu metodologi dalam pengembangan suatu aplikasi yang didasari dengan pengembangan yang iteratif dan dapat beradaptasi terhadap perubahan. Disebut iteratif karena dalam praktiknya setiap iterasi harus menghasilkan suatu produk yang siap pakai namun belum memenuhi semua requirement atau biasa disebut <em>minimum viable product.</em></p><h3>Agile Iteration</h3><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*l1r1g7WyEmH-Hu5ZLJrasg.png" /><figcaption>6 steps of Agile Software Development</figcaption></figure><h4>Define Requirements</h4><p>Pada tahap ini tim akan berdiskusi dengan Product Owner untuk membahas requirement yang dibutuhkan. Product Owner biasanya akan menyediakan Product Backlog Item (PBI) dan/atau wireframe, persona, atau proses flow yang diperlukan.</p><h4>IU Design</h4><p>Tahap ini tim development akan membuat sebuah prototype clickable untuk menggambarkan proses flow pengguna berdasarkan dokumen yang diberikan.</p><h4>Development</h4><p>Pada tahap ini tim development mulai menuliskan kode/mengimplementasikan seluruh requirement yang diberikan. Pengerjaan disesuaikan dengan Backlog yang dibreakdown menjadi task-task kecil.</p><h4>Quality Assurance</h4><p>Setelah tahap development selesai, tim development harus menguji produk tersebut. Hal yang dilakukan pada tahap ini diantaranya monitoring, uji tes dan memeriksa semua proses dalam produk. Pentingnya tahapan ini adalah untuk uji akhir kualitas produk yang dilakukan oleh Product Owner.</p><h4>UAT</h4><p>UAT adalah <em>User Accepting Test</em> yang mana pada tahap ini produk akan diuji oleh pengguna. <em>Deliverable </em>dari tahap ini adalah suatu dokumen yang dijadikan bukti bahwa software diterima dan memenuhi ketentuan.</p><h4>Release</h4><p>Tahap ini produk siap dirilis dan 1 sprint dalam proses Agile selesai.</p><h3>Agile Manifesto</h3><ul><li><strong>Individuals and Interactions</strong> Over Processes and Tools.</li></ul><p>→ Pengalaman saya dengan prinsip agile yang satu ini contohnya ketika kelompok kami akan mengadakan <em>Daily Stand Up Meeting</em>, tetapi karena keterbasan waktu dan kesibukkan masing-masing anggota saat pekan uts, akhirnya kami memutuskan untuk melakukan kegiatan tersebut secara online melalui <em>messenger</em> LINE, dimana setiap anggota kelompok melaporkan progres, kendala, dan hal-hal yang selanjutnya akan dilakukan dalam Sprint tersebut.</p><ul><li><strong>Working Software</strong> Over Comprehensive Documentation.</li></ul><p>→ Dalam pengembangan SINADIN pada setiap Sprintnya, kelompok kami memprioritaskan berjalannya fungsi aplikasi SINADIN ketimbang dokumentasi kode. Hal ini dikarenakan keterbatasan waktu pengerjaan yang berbarengan dengan beberapa tugas kuliah lainnya.</p><ul><li><strong>Customer Collaboration </strong>Over Contract Negotiation.</li></ul><p>→ Keterlibatan pihak BPPT dalam pengembangan SINADIN merupakan suatu hal yang tidak dapat digantikan. Hal ini dikarenakan BPPT sebagai klien merupakan pihak yang paling mengetahui kebutuhan dan fungsi apa saja yang dibutuhkan oleh SINADIN. Oleh karena itu dalam pengerjaannya, kami seringkali mengkonfirmasi mengenai beberapa poin yang tidak kami mengerti sebagai contoh ketika kami kurang memahami penggunaan tabel pada database, maka kami menanyakan penggunaan dari tabel tersebut kepada pihak BPPT.</p><ul><li><strong>Responding to Change </strong>Over Following a Plan.</li></ul><p>→ Salah satu sifat <em>Agile</em> adalah beradaptasi terhadap perubahan. Sebagai contoh saat pengembangan salah fitur SINADIN, kami memutuskan bahwa rancangan awal tabel database kurang cocok untuk digunakan, sehingga kami memutuskan untuk menambahkan sebuah kolom pada tabel tersebut agar dapat mempermudah implementasi fitur yang ingin dikerjakan tersebut.</p><h3>12 Agile Principles</h3><p>Agar suatu tim berhasil dalam menerapkan <em>agile development methods</em>, maka tim tersebut harus mengikuti dua belas prinsip yang ditetapkan oleh <strong>Agile Alliance.</strong></p><blockquote><strong>Customer satisfaction through early and continuous software delivery<br></strong>Customers are happier when they receive working software at regular intervals, rather than waiting extended periods of time between releases.</blockquote><blockquote><strong>Accommodate changing requirements throughout the development process<br></strong>The ability to avoid delays when a requirement or feature request changes.</blockquote><blockquote><strong>Frequent delivery of working software<br></strong>Scrum accommodates this principle since the team operates in software sprints or iterations that ensure regular delivery of working software.</blockquote><blockquote><strong>Collaboration between the business stakeholders and developers throughout the project<br></strong>Better decisions are made when the business and technical team are aligned.</blockquote><blockquote><strong>Support, trust, and motivate the people involved<br></strong>Motivated teams are more likely to deliver their best work than unhappy teams.</blockquote><blockquote><strong>Enable face-to-face interactions<br></strong>Communication is more successful when development teams are co-located.</blockquote><blockquote><strong>Working software is the primary measure of progress<br></strong>Delivering functional software to the customer is the ultimate factor that measures progress.</blockquote><blockquote><strong>Agile processes to support a consistent development pace<br></strong>Teams establish a repeatable and maintainable speed at which they can deliver working software, and they repeat it with each release.</blockquote><blockquote><strong>Attention to technical detail and design enhances agility<br></strong>The right skills and good design ensures the team can maintain the pace, constantly improve the product, and sustain change.</blockquote><blockquote><strong>Simplicity<br></strong>Develop just enough to get the job done for right now.</blockquote><blockquote><strong>Self-organizing teams encourage great architectures, requirements, and designs<br></strong>Skilled and motivated team members who have decision-making power, take ownership, communicate regularly with other team members, and share ideas that deliver quality products.</blockquote><blockquote><strong>Regular reflections on how to become more effective<br></strong>Self-improvement, process improvement, advancing skills, and techniques help team members work more efficiently.</blockquote><h3>Agile SINADIN</h3><p>Dalam pengembangan SINADIN, kelompok PPL kami menggunakan metodologi <em>Agile</em> dengan model <em>Scrum</em>. Penerapan <em>Scrum</em> itu sendiri dibagi menjadi 6 sprint yang pada tiap sprint-nya harus melakukan langkah-langkah sebagai berikut:</p><blockquote><strong>Sprint Planing</strong><br>Memilihi PBI untuk dikerjan kemudian dan menentukan goal dari sprint. Kemudian membreakdown backlog menjadi task-task kecil yang dapat dipilih dan dikerjakan oleh anggota.</blockquote><blockquote><strong>Sprint</strong><br>Setiap anggota mengerjakan task yang telah mereka ambil.</blockquote><blockquote><strong>Daily Scrum Meeting</strong><br>Seluruh anggota bertemu untuk melaporkan progress pengerjaan task, jika sudah selesai dapat mengambil task baru.</blockquote><blockquote><strong>Sprint Review</strong><br>Melakukan presentasi produk yang telah selesai dikerjakan pada saat sprint kepada product owner.</blockquote><blockquote><strong>Sprint Retrospective</strong><br>Melakukan introspeksi atau meninjau ulang kinerja kelompok pada saat sprint berlangsung, apa saja hal yang sudah baik dan apa saja hal yang masih harus diperbaiki.</blockquote><h3><strong>Persona</strong></h3><p>Pada pengembangan aplikasi SINADIN kami memiliki beberapa jenis pengguna yang dapat dikategorikan menjadi 3 kelompok.</p><h3>The Boss</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*Vsmxx6V3-kZFScydHM4nSA.png" /><figcaption>Persona John Doe</figcaption></figure><p>Kategori ini menlingkupi pekerja dengan pangkat diatas Staff, seperti Kepala Bidang, Kepala Balai, dan sebagainya. Kategori ini merupakan sekumpulan orang sibuk yang tidak dapat diganggu dengan User Interface yang membingungkan. Sehingga kemudahan akses dan pemahaman UI merupakan sebuah keharusan agar dapat memuaskan mereka.</p><h3>The Secretary</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*KVi6jiMxNQWueJSaZpCrgA.png" /><figcaption>Persona Jane Doe</figcaption></figure><p>Kategori ini melingkupi staff sekretaris dan tata usaha. Mereka merupakan sekumpulan orang yang senang melihat kerapihan dan keteraturan. Sehingga User Interfacfe haruslah didesain secara rapi, seragam dan teratur tata letaknya agar tidak mengganggu para staff sekretaris.</p><h3>The Staff</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*uyZ4zG1UPfdQvASL2Ta-3w.png" /><figcaption>Persona Ryan</figcaption></figure><p>Kategori ini melingkupi para staff yang melakukan segala pekerjaan yang diperintahkan oleh <strong>The Boss. </strong>Pengembangan aplikasi SINADIN bertujuan agar dapat mempermudah mereka dalam melakukan pembuatan surat. Sehingga UI dan UX harus lah didesain dengan simple agar tidak menyulitkan mereka dalam mengakses aplikasi.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c0f86af705f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sinadin/agile-person-1c0f86af705f">Agile Person</a> was originally published in <a href="https://medium.com/sinadin">sinadin</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hustler or Hipster or Hacker]]></title>
            <link>https://medium.com/sinadin/hustler-or-hipster-or-hacker-96de6fc8d780?source=rss-36240f7758a7------2</link>
            <guid isPermaLink="false">https://medium.com/p/96de6fc8d780</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[mockup]]></category>
            <category><![CDATA[adib]]></category>
            <dc:creator><![CDATA[Adib yusril Wafi]]></dc:creator>
            <pubDate>Wed, 27 Feb 2019 15:10:15 GMT</pubDate>
            <atom:updated>2019-02-27T17:34:52.566Z</atom:updated>
            <content:encoded><![CDATA[<p>2 minggu terakhir ini, peserta kuliah PPL disibukkan oleh kegiatan Sprint 1. Hal-hal yang perlu dilakukan adalah mulai mengerjakan <em>Product Backlog </em>atau PBI dan <em>Set Up environment </em>untuk <em>deployment product</em>.</p><p>Kelompok kami memilih untuk hanya mengambil 1 PBI saja, dikarenakan kondisi kami yang masih belum familiar dengan <em>framework </em>yang digunakan, maupun penyetelan docker image yang menemui masalah. PBI yang kami pilih adalah fitur Login dan Logout.</p><h3>Creating The Design</h3><p>Sebelum memulai pembuatan aplikasi, kami harus membuat sebuah desain yang akan dijadikan acuan saat membuat <em>front end </em>dari aplikasi kami. Desain tersebut kami realisasikan dalam bentuk <em>clickable mockup </em>yang sudah kami selesaikan sebelum sprint 1 di mulai.</p><p>Sayangnya desain pertama kami dinilai terlalu simpel sehingga <em>product owner </em>meminta kami untuk memperbarui desain yang telah kami buat, berikut perbandingan desain pertama dan kedua yang kami kerjakan hingga pukul 3 pagi hari.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*xnmIMq9_GVZaE4_7X7PSsQ.png" /><figcaption>Desain Awal Dashboard</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*7n6dzKzcI7-0cC9Fopxi0A.png" /><figcaption>Desain Kedua Dashboard</figcaption></figure><p>Kami memilih untuk tetap menggunakan tampilan yang simple tapi menerapkan kesan yang futuristik pada desain kedua kami. Alasan kami memilih tampilan desain yang terlihat simple adalah karena persona yang kami dapatkan berupa pejabat yang menyukai kemudahan akses dan sekretaris yang sedikit gaptek dan tidak menyukai ketidakteraturan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*VY8P6KkVt28boPqLGBJKnQ.png" /><figcaption>Persona Pejabat</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*WPCPxaspoxJX2OGT9sirQQ.png" /><figcaption>Persona Sekretaris</figcaption></figure><h3>Working Flow Of The Project</h3><p><strong>Starting And Cloning The Project</strong></p><p>Setelah selesai membuat desain, kini saatnya kami memulai <em>project </em>untuk <em>product</em> kami. <em>Framework </em>yang digunakan merupakan Laravel dengan bahasa pemrograman PHP. <em>Project </em>dimulai pada <em>branch </em>Staging dan kemudian di buat <em>branch </em>baru bernama User Story Login Logout. Setelah <em>project </em>selesai diinisiasikan pada <em>branch </em>User Story, anggota kelompok lain hanya perlu untuk melakukan “git clone” dan “git checkout” pada <em>branch </em>User Story agar dapat memulai pengerjaan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*AMRuuwrc7T_wGpdBcZBgTw.png" /><figcaption>Git Command untuk Cloning dan Check Out</figcaption></figure><ul><li>git clone berguna untuk menyalin remote repository ke local device/local repository. Hasil clone merupakan suatu <em>git repository </em>yang bisa menjalankan perintah git lainnya.</li><li>git checkout berguna untuk berpindah dari suatu branch ke branch lain.</li></ul><p><strong>Working On Given Task</strong></p><p>Setelah berhasil melakukan cloning dan checkout pada branch user story, anggota kelompok sudah mulai boleh mengerjakan task yang diberikan kepada mereka. Dalam pengerjaan task anggota kelompok diharapkan menggunakan metode <strong>Test Driven Development</strong> (<strong>TDD</strong>). Kemudian untuk menyimpan hasil pekerjaan pada git version control dapat menggunakan command berikut.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*glcfHuuGgcqYZKf4u3R9Kg.png" /><figcaption>Git Command untuk Version Control</figcaption></figure><ul><li>git add berguna untuk menambahkan file yang sudah di edit agar dapat di-<em>track</em> oleh git dan diberi commit.</li><li>git commit berguna untuk mencatat perubahan yang terjadi pada file ke dalam <em>repository</em></li></ul><p><strong>Unite The Task</strong></p><p>Diakhir hari, tentu saja kita perlu menyatukan hasil task yang sudah kita kerjakan dengan task yang dikerjakan oleh anggota kelompok kita. Hasil pekerjaan kita akan disatukan pada <em>branch</em> User Story di <em>remote repository</em>. Agar dapat mencegah terjadinya <em>conflict</em>, maka kita perlu melakukan <em>pulling </em>dari <em>remote repository</em> alih-alih anggota kelompok lain sudah menyelesaikan task mereka terlebih dahulu. berikut prosedur dalam menyimpan hasil pekerjaan kita pada <em>remote repository</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/289/1*VkFKQLqf0QXRKZuvHokXSw.png" /><figcaption>Git Command untuk Pulling dari Remote Repository</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*TTXL7m9mt_V0VX_LjmOa3g.png" /><figcaption>Git Command untuk Push ke Remote Repository</figcaption></figure><ul><li>git pull berguna untuk “menarik” file dari <em>remote repository </em>ke <em>local repository, </em>jika tidak ada perbedaan maka file pada <em>local repository </em>tidak akan berubah.</li><li>git push berguna untuk mengunggah hasil perkerjaan kita yang sudah di commit pada <em>local repository</em> ke dalam <em>remote repository</em>.</li></ul><p>Jika terjadi <em>conflict</em> maka kita harus <em>resolve </em>dulu <em>conflict </em>tersebut, dan lakukan add dan commit kembali sebelum dapat melakukan push ke <em>remote repository.</em></p><h3>Test Driven Development (TDD)</h3><ol><li><strong>Making Test</strong></li></ol><p>Pada Sprint kali ini, saya mendapatkan bagian membuat fitur logout, sehingga saya harus membuat sebuah unit test yang mengecek apakah user bisa logout.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*jP2rZLeEHz9SdOzTUeHxsQ.png" /><figcaption>Unit Test Logout</figcaption></figure><p>kemudian saya commit dan push ke dalam remote repository</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/1*l0UId2zyIO368hqT7TScpQ.png" /><figcaption>Commit Membuat Test</figcaption></figure><p><strong>2. Making Function</strong></p><p>Agar dapat passed dari test yang sudah dibuat, saya perlu membuat sebuah fungsi logout yang dapat digunakan oleh user yang sudah di <em>authenticated. </em>Tetapi pada <em>Framework </em>Laravel hal ini sudah disediakan melalui <em>library </em>Auth, yang dapat dijalankan menggunakan kode</p><blockquote>php artisan make:auth</blockquote><p><em>library </em>tersebut mencakup fungsi login dan logout yang langsung dapat digunakan, dengan syarat model database yang sudah lengkap. command “<em>make:auth</em>” sendiri sudah dijalankan oleh anggota kelompok saya, sehingga saya hanya tinggal menyesuaikan user factory-nya saja</p><p><strong>Manfaat TDD</strong></p><p>Alasan kenapa metode TDD digunakan adalah membuat programmer berpikir lebih kritis karena harus mendesain test terlebih dahulu dan bagaimana cara implementasi fungsi agar dapat lulus dari test tersebut.</p><p>Kemudian penulisan test terlebih dahulu dapat mencakup kemungkinan error yang lebih banyak daripada menulis implementasi fungsi terlebih dahulu. Karena jika kita menulis implementasi terlebih dahulu, maka test yang kita buat akan merujuk kepada implementasi yang kita buat, tanpa mencari kesalahannya lainnya.</p><p>Penggunaan TDD juga akan menjamin product yang di deploy sudah berjalan secara sempurna selama source code product tersebut lulus semua unit test yang ada.</p><p>Sekian laporan pengembangan tahap pertama dari produk kami. Masih banyak sekali tugas yang harus kami selesaikan, jadi kami mohon dukungannya agar kami dapat menyelesaikan <em>project</em> ini. Sampai ketemu lagi pada laporan berikutnya.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96de6fc8d780" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sinadin/hustler-or-hipster-or-hacker-96de6fc8d780">Hustler or Hipster or Hacker</a> was originally published in <a href="https://medium.com/sinadin">sinadin</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>