<?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 Kharriz Abiyasa B. on Medium]]></title>
        <description><![CDATA[Stories by Kharriz Abiyasa B. on Medium]]></description>
        <link>https://medium.com/@Kharizet?source=rss-482228c81be9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*JdWdK5PEOBOW35aF.jpeg</url>
            <title>Stories by Kharriz Abiyasa B. on Medium</title>
            <link>https://medium.com/@Kharizet?source=rss-482228c81be9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 12:17:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Kharizet/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[Tinder Function in Elixir ❤️]]></title>
            <link>https://medium.com/@Kharizet/tinder-function-in-elixir-%EF%B8%8F-ba47bda9d17d?source=rss-482228c81be9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba47bda9d17d</guid>
            <category><![CDATA[elixir]]></category>
            <dc:creator><![CDATA[Kharriz Abiyasa B.]]></dc:creator>
            <pubDate>Fri, 30 Aug 2019 02:39:20 GMT</pubDate>
            <atom:updated>2019-08-30T02:39:20.895Z</atom:updated>
            <content:encoded><![CDATA[<h4>Ignore if it’s not a match, do the function if it’s a match ❤️❤️</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5r_HLw-VGcxcUDFr" /><figcaption>Photo by <a href="https://unsplash.com/@crew?utm_source=medium&amp;utm_medium=referral">Crew</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>A lot o</h4><h4>f if’s in one code</h4><p>When we’re talking about functional programming and concurrency, usually we are talking about very specific things. How to transform request message to response message. Ok fine, we do a lot of things between there. But hey, in the end, if the message is wrong, you still wanted to send back error response to the client. So for now, let’s skip all the DB query and API call that we need to make, and focus on the bigger aspect of this, the transformation of a message.</p><p>So now you have a lot of things to do. Querying the DB, making API call to others&#39; applications, and transforming the message. So to do that, you created something like this.</p><pre><strong>public </strong>Response processMessage(Message message) <strong>throws </strong>Exception {<br>    <strong>if</strong>(message.getSender().equals(<strong>&quot;indonesia&quot;</strong>)){<br>        BahasaMessage bahasaMessage = transformToBahasa(message);<br>        <strong>if</strong>(isOffensive(bahasaMessage)){<br>            <strong>throw new </strong>OffenseException(bahasaMessage);<br>        }<strong>else</strong>{<br>            <strong>return </strong>getProperMessage(bahasaMessage)<br>        }<br>    }<strong>else if</strong>(message.getSender().equals(<strong>&quot;india&quot;</strong>)){<br>        HindiMessage hindiMessage = transformToHindi(message);<br>        <strong>return </strong>getProperMessage(hindiMessage)<br>    }<strong>else </strong>{<br>        <strong>return </strong>getErrorResponse(message);<br>    }<br>}</pre><p>As you can see there’s a lot of branching if and conditionals here. Making the code looks ugly.</p><h4>Now, do we this in elixir?</h4><pre>def process_message(message) <strong>do<br>  </strong>message<br>  |&gt; transform_to_other_language<br>  |&gt; is_offensive<br><strong>end</strong></pre><p>As you can see, you can use an operator like bash’s pipe to process object in elixir. This makes the flow much more readable and easy to understand. But right now you probably questioned how do we process the if’s in the main app. So how we do this?</p><p>Pattern matching</p><pre>defp transform_to_other_language(%Message{<strong>sender</strong>: <strong>&quot;indonesia&quot;</strong>} = message) <strong>do<br>  </strong><em># do something<br>  </em>{<strong>:ok</strong>, bahasa_message}<br><strong>end<br></strong>defp transform_to_other_language(%Message{<strong>sender</strong>: <strong>&quot;india&quot;</strong>} = message) <strong>do<br>  </strong><em># do something<br>  </em>{<strong>:ok</strong>, hindi_message}<br><strong>end<br></strong>defp if_offensive(%BahasaMessage{} = message) <strong>do<br>  </strong><em># do something<br>  </em>{<strong>:ok</strong>, hindi_message}<br><strong>end<br></strong>defp if_offensive(message) <strong>do<br>  </strong>{<strong>:ok</strong>, message}<br><strong>end</strong></pre><p>By using pattern matching in the function arguments, the function can actually evaluate the variable when called. If it does not match then the function won’t be called. This makes Open Closed Principle a lot better because if new special conditions are needed, we can just add a new function with the conditionals instead of modifying other function.</p><p>So how about the error? You can also use pattern matching to do that.</p><pre>defp transform_to_other_language(message) <strong>do<br>  </strong><em># do something<br>  </em>{<strong>:error</strong>, <strong>&quot;language not found&quot;</strong>}<br><strong>end<br></strong>defp if_offensive(<strong>:error</strong>, warning_message) <strong>do<br>  </strong><em># do something<br>  </em>{<strong>:error</strong>, warning_message}<br><strong>end</strong></pre><p>The first one will return error atom and the error message. And the second one will match with error and return error atom and warning message it receives.</p><h4>So What Does it Mean?</h4><p>As you can see from the long example above. Pattern Matching in Elixir is very helpful to create code with a more readable flow. It also helps to implement the Open-Closed Principle since you don’t actually need to modify a code to handle extra conditional.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba47bda9d17d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[School, a Place to Memorize Things]]></title>
            <link>https://medium.com/@Kharizet/school-a-place-to-memorize-things-e0ff3132a8f0?source=rss-482228c81be9------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0ff3132a8f0</guid>
            <category><![CDATA[education]]></category>
            <dc:creator><![CDATA[Kharriz Abiyasa B.]]></dc:creator>
            <pubDate>Sun, 18 Aug 2019 20:15:42 GMT</pubDate>
            <atom:updated>2019-08-18T20:15:42.277Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*f4NxguaoWYIMU8XL" /><figcaption>Photo by <a href="https://unsplash.com/@mrrrk_smith?utm_source=medium&amp;utm_medium=referral">John-Mark Smith</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Because why trying to understand it if memorizing it is easier?</h4><p>Being in school for most of my life, I could say that I memorize a lot of things in school. Memorize the happiness hanging out with my friends, memorize the happiness of graduating, memorize the happiness of going on a trip together. And most of the time, memorize words from the books for the test.</p><p>We all know the purpose of school is to teach us something, to give us information, to prepare us for the future. However, what most likely happens in school is. The teacher told us that there will be a test tomorrow, we tried to memorize a lot of paragraphs from the book the teacher gave us, and we tried to solve the test by remembering what we memorized, and obviously, forget about it after the test.</p><p>The question is, what is it for? Does your boss in your future workplace will ask you the same thing again and again instead of searching it on google? or just look at the notes?. Will the customer in the future asking you about the formula that you can find in a few seconds on the internet?</p><p>While there are some things that worth memorizing. The actual jobs in the future don’t actually need you to repeat what you just memorize yesterday. They actually need you to process the input and gave the solution based on your own thinking.</p><p>So if that so, why are the school still tried to force us to memorize things?. Isn’t it time for them to teach us how to think?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0ff3132a8f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Globalization: How I learned to stop worrying and love the BigMac]]></title>
            <link>https://medium.com/@Kharizet/globalization-how-i-learned-to-stop-worrying-and-love-the-bigmac-2036f42929f9?source=rss-482228c81be9------2</link>
            <guid isPermaLink="false">https://medium.com/p/2036f42929f9</guid>
            <category><![CDATA[indonesia]]></category>
            <dc:creator><![CDATA[Kharriz Abiyasa B.]]></dc:creator>
            <pubDate>Fri, 16 Aug 2019 00:17:39 GMT</pubDate>
            <atom:updated>2019-08-18T17:45:48.671Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*Gwe1qqOYZ0X2IWQaoBMuFA.png" /></figure><p>Globalization has advanced quite fast in these few decades. This mostly is the result of the advancement of technology. Thanks to the faster airplanes and better airports, people could go to another country in just a few hours. Thanks to the Internet, people from another country and even another continent can interact with each other in real-time.</p><p>We can all agree that there there is a lot of benefits that could be taken from globalization. But despite all the benefits, some people actually feel that globalization is dangerous, especially to the local culture.</p><p>Take an example around you. How much it cost to eat Japanese food in Indonesia? Compare it to an actual Indonesian food price. Why is it more expensive?. Why Indonesian valued other country food more than it’s own?</p><p>And how many people actually being taught English before their native language? Watching US TV shows all the time without knowing what actually passed in their own country?</p><p>Or people who watched Korean boybands. Why do they choose that over local music? Isn’t this consumptive culture is bad for everything. For our self-identity and existence?.</p><p>But before that, I actually have a better question.</p><h3>Does it matter?</h3><p>This makes remember a short film by Edwin, Kara Anak Sebatang Pohon (Kara the Daughter of Tree). Kara is a child in the middle of nowhere who hates Mcdonald. She spent her entire life as an object of photography of a photographer who viewed her as ‘weird jungle people’. Then when she went to Mcdonald with the photographer. She enjoys BigMac in the end.</p><p>Thanks to globalization, Knowledge, and information travels very easily, and this helps a lot of less fortunate countries that have limited funds for research. While some people feel a different way but this, it is unlikely that most people will feel the same way given the benefits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*y3dyK5BcSil_gzhep51eXw.png" /></figure><p>Based on <a href="https://datareportal.com/reports/digital-2019-global-digital-overview">Datareportal.com</a>, Internet users have grown more or less twice since 2014. Even if you feel that Globalization is dangerous, how can you undo this?. Globalization is here to stay, and growing each year. The Internet enables people to interact with others despite the distance, and it is here to stay.</p><p>What we feel about globalization doesn’t matter. It is here and it will be bigger. People need technology, people need the exchange of knowledge, people need adventure. In the end, it doesn’t matter what we feel about globalization. Stop worrying and just make it work to your benefit.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2036f42929f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Take on TDD]]></title>
            <link>https://medium.com/@Kharizet/my-take-on-tdd-7f02ec2de87f?source=rss-482228c81be9------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f02ec2de87f</guid>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Kharriz Abiyasa B.]]></dc:creator>
            <pubDate>Mon, 12 Aug 2019 03:29:16 GMT</pubDate>
            <atom:updated>2019-08-12T09:26:06.745Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-gqloVHJt5NgmFGiDJo0wA.jpeg" /><figcaption>Ajey Gore, Gojek CTO</figcaption></figure><p>Recently I just watched a video from Gojek CTO (yes where am I working right now), titled <a href="https://www.youtube.com/watch?v=FA0mmD0Y8cI">The world is full of idiots</a>. In this video, he told people how important tests and TDD. How important to know how to test things before it even started.</p><p>Note that I was not against TDD and testing. I agree that it is important. I agree it would be very beneficial for maintainability in the future.</p><p>Gojek has hundreds of engineers, talented and great engineers. Gojek already has a working product, a very good one on top of that. And more importantly, Gojek already has a user base, a very very big user base. Working with TDD is very necessary because Gojek has to build a lot of new features without disappointing its existing users. Plus it was easier because Gojek already has a lot of great engineers who are used to using TDD.</p><h3>So should you use TDD?</h3><p>The thing is, I already worked in a few places before I joined Gojek. A giant multinational tech company (or more specifically an IT consulting company) and a software house of my own.</p><p>The thing about TDD is, to create specs you must know your requirements very well. And the problem is, a lot of times, you don’t. Or worse, your customer doesn’t. From my experience, the requirements from customers ranged from very good to “whatever, as long it works”. A lot of times customers didn’t even know what they need. Nor why they even make it.</p><p>In my previous corporate job, we spent a lot of time debating and discussing the limitations and requirement, only to found out that we only got around a week to do things with a million-dollar software that have very minimal documentation and resources.</p><p>In my software house, we are dealing with customers that don’t even know what they want and changed their requirement every week after development started.</p><p>The question is, does TDD really works in these kinds of cases?. How do you get make spec test cases from a requirement that keeps changing itself?. When you show it to your customer, you don’t have any real results for what you have built. Because you are paid to write working code, not spec/tests. And to make matters worse, your code cannot be reused for the new requirement.</p><p>Personally, I always think that TDD works great for projects owned by the developers. Because you’ll have to maintain it in the future, while in consulting and software house business, it probably only works when you implement changes after you finish your project.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f02ec2de87f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The teachers who don’t want to be a teacher.]]></title>
            <link>https://medium.com/@Kharizet/the-teachers-who-dont-want-to-be-a-teacher-30bf98536a0c?source=rss-482228c81be9------2</link>
            <guid isPermaLink="false">https://medium.com/p/30bf98536a0c</guid>
            <category><![CDATA[education]]></category>
            <dc:creator><![CDATA[Kharriz Abiyasa B.]]></dc:creator>
            <pubDate>Mon, 12 Aug 2019 02:31:08 GMT</pubDate>
            <atom:updated>2019-08-12T02:31:08.059Z</atom:updated>
            <content:encoded><![CDATA[<p>Back when I was in high school, I got this assignment to make an article based on data that I gathered from people in my school. I spontaneously decided to gather data on how many teachers actually wanted to be a teacher before they get their jobs. Surprisingly to me and my classmates, unsurprisingly to the teachers, out of 15 teachers I interviewed, only 1 of them actually wanted to be a teacher. To be fair, I wasn’t expecting a lot when I started gathering the data, but I’m wasn’t expecting this few either.</p><p>Some wanted to be in the army, some wanted to work in a bank, some wanted to be an English interpreter. But most of them didn’t actually want to work as a teacher.</p><p>Back then, I didn’t know why. After growing up, I realize it was probably because of the salary that most teachers get these days. Granted, back then my school is a private school and wasn’t the kind of school that gives a low salary to its teachers. But seeing even in my school teachers don’t actually aspire to be a teacher, I <em>shudder </em>every time I think about less unfortunate schools.</p><p>And the worst part, it’s worse for part-time/honorary teachers who don’t get public servant status. Reports said that some honorary teachers get paid lower than the minimum wage, getting as low as <a href="https://finance.detik.com/berita-ekonomi-bisnis/d-4625746/guru-honorer-gaji-rp-350000-tinggal-di-wc-anggaran-negara-nggak-cukup">350 thousand IDR a month</a>. <a href="https://www.cnnindonesia.com/nasional/20180604172143-20-303375/separuh-jumlah-guru-indonesia-masih-berstatus-honorer-k2">Based on the ministry of education</a>, around half of the teachers in Indonesia are honorary teachers.</p><p>The question is, how do we want to make Indonesia better if a lot of our teachers are still working not because of passion, but because of circumstances?. And How do people want to be a teacher if the job is still underpaid?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30bf98536a0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[bootcamp] Gojek Bootcamp Z]]></title>
            <link>https://medium.com/@Kharizet/bootcamp-gojek-bootcamp-z-63a0245ad99f?source=rss-482228c81be9------2</link>
            <guid isPermaLink="false">https://medium.com/p/63a0245ad99f</guid>
            <category><![CDATA[bootcamp]]></category>
            <category><![CDATA[gojek]]></category>
            <dc:creator><![CDATA[Kharriz Abiyasa B.]]></dc:creator>
            <pubDate>Fri, 09 Aug 2019 01:11:00 GMT</pubDate>
            <atom:updated>2019-08-09T03:53:34.283Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*AmEwOsgRD9L3ZS-V3PkpoQ.jpeg" /></figure><p>List of things I have learned during the Bootcamp:</p><ul><li>Speaking</li><li>Clean Code</li><li>TDD</li><li>Follow convention</li><li>Code Aesthetics</li><li>Logical Fallacies</li></ul><p>…that’s probably my answer if someone formally asked me to list what I’ve learned in the boot camp. But, since the coaches said that I should put my heart into it. The best answer that I can come up with is…</p><h3>Not Yet</h3><p>or not now, or that not ready for the burden were you, or ‘<em>*teleports behind you*, “nothing personal kid”</em>’. This Bootcamp shows my incompetence and my weakness, even though I feel confident.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*lyRqWYII3xREnOAkG6dIgw.gif" /></figure><p>The thing is, if we’re talking about theories and information, I probably got a lot more information from a day of General Coorporate training rather than 4 days repeating the same thing over and over. But that was never the intention of this training. Like what my old consultant boss used to say, “Present a lot of subject within a shorter time so your audience will not understand what you said but think you are smart”. This is not what the coaches are doing here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*xF3uXwJss4EZ-xVB1bCWsg.png" /><figcaption>One of the coaches training his trainee</figcaption></figure><p>Every day, they force us to do the same thing over and over again. Telling ugly truth. Nuke the code for the first mistake we made instead of going through the mistake of the whole code. Everything so we will understand this to the core. Not just what’s on the surface. This Bootcamp is not a cheat sheet to pass the exam at school, this Bootcamp is a training arc in cliche fighting comics.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63a0245ad99f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Man who’s Silently Changed the World]]></title>
            <link>https://medium.com/@Kharizet/the-man-whos-silently-changed-the-world-ed898637502a?source=rss-482228c81be9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed898637502a</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[linus-torvalds]]></category>
            <dc:creator><![CDATA[Kharriz Abiyasa B.]]></dc:creator>
            <pubDate>Wed, 07 Aug 2019 01:07:49 GMT</pubDate>
            <atom:updated>2019-08-07T04:12:57.093Z</atom:updated>
            <content:encoded><![CDATA[<h3>[bootcamp] The Man who’s Silently Changed the World</h3><p>If we’re talking about famous people in tech industries who’s changed the world, most people would mention Steve Jobs or Bill Gates. While I’m not going to belittling their achievement, they’re not exactly the real MVP in this industry. They’re just designing a very good product.</p><p>So what’s exactly changed the world?. What makes these rapid advancements in technology in past decades is possible?. It was the access to knowledge and tools available for free to anyone on the internet. Yes. It was Open Source. Because of open source, you don’t really have to build everything from scratch. Everyone can improve the existing code, modify the part of the code to suit their needs, and use existing tools to help them build their code. And to repeat the most important part, <strong>EVERYONE. </strong>Not only rich bankers, not only billionaire who have 20 digits in their bank, everyone can.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*WPaf18dJW3AokQnVElXxbg.png" /><figcaption>Linus Torvalds appreciating help from other Linux contributor</figcaption></figure><p>If we’re talking about open source, there are few prominent figures that we can talk about. but for now, let’s talk about Linus Torvalds. Linus Torvalds is probably not as dedicated as Richards Stallman in campaigning open source. But he did one thing that changed the industry forever. Proves that it works. He built Linux and Git, publish the code for free on the internet. And now, according to <a href="https://w3techs.com/technologies/overview/operating_system/all">W3Tech</a>, Linux powered 70.6% of web servers. Both have become the industry standard for OS and version control. Thanks to that, now people are publishing their codes for free on the internet, thus making technology moves very fast, because improving it is easy.</p><p>Linus&#39; spirit makes every technology available for free should be appreciated. Open source is making the world better and I’m striving to follow his path of open source to make the world better.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed898637502a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>