<?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 William Albertus Dembo on Medium]]></title>
        <description><![CDATA[Stories by William Albertus Dembo on Medium]]></description>
        <link>https://medium.com/@w.albertusd?source=rss-53a422689060------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*X6W7Ze_sy-uKFOCA6jj9YA.jpeg</url>
            <title>Stories by William Albertus Dembo on Medium</title>
            <link>https://medium.com/@w.albertusd?source=rss-53a422689060------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 03:37:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@w.albertusd/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[Multiple machines with Vagrant]]></title>
            <link>https://medium.com/@w.albertusd/multiple-machines-with-vagrant-bbb134ec3ab5?source=rss-53a422689060------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbb134ec3ab5</guid>
            <category><![CDATA[vagrant]]></category>
            <category><![CDATA[virtual-machine]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <dc:creator><![CDATA[William Albertus Dembo]]></dc:creator>
            <pubDate>Mon, 08 Apr 2019 01:26:46 GMT</pubDate>
            <atom:updated>2019-04-08T01:26:46.807Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever develop a system that has many independent servers? It will be hard for a single machine to emulate this kind of system, you need to run multiple VM to really emulate this or install every server in your machine. In this <a href="https://medium.com/@w.albertusd/automate-vm-creation-with-vagrant-c97e90fa1b45">article</a>, we have discussed how to automate VM creation using Vagrant. Now we will tell you that Vagrant actually able to automate a whole multi-server topology in a single command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*uSmBUz9--DKBTg5jP-Jc2Q.png" /><figcaption><a href="https://medium.com/@megawan/provisioning-vagrant-multi-machines-with-ansible-32e1809816c5">Multi-machine Vagrant</a></figcaption></figure><p>Vagrant has a feature called <a href="https://www.vagrantup.com/docs/multi-machine/">multi-machine</a> that actually pretty easy to use. Consider this example as a way to set up a single VM.</p><pre>Vagrant.<strong>configure</strong>(&quot;2&quot;) <strong>do</strong> <strong>|</strong>config<strong>|<br>  </strong>config.<strong>vm</strong>.box = &quot;ubuntu/xenial64&quot;<strong><br>  </strong>config.<strong>vm</strong>.<strong>provision</strong> :shell, inline: &quot;Hello world&quot;<br><strong>end</strong></pre><p>Then this example is a way to create multiple VM.</p><pre>Vagrant.<strong>configure</strong>(&quot;2&quot;) <strong>do</strong> <strong>|</strong>config<strong>|</strong><br>  config.<strong>vm</strong>.box = &quot;ubuntu/xenial64&quot;<br>  config.<strong>vm</strong>.<strong>provision</strong> :shell, inline: &quot;This is for all&quot;<br><br>  config.<strong>vm</strong>.<strong>define</strong> &quot;web&quot; <strong>do</strong> <strong>|</strong>web<strong>|</strong><br>    web.<strong>vm</strong>.<strong>provision</strong> :shell, inline: &quot;This is for web&quot;<br>  <strong>end</strong><br><br>  config.<strong>vm</strong>.<strong>define</strong> &quot;db&quot; <strong>do</strong> <strong>|</strong>db<strong>|</strong><br>    db.<strong>vm</strong>.<strong>provision</strong> :shell, inline: &quot;This is for db&quot;<br>  <strong>end</strong><br><strong>end</strong></pre><p>vagrant up will create 2 different VM for web and DB or you can specify which VM to bring up with vagrant up &lt;name&gt; From now on to access the VM via ssh you need to specify which VM to access using vagrant ssh &lt;name&gt; This also applies for some other command like destroy, halt, and provision.</p><p>To set up a communication between VM you can configure all VM to use private network so that all VM connected to each other inside a private network. The example would be like this.</p><pre>Vagrant.<strong>configure</strong>(&quot;2&quot;) <strong>do</strong> <strong>|</strong>config<strong>|</strong><br>  config.<strong>vm</strong>.box = &quot;ubuntu/xenial64&quot;<br>  config.<strong>vm</strong>.<strong>provision</strong> :shell, inline: &quot;This is for all&quot;<br><br>  config.<strong>vm</strong>.<strong>define</strong> &quot;web&quot; <strong>do</strong> <strong>|</strong>web<strong>|</strong><br>    web.<strong>vm</strong>.<strong>provision</strong> :shell, inline: &quot;This is for web&quot;<br>    web.<strong>vm</strong>.<strong>network</strong> &quot;private_network&quot;, ip: &quot;192.168.0.2&quot;<br>  <strong>end</strong><br><br>  config.<strong>vm</strong>.<strong>define</strong> &quot;db&quot; <strong>do</strong> <strong>|</strong>db<strong>|</strong><br>    db.<strong>vm</strong>.<strong>provision</strong> :shell, inline: &quot;This is for db&quot;<br>    db.<strong>vm</strong>.<strong>network</strong> &quot;private_network&quot;, ip: &quot;192.168.0.2&quot;<br>  <strong>end</strong><br><strong>end</strong></pre><p>Now each VM has its own IP to communicate with each other.</p><p>There are many other things that you can do with Vagrant multi-machine, to learn more about this feature you can go to its official <a href="https://www.vagrantup.com/docs/multi-machine/">documentation</a>, this article only serves as an introduction that cannot specify all its capabilities.</p><p><strong>Call to action:</strong> If you‘ve enjoyed this article, please do two things to help others find it: share it and recommend it 👏</p><p><a href="https://www.vagrantup.com/docs/">Documentation - Vagrant by HashiCorp</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbb134ec3ab5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automate VM creation with Vagrant]]></title>
            <link>https://medium.com/@w.albertusd/automate-vm-creation-with-vagrant-c97e90fa1b45?source=rss-53a422689060------2</link>
            <guid isPermaLink="false">https://medium.com/p/c97e90fa1b45</guid>
            <category><![CDATA[virtualbox]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[vagrant]]></category>
            <category><![CDATA[virtual-machine]]></category>
            <category><![CDATA[virtualization]]></category>
            <dc:creator><![CDATA[William Albertus Dembo]]></dc:creator>
            <pubDate>Wed, 03 Apr 2019 15:59:01 GMT</pubDate>
            <atom:updated>2019-04-03T15:59:01.104Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>A <strong>virtual machine</strong> (<strong>VM</strong>) is an emulation of a computer system</blockquote><p>Have you ever create some virtual machine on your computer manually? If you ever did this then you’ll know how painful the process is, download the image, create the VM, set VM resources, set up the network and other things to do.</p><p>Do you know that there’s a tool out there that will help you automate this painful process? Vagrant is the tool that you want.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hFxdli0DlyqhDo7-aVMxKQ.png" /><figcaption><a href="https://www.vagrantup.com/">Vagrant Logo</a></figcaption></figure><blockquote>Vagrant is a tool for building and managing virtual machine environments in a single workflow. With an easy-to-use workflow and focus on automation, Vagrant lowers development environment setup time, increases production parity, and makes the “works on my machine” excuse a relic of the past. — Vagrant Intro</blockquote><p>Their introduction stated that Vagrant will help you to build and manage VM automatically. How vagrant achieve this?</p><h4>Communicate with VM provider API</h4><p>Vagrant creates the VM for you by communicating with the API created by the VM provider such as VirtualBox and VMware. A provider is a program that creates the VM. Basically, vagrant itself does not create the VM, they just tell the provider to create the VM.</p><h4>Tell the provider to create VM from ‘box’</h4><p>Vagrant will tell the provider to create VM according to the box you specify in the configuration. The box here is like an image of the system you want in your VM. You can find publicly available boxes <a href="https://app.vagrantup.com/boxes/search">here</a> or you can create your own boxes.</p><h4>Run the provision script in the VM</h4><p>After the provider creates the VM, Vagrant will run the provision script in your VM. Provision script is like a list of command you want to run in your VM. Provision script will help you reduce the time to manually run the script in your VM. Provision script can be written in many ways like a shell script, Ansible, or Chef. You can find more about provision <a href="https://www.vagrantup.com/docs/provisioning/">here</a>.</p><h4>VM is ready</h4><p>After the provisioning is completed then your VM is ready to use, you can SSH to your VM or do anything you want with it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*DcnQa5yO6QQVNdtpIaymAQ.png" /><figcaption><a href="https://hackernoon.com/devops101-vagrant-6737c8c29904?gi=e1ac039c6844">Vagrant flow</a></figcaption></figure><h4>How to configure vagrant?</h4><p>You can easily configure vagrant using the Vagrantfile which written in Ruby language. Many things can be configured within Vagrantfile, you can read more about Vagrantfile to find things to configure <a href="https://www.vagrantup.com/docs/vagrantfile/">here</a>.</p><p><strong>Call to action:</strong> If you‘ve enjoyed this article, please do two things to help others find it: share it and recommend it 👏</p><p><a href="https://www.vagrantup.com/docs/">Documentation - Vagrant by HashiCorp</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c97e90fa1b45" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Drinking cold water could be bad]]></title>
            <link>https://medium.com/@w.albertusd/drinking-cold-water-could-be-bad-46db69b2b61e?source=rss-53a422689060------2</link>
            <guid isPermaLink="false">https://medium.com/p/46db69b2b61e</guid>
            <dc:creator><![CDATA[William Albertus Dembo]]></dc:creator>
            <pubDate>Fri, 29 Mar 2019 01:57:48 GMT</pubDate>
            <atom:updated>2019-03-29T02:13:19.510Z</atom:updated>
            <content:encoded><![CDATA[<p>Drink an iced tea in the middle of summer is a great thing to do. But do you ever wondered about the risk of cold water? Here I will tell you some risk of drinking cold water.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xIVKiw6cDlpaEFbcMi2Z4w.jpeg" /><figcaption>source: <a href="https://www.chowhound.com/recipes/basic-iced-tea-10442">https://www.chowhound.com/recipes/basic-iced-tea-10442</a></figcaption></figure><h4>It makes you hard to breathe</h4><p><a href="https://www.ncbi.nlm.nih.gov/pubmed/359266">A study in US National Library of Medicine</a> found that drinking cold water made nasal mucous thicker and more difficult to pass through the respiratory tract. By comparison, the researchers found that chicken soup and hot water helped people breathe more easily. If you’re trying to treat a cold or flu, drinking cold water might make your congestion feel worse.</p><h4>It triggers migraine</h4><p><a href="https://www.ncbi.nlm.nih.gov/pubmed/11442559">Research from Uppsala University Hospital</a> found that cold water triggering <a href="https://www.healthline.com/health/migraine">migraines</a> in people that already experience migraine before. The pain related to <a href="https://www.healthline.com/health/achalasia">achalasia</a>, a condition that limits your body’s ability to pass food through your esophagus, <a href="https://www.ncbi.nlm.nih.gov/pubmed/23105999">can also</a> get worse when you drink cold water with a meal.</p><p>With those risks in mind, we need to be careful when we want to drink cold water so that it doesn’t harm you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46db69b2b61e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The benefit of becoming a vegetarian]]></title>
            <link>https://medium.com/@w.albertusd/the-benefit-of-becoming-a-vegetarian-aebd5bdbf24?source=rss-53a422689060------2</link>
            <guid isPermaLink="false">https://medium.com/p/aebd5bdbf24</guid>
            <dc:creator><![CDATA[William Albertus Dembo]]></dc:creator>
            <pubDate>Thu, 28 Mar 2019 01:53:51 GMT</pubDate>
            <atom:updated>2019-03-28T02:03:46.335Z</atom:updated>
            <cc:license>https://creativecommons.org/publicdomain/mark/1.0/</cc:license>
            <content:encoded><![CDATA[<p>Have you ever heard about people who choose to become a vegetarian? Have you ever wondered why there are people that choose not to eat meat? Becoming a vegetarian actually bring benefit to your life, here are some benefit of becoming a vegetarian.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*S5qn6ZqN84CgJ_TPwrUrlA.jpeg" /><figcaption>source : <a href="https://www.independent.co.uk/travel/news-and-advice/best-worst-countries-visit-vegetarian-vegan-holiday-switzerland-portugal-a8355771.html">https://www.independent.co.uk/travel/news-and-advice/best-worst-countries-visit-vegetarian-vegan-holiday-switzerland-portugal-a8355771.html</a></figcaption></figure><h4>Decrease heart disease chance</h4><p>There’s some evidence that vegetarians have a lower risk for cardiac events (such as a heart attack) and death from cardiac causes. In one of the largest studies — a combined analysis of data from five prospective studies involving more than 76,000 participants published several years ago — vegetarians were, on average, 25% less likely to die of heart disease. This result confirmed earlier findings from studies comparing vegetarian and nonvegetarian Seventh-day Adventists (members of this religious group avoid caffeine and don’t drink or smoke; about 40% are vegetarians). In another study involving 65,000 people in the Oxford cohort of the European Prospective Investigation into Cancer and Nutrition (EPIC-Oxford), researchers found a 19% lower risk of death from heart disease among vegetarians.</p><h4>Decrease type 2 diabetes</h4><p>Research suggests that a predominantly plant-based diet can reduce the risk of type 2 diabetes. In studies of Seventh-day Adventists, vegetarians’ risk of developing diabetes was half that of nonvegetarians, even after taking BMI into account. The Harvard-based Women’s Health Study found a similar correlation between eating red meat (especially processed meats, such as bacon and hot dogs) and diabetes risk, after adjusting for BMI, total calorie intake, and exercise.</p><p><a href="https://www.health.harvard.edu/staying-healthy/becoming-a-vegetarian">Becoming a vegetarian - Harvard Health</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aebd5bdbf24" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Travel Around Jakarta with Trafi]]></title>
            <link>https://medium.com/@w.albertusd/travel-around-jakarta-with-trafi-cf85250567ba?source=rss-53a422689060------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf85250567ba</guid>
            <category><![CDATA[trafi]]></category>
            <category><![CDATA[public-transit]]></category>
            <category><![CDATA[jakarta]]></category>
            <dc:creator><![CDATA[William Albertus Dembo]]></dc:creator>
            <pubDate>Wed, 27 Mar 2019 00:51:55 GMT</pubDate>
            <atom:updated>2019-10-02T16:31:37.054Z</atom:updated>
            <content:encoded><![CDATA[<p>Do you know how to reach Grand Indonesia Mall from Blok M by using public transportation? It’s okay if you don’t know, Trafi will help you to commute everywhere in Jakarta using public transportation and here’s how.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*VeEjjq2G4gFIu3oJUzC2BA.jpeg" /></figure><h4>It tracks public transport</h4><p>Trafi tracks public transportation in Jakarta such as TransJakarta and other buses in real-time. This way you can plan your travel better because you know when the bus arrives at your place.</p><h4>It provides detailed direction</h4><p>You can use Trafi to know how to reach certain places in Jakarta. Trafi will give you the possibility of transportation to reach that place, including TransJakarta, Commuter Line, and other buses. You can easily know how to go to somewhere in Jakarta.</p><p>With those features provided by Trafi, you can easily go to anywhere in Jakarta using public transportation. Be sure to have a Trafi app on your phone when you are in Jakarta.</p><p><strong>Call to action:</strong> If you‘ve enjoyed this article, please do two things to help others find it: share it and recommend it 👏</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf85250567ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Don’t Smoke in Jakarta’s Public Places]]></title>
            <link>https://medium.com/@w.albertusd/dont-smoke-in-jakarta-s-public-places-93da491ea3ac?source=rss-53a422689060------2</link>
            <guid isPermaLink="false">https://medium.com/p/93da491ea3ac</guid>
            <category><![CDATA[jakarta]]></category>
            <category><![CDATA[smoke]]></category>
            <category><![CDATA[public-policy]]></category>
            <dc:creator><![CDATA[William Albertus Dembo]]></dc:creator>
            <pubDate>Tue, 26 Mar 2019 00:51:03 GMT</pubDate>
            <atom:updated>2019-10-02T16:30:51.000Z</atom:updated>
            <content:encoded><![CDATA[<p>Do you smoke? Do you ever smoke in public places? You shouldn’t smoke in public places especially in Jakarta and here’s why.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C7Py4ustAmDQuFePpS3jUg.jpeg" /><figcaption>source: <a href="http://forestonline.eu/advocacy/smoking-in-public-places-in-europe">forestonline</a></figcaption></figure><h3>It’s against the law</h3><p>According to regional regulation of Jakarta number 2 the year 2015 about air pollution control on article 13 point (1) stated that “Public places, health facilities, workplaces and places specifically as a place for teaching and learning, the arena of children’s activities, places of worship and public transportation is stated as a no-smoking area.”</p><p>This means that the law specifically said that you should not smoke in public places. The consequences of violating this law are pretty heavy the violator is threatened with imprisonment for a maximum of 6 (six) months or a maximum fine of Rp. 50,000,000 (fifty million rupiah).</p><p>If you insist on smoking in public places then you need to be ready for those consequences. Imagine spending 6 months in jail only for smoking, is it worth it? No, that’s why don’t smoke in Jakarta’s public places.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*epJPPhOgMgtpFRj57WK9Gw.jpeg" /></figure><p><strong>Call to action:</strong> If you‘ve enjoyed this article, please do two things to help others find it: share it and recommend it 👏</p><p><a href="https://www.hukumonline.com/klinik/detail/lt4f5972d3e471d/sanksi-pidana-bagi-pelanggar-kawasan-dilarang-merokok">Sanksi Pidana Bagi Pelanggar Kawasan Dilarang Merokok</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93da491ea3ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Importance of National Legislative Elections]]></title>
            <link>https://medium.com/@w.albertusd/the-importance-of-national-legislative-elections-e5b5934b7053?source=rss-53a422689060------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5b5934b7053</guid>
            <category><![CDATA[elections]]></category>
            <category><![CDATA[legislation]]></category>
            <category><![CDATA[indonesia]]></category>
            <category><![CDATA[politics]]></category>
            <dc:creator><![CDATA[William Albertus Dembo]]></dc:creator>
            <pubDate>Sun, 24 Mar 2019 10:55:07 GMT</pubDate>
            <atom:updated>2019-10-02T16:29:50.905Z</atom:updated>
            <content:encoded><![CDATA[<p>Do you know about the legislative participant that gonna represent your area in the parliament? I suggest that you should learn more about them before you make a decision on who to vote on 17 April 2019 to be your representative in parliament for the next 5 years. Here is some information on why the legislative election is important.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*BDw_eiTI2MjgFjKz0ROzgQ.png" /><figcaption>source: <a href="https://www.merdeka.com/peristiwa/akal-akalan-politikus-senayan-biar-dpr-punya-gedung-baru.html">merdeka.com</a></figcaption></figure><h4>They create the law</h4><p>One of the parliament job is creating laws that affect the whole nation. They create the draft of the law and discuss it together with the government whether the law is relevant or not with nations current condition. This is why we need to make sure that people in the parliament is as good as possible because what they decide will decide how our nation develop. Here is some example of the controversial law proposed by the previous parliament, <a href="https://news.okezone.com/read/2018/03/18/337/1874363/ini-7-pasal-dalam-uu-md3-yang-dinilai-kontroversi">MD3 law</a>, <a href="https://katadata.co.id/berita/2019/02/06/kontroversi-6-pasal-ruu-permusikan-yang-ingin-dihapus-oleh-musisi">music law</a>, and <a href="https://nasional.kompas.com/read/2019/01/31/16134331/uu-ite-bisa-jerat-siapa-pun-yang-apes-tak-hanya-prita-atau-ahmad-dhani">IT law</a>. Do you want more controversial or beneficial laws in the future?</p><h4>They affect our national budget</h4><p>The government needs approval from parliament each year about the national budget. Parliament is supposed to decide whether the national budget proposed by the government is truly beneficial for the nation if it does not right then they will disapprove it. Good quality people are needed to make sure that parliament agrees to the national budget because it is good instead of because of bribe. Did you remember about Setya Novanto <a href="https://news.detik.com/berita/d-3768327/didakwa-korupsi-e-ktp-ini-peran-setya-novanto-intervensi-anggaran">corruption case</a> about the budget of e-KTP? That one of the famous case about budget corruption in the last parliament. Do you want something like this to happen again?</p><h4>They supervise the government</h4><p>Parliament also acts as a supervisor for the government so that the government does things according to the law. This way the government doesn&#39;t hold absolute power because when they do something against the law, the parliament will act against it. Good supervision will be achieved when the people in the parliament have good quality.</p><p>There are other things that parliament does, as you can see <a href="http://www.dpr.go.id/tentang/tugas-wewenang">here</a>. With those important jobs in our nation, we need to learn more about the possible representative of our area to make sure we choose the right person to do the job. By doing this, you contribute to the future of our nation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*HwJAY7DrA-EqEO9NMh6Iyw.jpeg" /></figure><p><strong>Call to action:</strong> If you‘ve enjoyed this article, please do two things to help others find it: share it and recommend it 👏</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5b5934b7053" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Small things about OOP]]></title>
            <link>https://medium.com/@w.albertusd/small-things-about-oop-3f851dde4182?source=rss-53a422689060------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f851dde4182</guid>
            <category><![CDATA[oop]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[William Albertus Dembo]]></dc:creator>
            <pubDate>Thu, 21 Mar 2019 00:19:18 GMT</pubDate>
            <atom:updated>2019-10-02T16:28:22.767Z</atom:updated>
            <content:encoded><![CDATA[<p>This article will tell you some useful thing about the OOP paradigm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qtr2tMst2DQgQox9pgu4lQ.jpeg" /><figcaption>source: <a href="https://medium.com/@richardeng/a-simple-explanation-of-oop-46a156581214">A Simple Explanation of OOP</a></figcaption></figure><h4>What is OOP?</h4><p><strong>Object-oriented programming</strong> (<strong>OOP</strong>) is a <a href="https://en.wikipedia.org/wiki/Programming_paradigm">programming paradigm</a> based on the concept of “<a href="https://en.wikipedia.org/wiki/Object_(computer_science)">objects</a>”, which can contain data, in the form of fields(often known as <em>attributes),</em> and code, in the form of procedures (often known as <a href="https://en.wikipedia.org/wiki/Method_(computer_science)"><em>methods</em></a><em>).</em> A feature of objects is an object’s procedures that can access and often modify the data fields of the object with which they are associated (objects have a notion of “this” or “self”). In OOP, computer programs are designed by making them out of objects that interact with one another.</p><h4>A Job of an OOP Class</h4><p>In object-oriented programming, a class is a blueprint for creating objects (a particular data structure), providing initial values for state (member variables or attributes), and implementations of behavior (member functions or methods).</p><p>The class is a blueprint that defines the nature of a future object. An instance is a specific object created from a particular class. Classes are used to create and manage new objects and support inheritance — a key ingredient in object-oriented programming and a mechanism of reusing code.</p><h4>DRY Principle (Don’t Repeat Yourself)</h4><p>DRY stands for “Don’t Repeat Yourself,” a basic principle of software development aimed at reducing the repetition of information. The DRY principle <a href="https://en.wikipedia.org/wiki/Don%27t_repeat_yourself">is stated as</a>, “Every piece of knowledge or logic must have a single, unambiguous representation within a system.”</p><p>Violations of DRY by writing the same code or logic, again and again, will make it difficult to manage the code and if the logic changes, then we have to make changes in all the places where we have written the code.</p><p>To avoid violating the DRY principle, divide your system into pieces. Divide your code and logic into smaller reusable units and use that code by calling it where you want. Don’t write lengthy methods, but divide logic and try to use the existing piece in your method.</p><h4>SRP (Single Responsibility Principle)</h4><p>Single Responsibility Principle (SRP) is defined by <a href="https://sites.google.com/site/unclebobconsultingllc/">Robert C. Martin</a> in his book “<a href="http://druss.co/wp-content/uploads/2013/10/Agile-Principles-Patterns-and-Practices-in-C.pdf">Agile Software Development, Principles, Patterns, and Practices</a>”. As its name suggests, it implies that a class must have a unique responsibility.<br><br>Within the context of the Single Responsibility Principle, responsibility is defined as a reason to change. This is why Robert C. Martin define SRP as “A class should have only one reason to change.”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f851dde4182" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Let’s be Genius with Jenius]]></title>
            <link>https://medium.com/@w.albertusd/lets-be-genius-with-jenius-68d7e39df6d4?source=rss-53a422689060------2</link>
            <guid isPermaLink="false">https://medium.com/p/68d7e39df6d4</guid>
            <category><![CDATA[banking]]></category>
            <category><![CDATA[jenius-btpn]]></category>
            <category><![CDATA[financial-services]]></category>
            <category><![CDATA[saving]]></category>
            <dc:creator><![CDATA[William Albertus Dembo]]></dc:creator>
            <pubDate>Tue, 19 Mar 2019 23:35:19 GMT</pubDate>
            <atom:updated>2019-10-02T16:26:40.515Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever heard about the Jenius app from BTPN bank?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*oKHVe_hYYNgT6Zmu1JYoJQ.jpeg" /><figcaption>Source: <a href="https://play.google.com/store/apps/details?id=com.btpn.dc&amp;hl=en">Jenius android app</a></figcaption></figure><p>Jenius is a banking product application from PT Bank Tabungan Pensiun Negara (BTPN), Tbk that focused on the millennial generation to help them organize financial life easier.</p><p>There are three main values of Jenius which are <strong><em>simple, smart and safe</em></strong>. <strong>Simple</strong> because all financial functionality is available on one app. <strong>Smart</strong> because it’s connected to the Indonesian banking ecosystem so it can grow according to the latest condition. <strong>Safe</strong> because Jenius is supported by <a href="https://www.btpn.com/id/tentang-kami/segmen-usaha/jenius">BTPN</a> and licensed by <a href="http://www.ojk.go.id/">OJK</a> and guaranteed by <a href="http://www.lps.go.id/">LPS</a>.</p><p>I recommend you to start using Jenius instead of conventional bank saving because Jenius offer things that conventional saving did not. Here are some cool things that Jenius offer to you:</p><ol><li>Easy to register</li></ol><p>To start using Jenius you only need to register in your smartphone and send the photo of KTP, NPWP, and your signature, then the people from BTPN will come to you to check the credibility of the data. This way you don’t need to waste your time to go to the bank and take a long queue to get things done.</p><p>2. Have a unique $Cashtag</p><p>Do you have trouble remembering your saving number? Jenius provides a special feature called Cashtag. Transfer between Jenius user can be done using Cashtag instead of saving number. You can choose a convenient name for your Cashtag like $walbertus.</p><p>3. Multiple cards for multiple uses</p><p>Jenius allows you to create up to 5 debit cards that you can control the value and transaction of each card. This way you can easily delegate your cards to your family and keep track of their usage.</p><p>4. Free transfer to other banks</p><p>You can transfer your money to other banks without any extra charge for up to 25 times a month. This will save you some money when you need to transfer money to others.</p><p>5. Withdraw money in any ATM without charge</p><p>You can use any ATM with ATM Bersama or ATM Prima logo without extra charge. Basically, with this feature, you can withdraw your money almost everywhere in Indonesia without extra charge.</p><p>6. E-Card for electronic transaction</p><p>Jenius give you an electronic card that you can use to do a transaction in many online marketplaces that supports Visa. It’s also possible to limit the transaction value so that you don’t get overcharged.</p><p>There are many more features that Jenius provide to its user, I suggest that you learn more about it on their official website <a href="https://www.jenius.com/">www.jenius.com</a>.</p><p><strong>Call to action:</strong> If you‘ve enjoyed this article, please do two things to help others find it: share it and recommend it 👏</p><ul><li><a href="http://siahmad.com/kelebihan-dan-kekurangan-tabungan-jenius/">Kelebihan dan Kekurangan Punya Tabungan Jenius dari Bank BTPN</a></li><li><a href="https://siochoy.com/2016/09/23/5-fitur-keren-jenius-btpn-bank-reinvented/">5 Hal Jenius yang Bisa Kamu Lakukan dengan Aplikasi JENIUS</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68d7e39df6d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RuboCop Ease Your Life]]></title>
            <link>https://medium.com/@w.albertusd/rubocop-ease-your-life-7ef729a64ead?source=rss-53a422689060------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ef729a64ead</guid>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[software]]></category>
            <dc:creator><![CDATA[William Albertus Dembo]]></dc:creator>
            <pubDate>Wed, 13 Mar 2019 15:17:30 GMT</pubDate>
            <atom:updated>2019-10-02T16:25:29.324Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are a Ruby coder that trying to follow some sort of code convention or if you got many obvious syntactic errors or just wanna try to do clean code then you should consider using RuboCop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*mkAsZNQ3GGK_80lrCp_UJA.png" /><figcaption><a href="https://rubocop.readthedocs.io/en/latest/">Rubocop Logo</a></figcaption></figure><p>According to the <a href="https://github.com/rubocop-hq/rubocop">RuboCop readme</a>, RuboCop is a Ruby <strong>static code analyzer</strong> and <strong>code formatter</strong>. RuboCop is functioning like an actual cop that enforces the style guide to your Ruby code, the difference is that you capable of specifying the rule. Rubocop is also capable of automatically fix the violation you made.</p><p>Why you need someone to follow a style guide? It’s because your code is not only interpreted by a machine, but by fellow programmers as well. Style guides are a way to make it easier for the human to interpret your code.</p><p>RuboCop is a cop (linter) that will help you to track the silly errors you make and saving you the effort to actually going through each line of your code. Another cool thing about RuboCop is that you can integrate it with your favorite text editors to make it easier to detect errors and even fix it for you automatically.</p><p>You can refer to the RuboCop GitHub page <a href="https://github.com/rubocop-hq/rubocop">here</a> to do the installation process. The default rule enforced by RuboCop could be intimidating sometime, you can refer <a href="https://gist.github.com/jhass/a5ae80d87f18e53e7b56">here</a> for an easy custom rule you can apply to your ruby project.</p><p><strong>Call to action:</strong> If you‘ve enjoyed this article, please do two things to help others find it: share it and recommend it 👏</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ef729a64ead" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>