<?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 Harry Akbar Ali Munir on Medium]]></title>
        <description><![CDATA[Stories by Harry Akbar Ali Munir on Medium]]></description>
        <link>https://medium.com/@harryakbar?source=rss-291cf51b74ba------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5s0gbu9oRH1F_uAh31uVIA.jpeg</url>
            <title>Stories by Harry Akbar Ali Munir on Medium</title>
            <link>https://medium.com/@harryakbar?source=rss-291cf51b74ba------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 12:01:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@harryakbar/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[Simplify Email Template Development using Go + MailHog]]></title>
            <link>https://medium.com/@harryakbar/simplify-email-template-development-using-go-mailhog-449afd40a056?source=rss-291cf51b74ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/449afd40a056</guid>
            <category><![CDATA[email]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[improvement]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[mailhog]]></category>
            <dc:creator><![CDATA[Harry Akbar Ali Munir]]></dc:creator>
            <pubDate>Thu, 10 Oct 2024 07:02:30 GMT</pubDate>
            <atom:updated>2024-10-10T07:02:30.198Z</atom:updated>
            <content:encoded><![CDATA[<p>Transforming Email Template Development with Go and MailHog</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gG0scF-iaY-35JiUIEEtpA.jpeg" /></figure><h4><strong>Background Problem</strong></h4><p>Building an email template can be challenging. It often involves a trial-and-error process to ensure the template matches the design and correctly integrates data from the backend service.</p><p>Unlike developing a web UI with React.js, which offers live reloading and easy local testing, building email templates can be more cumbersome, I need to check the result by deploying it manually to the staging environment (which is takes time) and after one test it might turn out some of the CSS in the email is not supported, for example the flex box styling, and then I need to fix and repeat the process over and over. These processes can be tiresome.</p><p>We can take a look for the difference between Email vs Usual web development with React.js</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*38NFnmJzzHHErQ2oIcKZyw.png" /></figure><h4>Problem to be Solved</h4><p>We can simplify the process of building email templates by addressing the following needs:</p><ol><li><strong>Ease of Development:</strong> Develop the email UI easily, similar to developing a web UI, using live-reloading for local changes.</li><li><strong>Templating:</strong> Receive data from backend responses and test locally using mock data.</li><li><strong>Local Testing:</strong> Test the email by sending it to a real email address, triggered locally.</li><li><strong>Modular UI:</strong> Create reusable and modular email templates.</li></ol><h4><strong>Solution</strong></h4><ul><li><strong>Go Program for Email Templates:</strong> I created a new, simple Go program to send email templates implemented with HTML and inline CSS styling, which can take data from a JSON file.</li><li><strong>Template Organization:</strong> Multiple templates are stored in folders, with each folder containing a group of email templates.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*NGmIL73SvagpE-oL1U1K3A.png" /></figure><ul><li><strong>MailHog Integration:</strong> MailHog is an email testing tool for developers that can configure your application for SMTP delivery. You can find MailHog <a href="https://github.com/mailhog/MailHog">here</a>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WMlEuvIdPCpx7XUL" /></figure><ul><li><strong>Local Email Previews:</strong> MailHog provides an email-like UI for local email previews, allowing us to test the emails locally without the need for an actual email service.</li><li><strong>Enhanced UX for Template Selection:</strong> To improve the UX for selecting templates in the terminal, I use <a href="https://github.com/manifoldco/promptui">promptui</a>.</li></ul><pre>func selectFile(prompt string, dir string) string {<br>  files, err := filepath.Glob(&quot;templates/*&quot;)<br>    if err != nil {<br>      log.Fatal(err)<br>    }<br><br>  promptui := promptui.Select{<br>    Label: prompt,<br>    Items: files,<br>  }<br><br>  _, result, err := promptui.Run()<br>  if err != nil {<br>    log.Fatal(err)<br>  }<br><br>  return result<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*jn6t1tZ0Ep_LTavx8qcSkw.png" /></figure><ul><li><strong>Live Reload Feature:</strong> To enable live reloading, I use <a href="https://github.com/fsnotify/fsnotify">fsnotify</a>. When a code file changes, it will automatically re-trigger the email rendering.</li></ul><pre>func liveReload() {<br>  // Create a new file watcher<br>  watcher, err := fsnotify.NewWatcher()<br>  if err != nil {<br>    log.Fatal(err)<br>  }<br>  defer watcher.Close()<br><br>  // Start watching the template directory<br>  templateFile = selectFile(&quot;Select a template that you want to watch&quot;, &quot;templates&quot;)<br>  err = watcher.Add(templateFile)<br>  if err != nil {<br>    log.Fatal(err)<br>  }<br><br>  // Process events<br>  go func() {<br>  for {<br>    select {<br>      case event, ok := &lt;-watcher.Events:<br>        if !ok {<br>          return<br>        }<br>        log.Println(&quot;event:&quot;, event)<br>        if event.Op&amp;fsnotify.Write == fsnotify.Write {<br>          log.Println(&quot;modified file:&quot;, event.Name)<br>          sendEmail()<br>        }<br>      case err, ok := &lt;-watcher.Errors:<br>        if !ok {<br>          return<br>        }<br>        log.Println(&quot;error:&quot;, err)<br>      }<br>    }<br> }()<br><br> // Wait for the user to end the program<br> fmt.Println(&quot;Press enter to exit&quot;)<br> fmt.Scanln()<br>}</pre><h4>Demo time!</h4><ol><li>Run both the MailHog server and the Go application:</li></ol><pre>&gt; mailhog<br><br>(in different terminal)<br>&gt; go run main.go</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W3nQ8xhoqi4_nOhm8ueekg.gif" /></figure><p>2. Change something in the HTML template and save your changes (CMD + S) to trigger the hot reload feature. You will see changes such as the customer name updating.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C8nW2fW1EDZpu5fK5tRD0g.gif" /></figure><p>3. Send to a real email by clicking the “Release Message” button in MailHog after setting up the mail settings. This allows you to quickly preview changes in an actual email client</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HHi9R1EAE9fjdG7t-WSyWw.gif" /></figure><h4><strong>Learning and Summary</strong></h4><p>Building this tool taught me a lot about simplifying email template development:</p><ul><li><strong>MailHog:</strong> It simplifies testing without needing a real email setup, providing a user experience similar to Gmail.</li><li><strong>Terminal UX:</strong> Terminal user interfaces can streamline template selection without manual typing.</li><li><strong>Event Watchers:</strong> Using event watchers in Go can mimic the developer experience of frontend web projects by detecting code file changes.</li></ul><h4>What’s Next?</h4><p>Currently, this module does not support fully modular templates, which would further ease development.</p><p>Also with <a href="https://react.email/">React Email</a> integration could be very impactful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=449afd40a056" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LFIT | Chapter Two: Family]]></title>
            <link>https://medium.com/@harryakbar/lfit-chapter-two-family-3cf30de93806?source=rss-291cf51b74ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/3cf30de93806</guid>
            <category><![CDATA[love-for-imperfect-things]]></category>
            <category><![CDATA[book-review]]></category>
            <dc:creator><![CDATA[Harry Akbar Ali Munir]]></dc:creator>
            <pubDate>Sat, 04 Sep 2021 16:44:23 GMT</pubDate>
            <atom:updated>2021-09-04T16:44:23.278Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Hawkeye" src="https://cdn-images-1.medium.com/max/1024/1*v7TGWs2MIO8SRR4FHVmYqQ.jpeg" /><figcaption>Hawkeye: the Blip is happening👌</figcaption></figure><p>Yo, this is the series of Love For Imperfect Things book review and opinion about chapter of it, and this the chapter 2:</p><h3>Family</h3><p>So this chapter has 2 subtitles that related to family, those are “Please Look after Mom” and “Understanding our Fathers”. The mom part is telling us how the Buddhist monks love and taking care their mom. Haemin Sunim, the writer, was sad whenever he came back to Korea because of seeing his mother how much older have become. He loves his mom, she is introvert with bright and warm personality, and also really proud of her son writings and talks, as they have helped many people. But when he found out that his mother had become ill, he really sad, especially when he know that his mother kept her illness from her son. And luckily after Haemin stay with her for a full month, her illness was treatable. And when he give a public talk and meditation, he usually ask the audience to close they eyes and hold hands with those sitting next to them, and then he ask them to imagine that the person they are holding is someone they deeply love and care about, like their mother. And then ask them to send the love message and say the meaningful words. He really love his mom and make him as a most influential Zen buddhist monks and writers.</p><p>And the second part about father is talking about his father and some prototypes of father-child relationships. Haemin was angry at his father because his father often refuse help from his son. His son was worried that his father might be diagnosed stomach cancer because of weight loss without any reason. And the father was said that “I’m not important, but you, my son, do so much good for people, you have to look after yourself properly so you can keep on helping them” when the son offer to medical check up. And it made the son’s heart sank, because his father didn’t value his own body and constantly say that he is not important.</p><p>And then he realized that he is not the only one that experience relationship such like that with his father. And after he talks with many people, he summarized that there are at least five <em>prototypes</em>/categories of father-child relationship.</p><ol><li>The father behaves in an excessively patriarchal way, withholding affection and strictly enforcing rules and standards. He often controls his children by making them feel shame and guilt. Even as adults, his children do not feel comfortable around him, having spent their childhood afraid of him, and cannot bring themselves to open up and have an honest conversation.</li><li>Children who have witnessed the suffering of their mother because of their father’s extramarital affairs or lack of employment. Such children tend to develop deep sympathy for their mother and rage toward their father.</li><li>When the father is a self-made man, a firm believer in the power of hard work who has similarly high expectations of his children. The writer frequently meet young people who have an excellent education and a good job yet have low self-esteem and workaholic tendencies; speaking with them, he discover that many of them have had this kind of father.</li><li>Children who are born into ordinary families and who turn out to be academic geniuses or to otherwise have great success. They are independent and self-motivated and prefer not to receive unsolicited advice from a father who can’t really know what their lives are like. Such children love their father but do not necessarily look up to him.</li><li>Children who lost their father when they were young. They tend to remember their father as a hero and are attracted to teachers or mentors who are like him in some way.</li></ol><p>I am actually not from rich family, my father and mother came from West Sumatra and their house was at the small village, even in the forest (called <em>Gimbo Kambir Forest — Coconut Forest </em>😂) . My father is really hard work and wise person (because my big family always need deep talk with him), and my mother is super patient woman because she rarely to angry and never give high expectation to me. Actually, I rarely to have deep talk with them, but I really admire them because how can they survived and make me and my siblings can have a good education in top university in Indonesia because they are not pass their high school and middle school in the small village, even currently we are (I think) have good enough financial state, alhamdulillah. And it make me inspired to have hard work personality and also have patience when facing this adult problems because I have more privilege now than them in the past.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*1-ZCUfWaH-ebM2A5g2QI4w.jpeg" /><figcaption>What If…?</figcaption></figure><p>Because currently I am watching “What If…?” Marvel series, sometimes, I am thinking what if my parents is not <em>nekat </em>and brave to taking risk to migrate to West Java from West Sumatra, I don’t think I write this blog now and have a good education like now. So, I am very grateful for them. Oh man this chapter is very touching, thanks for reading!</p><p>And these are my favorite quotes from this chapter ✨</p><blockquote>No matter how good a relationship is, it is inevitable that it will change over time.</blockquote><blockquote>A close friend may move to another city, or a family member may pass away.</blockquote><blockquote>Your circumstances, too, can change.</blockquote><blockquote>But don’t let this make you too sad — because when one door closes, another one always opens.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3cf30de93806" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Love For Imperfect Things | Chapter One: Self Care]]></title>
            <link>https://medium.com/@harryakbar/as-we-are-individual-unique-human-we-also-need-to-treat-ourselves-first-and-not-always-should-to-337a6f02adc8?source=rss-291cf51b74ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/337a6f02adc8</guid>
            <dc:creator><![CDATA[Harry Akbar Ali Munir]]></dc:creator>
            <pubDate>Mon, 30 Aug 2021 15:43:25 GMT</pubDate>
            <atom:updated>2021-11-30T07:25:02.811Z</atom:updated>
            <content:encoded><![CDATA[<p>Yo, this is the series of Love For Imperfect Things book review and opinion about part of it, and this the part 1:</p><h3>Self Care</h3><p>Here we are in the earth as an individual unique human, we also need to treat ourselves first and not always should to praised to be “good” by help all people. It’s okay to be different with other people, so be good to ourselves first, then other people.</p><p>From my perspective as a reader, I 100% agree with this part to care to myself first. And I also realized recently that I actually really praised to be a “good person” for other people, but yeah I also have purpose of my life in the future and I don’t need to think what other people think about my goals. Back then, I met a person that underestimate and think that my goals is not as great with this person’s family that very rich, but yup being rich, have degree at elite world-class university, have good status or whatever it is not my purpose.</p><p>I rather to choose to be a great contributor in the society to help and grow other people in a large scale with my skills and knowledge that I wish always grow each day. There are a lot of contribution field that available for young person like me. I really interested with the education, logistics, and also health sector, I wish I can give my big contribution in there, because I feel fulfilled when I can share with other and unblock society problem, idk why but it just make me have peaceful mind.</p><p>I really grateful as a software engineer now. I think it has possibility to allow me to pursue my goals. So yeah, be kind for yourself first and world will also find you worthy of care.</p><p>Favorites quotes from this Self Care part:</p><blockquote>If we examine what motivates us, we see that even as adults we want recognitions from other people, and that so much of what we do comes from that desire to be recognized. Shower you child with attention, and make her feel secure in your love. This way she won’t grow up starved for other people’s acknowledgement.</blockquote><blockquote>If you begin to believe what others say about you, they will begin to control you. Not everything that appears in your mind is true. Do not let someone else’s opinion rule your life.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=337a6f02adc8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Effective Engineer Book Review]]></title>
            <link>https://medium.com/@harryakbar/effective-engineer-book-review-61bd74d0f6a?source=rss-291cf51b74ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/61bd74d0f6a</guid>
            <category><![CDATA[engineer]]></category>
            <category><![CDATA[books]]></category>
            <category><![CDATA[effective-engineer]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[review]]></category>
            <dc:creator><![CDATA[Harry Akbar Ali Munir]]></dc:creator>
            <pubDate>Tue, 02 Jun 2020 15:46:04 GMT</pubDate>
            <atom:updated>2020-06-02T15:54:17.210Z</atom:updated>
            <content:encoded><![CDATA[<p>After a long break from my last company because of COVID-19 Pandemic impacts and needs to stay sane, I decided to write this book review. To be honest, I am a person that rarely reads a book. Effective Engineer is the first non-academic-related book that I read as my willingness. So I think this review is not really well written because this is also the first blog that I wrote as my will and not because of the assignment from college. 😂</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/333/1*B62VzrtUa1gy4pauOga0kA.jpeg" /><figcaption>The Effective Engineer by Edmond Lau</figcaption></figure><p>This book will tell us how to improve our ways to be more effective when we developing software products. There are a lot of tasks we do when we developing software, write tech documentation, create functions/features, adding the test, design and build the infrastructure, and many things that will make our program have high-quality software.</p><p>To make our work more efficient, we should reduce unnecessary things and make repetitive work that can be done in a single action item. For example:</p><ul><li>We should make our deployment easier by using CI/CD</li><li>We should set up our codebase that can be run in a single command by creating shell scripting if we work on it every day</li><li>We should make our hiring process for new joiners easier by creating an internal framework in the company</li><li>We should help our new joiners easier to adapt to our company by the mentorship program</li><li>We should create an automated test to make us not doing it every time we make a change</li><li>We should create technical docs to make other contributors easier to adapt with the codebase</li></ul><p>Because time investment is very important as a software engineer (maybe for all kinds of jobs). We can do another thing by obtaining more time to create another helpful idea, innovation, simplify another repetitive work, of course, to make our product have a high quality.</p><p>This book also tells us how to prioritize our work from high leverage to low leverage group. Leverage is a measurement of “Impact Produced divided by Time Invested”. So if we have a task that very impactful but we just need little time to do it, it will have a high leverage task. But if we have a task (for example) that only need to change button color but it takes more than a day, let’s refactor the codebase from zero, <em>kidding bro</em> 😂.</p><p>I have also been given a number of case examples from the author’s experience in previous and current companies. It will be more related and interesting to me as a software engineer in the company. I think if I still a student, this book will not really relatable with me, because there are some example that we can only do in the company, for example, code refactoring for huge and many authors work on it, handle the infrastructure that serves a million users, collaboration with more people that will need us to write technical documentation (I think we rarely do this in the college except for thesis and paper 🤷‍♂️), but I still recommend this book for every software engineer and computer scientist hehe.</p><p>If I can tell in one sentence what is inside this book, this book asks us to make our work not repeatable, the program is easy to maintain, scalable, and we just need fewer action to do a lot of things (autonomous).</p><p>That’s it! Please give me another book recommendation (anything, not only about tech), and InshaAllah I will make another review because this is very satisfying for the first book review hahaha. I hope you guys stay healthy and not get a negative impact from this Covid-19 Pandemic, see you!</p><p>Source:</p><ul><li><a href="https://www.amazon.com/Effective-Engineer-Engineering-Disproportionate-Meaningful/dp/0996128107">https://www.amazon.com/Effective-Engineer-Engineering-Disproportionate-Meaningful/dp/0996128107</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61bd74d0f6a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Last Week — Software Architecture]]></title>
            <link>https://medium.com/kugen/last-week-software-architecture-208e8b533815?source=rss-291cf51b74ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/208e8b533815</guid>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Harry Akbar Ali Munir]]></dc:creator>
            <pubDate>Thu, 17 May 2018 02:27:53 GMT</pubDate>
            <atom:updated>2018-05-17T02:43:19.047Z</atom:updated>
            <content:encoded><![CDATA[<h4>Software Architecture</h4><p>Halo! Pada publikasi yang terakhir ini, saya akan menjelaskan Software Architecture.</p><p>Software Architecture adalah suatu proses mendefinisikan struktur aplikasi yang memenuhi <em>requirement </em>teknikal dan operasional untuk memenuhi kebutuhan sistem, diantaranya keamanan, performa, dan pengelolaan.</p><p>Berikut merupakan software architecture dari aplikasi KuGen</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*C7rBNHhO50RLf2Sc_2wIpg.png" /><figcaption>Source: Aditya Arya Hendrady’s post</figcaption></figure><p>Seperti chart di atas, aplikasi KuGen terdiri dari Server LimeSurvey, SQL Local, dan Aplikasi Android.</p><p><strong>Server LimeSurvey</strong> merupakan suatu service untuk melakukan aktivitas online survey, dimana kita bisa membuat survei untuk dipublikasi secara online (<a href="https://www.limesurvey.org/">https://www.limesurvey.org/</a>).</p><p><strong>SQL Local</strong> merupakan RDBMS yang digunakan untuk menyimpan data survey pada perangkat local.</p><p><strong>Aplikasi Android</strong> merupakan aplikasi yang digunakan untuk mendapatkan survey dari LimeSurvey dan melakukan aksi untuk mengisi survey yang sudah dibuat pada LimeSurvey, yaitu dengan melakukan GET dan POST.</p><p>Terima kasih!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=208e8b533815" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kugen/last-week-software-architecture-208e8b533815">Last Week — Software Architecture</a> was originally published in <a href="https://medium.com/kugen">KuGen</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Error Code dan Exception Handling — Harry]]></title>
            <link>https://medium.com/kugen/error-code-dan-exception-handling-harry-510c8d41ca23?source=rss-291cf51b74ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/510c8d41ca23</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[error-handling]]></category>
            <category><![CDATA[exception-handling]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Harry Akbar Ali Munir]]></dc:creator>
            <pubDate>Wed, 02 May 2018 07:09:50 GMT</pubDate>
            <atom:updated>2018-05-02T07:09:50.274Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/281/1*Vq17H3Rnb-TF7HmtQIWXcg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*flo0t_pHrD1PVeEliPJGcw.jpeg" /><figcaption>Validasi Form</figcaption></figure><p>Halo! Jadi kali ini akan dijelaskan tentang <strong>error code dan exception handling </strong>yang dilakukan pada pengembangan aplikasi Kugen di tim kami.</p><p>Error dan exception yang kita handle adalah berupa validasi agar data tidak null/kosong. Hal ini menghindari adanya kekosongan data agar menghindari null exception.</p><p>Pada gambar di atas terlihat bahwa ketika form belum diisi, maka tombol belum diaktivasi, lalu ketika seluruh field diisi maka tombol menjadi aktif ditandai dengan warna biru.</p><p>Ide dari handling form tersebut adalah dengan mengecek setiap field yang ada.</p><p>Apabila berupa:</p><ol><li>EditText, maka perlu dicek apakah ada aktivitas dengan menggunakan addTextChangedListener() pada setiap EditText.</li><li>Button (record audio speech to text), maka perlu dicek apakah button yang merekam suara menghasilkan string yang diinginkan.</li><li>RadioButton, maka perlu dicek apakah salah satu dari RadioButton tersebut diklik</li></ol><p>Setiap field yang sudah divalidasi menghasilkan boolean yang di mana jika true semua, maka tombol submit bisa diklik atau sudah aktif.</p><p>Berikut kode tersebut:</p><pre>package com.example.windows81.kugen.activity;<br><br>import android.content.ActivityNotFoundException;<br>import android.content.Intent;<br>import android.speech.RecognizerIntent;<br>import android.support.v7.app.AppCompatActivity;<br>import android.os.Bundle;<br>import android.text.Editable;<br>import android.text.TextWatcher;<br>import android.util.Log;<br>import android.view.View;<br>import android.widget.Button;<br>import android.widget.EditText;<br>import android.widget.RadioButton;<br>import android.widget.RadioGroup;<br>import android.widget.TextView;<br>import android.widget.Toast;<br><br>import com.example.windows81.kugen.R;<br><br>import java.util.ArrayList;<br><br>public class RespondentActivity extends AppCompatActivity {<br>    private EditText nameField;<br>    private EditText ageField;<br>    private EditText addressField;<br>    private EditText educationField;<br>    private RadioGroup genderField;<br>    private Button btn_submit;<br>    private Button btn_record;<br>    private TextView speech_text;<br>    private String survey_id;<br>    private final int REQ_SPEECH_CODE = 100;<br><br>    @Override<br>    protected void onCreate(Bundle savedInstanceState) {<br>        super.onCreate(savedInstanceState);<br>        setContentView(R.layout.<em>activity_respondent</em>);<br><br>        nameField = findViewById(R.id.<em>respondent_name</em>);<br>        ageField = findViewById(R.id.<em>respondent_age</em>);<br>        addressField = findViewById(R.id.<em>respondent_address</em>);<br>        educationField = findViewById(R.id.<em>respondent_education</em>);<br>        genderField = findViewById(R.id.<em>respondent_gender</em>);<br>        speech_text = findViewById(R.id.<em>record_status</em>);<br>        btn_submit = findViewById(R.id.<em>btn_submit</em>);<br>        btn_record = findViewById(R.id.<em>btn_record_audio</em>);<br><br>        btn_record.setOnClickListener(micClickListener);<br><br>        nameField.addTextChangedListener (new TextWatcher() {<br>            @Override<br>            public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {}<br>            @Override<br>            public void onTextChanged(CharSequence s, int i, int i1, int i2){<br>                validateForm();<br>            }<br>            @Override<br>            public void afterTextChanged(Editable editable) {}<br>        });<br>        ageField.addTextChangedListener (new TextWatcher() {<br>            @Override<br>            public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {}<br>            @Override<br>            public void onTextChanged(CharSequence s, int i, int i1, int i2){<br>                validateForm();<br>            }<br>            @Override<br>            public void afterTextChanged(Editable editable) {}<br>        });<br>        genderField.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {<br>            @Override<br>            public void onCheckedChanged(RadioGroup group, int checkedId) {<br>                validateForm();<br>            }<br>        });<br><br>        addressField.addTextChangedListener (new TextWatcher() {<br>            @Override<br>            public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {}<br>            @Override<br>            public void onTextChanged(CharSequence s, int i, int i1, int i2){<br>                validateForm();<br>            }<br>            @Override<br>            public void afterTextChanged(Editable editable) {}<br>        });<br>        educationField.addTextChangedListener (new TextWatcher() {<br>            @Override<br>            public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {}<br>            @Override<br>            public void onTextChanged(CharSequence s, int i, int i1, int i2){<br>                validateForm();<br>            }<br>            @Override<br>            public void afterTextChanged(Editable editable) {}<br>        });<br>    }<br><br>    private View.OnClickListener micClickListener = new View.OnClickListener() {<br>        @Override<br>        public void onClick(View v){<br>            btnToOpenMic();<br>        }<br>    };<br><br>    private void btnToOpenMic(){<br>        Intent intent = new Intent(RecognizerIntent.<em>ACTION_RECOGNIZE_SPEECH</em>);<br>        intent.putExtra(RecognizerIntent.<em>EXTRA_LANGUAGE_MODEL</em>, RecognizerIntent.<em>LANGUAGE_MODEL_FREE_FORM</em>);<br>        intent.putExtra(RecognizerIntent.<em>EXTRA_LANGUAGE</em>, &quot;id-ID&quot;);<br>        intent.putExtra(RecognizerIntent.<em>EXTRA_PROMPT</em>, &quot;BACA: Saya setuju melakukan survei ini&quot;);<br>        Log.<em>d</em>(&quot;open mic&quot;, &quot;try&quot;);<br>        try {<br>            startActivityForResult(intent, REQ_SPEECH_CODE);<br>            Log.<em>d</em>(&quot;success&quot;, &quot;success&quot;);<br>        } catch (ActivityNotFoundException a){<br>            Toast.<em>makeText</em>(RespondentActivity.this, &quot;Sorry device does not support&quot;, Toast.<em>LENGTH_LONG</em>).show();<br>        }<br>    }<br><br>    @Override<br>    protected void onActivityResult(int requestCode, int resultCode, Intent data) {<br>        super.onActivityResult(requestCode, resultCode, data);<br>        Log.<em>d</em>(&quot;masuk bro&quot;, &quot;adas&quot;);<br>        switch (requestCode) {<br>            case REQ_SPEECH_CODE: {<br>                if (resultCode == <em>RESULT_OK </em>&amp;&amp; null != data) {<br>                    Log.<em>d</em>(&quot;result_ok&quot;, resultCode+&quot;&quot;);<br>                    ArrayList&lt;String&gt; voiceInText = data.getStringArrayListExtra(RecognizerIntent.<em>EXTRA_RESULTS</em>);<br>                    speech_text.setText(voiceInText.get(0));<br>                    validateForm();<br>                } else {<br>                    Log.<em>d</em>(&quot;result_fail&quot;, requestCode+&quot;&quot;);<br>                }<br>                break;<br>            }<br>        }<br>    }<br><br>    public void onSubmit(View v) {<br>        Intent intent = new Intent(this, QuestionActivity.class);<br><br>        int selectedId = genderField.getCheckedRadioButtonId();<br>        RadioButton selectedGender = (RadioButton)findViewById(selectedId);<br>        survey_id = getIntent().getStringExtra(&quot;survey_id&quot;);<br><br>        intent.putExtra(&quot;name_respondent&quot;, nameField.getText().toString());<br>        intent.putExtra(&quot;age_respondent&quot;, ageField.getText().toString());<br>        intent.putExtra(&quot;gender_respondent&quot;, selectedGender.getText().toString());<br>        intent.putExtra(&quot;domicile_respondent&quot;, addressField.getText().toString());<br>        intent.putExtra(&quot;education_respondent&quot;, educationField.getText().toString());<br>        intent.putExtra(&quot;survey_id&quot;, survey_id);<br>        startActivity(intent);<br>    }<br><br>    private void validateForm(){<br>        boolean isNameNull = nameField.getText().toString().isEmpty();<br>        boolean isAddressNull = addressField.getText().toString().isEmpty();<br>        boolean isEducationNull = educationField.getText().toString().isEmpty();<br>        boolean isAgeNull = ageField.getText().toString().isEmpty();<br>        boolean isSpeechTextValidated = speech_text.getText().toString().equalsIgnoreCase(&quot;Saya setuju melakukan survei ini&quot;);<br>        int isChecked = genderField.getCheckedRadioButtonId();<br><br>        if (!(isNameNull || isAddressNull || isEducationNull || isAgeNull) &amp;&amp; isSpeechTextValidated &amp;&amp; (isChecked &gt; 0)) {<br>            btn_submit.setBackground(getDrawable(R.drawable.<em>blue_button</em>));<br>            btn_submit.setEnabled(true);<br>            btn_submit.setClickable(true);<br>        } else {<br>            btn_submit.setBackground(getDrawable(R.drawable.<em>disabled_button</em>));<br>            btn_submit.setEnabled(false);<br>            btn_submit.setClickable(false);<br>        }<br>    }<br>}</pre><p>Terima kasih atas perhatiannya. Sampai jumpa di publikasi selanjutnya.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=510c8d41ca23" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kugen/error-code-dan-exception-handling-harry-510c8d41ca23">Error Code dan Exception Handling — Harry</a> was originally published in <a href="https://medium.com/kugen">KuGen</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Membuat Form di Android]]></title>
            <link>https://medium.com/kugen/membuat-form-di-android-396dc96cbfb5?source=rss-291cf51b74ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/396dc96cbfb5</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Harry Akbar Ali Munir]]></dc:creator>
            <pubDate>Thu, 19 Apr 2018 05:02:06 GMT</pubDate>
            <atom:updated>2018-04-19T05:02:06.766Z</atom:updated>
            <content:encoded><![CDATA[<p>Form merupakan hal yang sangat penting di dalam suatu aplikasi mobile. Ada banyak cara untuk membuat form tergantung dari tools yang digunakan, bisa menggunakan React Native, Android Native dan lain-lain. Kali ini akan diperlihatkan bagaimana membuat form di Android Studio.</p><h4>Persiapan</h4><p>Hal yang perlu dipersiapkan adalah Android Studio dan untuk melihat hasil program yang dijalankan, bisa menggunakan smartphone Android atau menggunakan android emulator yang ada di Android Studio. (<a href="https://developer.android.com/training/basics/firstapp/running-app.html">https://developer.android.com/training/basics/firstapp/running-app.html</a>)</p><h4>Membuat Layout</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*FHW8RCicHCWt_xKhFha5dQ.png" /><figcaption>Tampilan yang diinginkan</figcaption></figure><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;ScrollView xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>    android:id=&quot;@+id/ScrollView&quot;<br>    android:layout_width=&quot;match_parent&quot;<br>    android:layout_height=&quot;match_parent&quot;<br>    android:scrollbars=&quot;vertical&quot;&gt;<br><br>    &lt;LinearLayout<br>        android:focusable=&quot;true&quot;<br>        android:focusableInTouchMode=&quot;true&quot;<br>        android:orientation=&quot;vertical&quot;<br>        android:layout_width=&quot;match_parent&quot;<br>        android:layout_height=&quot;wrap_content&quot;<br>        android:padding=&quot;32dp&quot;&gt;<br><br>        &lt;TextView<br>            android:id=&quot;@+id/textView&quot;<br>            android:layout_width=&quot;match_parent&quot;<br>            android:layout_height=&quot;wrap_content&quot;<br>            android:text=&quot;Isi Data Responden&quot;<br>            android:textColor=&quot;@color/black&quot;<br>            android:textSize=&quot;24sp&quot;<br>            android:textStyle=&quot;bold&quot; /&gt;<br>        &lt;EditText<br>            android:id=&quot;@+id/respondent_name&quot;<br>            android:layout_width=&quot;match_parent&quot;<br>            android:layout_height=&quot;wrap_content&quot;<br>            android:ems=&quot;10&quot;<br>            android:inputType=&quot;textPersonName&quot;<br>            android:hint=&quot;Nama Responden&quot;<br>            android:layout_marginTop=&quot;8dp&quot;<br>            android:layout_marginBottom=&quot;4dp&quot;<br>            android:backgroundTint=&quot;@color/mainBlue&quot;/&gt;<br>        &lt;EditText<br>            android:id=&quot;@+id/respondent_age&quot;<br>            android:layout_width=&quot;match_parent&quot;<br>            android:layout_height=&quot;wrap_content&quot;<br>            android:ems=&quot;10&quot;<br>            android:inputType=&quot;number&quot;<br>            android:hint=&quot;Usia Responden&quot;<br>            android:layout_marginTop=&quot;8dp&quot;<br>            android:layout_marginBottom=&quot;4dp&quot;<br>            android:backgroundTint=&quot;@color/mainBlue&quot;/&gt;<br>        &lt;RadioGroup<br>            android:id=&quot;@+id/respondent_gender&quot;<br>            android:layout_width=&quot;match_parent&quot;<br>            android:layout_height=&quot;match_parent&quot;&gt;<br>            &lt;TextView<br>                android:id=&quot;@+id/respondent_gender_text&quot;<br>                android:layout_width=&quot;wrap_content&quot;<br>                android:layout_height=&quot;wrap_content&quot;<br>                android:text=&quot;Jenis Kelamin&quot;<br>                android:onClick=&quot;onRadioButtonClicked&quot;/&gt;<br>            &lt;RadioButton<br>                android:id=&quot;@+id/respondent_man&quot;<br>                android:layout_width=&quot;match_parent&quot;<br>                android:layout_height=&quot;wrap_content&quot;<br>                android:layout_weight=&quot;1&quot;<br>                android:text=&quot;Pria&quot;<br>                android:onClick=&quot;onRadioButtonClicked&quot;<br>                android:buttonTint=&quot;@color/mainBlue&quot; /&gt;<br>            &lt;RadioButton<br>                android:id=&quot;@+id/respondent_woman&quot;<br>                android:layout_width=&quot;match_parent&quot;<br>                android:layout_height=&quot;wrap_content&quot;<br>                android:layout_weight=&quot;1&quot;<br>                android:text=&quot;Wanita&quot;<br>                android:onClick=&quot;onRadioButtonClicked&quot;<br>                android:buttonTint=&quot;@color/mainBlue&quot;/&gt;<br>        &lt;/RadioGroup&gt;<br>        &lt;EditText<br>            android:id=&quot;@+id/respondent_address&quot;<br>            android:layout_width=&quot;361dp&quot;<br>            android:layout_height=&quot;wrap_content&quot;<br>            android:layout_marginBottom=&quot;4dp&quot;<br>            android:layout_marginTop=&quot;8dp&quot;<br>            android:ems=&quot;10&quot;<br>            android:inputType=&quot;text&quot;<br>            android:hint=&quot;Kota domisili&quot;<br>            android:backgroundTint=&quot;@color/mainBlue&quot;/&gt;<br>        &lt;EditText<br>            android:id=&quot;@+id/respondent_education&quot;<br>            android:layout_width=&quot;match_parent&quot;<br>            android:layout_height=&quot;wrap_content&quot;<br>            android:ems=&quot;10&quot;<br>            android:inputType=&quot;text&quot;<br>            android:hint=&quot;Pendidikan terakhir&quot;<br>            android:layout_marginTop=&quot;8dp&quot;<br>            android:layout_marginBottom=&quot;4dp&quot;<br>            android:backgroundTint=&quot;@color/mainBlue&quot;/&gt;<br>        &lt;Button<br>            android:clickable=&quot;false&quot;<br>            android:enabled=&quot;false&quot;<br>            android:id=&quot;@+id/btn_submit&quot;<br>            android:layout_width=&quot;match_parent&quot;<br>            android:layout_height=&quot;36dp&quot;<br>            android:background=&quot;@drawable/disabled_button&quot;<br>            android:text=&quot;Lakukan Survey&quot;<br>            android:textAllCaps=&quot;false&quot;<br>            android:textColor=&quot;@color/absoluteWhite&quot;<br>            android:textStyle=&quot;bold&quot;<br>            android:layout_marginTop=&quot;8dp&quot;<br>            android:layout_marginBottom=&quot;4dp&quot;<br>            android:onClick=&quot;onSubmit&quot;/&gt;<br>    &lt;/LinearLayout&gt;<br>&lt;/ScrollView&gt;</pre><p>Pada contoh diatas akan dibuat form yang akan meminta user mengisi data suatu responden pada suatu survey. Sehingga perlu dibuat EditText input, RadioButton, dan Submit Button.</p><h4>Membuat Activity Class</h4><p>Setelah membuat layout, agar hasil form dapat dikirimkan ke activity berikutnya, diperlukan untuk membuat fungsi-fungsi di activity class.</p><ol><li>Hal yang pertama dilakukan adalah membuat agar kita bisa mendapatkan data dari form yang sudah diisi. Dengan cara mengambil berdasarkan id pada element di layout yang sudah dibuat.</li></ol><pre>public class RespondentActivity extends AppCompatActivity {<br>    private EditText nameField;<br>    private EditText ageField;<br>    private EditText addressField;<br>    private EditText educationField;<br>    private RadioGroup genderField;<br>    private Button btn_submit;<br><br>    @Override<br>    protected void onCreate(Bundle savedInstanceState) {<br>        super.onCreate(savedInstanceState);<br>        setContentView(R.layout.<em>activity_respondent</em>);<br><br>        nameField = findViewById(R.id.<em>respondent_name</em>);<br>        ageField = findViewById(R.id.<em>respondent_age</em>);<br>        addressField = findViewById(R.id.<em>respondent_address</em>);<br>        educationField = findViewById(R.id.<em>respondent_education</em>);<br>        genderField = findViewById(R.id.<em>respondent_gender</em>);<br>        btn_submit = findViewById(R.id.<em>btn_submit</em>);<br>    }<br>}</pre><p>2. Lalu kita perlu membuat agar isi form dapat dikirim ke activity selanjutnya. Dengan cara membuat object intent dari activity yang sekarang ke activity yang ingin dituju. Lalu kita harus menyisipkan data yang ingin kita kirim dengan intent.putExtra() dengan nama key yang deskriptif. Setelah itu intent yang sudah dibuat dijalankan dengan startActivity().</p><pre>public void onSubmit(View v) {<br>    Intent intent = new Intent(this, QuestionnaireActivity.class);<br>    int selectedId = genderField.getCheckedRadioButtonId();<br>    RadioButton selectedGender =(RadioButton)findViewById(selectedId);<br><br>    intent.putExtra(&quot;name_respondent&quot;,nameField.getText().toString());<br>    intent.putExtra(&quot;age_respondent&quot;, ageField.getText().toString());<br>    intent.putExtra(&quot;gender_respondent&quot;, selectedGender.getText().toString());<br>    intent.putExtra(&quot;domicile_respondent&quot;, addressField.getText().toString());<br>    intent.putExtra(&quot;education_respondent&quot;, educationField.getText().toString());<br>    startActivity(intent);<br>}</pre><h4>Melakukan Validasi Apakah Seluruh Form Sudah Diisi</h4><p>Sebelum mengirim data ke activity selanjutnya, kita perlu mengecek apakah seluruh data terisi atau tidak. Jika belum terisi, maka tombol submit tidak bisa diklik.</p><p>Untuk melakukan validasi perlu dibuat fungsi helper yang akan mengecek apakah seluruh input sudah diisi.</p><pre>private void validateForm(){<br>    boolean isNameNull = nameField.getText().toString().isEmpty();<br>    boolean isAddressNull = addressField.getText().toString().isEmpty();<br>    boolean isEducationNull = educationField.getText().toString().isEmpty();<br>    boolean isAgeNull = ageField.getText().toString().isEmpty();<br>    int isChecked = genderField.getCheckedRadioButtonId();<br><br>    if (!(isNameNull || isAddressNull || isEducationNull || isAgeNull) &amp;&amp; (isChecked &gt; 0)) {<br>        btn_submit.setBackground(getDrawable(R.drawable.<em>blue_button</em>));<br>        btn_submit.setEnabled(true);<br>        btn_submit.setClickable(true);<br>    } else {<br>        btn_submit.setBackground(getDrawable(R.drawable.<em>disabled_button</em>));<br>        btn_submit.setEnabled(false);<br>        btn_submit.setClickable(false);<br>    }<br>}</pre><p>Validasi dilakukan dengan cara mengambil data yang ada pada setiap input. Lalu dicek apakah seluruh input berisi data atau tidak (mengecek nullitas dari setiap input). Jika form tervalidasi, maka tombol akan dinyalakan sehingga berubah warnanya dan dapat diklik, jika tidak tombol tidak bisa diklik.</p><h4>Memvalidasi Setiap Kali Kita Mengetik</h4><p>Dalam memvalidasi, tentunya kita perlu mengecek apakah setiap yang kita ketik dapat membuat lolos validasi, dan ketika kita menghapus suatu input kita juga harus dapat mematikan tombol submit sehingga tidak bisa diklik.</p><pre>genderField.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {<br>    @Override<br>    public void onCheckedChanged(RadioGroup group, int checkedId) {<br>        validateForm();<br>    }<br>});<br>nameField.addTextChangedListener (new TextWatcher() {<br>    @Override<br>    public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {}<br>    @Override<br>    public void onTextChanged(CharSequence s, int i, int i1, int i2){<br>        validateForm();<br>    }<br>    @Override<br>    public void afterTextChanged(Editable editable) {}<br>});</pre><p>Contohnya pada code snippet di atas, perlu dilakukan input listener dan button listener agar setiap hal yang kita lakukan pada input tersebut terdeteksi.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2evJ5K4BbhxqVx0aQeL13w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QEvuzxe5ya3Pw_z778d2OA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LDexdcpC3RScbSodYVu9ng.png" /></figure><p>Seperti pada gambar, ketika belum semua input terisi maka tombol belum bisa diklik.</p><p>Terima kasih!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=396dc96cbfb5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kugen/membuat-form-di-android-396dc96cbfb5">Membuat Form di Android</a> was originally published in <a href="https://medium.com/kugen">KuGen</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week 9 — Semua Tentang Scrum Framework]]></title>
            <link>https://medium.com/kugen/week-9-semua-tentang-scrum-framework-f3fd5cf0d154?source=rss-291cf51b74ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/f3fd5cf0d154</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[scrum]]></category>
            <dc:creator><![CDATA[Harry Akbar Ali Munir]]></dc:creator>
            <pubDate>Thu, 05 Apr 2018 04:53:01 GMT</pubDate>
            <atom:updated>2018-04-05T04:53:01.285Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Related image" src="https://cdn-images-1.medium.com/proxy/1*Xo45GoEa3_9BjDcS2D5LgQ.jpeg" /><figcaption>Gambar dari Google (<a href="https://medium.com/@BrandonSings/how-to-scrum-agile-methodology-for-the-rest-of-us-992e2f1cdfed">https://medium.com/@BrandonSings/how-to-scrum-agile-methodology-for-the-rest-of-us-992e2f1cdfed</a>)</figcaption></figure><p>Scrum merupakan suatu framework dari Agile Methodology yang merupakan pengembangan yang bersifat iterative dan incremental. Scrum juga dapat menyelesaikan permasalahan yang rumit dengan adaptive, yaitu requirement kebutuhan yang berubah-ubah dapat diselesaikan.</p><h4>Orang-orang Dibalik Scrum Framework</h4><p>Scrum Team dikerjakan oleh Project Owner, Scrum Master, dan Development Team. Setiap role memiliki perannya masing-masing, yaitu:</p><ol><li>Project Owner: bertanggung jawab dalam mengatur dan memaksimalkan produk yang dihasilkan oleh developer team.</li><li>Scrum Master: bertanggung jawab dalam menjaga Scrum Team agar tetap melaksanakan prinsip-prinsip Scrum. Contohnya melakukan sprint planning, daily scrum, dan sebagainya sesuai dengan teori, praktik, aturan, dan nilai-nilai yang ada pada Scrum</li><li>Developer Team: adalah orang-orang yang melakukan pekerjaan dalam pembuatan produk secara langsung dengan menyelesaikan semua backlog pada setiap sprint berlangsung.</li></ol><h4>Hal-Hal yang Dikerjakan pada Scrum (Objek yang Dikerjakan)</h4><p>Product Backlog: adalah suatu list terurut yang berisi tentang semua hal yang dibutuhkan dalam suatu produk. Setiap product backlog ini menggambarkan hal-hal yang akan membuat produk menjadi memiliki nilai dalam pembuatan produk. Dan biasanya menggunakan bahasa bisnis yang mudah untuk dipahami oleh Product Owner.</p><p>Sprint Backlog: adalah suatu product backlog yang akan dikerjakan selama satu sprint berlangsung.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KsYS6_P5xwz7rHTg.png" /><figcaption>Scrum (<a href="https://www.scrum.org/resources/what-is-scrum">https://www.scrum.org/resources/what-is-scrum</a>)</figcaption></figure><h4>Hal-Hal yang Dilakukan adalah</h4><p>Team kami, <strong>KUGEN, </strong>telah melakukan satu iterasi scrum yaitu sprint pertama yang berlangsung selama satu bulan. Sprint terdiri dari tahapan-tahapan yang dilakukan untuk menyajikan produk yang memiliki nilai yang sudah bisa dipakai oleh pengguna produk. Pada satu bulan ini, team kami telah melakukan tahap-tahap yang ada pada satu sprint pada Scrum, yaitu:</p><ol><li>Sprint Planning yaitu perencanaan tentang produk backlog apa saja yang akan diselesaikan selama satu sprint, lalu juga membuat task-task kecil yang merupakan pemecahan dari satu produk backlog, lalu ditentukan juga pengambilan task oleh masing-masing development team.</li><li>Daily Scrum merupakan review dari setiap development team oleh scrum master tentang apa saja yang sudah dilakukan dan kesulitan apa saja yang sudah dihadapi yang dilakukan dalam setiap beberapa waktu yang sudah ditentukan.</li><li>Sprint Review merupakan review selama satu sprint yang sudah berakhir dan memberikan produk yang sudah dikerjakan.</li><li>Sprint Retrospective merupakan evaluasi pada development team oleh scrum master untuk mengetahui pencapaian yang sudah didapatkan oleh seluruh development team dan juga kekurangan dan hambatan yang didapatkan oleh development team, lalu kekurangan tersebut akan diberikan solusi yang akan dicoba pada sprint selanjutnya.</li></ol><p>Setelah satu sprint berakhir, maka sprint selanjutnya langsung dapat dimulai dengan improvement yang sudah didapat.</p><p><strong>Semoga bermanfaat untuk para pembaca, sampai jumpa dipublikasi selanjutnya!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f3fd5cf0d154" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kugen/week-9-semua-tentang-scrum-framework-f3fd5cf0d154">Week 9 — Semua Tentang Scrum Framework</a> was originally published in <a href="https://medium.com/kugen">KuGen</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Instrumented Testing on Android]]></title>
            <link>https://medium.com/kugen/instrumented-testing-on-android-a7104afa1813?source=rss-291cf51b74ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7104afa1813</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[test]]></category>
            <dc:creator><![CDATA[Harry Akbar Ali Munir]]></dc:creator>
            <pubDate>Wed, 21 Mar 2018 05:02:17 GMT</pubDate>
            <atom:updated>2018-03-21T06:18:38.344Z</atom:updated>
            <content:encoded><![CDATA[<p>Kali ini akan disampaikan mengenai instrumented test pada Android Studio. Instrumented unit tests adalah test yang berjalan pada perangkat atau emulator, yang memanfaatkan Android framework APIs dan API pendukung lainnya, seperti Android Testing Support Library.</p><p>Instrumented test pun sebenarnya berbeda dengan unit test yang biasa dilakukan dalam melakukan testing. Mudahnya, Instrumented test melakukan test pada UI yang ada pada aplikasi Android. Sedangkan Unit test melakukan testing pada suatu fungsi-fungsi yang kecil.</p><h3>Implementasi Instrumented Testing</h3><p>Hal yang pertama dilakukan adalah dengan menambahkan dependency pada gradle:</p><pre>// Espresso UI Testing<br>androidTestCompile &quot;com.android.support.test.espresso:espresso-core:2.2.1&quot;<br>// Optional if you need to detect intents.<br>androidTestCompile &quot;com.android.support.test.espresso:espresso-intents:2.2.1&quot;</pre><p>Lalu, implementasikan test yang ingin kita buat pada:</p><pre>// Activity yang ingin ditest<br>&lt;Project Dir&gt;/app/src/<strong>main</strong>/java/com/example/appname/activity/MainActivity.java</pre><pre>// Test yang ingin diimplementasikan<br>&lt;Project Dir&gt;/app/src/<strong>androidTest</strong>/java/com/example/appname/activity/MainActivityTest.java</pre><p>Berikut merupakan contoh test MainActivityTest.java:</p><pre>package com.example.windows81.kugen;<br><br><br>import android.support.test.rule.ActivityTestRule;<br>import android.support.test.runner.AndroidJUnit4;<br><br>import org.junit.Rule;<br>import org.junit.Test;<br>import org.junit.runner.RunWith;<br><br>import static android.support.test.espresso.Espresso.<em>onView</em>;<br>import static android.support.test.espresso.assertion.ViewAssertions.<em>matches</em>;<br>import static android.support.test.espresso.matcher.ViewMatchers.<em>isDisplayed</em>;<br>import static android.support.test.espresso.matcher.ViewMatchers.<em>withId</em>;<br><br><em>/**<br> * Created by harryakbar on 3/18/18.<br> */<br></em>@RunWith(AndroidJUnit4.class)<br>public class MainActivityTest {<br>    @Rule<br>    public ActivityTestRule&lt;MainActivity&gt; mMainActivityTestRule =<br>            new ActivityTestRule&lt;MainActivity&gt;(MainActivity.class);<br><br>    @Test<br>    public void checkNavigationDrawer() throws Exception {<br>        <em>onView</em>(<em>withId</em>(R.id.<em>nav_dashboard</em>))<br>                .check(<em>matches</em>(<em>isDisplayed</em>()));<br>    }<br>}</pre><p>Setelah itu, Run instrumentation test dengan cara memilih file MainActivityTest.java (atau file test kalian) lalu klik run:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*A-Id1bwaBR9vOqxPkRwHxQ.png" /><figcaption>Pilih file test</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*AwRXYhC5v2HmvO5w-Gb_cA.png" /><figcaption>Klik Run ‘MainActivityTest’</figcaption></figure><p>Jika sudah di-run, perlu dicek apakah lolos test atau tidak.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5fb2erxldAi-IXmQQ4DEEQ.png" /></figure><p>Jika test masih ada yang belum passed, Activity yang dibuat perlu didebug setelah itu dirun kembali hingga seluruh test passed (hijau).</p><h3>Selesai!</h3><p>Seperti itulah singkatnya mengenai penjelasan tentang Instrumentation Testing dan pengimplementasiannya. Instrumentation Testing pada umumnya sangat bermanfaat dalam mendebug permasalah yang ada secara otomatis pada Android Studio.</p><p>Jika ada kesalahan informasi, silahkan komentar di kolom komentar.</p><p>Terima kasih, sampai jumpa di publikasi selanjutnya!</p><p>Referensi:</p><p>Building Instrumented Unit Tests. (2018, March 09). Retrieved March 21, 2018, from <a href="https://developer.android.com/training/testing/unit-testing/instrumented-unit-tests.html">https://developer.android.com/training/testing/unit-testing/instrumented-unit-tests.html</a></p><p><a href="https://medium.com/@ali.muzaffar/the-basics-of-unit-and-instrumentation-testing-on-android-7f3790e77bd">The basics of Unit and Instrumentation Testing on Android</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7104afa1813" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kugen/instrumented-testing-on-android-a7104afa1813">Instrumented Testing on Android</a> was originally published in <a href="https://medium.com/kugen">KuGen</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Design, Prototype, and Gather Feedback]]></title>
            <link>https://medium.com/kugen/design-prototype-and-gather-feedback-b9c6fb811a77?source=rss-291cf51b74ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9c6fb811a77</guid>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[prototyping]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[product-design]]></category>
            <dc:creator><![CDATA[Harry Akbar Ali Munir]]></dc:creator>
            <pubDate>Tue, 06 Mar 2018 16:57:51 GMT</pubDate>
            <atom:updated>2018-03-21T05:01:17.360Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rR3XNpSwPN-4SqvmiEw6ag.png" /><figcaption>Maaf untuk judul surveynya :(</figcaption></figure><p>Sungguh sulit membayangkan apa jadinya aplikasi yang kita kerjakan jika tidak membuat mockup, prototype dahulu. Design UI/UX yang berantakan, tidak konsisten, sampai masalah perdebatan design antar anggota tim yang mungkin terjadi sampai aplikasi sudah selesai dibuat.</p><p>Sehingga, bagaimana solusinya? Di sini, tim kami memiliki ide untuk menggunakan tools yang sudah banyak digunakan oleh prototype designer dunia, <a href="https://www.figma.com/">Figma</a> dan <a href="https://marvelapp.com/">Marvelapp</a>. Tools ini sangat memudahkan pekerjaan terkait UI/UX design karena kami dapat mengimplementasikan ide design kami menjadi prototype yang kami inginkan.</p><p>Dan kami pun berusaha untuk mencapai pengalaman pengguna yang baik dengan mencoba menerapkan <em>Eight Golden Rules of Interface Design,</em> dimana terdapat aspek:</p><ol><li><strong>Strive for consistency</strong>. Berusaha untuk tetap konsisten dengan design yang tim kami buat. Contohnya warna yang kami gunakan, bentuk tombol, bentuk card list yang kami inginkan, dirancang untuk konsisten.</li><li><strong>Enable frequent users to use shortcuts</strong>. Dimana kami menginginkan pengguna menggunakan navigasi yang memudahkan dari satu aktivitas ke aktivitas lainnya.</li><li><strong>Offer informative feedback</strong>. Merupakan prinsip di mana aplikasi akan memberikan pertanyaan untuk memastikan suatu aksi ke pengguna</li><li><strong>Design dialogue to yield closure</strong>. Berusaha untuk memudahkan pengguna dengan bahasa yang mudah dipahami di semua kalangan di Indonesia</li><li><strong>Offer simple error handling</strong>. Kami berusaha memberi tahu ke pengguna tentang hal yang tidak bisa dilakukan oleh para pengguna</li><li><strong>Permit easy reversal of actions</strong>. Merupakan prinsip sehingga pengguna dapat kembali ke aktivitas sebelumnya</li><li><strong>Support internal locus of control</strong>. Pengguna dapat menggunakan aplikasi penuh dalam kontrol mereka.</li><li><strong>Reduce short-term memory of load</strong>. Kami berusaha untuk mendesign aplikasi sehingga tidak memiliki flow yang rumit.</li></ol><p>Dengan begitu, inilah hasil prototype yang telah kami usahakan untuk memudahkan penggunaan oleh pengguna aplikasi tim kami → <a href="https://marvelapp.com/2jj38fe">https://marvelapp.com/2jj38fe</a></p><p>Sekian blog dari saya, terima kasih atas waktunya.</p><p>Semoga Bermanfaat!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9c6fb811a77" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kugen/design-prototype-and-gather-feedback-b9c6fb811a77">Design, Prototype, and Gather Feedback</a> was originally published in <a href="https://medium.com/kugen">KuGen</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>