<?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 I Dewa Putu Ardi Nusawan on Medium]]></title>
        <description><![CDATA[Stories by I Dewa Putu Ardi Nusawan on Medium]]></description>
        <link>https://medium.com/@ardi.nusawan13?source=rss-d98387f518b1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xx8lC5zyuxMCxztraZfVYQ.jpeg</url>
            <title>Stories by I Dewa Putu Ardi Nusawan on Medium</title>
            <link>https://medium.com/@ardi.nusawan13?source=rss-d98387f518b1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:04:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ardi.nusawan13/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[Singleton Pattern]]></title>
            <link>https://medium.com/@ardi.nusawan13/singleton-pattern-7b7bafa64bd8?source=rss-d98387f518b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b7bafa64bd8</guid>
            <category><![CDATA[oop]]></category>
            <category><![CDATA[singleton-design-pattern]]></category>
            <category><![CDATA[design-patterns]]></category>
            <dc:creator><![CDATA[I Dewa Putu Ardi Nusawan]]></dc:creator>
            <pubDate>Sun, 05 May 2019 16:51:11 GMT</pubDate>
            <atom:updated>2019-05-05T16:51:11.020Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jQ_y6DBGOQI95kdD" /><figcaption>Photo by <a href="https://unsplash.com/@furbee?utm_source=medium&amp;utm_medium=referral">Oscar Nord</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This is one of the simplest pattern. This pattern make sure the instance of class just create <strong>only one</strong>.</p><p><strong>Purpose:</strong></p><ul><li>Ensure just one instance of class is created.</li><li>Provide a global point of access to the object.</li></ul><p><strong>Implementation:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/262/0*zezAdX6HnsU7HW1O.gif" /><figcaption><a href="https://www.oodesign.com/singleton-pattern.html">https://www.oodesign.com/singleton-pattern.html</a></figcaption></figure><p>As in the picture above, focus on method <strong>getInstance()</strong>.</p><p>Remember in this pattern, we can’t make more than one instance? Ok but, how we can make an instance?</p><p>Look at this example:</p><pre>class Singleton {<br>	private static Singleton instance;<br><br>	private Singleton() {<br>		...<br>	}<br>	<br>	public static Singleton getInstance(){<br><br>		if (instance == null)<br>			instance = new Singleton();<br><br>		return instance;<br>	}<br>	<br>	...<br>	<br>	public void doSomething()<br>	{<br>		...<br>	}<br>}</pre><p>getInstance method is used to <strong>create new or return existing instance. </strong>That to make sure we just have one instance of the class.</p><p>And why the constructor of the method is private?</p><p>This pattern to make sure you cannot do this:</p><pre>Singleton singleton = new Singleton();</pre><p>But do this:</p><pre>Singleton singleton = Singleton.getInstance();</pre><p><strong>Real implementation:</strong></p><ul><li>Logger Classes<br>Provides a global logging access point in all the application components without being necessary to create an object each time a logging operations is performed.</li><li>Configuration Classes<br>When the class is instantiated( or when a value is read ) the singleton will keep the values in its internal structure. If the values are read from the database or from files this avoids the reloading the values each time the configuration parameters are used.</li><li>Multiple Document Interface ( MDI )<br>In the MDI application when we do not implement singleton then when opening a child form by pressing a menu, what happens is the creation of an object from the child form in question every time a button is pressed. If we press the menu 5 times then there will be the same 5 forms. Of course you want there is only 1 form.</li></ul><p>Have any question? Write down below :)</p><p>Source:</p><ul><li><a href="https://www.oodesign.com/singleton-pattern.html">Singleton Pattern | Object Oriented Design</a></li><li><a href="https://agung-setiawan.com/berkenalan-dengan-singleton-pattern/">Berkenalan dengan Singleton Pattern</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b7bafa64bd8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Friend is good for your health ]]></title>
            <link>https://medium.com/@ardi.nusawan13/friend-is-good-for-your-health-e91a6a5ab067?source=rss-d98387f518b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/e91a6a5ab067</guid>
            <category><![CDATA[health]]></category>
            <dc:creator><![CDATA[I Dewa Putu Ardi Nusawan]]></dc:creator>
            <pubDate>Wed, 27 Mar 2019 21:32:13 GMT</pubDate>
            <atom:updated>2019-03-28T02:12:12.697Z</atom:updated>
            <content:encoded><![CDATA[<p>On weekend, I cannot be just in my boarding room. I need to going outside with my friends. Find discounts, try to new place hype in the town, or just looking around in Mall looking for ̶p̶r̶e̶t̶t̶y̶ ̶g̶i̶r̶l̶ new shoe in Sport Station. Without my friends, what can I do?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OkB3j9KVxT2mqbOGyCd2TQ.jpeg" /><figcaption><a href="https://www.deviantart.com/badflippy/art/Lie-down-try-not-to-cry-cry-a-lot-COMBO-351284918">Cry</a>..</figcaption></figure><p>And not just that, sometimes when I have problems (don’t have money), I will talk to my friend and that helped me sometimes 😅</p><p>Yes, your family can help you too. But when I talk to my father / mother, often I not more open compare to my friends.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*piYWNMcN2T-A7GOo" /><figcaption>Photo by <a href="https://unsplash.com/@wildlittlethingsphoto?utm_source=medium&amp;utm_medium=referral">Helena Lopes</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>A <a href="http://onlinelibrary.wiley.com/doi/10.1111/pere.12187/full">study</a> released by researchers at Michigan State University this year said that if you want to be healthy later in life, it’s actually your friendships that you should be nurturing. They do two studies: one on relationships and self-rated health and happiness, and another on relationship support/strain and chronic illness.</p><p>In the first study, the researcher analyzed the responses of 271,053 adults, and people from nearly 100 countries.</p><p>Overall, this study revealed that both family and friend relationships are tied to higher self-rated levels of health and happiness.</p><p>But, as age increased, the researchers found that friendships were more influential than family when it comes to predicting these states.</p><p>In the second study, with 7,481 older adults on a survey, they found that people who had healthy bonds with close friends were happier than those who didn’t. If they reported toxic relationships with their friends, the survey found they had a higher rate of chronic illness.</p><p>The researchers say the phenomenon may have something to do with the fact that friends are chosen — and, over time, people mostly only hang onto the good ones.</p><p>They can also a source of support for people who may not have family they can turn to. While family relationships are ‘often enjoyable too,’ the researcher explains that these can also involve more serious and negative interactions.</p><p>Or, family interactions can even just be monotonous in comparison.</p><p>And other studies have shown that good friends make you happier because their <a href="http://news.harvard.edu/gazette/story/2008/12/having-happy-friends-can-make-you-happy/">happiness is contagious</a>, they keep it real with you <a href="https://well.blogs.nytimes.com/2010/03/17/talk-deeply-be-happy/?_r=0">by cutting the chit-chat</a>, and that they can make <a href="http://www.irishexaminer.com/lifestyle/healthandlife/relationships/research-confirms--friendship-brings-more-happiness-than-money-310925.html">you happier than having more money</a>.</p><p>So, please be nice with your friends today. <strong>It just may be good for your health 👌</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e91a6a5ab067" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Democrazy is good for your health ]]></title>
            <link>https://medium.com/@ardi.nusawan13/democrazy-is-good-for-your-health-252f5d2cca51?source=rss-d98387f518b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/252f5d2cca51</guid>
            <category><![CDATA[health]]></category>
            <dc:creator><![CDATA[I Dewa Putu Ardi Nusawan]]></dc:creator>
            <pubDate>Mon, 25 Mar 2019 15:24:21 GMT</pubDate>
            <atom:updated>2019-03-26T03:02:18.309Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Democracy</strong> is good for your health 😀</h3><p>When people critic our government, that is actualy a good thing. Because that make our government move better from citizen feedback, and people give pressure to government to do better job. And that work in health services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*2dhZd8HZxZJvCSQ4m31Ndg.jpeg" /><figcaption><a href="http://alwaght.com/en/News/53793/Americans-Vote-under-Fa%C3%A7ade-of-Democracy">http://alwaght.com/en/News/53793/Americans-Vote-under-Fa%C3%A7ade-of-Democracy</a></figcaption></figure><p>A study of 170 countries has concluded, found that democracy boost to a form of government that has faced significant setbacks around the world in recent years.</p><p>The study, published in the <a href="https://www.thelancet.com/journals/lancet/article/PIIS0140-6736(19)30431-3/fulltext">Lancet</a> found that life expectancy improved more quickly in countries that switched to democracy over the past 50 years, the researchers discovered, and there were fewer deaths from cardiovascular disease, diseases such as cancer and cirrhosis, and even road traffic accidents.</p><p>Thomas Bollyky, from the US Council on Foreign Relations, the author of the jurnal, said: “This is good news at a time when the news around democracy has been fairly depressing. Health and elections are inevitably linked.”</p><p>Using existing measures of democratic experience compiled in the <a href="https://www.v-dem.net/en/">V-Dem database</a> and plotted them against a range of metrics such as government health spending and disease outcomes is the way researchers found the answer.</p><p>The researchers then compared trends in countries that had transitioned from autocracy to democracy since 1980 until 2016 with 55 states that had not. The impact of HIV was factored out, because the huge amount of foreign aid devoted to the virus would have skewed the findings.</p><p>The conclusions is life expectancy at age 15 was 3% higher in countries 10 years after their transition to democracy than in counterparts that had not changed government type. Tuberculosis, cardiovascular disease, transport injuries and non-communicable diseases also fell as democracy bedded in.</p><p>Researchers believe free societies achieve better outcomes not because of prosperity but public pressure. “Countries where government is not subject to free and fair democracy doesn’t have the same pressure from voters” to deliver better health services, Bollyky said.</p><p>So, remains critical of the government’s performance for better health services!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=252f5d2cca51" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why you should give e-book reader a shot!]]></title>
            <link>https://medium.com/@ardi.nusawan13/why-you-should-give-e-book-reader-a-shot-516722e65516?source=rss-d98387f518b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/516722e65516</guid>
            <category><![CDATA[kindle]]></category>
            <dc:creator><![CDATA[I Dewa Putu Ardi Nusawan]]></dc:creator>
            <pubDate>Sat, 23 Mar 2019 07:18:00 GMT</pubDate>
            <atom:updated>2019-03-23T07:23:35.887Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why you should give e-reader a shot!</h3><p>Is e-reader worth it? It depends on your tastes and lifestyle. Is central air-conditioning worth it? Maybe, if you live where I do, in Indonesia, where the summers can be brutal, but probably not if you live in Alaska.</p><p>For me, e-reader is worth it. I’m a voracious reader, and I prefer to have real books rather than read it from laptop / phone. But the real book have disadvantage, very hard to carry on and the price usually not cheap. And reading for long time on laptop / phone make my eyes not comfortable. As a programmer, I spend so many hours each day staring at a laptop or phone screen that it felt I need to give my eyes and brain a break. E-reader is in the middle. Easy to carry anywhere and does not make the eyes hurt, and if you use Kindle, Amazon had lower price for Kindle version of book too!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*UbxD6fh8Xaf4EAyh6jVjsw.jpeg" /><figcaption><a href="https://www.mcgill.ca/oss/article/technology/e-readers-are-more-paper-you-think">https://www.mcgill.ca/oss/article/technology/e-readers-are-more-paper-you-think</a></figcaption></figure><p>Some research has shown that<a href="https://www.theguardian.com/technology/2015/feb/23/reading-writing-on-paper-better-for-brain-concentration"> people pay less attention to text on a screen</a>, that they tend to be more distracted. Others have shown that<a href="http://visionsource.com/blog/print-vs-digital-which-is-better-for-your-eyesight/"> we blink less when reading off of computers</a>. This causes our eyes to dry out faster and contributes to what all 9–5 office workers are well familiar with: visual fatigue. But these effects don’t usually translate to e-readers. Studies often find<a href="http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0083676"> e-readers behave more or less like paper books.</a> That’s because the most popular e-readers use a fundamentally different technology than what is found in your phone or laptop. They use e-paper or e-ink,a special kind of flexible display created to mimic printed paper.</p><p>Researchers believe that, since e-paper doesn’t emit any light of its own, just like regular paper, this might explain why e-paper is “better” for us than reading off laptops or tablets. For example, <a href="http://www.pnas.org/content/112/4/1232.full.pdf">several studies have shown</a> that exposure to artificial light from LCD devices in the evening can reduce your brain’s secretion of melatonin — the hormone that induces sleep. Thus screen use before bedtime is associated with more difficulty falling asleep and less time spent sleeping. E-readers however do not share this effect; in this case they behave just like paper.</p><p>And not just that make me fall in love with Kindle. The Kindle offers something crucial in this day and age: a break from our smartphones, laptops, and TVs.</p><p>Sure, it’s still a digital device, but I felt okay about using it in bed before I went to sleep, or putting down my phone to use the Kindle instead. Strangely enough, it felt a lot more similar to reading a physical book than using something like an iPad, and it was refreshing to have an excuse to look at something other than an LCD or OLED display.</p><p>I’am not a sales person of Kindle Paperwhite, but I have try it and it work for me. Kindle is already the most popular e-reader, and the ecosystem is already good. You can buy book easily and cheaper on Amazon, you can share the book you read on Goodreads (Amazon owned company), and Amazon’s after sales are undoubtedly quality. But you can bough other brand you want, such as Kobo reader from <a href="https://www.kobo.com/us/en">Rakuten</a>.</p><p>That’s all from me, you can read more about this topic on this source:</p><ul><li><a href="https://www.mcgill.ca/oss/article/technology/e-readers-are-more-paper-you-think">E-readers are more like paper than you think</a></li><li><a href="https://www.businessinsider.sg/amazon-kindle-paperwhite-2018-review-2018-11/?r=US&amp;IR=T">Amazon&#39;s new $130 Kindle Paperwhite is a boring device that can&#39;t do very much - but that makes it perfect for helping break your app addiction</a></li><li><a href="https://www.healthguidance.org/entry/15903/1/kindle-screens-and-your-eyes.html">Kindle Screens and Your Eyes</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=516722e65516" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The advantages of using public transportation]]></title>
            <link>https://medium.com/@ardi.nusawan13/the-advantages-of-using-public-transportation-6baf012d1dcd?source=rss-d98387f518b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/6baf012d1dcd</guid>
            <category><![CDATA[transportation]]></category>
            <dc:creator><![CDATA[I Dewa Putu Ardi Nusawan]]></dc:creator>
            <pubDate>Tue, 19 Mar 2019 13:11:30 GMT</pubDate>
            <atom:updated>2019-03-19T13:11:30.368Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*svZ-LZlGP6R18bX1-maIJw.jpeg" /></figure><p>According to the Cambridge Dictionary, public transportation is defined as a system of vehicles such as buses and trains that operate at regular times on fixed routes and are used by public. There are people who think that public transportation is not entirely comfortable as compared to the use of personal car. Therefore here is some reasons why we should consider using public transportation.</p><p>1. Contributing towards easing traffic congestion</p><p>We aren’t unfamiliar with traffic jam, especially in bigger city like Jakarta. According to worldpopulationreview.com, Jakarta with the size of only 661,5 km2isn’t just the most populous city in Indonesia; it’s also the most populous in Southeast Asia and the 14th most populated city on earth🌞Just wonder if everyone in Jakarta use a personal transportation, let’s say a personal car. There’s gonna be so many of ineffective spaces, since it’s not always the car is full filled with its maximum capacity (example: the car of 5 people is only filled with 1 person). This will cause crowd and of course the traffic jam.</p><p>2. Reducing the overall environmental greenhouse gas emissions</p><p>The less vehicles means the less production of gas emissions.</p><p>3. Meeting new people</p><p>Works can get us bored sometimes and everyone has different way to ease boredom. One way is through socializing and perhaps with someone new.</p><p>4. Saving money</p><p>The regular use of personal transportation will require the cost of maintenance and other additional charges such as parking fees and gas. By using public transportation, we will be able to save those charges.</p><p>5. Improving personal health</p><p>The use of public transportation will ensure us to walk more often between the stations and the places we’ll be boarding the buses, planes, or trains. This will provide us with extra physical activity in our daily.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6baf012d1dcd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Class in OOP, DRY Principle, Single Responsibility Principle]]></title>
            <link>https://medium.com/@ardi.nusawan13/class-in-oop-dry-principle-single-responsibility-principle-e3faacae2d04?source=rss-d98387f518b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3faacae2d04</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[I Dewa Putu Ardi Nusawan]]></dc:creator>
            <pubDate>Sat, 16 Mar 2019 14:17:38 GMT</pubDate>
            <atom:updated>2019-03-17T04:22:06.216Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Object-oriented programming</strong> (<strong>OOP</strong>) is an object oriented programming method. The purpose of OOP was created to facilitate the development of programs by following the existing models in everyday life. So each part of the problem is an object, but the object itself is a combination of several smaller objects. I take the example of a plane, the plane is an object. The plane itself is formed from several smaller objects such as engines, wheels, propellers, chairs, etc. Airplanes as objects formed from smaller objects are interconnected, interacting, communicating and sending messages to each other. Likewise with programs, large objects are formed from several smaller objects, objects communicate with each other, and send messages to other objects.</p><h4>What is Class?</h4><p>A class is an entity that determines how an object will behave and what the object will contain. In other words, it is a blueprint or a set of instruction to build a specific type of object.</p><h4><strong>What a job of Class?</strong></h4><p>Classes are used to create and manage new objects and support <strong>inheritance — </strong>a key ingredient in object-oriented programming and a mechanism of reusing code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4CPwyW5MZukVm_Te" /><figcaption><a href="https://brilliant.org/wiki/classes-oop/">https://brilliant.org/wiki/classes-oop/</a></figcaption></figure><h4><strong>What is DRY Principle?</strong></h4><p>The DRY (don’t repeat yourself) principle is a best practice in software development that recommends software engineers to do something once, and only once. The concept, which is often credited to Andrew Hunt and David Thomas, authors of “The Pragmatic Programmer,” is the tongue-in-cheek opposite of the WET principle, which stands for “write everything twice.”</p><p>The goal of the DRY principle is to lower <a href="https://searchsap.techtarget.com/definition/technical-debt">technical debt</a> by eliminating redundancies in process and logic whenever possible.<a href="https://whatis.techtarget.com/definition/DRY-principle">[3]</a></p><p>There are two type of redundancy:</p><p><strong>Redundancies in process: </strong>There is only one way to complete a particular process. Automating the steps wherever possible also reduces redundancy, as well as the number of actions required to complete a task.</p><p>R<strong>edundancies in logic: </strong>Use abstraction to minimize repetition. Abstraction is the process of removing characteristics until only the most essential characteristics remain.</p><h4>What is Single Responsibility Principle?</h4><p>This principle explains how modules or classes should only do one job. Classes that are in accordance with this principle are where the class only has the only reason to change, which means that this class is only responsible for one part of the function provided by the software, and that responsibility is encapsulated by the class.</p><p>Example case:</p><p>In an application project, Tim was assigned to write a model structure, while Baker was assigned to write data access providers. Because the two had never doing this before, the model structure and data access provider had been combined into one class. Because it is a class, classes can automatically change because of changes in the model data structure and changes in the data access mechanism. So, Tim and Baker have the opportunity to create conflict in version control because it is possible to change the same line in one file.</p><p>Therefore, each class or function must have only one responsibility.</p><blockquote>A class should have only one reason to change. — Uncle Bob</blockquote><p>Source:</p><p><a href="https://brilliant.org/wiki/classes-oop/">https://brilliant.org/wiki/classes-oop</a></p><p><a href="https://whatis.techtarget.com/definition/DRY-principle">https://whatis.techtarget.com/definition/DRY-principle</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3faacae2d04" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why do we have to drink enough water]]></title>
            <link>https://medium.com/@ardi.nusawan13/why-do-we-have-to-drink-enough-water-f6b449104960?source=rss-d98387f518b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6b449104960</guid>
            <category><![CDATA[health]]></category>
            <dc:creator><![CDATA[I Dewa Putu Ardi Nusawan]]></dc:creator>
            <pubDate>Wed, 13 Mar 2019 13:54:48 GMT</pubDate>
            <atom:updated>2019-03-13T13:54:48.379Z</atom:updated>
            <content:encoded><![CDATA[<p>Think of what you need to survive, really just survive. Food? Water? Air? WiFi?</p><p>Naturally, I’m going to concentrate on water here. Water is of major importance to all living things; in some organisms, up to 90% of their body weight comes from water. Up to 60% of the human adult body is water.</p><p>According to H.H. Mitchell, Journal of Biological Chemistry 158, the brain and heart are composed of 73% water, and the lungs are about 83% water. The skin contains 64% water, muscles and kidneys are 79%, and even the bones are watery: 31%</p><p>Each day humans must consume a certain amount of water to survive. Of course, this varies according to age and gender, and also by where someone lives. Generally, an adult male needs about 3 liters per day while an adult female needs about 2.2 liters per day. All of the water a person needs does not have to come from drinking liquids, as some of this water is contained in the food we eat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/0*bXzAFUyj5qM-TmPi.png" /><figcaption><a href="https://water.usgs.gov/edu/propertyyou.html">https://water.usgs.gov/edu/propertyyou.html</a></figcaption></figure><p>Hmm but what happen if we not drink enough of water?</p><p>We will not get benefits like the following:</p><ol><li><strong>It lubricates the joints</strong></li><li><strong>It forms saliva and mucus</strong></li><li><strong>It delivers oxygen throughout the body</strong></li><li><strong>It boosts skin health and beauty</strong></li><li><strong>It cushions the brain, spinal cord, and other sensitive tissues</strong></li><li><strong>It regulates body temperature</strong></li><li><strong>The digestive system depends on it</strong></li><li><strong>It flushes body waste</strong></li><li><strong>It helps maintain blood pressure</strong></li><li><strong>The airways need it</strong></li><li><strong>It makes minerals and nutrients accessible</strong></li><li><strong>It prevents kidney damage</strong></li><li><strong>It boosts performance during exercise</strong></li><li><strong>Weight loss</strong></li><li><strong>It reduces the chance of a hangover</strong></li></ol><p>So, still don’t want to drink enough water?</p><p>You can read more <a href="https://water.usgs.gov/edu/propertyyou.html">here</a> and <a href="https://www.medicalnewstoday.com/articles/290814.php">here</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6b449104960" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why is junk food so addictive?]]></title>
            <link>https://medium.com/@ardi.nusawan13/why-is-junk-food-so-addictive-74fc16696b43?source=rss-d98387f518b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/74fc16696b43</guid>
            <category><![CDATA[health]]></category>
            <dc:creator><![CDATA[I Dewa Putu Ardi Nusawan]]></dc:creator>
            <pubDate>Mon, 11 Mar 2019 18:28:18 GMT</pubDate>
            <atom:updated>2019-03-11T18:28:18.632Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*tVekgOEwredRXWQRaamvwA.png" /></figure><p>If junk food is a new trend, a lot of people seem to be in style. Yes, junk food is consumed anywhere and anytime nowadays. It could be your McMuffin breakfast, your King Deal Burger from Burger King for lunch, your Pizza dinner, or your midnight snacks. The number of fast food restaurants is increasing because people around the world like to eat junk food. The question, why is junk food so addictive?🤔</p><p>It is not questionable that junk food is so convenient as how it’s meant to be. As defined by The Cambridge Dictionary, junk food is food that is unhealthy but is quick and easy to eat. It’s simple and needs least effort to prepare. That is one reason why fast food becomes a choice, especially for the busy-busy, or maybe just lazy😜</p><p>According to Professor Tom Finger, at the University of Colorado-Denver, flavor is a combination of both taste and smell. This has a serious effect on how people perceive the taste of junk food. The alluring smell of junk food increases people’s sense of taste when they eat it, causing the experience to be more enjoyable. Besides the smell, junk food also contains additives that are high in sugar and fat. These additives are one of the main reasons that fast food is so delicious. In addition, it has been scientifically proven that when one consumes foods that are high in fat and sugar, one’s cravings for such food will increase. There we got the second reason of why junk food gets so addicting😌</p><p>On the other hand, more sugar and fat means more calories, and it’s worsened for the fact that junk food contains less dietary fibers, protein, vitamins and minerals. That goes along with Merriam-Webster’s definitions of junk food: (1) food that is high in calories but low in nutritional content; (2) something that is appealing or enjoyable but of little or no real value. It’s so clear then, that eating junk food regularly will not be good for our health. It gives us risk of being obese (no one wants that especially for the girls☹️) and developing chronic diseases (cardiovascular diseases, diabetes, liver diseases). So for all reasons of why junk food is so addictive, the greatest wealth is still health. What about starting to spend more time and effort for healthy food from now?😋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74fc16696b43" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Instagram is bad for you, here why]]></title>
            <link>https://medium.com/@ardi.nusawan13/instagram-is-bad-for-you-here-why-52e4db07a081?source=rss-d98387f518b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/52e4db07a081</guid>
            <category><![CDATA[instagram]]></category>
            <category><![CDATA[mental-health]]></category>
            <category><![CDATA[addiction]]></category>
            <dc:creator><![CDATA[I Dewa Putu Ardi Nusawan]]></dc:creator>
            <pubDate>Sun, 10 Mar 2019 05:53:55 GMT</pubDate>
            <atom:updated>2019-03-11T01:11:04.145Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*apQ5QFGnS5pnEgqP" /><figcaption><a href="https://www.musicxtechxfuture.com/2017/07/10/im-a-millennial-and-i-share-more-music-through-instagram-stories-than-any-other-medium/">https://www.musicxtechxfuture.com/2017/07/10/im-a-millennial-and-i-share-more-music-through-instagram-stories-than-any-other-medium/</a></figcaption></figure><p>There is a ton of sosial media platform on the internet right now. Facebook, Twitter, Snapchat, Instagram, Vk, and many more. Not all is great, <a href="https://www.rsph.org.uk/about-us/news/instagram-ranked-worst-for-young-people-s-mental-health.html">according to a recent survey</a>, Instagram is the worst social media network for mental health and wellbeing. The research is conducted in almost 1,500 teens and young adults. While the photo-based platform got points for self-expression and self-identity, it was also associated with high levels of anxiety, depression, bullying and FOMO, or the “fear of missing out.”[1]</p><p>I, personally agree with the research. Have you ever tried not to use Instagram in the whole day?</p><p>I had. I simply uninstalled Instagram(IG) on my phone.</p><p>But that didn’t work, <a href="https://en.wikipedia.org/wiki/Fear_of_missing_out">FOMO</a> hit me really hard.</p><p>What should I do?</p><p>Just like someone who is addicted to cigarettes, instead of entirely stopping using it, I chose to incrementally decrease using it every day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*fDd6C9rCMFSHX9zvld13sg.jpeg" /><figcaption>My phone launcher(<a href="https://play.google.com/store/apps/details?id=me.aswinmohan.nophone&amp;hl=en_US">Less Phone</a>)</figcaption></figure><p>My approach is like this. I don’t delete IG. I change may launcher in my phone so I cannot open Instagram easily. I choose the app that I really need, and this help not to addicted to phone too. If I want open another app, I must open “Settings” menu and do some additional step to actually open it. It makes it not easy 😅</p><p>….</p><p>I know, opening Instagram sometimes make you know what other people do.</p><p>But, is that so important? 😌</p><p>Instead of using Instagram more, I do something important more.</p><p>Read book, write blog, have conversation more when hangout with friends.</p><p>From now, it’s up to you.</p><p>Good luck! 🤗</p><p>Source:</p><p><a href="http://time.com/4793331/instagram-social-media-mental-health/">[1]. http://time.com/4793331/instagram-social-media-mental-health/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52e4db07a081" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TDD? Does it spark joy? ]]></title>
            <link>https://medium.com/@ardi.nusawan13/tdd-does-it-spark-joy-74dbdb32ec9?source=rss-d98387f518b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/74dbdb32ec9</guid>
            <category><![CDATA[tdd]]></category>
            <dc:creator><![CDATA[I Dewa Putu Ardi Nusawan]]></dc:creator>
            <pubDate>Sat, 09 Mar 2019 19:04:23 GMT</pubDate>
            <atom:updated>2019-03-10T07:04:54.671Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*p_CkKlie28yEC02T.jpg" /><figcaption><a href="https://devrant.com/rants/151931/amirite">https://devrant.com/rants/151931/amirite</a></figcaption></figure><p><strong>TDD? What is that?</strong></p><p>TDD is you implementing unit testing with <strong>test driven development</strong> approach.</p><p><strong>What is unit testing?</strong></p><p>In computer programming, <a href="https://en.wikipedia.org/wiki/Unit_testing"><strong>unit testing</strong></a> is a software testing method by which individual units of source code, sets of one or more computer program modules together with associated control data, usage procedures, and operating procedures, are tested to determine whether they are fit for use.</p><p><a href="https://slideplayer.com/slide/11447156/"><strong>What are the differences between TDD with unit test?</strong></a></p><ol><li>You can have unit test without using TDD.</li><li>You can’t do TDD without unit test.</li><li>With TDD, you should have unit test for all your code.</li></ol><p><strong>Hmm, can you explain more about TDD?</strong></p><p>Test Driven Development can be described in terms of <a href="http://butunclebob.com/ArticleS.UncleBob.TheThreeRulesOfTdd">three simple rules</a>(law):</p><blockquote><strong>First Law</strong> You may not write production code until you have written a failing unit test.<br><strong>Second Law</strong> You may not write more of a unit test than is sufficient to fail, and not compiling is failing.<br><strong>Third Law</strong> You may not write more production code than is sufficient to pass the currently failing test.”</blockquote><p>Get it? 😝</p><p>When following a TDD approach, typically you go through a cycle of <a href="https://martinfowler.com/articles/workflowsOfRefactoring/#tdd"><strong>Red-Green-Refactor</strong></a><strong>.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*w-9qdUhZ8ukH-_jxUI0MEw.png" /><figcaption><a href="https://martinfowler.com/articles/workflowsOfRefactoring/#tdd">https://martinfowler.com/articles/workflowsOfRefactoring/#tdd</a></figcaption></figure><p>But the question is: <strong>does TDD spark joy? 😶</strong></p><p>For me, absolutely yes!</p><p><a href="https://slideplayer.com/slide/11447156/">The goals of TDD are</a>:</p><ol><li>Clean code that works</li><li>Simplicity: maximize the work not done</li><li><strong>KISS</strong>: <strong>K</strong>eep<strong>I</strong>t <strong>S</strong>imple <strong>S</strong>tupid</li></ol><p>Does that spark joy for you? Give TDD a try folks! <a href="https://www.jetbrains.com/help/idea/tdd-with-intellij-idea.html">Intellij</a> made a good tutorial for this in Java. If it doesn’t spark joy for you, just keep doing it because “results will not betray effort” 😙<br>Kidding! Read <a href="https://blog.cleancoder.com/uncle-bob/2016/03/19/GivingUpOnTDD.html">this</a> and <a href="https://blog.cleancoder.com/uncle-bob/2016/11/10/TDD-Doesnt-work.html">this</a>.</p><p>May god be with you(TDD is hard, trust me).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74dbdb32ec9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>