<?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 Muhammad Hanif on Medium]]></title>
        <description><![CDATA[Stories by Muhammad Hanif on Medium]]></description>
        <link>https://medium.com/@hanifeij?source=rss-fa93961a8ac8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*agdj4tXUMi3iyg_f.</url>
            <title>Stories by Muhammad Hanif on Medium</title>
            <link>https://medium.com/@hanifeij?source=rss-fa93961a8ac8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 03:20:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hanifeij/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[An Attempt to Solve My Learning or Build Dilemma]]></title>
            <link>https://medium.com/@hanifeij/an-attempt-to-solve-my-learning-or-build-dilemma-cd31646229e7?source=rss-fa93961a8ac8------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd31646229e7</guid>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[solopreneur]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[thinking]]></category>
            <dc:creator><![CDATA[Muhammad Hanif]]></dc:creator>
            <pubDate>Tue, 14 Jan 2025 16:27:00 GMT</pubDate>
            <atom:updated>2025-01-15T14:34:44.830Z</atom:updated>
            <content:encoded><![CDATA[<p>There are a lot of things I want to learn, and there are also a lot of things that I want to build. When I do one over the other, I always feel guilty, and sometimes, it even takes me longer to decide what I want to do. It happens so often that I decide I need time to reflect and attempt to settle it once and for all.</p><h3>The Reflection</h3><p>I vaguely remembered from a book (the title of which I forgot) about habits that if we want something to become a habit, then the best way is to create a system around it.</p><p>Then I co-relate it with my condition and think, if I break down my problem, basically what I want to achieve is to have a habit of both learning and doing a side project.</p><p>And I still failed at both because there is a lot of friction like deciding which one I want to do or prioritize. Sometimes it even took some time that I ended up not doing both!</p><p>So I decided to systemize it by creating a decision tree.</p><h3>The Background</h3><p>before I go further, I think I need to define goals and to define goals I need to understand my background.</p><p>If I tried to reflect, every time I tried to do a side project it was for one of the following reasons:</p><ol><li>curiosity</li><li>applying what I learn</li><li>seems like a fun project</li></ol><p>If I reflect more, Most of the time is just out of curiosity. Because most of my projects stem from “What if” rather than “I need”.</p><p>I built this <a href="https://express-kun.js.org/">https://express-kun.js.org/</a> while I was learning functional programming and thinking “What if I can make Express.js more functional”?</p><p>Same with my other project Tailwind-fun <a href="https://github.com/hanipcode/tailwind-fun">https://github.com/hanipcode/tailwind-fun</a>. “What if I can build tailwind classes in a more functional way”.</p><p>And as you can see the result, once my curiosity is fulfilled I might lose the motivation to continue maintaining it.</p><p>There are also times when I want to build a real product and become a solo founder or indie hacker. But after a year of trying, I decided those are not the paths I want to take for the foreseeable future.</p><p>I am still open to the possibility of building a product/company later on. But I think I would need more runway where I can hire some people to help instead of doing everything on my own.</p><p>So the path that I am currently willing to take, mainly because I still really like to code, is to climb the career ladder and work professionally as an Individual Contributor.</p><p>In my career path, I am currently a senior-level IC. But a way to go to the next path to Staff / Principal level, I think what I currently lack is:</p><ol><li>on understanding more abstract side of software engineering like system design or software architecture</li><li>A lot of staff / principal engineer positions usually require a backend + infra knowledge/experience. While I have some degree of backend knowledge because I used to be a full-stack engineer. But I need to update it. Because a lot of things that are popular now I have 0 experience.</li><li>Also related to #2, I don’t have much backend project to showcase</li></ol><p>All of this detail is important because when you see the decision later and you do not agree on any part of it, it might be because you have different backgrounds or goals.</p><h3>The Goals</h3><p>after understanding my situation and background now I want to define my goal.</p><p>Based on the background why I am doing a side project is just for curiosity and learning anyway.</p><p>Also to level up from my current position I need to deep dive into some abstract concepts. I decide to prioritize my learning.</p><p>Because both can be perceived as learning, I think I need to have a clear distinction now.</p><p>What I mean by Learning from the title and this article is:</p><ol><li>reading book</li><li>following a course</li><li>watching youtube videos</li></ol><h3>The System</h3><p>finally, this is the system that I came up with</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KoeMHfHGpL94PN684vu5DA.png" /></figure><p>Well, I do realize that I might not be able to follow it 100% maybe there are times that I have the unfinished book but I feel so bored and want to work on a side project instead.</p><p>On such occasions, I might do a side project, in the name of following my curiosity.</p><p>But when I am having a dilemma or guilt, rather than having second thoughts or being confused, I will go back to the system/framework.</p><p>This framework is based on my reflection and my thought process, and it may not work for everyone.</p><h3>Key Takeaways</h3><p>If there is a key takeaway from this story, I think it is not the framework itself. But how by a reflection on our current condition and aspiration, we can come up with a system?</p><p>So if you are also facing a dilemma, I challenge you to follow the process instead of the result. Here is how</p><ol><li>Reflect on where you are now.</li><li>Reflect on your goals.</li><li>Prioritize</li><li>Systemize it so it reduces cognitive load when needed.</li></ol><h3>Closing</h3><p>This framework may not work for everyone, because we might have a different background or goals.</p><p>There are other alternatives for this framework, for example, if your goal is to become a solo founder, then reiterating your side project might be more reasonable.</p><p>Have you faced a similar dilemma between learning and building? How did you approach it? Share your thoughts in the comments below.</p><p>Cheers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd31646229e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[If You Want To Become Software Engineer, Start Building Useless Things.]]></title>
            <link>https://medium.com/@hanifeij/if-you-want-to-become-software-engineer-start-building-useless-things-8066af71534a?source=rss-fa93961a8ac8------2</link>
            <guid isPermaLink="false">https://medium.com/p/8066af71534a</guid>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[tech-job-interview]]></category>
            <category><![CDATA[software-engineer]]></category>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[Muhammad Hanif]]></dc:creator>
            <pubDate>Mon, 23 Dec 2024 04:03:15 GMT</pubDate>
            <atom:updated>2024-12-23T04:03:15.667Z</atom:updated>
            <content:encoded><![CDATA[<h3>Stop Making To-Do and Real-World App and Start Building Useless Things Instead.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3NkV7baNm3b4sluPWi9XuQ.jpeg" /></figure><p>If you want to become a software engineer or if you are already one and want to become better, maybe what you need is to start building uselesss things. because it will teach you so many thing and concept along the way.</p><p>I will start with some story, and I will elaborate why sometimes it better than building to do apps or other “Real World” apps for your portfolio. If you just curious on my elaboration you can skip the story.</p><p>lately I am following this blog <a href="https://eieio.games/">https://eieio.games/</a> and I have been amazed as what he is able to learn by building something that can be perceived as useless.</p><p>First this guy build a million, real time, checkbox. <a href="https://eieio.games/blog/the-secret-inside-one-million-checkboxes">https://eieio.games/blog/the-secret-inside-one-million-checkboxes</a> , as if it is not crazy enough then he went on building web to render all bajillions value of UUID, with a search functionality ! <a href="https://eieio.games/blog/writing-down-every-uuid/">https://eieio.games/blog/writing-down-every-uuid/</a></p><p>Even just by reading it I am feeling the fun of building those useless things.<br>You can see how many advanced concept he are able to learn in such a project. like in UUID project, how can you render 5,316,911,983,139,663,491,615,228,241,121,378,304 in a browser ? and have a search functionality on top of it?.</p><p>In the million checkbox, it is a real time checkbox that people accross the world can tick the checkbox. it is get viral and he need to make his solution scalable, Imagine now “One million checkboxes” “Scalable” something that I never know fit together.</p><p>In the end he had to change the communication message type into a BitArray. wow, never it cross my mind someone in the modern time would need a Bit Array.</p><p>Really, it make me reminiscence why I got into programming in the first place. I never really planned to be software engineer, I learn programming because I like game and spend many of my high scool time on the net center. So sometime I just got bored (or frustrated) at playing Dota and looking for something to do, so I pick programming.</p><p>As I got career in software engineering, I think I become more and more <em>utilitarian</em>, seeing programming as an activity that <em>should</em> produce something useful. I never build fun stuff like <a href="https://sourceforge.net/projects/jmanga/">https://sourceforge.net/projects/jmanga/</a> this jManga or <a href="https://github.com/hanipcode/norinproject">https://github.com/hanipcode/norinproject</a> norin.</p><p>jManga are CLI app to download manga/comic. norin is the same, but I just added a UI. at the time of building those two I never ever thought about how many people will use my app. I never think it as “Real World” project. at that time I really like reading manga, not much automatic cross-platform manga downloader (I use linux at that time) so I just build one, to serve non other than me. heck if I remember correctly the UI of norin is pretty bad (default linux UI..). but it works, and it serve me well at that time.</p><p>The next thing I build this bad boy <a href="https://github.com/hanipcode/py-subAdder">https://github.com/hanipcode/py-subAdder</a> as the name suggest it to add time to a subtitle file. you are right it just add time, no feature to reduce time. I build this because at that time I often get a subtitle file that is delayed.</p><p>But the amoount of learning I get from those project is uncountable. like just for the jManga project I learn to scrap web using python request and beautiful soup to parse the html. mind you, this is before the puppeteer era. at norin I learn how to build UI for desktop with python, and when working at py-subAdder I learn to parse a large text file, searching and replacing a part of the text. You get the point.</p><p>While what I learn is not as complex or as big as eieio games. but I did learn a lot, and it helps me to be hired to senior software engineer without even doing bootcamp, having any degree, or having “real world app” portfolio. now let me explain</p><p>Why is it better to build useless things ? Because by building useless things that only useful for you, you can skip doing polishing, and even skip doing things that you don’t really like.</p><p>Lets get real, those “Real World” apps is not really reflecting how a product getting into shape in the real worlds. there are so many people working on their best craft to shape it. There is a lot polishing that happened in the process.</p><p>For example if we want to build a real todo app, then not only we need to do proper error handling, securing the API (I dont want my neighbor to be able to get my todos from API!!!), sync between browser and device (conflict reconciliation), etc. and then those complexities, are stacked everything new feature added.</p><p>Second, You might not like doing those things, like maybe you don’t like doing backend, or you like doing backend but you no care about beautiful UI. if that’s your portfolio, you can’t really skip it if you wan’t to pose it as Real World Apps.</p><p>but by building things that either</p><p>a. you built it out of curiosity</p><p>b. you built it just because you need it and your goal is to serve yourself</p><p>Then you can really skip those, like I said earlier, even my norin project I don’t care about the UI, I only care it can download manga, not only per chapter, but per volume or even the whole series. once I even figured how I can download all those mabga in a site, basically cloning it (but I coun’t it might be around 700GB so I didn’t do it)</p><p>you might say, “okay that’s fine, but why you claim it better to get (especially) my first job as software engineer”?</p><p>Because during an interview you have different things that other candidate doesn’t have. Imagine become an interviewer and you talk to 10 people. 9 people talk about building those real world app whatever it is from To Do to “E commerce”. then one guy talk about building one million checkboxes. which one you will remember?</p><p>Second, It give you something you can talk about that is not boring !, like back to the one million checkboxes, the interviewer will be more engaged like asking, how can you render those, and you start saying it was real time, and it got the interviewer even more curious how can you save those state, is it in a database? is it in memory?, really a lot of thing you can talk about.</p><p>For me, my first job was to build an e-commerce scraper, so the client want the items that he post in the e-commerce site to be also appear on his own site. What getting me the job was my experience on the scraper part of norin, and what I really spent my time on.</p><p>Well okay, maybe not many interviewer is good and enthusiastic, some are bad and even don’t actually really care about the talking in the interview process and only care if you can do binary search. that happened. depend on your situation you might not want to work on the company like that anyway though.</p><p>But in reality we apply to tons of job posting when we are looking. and among those we might find one. and thats where we don’t wanna miss. It what is works for me and might works for you too.</p><p>So that is why I think that building things that can be perceived as useless is actually good. but I agree that that is not the only way.</p><p>For example if you build a To-Do app. but you make it perfectly real world, with those error handlings, those cool features, those conflict reconciliation, etc. that will works too. Harder, but works too.</p><p>I think the main point is don’t pick the easy route and stuck in a tutorial hell, and have something interesting to talk on the interview beside I build to do apps and user can add todo, mark as done, and delete todo !</p><p>Photo by <a href="https://unsplash.com/@glenncarstenspeters?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Glenn Carstens-Peters</a> on <a href="https://unsplash.com/photos/person-writing-bucket-list-on-book-RLw-UC03Gwc?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8066af71534a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Book: The Pragmatic Programmer: your journey to mastery. Preface + Chapter 1 Notes]]></title>
            <link>https://medium.com/@hanifeij/book-the-pragmatic-programmer-your-journey-to-mastery-preface-chapter-1-notes-b6ea1948cb74?source=rss-fa93961a8ac8------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6ea1948cb74</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Muhammad Hanif]]></dc:creator>
            <pubDate>Sun, 24 Nov 2019 10:21:11 GMT</pubDate>
            <atom:updated>2019-11-24T10:21:11.832Z</atom:updated>
            <content:encoded><![CDATA[<h3>Preface: What does the author mean by saying pragmatic</h3><p>Pragmatic by term is meaning “Skilled in business” or derived as “fit for use”</p><p>Programming is a craft that consist of:</p><ol><li>Gather and listen to requirement and devise a plan to converse the requirement into implementation (listening -&gt; advising -&gt; implementing the requirement)</li><li>document the work so that other can understand (communicating to ensure project’s maintainability, no single-man responsibility)</li><li>try to make other can build upon the code. (make beautiful API’s, and follow clean code for scalability + maintainability)</li></ol><p><em>No Silver Bullet -&gt; THERE IS NO PERFECT TOOL.</em></p><p>be it framework, language, or OS, nothing is perfect. only appropriate under certain circumstances. basically just pick the “best tool for <strong>the job</strong>”</p><p>This is where Pragmatic come from. programmer shouldn’t be attached to any tool / technology. programmer should have basic understanding of how system work / basic computer science and have diverse knowledge about tool.</p><blockquote><em>Cross reference: in a philosophical term, Pragmatic means a world view that see truth as what is work. what is true is what is work. So people with this worldview would believe what is right from what is work and usually not valuing unseen things (cross reference is from me, not in the book)</em></blockquote><h4>What make a programmer pragmatic</h4><p>Programming is a personal journey. overtime each person will pick a skill relative to their current work and would have a difference skillset an journey.</p><p>But there are similar characteristic among them:</p><ul><li>Early Adopter -&gt; love to try things out -&gt; learn how to learn fast</li><li>Inquisitive -&gt; Question things -&gt; have a curiosity and it’ll be just the side effect. see everything as questionable</li><li>Critical Thinker -&gt; Challenge the notion. -&gt; basically a more radical form of inquisitive. when inquisitive is questioning something, critical thinking means think the negation of the notion. for example when someone say “Do A will get result B” programmer would think would that be a case that “A” will not get them to “B”</li><li>Realistic -&gt; turn whatever available into works. don’t wait for the mythical unicorn to come and save you. but also understand that great work is difficult. no compromising things just because it difficult so have the stamina.</li><li>Jack of All Trades -&gt; be familiar with broad range of technology and environment. don’t hesitate to learn something just because your work currently not needing it</li></ul><blockquote><em>Cross-reference: Example of this pragmatic principle would be the anime character Gintoki in anime Gintama. he would take whatever job come in his door and learn things along the job.</em></blockquote><ul><li>Care about the craft -&gt; Feel of Ownership</li><li>Think about the work -&gt; no auto pilot mode while working. think in real-time</li></ul><p><em>Programming is not only about teams but also individual craft. for example each person make decision about how he write his code. so it’s also logical for one self to learn to master the craft.</em></p><p><strong>And programming is also continuous effort. the key is to have mindset “no system is perfect” but meanwhile in act striving for perfectness</strong></p><h3>Chapter I Pragmatic Philosophy Notes</h3><h3>Topic 1: It’s your life</h3><p>This first topic in the first chapter is about being mindful about how you live your life. you are the controller of your own life. Don’t blame anyone or anything for the path or the choices you are not taking.</p><h3>Topic 2: The cat ate my source code</h3><p>Continuing for the first topic, this second topic is about responsibility. pragmatic programmer is taking responsibility for himself. and are not afraid of admitting when making a mistake.</p><p>Problem is always come up even in the most perfect system with perfect documentation. always be willing to be responsible, be honest and direct.</p><p><em>Keep your team’s trust -&gt; do your part and do it best. basically good system is built upon team that everybody do best on their part.</em></p><blockquote><em>Cross reference: feel it as it’s like battling in starships in star wars. Even if you have the best pilot that can navigate in the wave of asteroids, if the one whom task is to shot down the enemy isn’t doing best at his job and none of the enemies taken down the ships will eventually lose and get caught.</em></blockquote><p>You’ll always have the option to take responsibility by agreeing to work on a job/task. if you feel it’s against your value you can always step out of the task or even the job. but when you do agree. Don’t blame anyone for a mistake when it comes up -&gt; take responsibility -&gt; provide solution, !excuses.</p><p>Provide options instead of excuses -&gt; when you feel some task isn’t viable at the moment. don’t just give excuses, provide options. ex: we can&#39;t add that feature because of X, but we can do Y instead and gradually support X. Don’t say it can’t be done; explain what <em>can</em> be done to salvage the situation.</p><h3>Topic 3 : Software Entropy</h3><p>this topic is talking about software rot and technical debt.</p><p><em>Broken window theory -&gt; when something give a sense that a building is abandoned (for example a broken window) people will consider the building is abandoned. in the experiment, after weeks of left a building with a broken window, people start littering there, and draw graffiti</em></p><p><strong><em>Don’t be the first to left a broken window (bad design, unclean code, etc). if you must, left a comment or a note</em></strong></p><blockquote><em>Cross-reference: think of commenting as if you made a sign “The house is not abandoned” in top of a broken window in your building. but remember that having to much of that sign will have the implication of a bad ownership</em></blockquote><p><strong>One broken window is one too many.</strong></p><h3>Topic 4: Stone soup and boiled egg</h3><p>This topic is exploring the story of soldiers that make the stone soup and trick villager to make a meat soup instead.</p><p>It’s about being a <em>Catalyst</em>. sometime, to introduce change, you have to be the change first and people will follow.</p><p><em>People like to follow success</em>.</p><p>Do you want your company to use tool X for testing ? try to test the current project with it on your local branch and do a benchmark, write article or even proposal about how good it is. Think your team need to build a tooling for the project ? try to building on the base idea, and when people start thinking it’s useful you can say “it’s beter to add x or add y” and slowly it’d become the tooling you want the team to have.</p><blockquote><em>Cross reference: In a startup bussiness term it’s like about MVP, give your user something to test the IDEA. and when they like it, iterate upon it.</em></blockquote><p>At the same time though, don’t be like the villager. they’re working what asked by the soldiers without questioning it. it’s a good thing that it’s a success. but it could be the otherwise.</p><p><em>Never ever work in auto pilot</em>. <em>and always code with the bigger picture (the main goals of the project) in mind.</em></p><h3>Topic 5: Good-enough software</h3><p>If the previous section is a Gas to Gaspoll (move forward fast) then this section is a brake.</p><p>Yes you need to question think, code with big picture and never left a broken window. but you also <em>Need To Know When To Stop !</em>.</p><p>Users nowadays would prefer simple software with a little minor bug rather than waiting for a perfect complex software to come.</p><p>But always be mindful. Good-enough doesn’t mean you can ship a sloppy buggy software.<br>It’s also mean to never over-optimize every single thing. you can ruin a good software if you try to over-refine things.</p><h3>Topic 6: Knowledge portfolio</h3><p>Pragmatic programmer have the thirst for knowledge. and <em>knowing to learn how to learn.</em></p><p>there are some point discussed about portfolio:</p><ol><li>make investment a habit</li><li>make it diverse</li><li>balance portfolio -&gt; make prioritization on what to learn</li><li>buy low, sell high -&gt; be an early adopter. be among the first expert in the thing</li><li>review -&gt; always have a periodic review about your knowledge portfolio. to know what your strength and what you lack of</li></ol><p>Pragmatic programmer have a learning goals ex: read book each mont, learn new language every year, stay current etc.</p><h4>Opportunities for learning</h4><p>Pragmatic programmer always see a task or a job as opportunity for learning something new.</p><p>When you meet some term at work and you don’t know about it, don’t let it stop there. take it as a challenge to at least have an idea about it</p><h4>Critical Thinking</h4><p>When you learn and read. try to put on your critical thinking hat. don’t always believe what is written. and also always know the <em>context</em>. in what your read is applicable.</p><blockquote>Super quote : <em>don’t just thinking about the quality of what you read but think about the quality of </em><strong><em>how</em></strong><em> you read.<br>-me, 2019</em></blockquote><h3>Topic 7: Communicate</h3><p>Treat a communication as how you treat your code.</p><p>Great idea with poor communication will be heard as bad idea. Good software with poor documentation will be seen as bad software.</p><p>Tips:</p><ul><li>Know what you want to say.</li><li>Know your audience.</li><li>Choose your moment.</li><li>Choose a style.</li><li>Make it look good.</li><li>Involve your audience.</li><li>Be a listener.</li><li>Get back to people.</li><li>Keep code and documentation together.</li></ul><blockquote><em>Cross reference: HOS Tjokroaminoto, an Indonesian Revolutionary leader in 1900’s said to be great and be heard is to write like a journalist and talk like orator. in the end the idea that will be used is the idea that people have attention too</em></blockquote><p>That’s all the notes I take on the preface and first chapter of the book. see you again in the next chapter.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6ea1948cb74" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Pain of Incompetence: Kenapa belajar sesuatu yang baru itu susah]]></title>
            <link>https://medium.com/@hanifeij/the-pain-of-incompetence-kenapa-belajar-sesuatu-yang-baru-itu-susah-f40c9210e39?source=rss-fa93961a8ac8------2</link>
            <guid isPermaLink="false">https://medium.com/p/f40c9210e39</guid>
            <dc:creator><![CDATA[Muhammad Hanif]]></dc:creator>
            <pubDate>Thu, 24 Oct 2019 23:09:52 GMT</pubDate>
            <atom:updated>2019-10-24T23:09:52.016Z</atom:updated>
            <content:encoded><![CDATA[<p><em>tulisan ini awalnya di publikasikan di </em><a href="https://hanipcode.com/"><em>https://hanipcode.com</em></a><em> dan saya akan lebih banyak menulis disana</em></p><p>Ketika kita sudah terbiasa melakukan sesuatu dan kita merasa ahli, maka akan sangat susah untuk kita dapat termotivasi untuk mempelajari hal baru.</p><p>Kenapa ? karena rasa incompetence atau ketidakbisaan itu memang menyakitkan.</p><p>Apakah ini unique hanya untuk orang orang yang sudah ahli dan kemudian mempelajari hal baru ?</p><p>tentu saja tidak. rasa sakit terhadap ketidakahlian / incompetence ini dirasakan semua orang yang baru mulai belajar. bedanya adalah ketika kita baru mulai belajar sesuatu dan kita belum mempunyai karir, taruhan rasa sakit nya lebih besar: antara rasa sakit untuk belajar atau rasa sakit untuk tidak dapat memiliki karir ataupun pekerjaan.</p><p>Ketika kita sudah memiliki karir atau pekerjaan. ketika kita ingin belajar sesuatu yang baru, rasa sakit untuk tidak dapat memiliki karir ataupun pekerjaan itu sudah tidak ada lagi. Yang ada hanyalah rasa sakit terhadap ketidakbisaan / incompetence itu.</p><p>Apalagi kalau yang kita coba pelajari adalah untuk career switch atau pindah bidang pekerjaan. misalnya seorang akuntan yang sedang belajar programming. Rasa sakitnya akan lebih besar karena membandingkan pekerjaan accounting yang bagi dia membosankan tapi dia ahli dan mudah mengerjakanya, atau harus belajar ngoding yang dia merasa tidak ahli dan entah akan mendapat karir atau tidak.</p><p>Maka kemudian dia memilih, memilih rasa sakit mengerjakan sesuatu yang baginya membosankan sehari hari ketimbang rasa sakit terhadap ketidakbisaaan. pada akhirnya, kehidupan adalah soal memilih rasa sakit yang ingin diambil.</p><p>Ini juga berlaku dalam belajar sesuatu yang baru di suatu bidang. katakanlah seseorang yang sudah sangat ahli dalam pemrograman Javascript, akan mengalami dilema yang sama ketika akan belajar bahasa pemrograman atau framework baru. selalu membandingkan dengan kenyamanan yang sudah ada. bahasa sok englishnya, why bother learning something new ?</p><p>Tentu belajar yang dimaksud disini adalah belajar yang belajar, bukan belajar untuk lulus. sebenarnya kenapa sistem kuliah itu work dan sistem sekolah SD-SMA itu lebih work, yaitu karena ada Pain atau rasa sakit lain: rasa sakit dianggap bodoh ketika tidak dapat naik ke jenjang atau kelas berikutnya. Di kuliah rasa sakit ini semakin berkurang karena tentu rasa tidak lulus mata kuliah dan harus mengulang semester depan sangat beda dengan rasa tidak naik kelas.</p><p>Namun sebenarnya ada yang kita lupa, biasanya, dalam fase belajar untuk karir, kita masih ada di fase dimana kita tidak memikirkan karir. misalkan kita pada waktu itu masih SMA. belajar tidak terasa berat karena kita mempelajari yang kita senangi, dan sama sekali tidak ada tujuan untuk karir. benar benar belajar untuk dan atas keinginan diri sendiri.</p><p>Apakah ini adalah sebuah pengetahuan yang baru ? tentu saja tidak. bahkan Imam Syafii seoarang ulama hebat dan pembelajar hebat pernah berkata:</p><blockquote>Bila kau tak tahan lelahnya belajar, maka kau harus tahan menanggung perihnya kebodohan</blockquote><p>sebenarnya kalau kita ulik kenapa belajar itu melelahkan, salah satunya adalah karena rasa tidak kompeten. dan semakin kita ahli terhadap sesuatu semakin kita suka belajar sesuatu tersebut. Maka kalau kata suatu iklan e-commerce : Mulai aja dulu. justru Mulai itu lah hal yang paling sulit dilakukan. Mulai yang benar benar konsisten dan tidak hanya sekali dua kali coba kemudian menyerah</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f40c9210e39" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Apakah semua project butuh Automated Testing ?]]></title>
            <link>https://medium.com/@hanifeij/apakah-semua-project-butuh-automated-testing-5abc1e9aaf1c?source=rss-fa93961a8ac8------2</link>
            <guid isPermaLink="false">https://medium.com/p/5abc1e9aaf1c</guid>
            <dc:creator><![CDATA[Muhammad Hanif]]></dc:creator>
            <pubDate>Wed, 19 Jun 2019 07:18:25 GMT</pubDate>
            <atom:updated>2019-06-19T07:58:27.815Z</atom:updated>
            <content:encoded><![CDATA[<h3>Apakah semua project butuh Automated Testing ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1BgkckwPe8o2WX1Ivwh7Ww.jpeg" /></figure><p>Halo gaes,</p><p>hari ini saya mau sedikit ngomongin tentang test dalam software development.</p><p>Saya ga akan menjelaskan secara detail sih apa itu automated testing. tapi saya lebih akan ngobrolin tentang manfaat dan kelemahan ketika kita menuliskan automated test seperti unit test, integration test etc untuk kodingan kita.</p><p>Salah satu keuntunganya adalah kita jadi menuliskan program yang sudah di test sepenuhnya dan kita confidence kalau test yang kita tulis juga bagus makan program kita akan minim bug.</p><h3>Keuntungan</h3><p>Pertama, seperti disebutkan diatas dengan memiliki codebase yang sudah di test kita bisa yakin kalau kodingan kita bakal minim bug. karena kalau test kita memang baik dan sesuai spesifikasi dari feature nya. dan program kita lolos dari test tersebut, what could go wrong ?</p><p>kedua, kodingan kita jadi tahan terhadap perubahan. ketika project kita menjadi semakin kompleks, biasanya kita akan melakukan refactor, atau mempersimple kodingan kita, atau memecah codebase yang tadinya do-it-all jadi module module independent. sebelum kemudian menambahkan fitur baru.</p><p>Nah dalam skenario ini, kalau kita memiliki automated test itu akan sangat membantu, karena kalau kita melakukan perubahan pada codebase dan test nya masih passing maka berarti tidak ada yang perlu dikhawatirkan karena program masih berjalan sesuai semestinya. sebenarnya ini poin paling utama menurut saya dari menulis test.</p><p>ketiga, kita terbiasa memikirkan logika terlebih dahulu sebelum melakukan implementasi. ini kalau kita mengimplementasi TDD ya, apa itu TDD (Test Driven Development) ? Kita bahas lain kali.</p><p>serius deh, misal kita ngebuat test untuk component React, ini salah satu test yang saya buat (versi simplifikasi nya):</p><pre>test(&#39;SelectedContact render given props&#39;, () =&gt; { const { container, getByText } = render( &lt;SelectedContact avatar=&quot;http://via.placeholder.com/150x150&quot; name=&quot;Nancy Carr&quot; location=&quot;Manhattan&quot; totalMarketPercent={11.3} totalItem={24} lastContacted=&quot;12 09 2018&quot; /&gt; ); expect( container.querySelector(`[src=&quot;http://via.placeholder.com/150x150&quot;]`) ).toBeVisible(); expect(getByText(&#39;11.3%&#39;)).toBeInTheDocument(); expect(getByText(/24/i)).toBeInTheDocument(); expect(getByText(/cb new york/i)).toBeInTheDocument(); expect(getByText(&#39;12.09.2018&#39;)).toBeVisible(); expect(getByText(/manhattan/i)).toBeInTheDocument(); expect(getByText(/Nancy Carr/i)).toBeInTheDocument(); }); test(&#39;SelectedContact Component without agent avatar&#39;, () =&gt; { const { getByText } = render( &lt;SelectedContact name=&quot;Nancy Carr&quot; location=&quot;Manhattan&quot; totalMarketPercent={11.3} totalItem={24} brokerage=&quot;CB New York&quot; lastContacted=&quot;12.09.2018&quot; /&gt; ); expect(getByText(/N C/i)).toBeInTheDocument(); });</pre><p>saya menuliskan test tersebut sebelum saya menuliskan component SelectedContact nya. ini akan memaksa saya berpikir terlebih dahulu, apa props yang akan dimiliki ? bagaimana component tersebut akan di render ? bagaimana kalau ada props yang tidak dimasukan (misal di komponen diatas akan merender inisial kalau avatar tidak ada) ?</p><p>semua dipikirkan bahkan sebelum ada implementasinya. tentu saja ketika kemudian menuliskan implementasinya kita sudah tidak menulis sambil berpikir logikanya seperti apa tapi logika tersebut sudah kita tuliskan di test nya</p><h3>Kekurangan</h3><p>Tentu selain memiliki kelebihan TDD juga memiliki beberapa kekurangan.</p><p>pertama, menambah waktu pengerjaan. terutama kalau kita tidak biasa menulis test. sebenarnya poin ini tidak selamanya benar. ketika kita sudah terbiasa menulis test, kadang TDD justru mempercepat pekerjaan karena kita menangkap Bug sebelum bug itu muncul. tapi pada saat awal kita perlu belajar lagi bagaimana cara menulis test. dan terkadang itu memerulkan waktu untuk kemudian kita bisa ahli dalam menulis test dan sampai ke fase dimana menulis test akan mempercepat pekerjaan kita.</p><p>menurut Eric Elliot (salah satu JS Hero dan yang paling sering koar koar tentang TDD) ini butuh waktu 2 tahun <a href="https://medium.com/javascript-scene/tdd-changed-my-life-5af0ce099f80">artikel dia tentang bagaimana TDD merubah hidupnya worth untuk dibaca lho</a></p><p>kedua, efek dari nomer 1, kalau kamu freelancer atau bahkan software house kecil. kamu perlu menjelaskan ke klien tentang tambahan waktu yang dibutuhkan. dan ini bukan hal yang mudah ! seriously, kamu mau bilang ke klien mu, emmm jadi.. kita perlu tambahan waktu sekitar 10%-20% dari waktu estimasi untuk menambahkan test ke codebase kita agar minim bug!</p><p>ketiga, kalau kamu sebuah perusahaan, Test ini akan berguna kalau kita sudah menerapkan best practice best practice lain dalam flow developmentnya. contohnya, sudahkah menerapkan CI/CD dalam flow mu ? test yang ideal adalah yang 100% diotomasi. bukan yang mengandalkan programmer buat mandiri me-run test sebelum dia meng-commit codinganya.</p><p>Step yang ideal adalah mengintegrasikan Travis dengan Github dimana travis akan me-run automated test ketika ada Pull Request. kalau Travis/CI nya sukses. berarti codingan tersebut boleh lolos.</p><h3>Siapa sih yang sebenarnya bakal paling untung kalau nulis automated test ?</h3><p>jadi setelah menuliskan kelebihan dan kekurangan seperti diatas. siapa nih yang paling diuntungkan ?</p><p>Yang paling diuntungkan adalah programmer yang mengerjakan codebase yang cukup besar dan makin nambah waktu malah jadi makin besar. apalagi kalau perbuhanya seringkali berlangsung cukup cepat.</p><p>seriously, kebanyakan programmer yang bilang test itu gak penting belum pernah mengalami harus memaintain codebase yang besar dan scale nya terus berkembang. makanya enggak heran kalau biasanya yang menyaratkan skill TDD adalah company besar seperti misal Tokopedia, Bukalapak, Gojek, etc. bayangkan sudah sebesar apa codebase mereka ?</p><p>Melakukan refactor terhadap codebase besar yang minim test itu adalah pengalaman tidak menyenangkan. kita sangat khawatir kalau perubahan yang kita lakukan terhadap codebase tersebut menghasilkan sebuah error. apalagi kalau error tersebut tidak terdeteksi QA kita dan baru muncul di production !, dan apalagi jika customer kita ratusan ribu atau bahkan jutaan yang akan terkena dampak dari bug tersebut.</p><p>saya sejujurnya sangat sangat jarang melakukan TDD di project freelance, karena 3 alasan:</p><ol><li>project tersebut biasanya minta cepat</li><li>kebanyakan bukan program yang akan scale dalam waktu cepat</li><li>not worth the effort<br> jadi, kecuali ada spesifik request untuk automated test, saya tidak melakukanya.</li></ol><p>tapi justru terkadang untuk project personal saya melakukan TDD. untuk apa ? untuk proses belajar tentu saja. dengan suatu hal bellum bermanfaat untuk mu sekarang (misal kamu kerja di startup atau owner software house) bukan berarti skill tersebut tidak worth untuk dipelajari. Sedia skill berenang sebelum banjir gan.</p><p>Untuk saat ini, it’s oke kalau kamu ga paham apa sih manfaat nya testing testing an itu. but do you dare to learn ?</p><p>See you again next time gan !</p><p><em>Originally published at </em><a href="https://hanipcode.com/apakah-project-butuh-testing/"><em>https://hanipcode.com</em></a><em> on June 19, 2019. too see the example better, read there.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5abc1e9aaf1c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ingin mencoba melepas keterikatan personal di sosial media]]></title>
            <link>https://medium.com/@hanifeij/ingin-mencoba-melepas-keterikatan-personal-di-sosial-media-c8a59bf6ab8d?source=rss-fa93961a8ac8------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8a59bf6ab8d</guid>
            <category><![CDATA[blog]]></category>
            <category><![CDATA[fomo]]></category>
            <category><![CDATA[social-media]]></category>
            <dc:creator><![CDATA[Muhammad Hanif]]></dc:creator>
            <pubDate>Fri, 14 Jun 2019 21:27:10 GMT</pubDate>
            <atom:updated>2019-06-14T21:27:10.967Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*Y3KKSePv82rb-98d" /></figure><p>Halo lagi, 2 artikel dalam kurun waktu berapa jam. Sebuah prestasi memang.</p><p>Jadi di artikel ini ada yang ingin saya bahas. utamanya adalah saya merasa sosial media menjadi cukup toxic untuk saya. mungkin tidak untuk kamu, tapi Iya untuk saya.</p><p>well tapi artikel ini bukan tentang saya ingin “menghilang” dari semua sosial media seperti beberapa orang. Saya merasa sosial media memiliki peranan yang sangat penting. oleh karena itu saya ingin mempertahankan beberapa aspek darinya.</p><p>Hanya saja saya ingin membuat sebuah batas, memisahkan kehidupan personal dan profesional saya di social media.</p><p>Beberapa waktu saya sempat membuat workshop dan dari workshop tersebut, ada beberapa yang mencoba reach out ke saya dengan meng-add facebook saya. dan menanyakan tentang masalah workshop melalui private message.</p><p>Jujur saja saya bukan orang yang cukup ramah. Kalau ada yang mencoba reach out pekerjaan / tutorial yang saya tulis melalui sosial media personal, biasanya tidak akan saya balas. bukan apa-apa. tapi, ya namanya juga personal kan.</p><p>Alasan kedua adalah ya sosial media mulai menjadi toxic untuk saya, saya merasa membuka linkedin, facebook, melihat orang-orang keren. ya mungkin sebagian orang akan menjadikanya motivasi.</p><p>Tapi bagi saya sendiri, saya merasa melihat mereka adalah semacam pengingat bahwa betapa masih belum ada apa apa nya saya ini.</p><p>Ditambah lagi banyaknya berita-berita hoax dan semacamnya. Orang ribut-ribut. meme-meme yang gak penting penting amat juga sebenernya. It’s all distracting.</p><p>tentu sebagai generasi milenial yang nyerempet generasi Z saya mungkin mengidap FOMO atau takut kudet. tapi kalau saya terus mengikuti rasa FOMO saya itu, saya tidak akan kemana-mana. akan sangat banyak waktu saya yang terbuang sia-sia.</p><p>Sebelumnya saya sempat menjadikan facebook tempat untuk mencoba berlatih melempar ide. karena saya pikir saya hanya akan menulis di blog untuk tulisan-tulisan yang menurut saya layak.</p><p>Well, Sekarang tidak lagi. saya ingin mencoba menjadi lebih selow dalam menulis di blog. saya akan mencoba bereksperimen dengan ide dan menulis tulisan tulisan draft didalam blog saya juga.</p><p>Saya rasa itu akan lebih menyenangkan karena di blog saya, saya merasa konten menjadi milik saya sendiri.</p><p>Oh ya saya akan tetap cross-posting artikel-artikel yang memungkinkan di crossposting ke medium. tapi mostly bakal tulisan-tulisan non-teknis begini yang gampang di copy-paste. kalau tutorial dan sejenisnya akan saya posting di blog saya di <a href="http://hanipcode.com/">http://hanipcode.com</a></p><p><a href="http://hanipcode.com/">Pemrograman Sehari Hari</a></p><p>Oh ya, untuk masalah reach out reach out an juga, saya membuat page untuk blog ini dimari:</p><p><a href="https://www.facebook.com/hanipcode">https://www.facebook.com/hanipcode</a></p><p>Saya akan tetep pake sosial media tentunya, tapi hanya untuk share link tulisan lebih lengkapnya di blog saya ini.</p><p>See you in the next post</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8a59bf6ab8d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Review Plugin VSCode Yang Saya Gunakan Sebagai Frontend & React-Native Developer]]></title>
            <link>https://medium.com/@hanifeij/review-plugin-vscode-yang-saya-gunakan-sebagai-frontend-react-native-developer-7238228f2d11?source=rss-fa93961a8ac8------2</link>
            <guid isPermaLink="false">https://medium.com/p/7238228f2d11</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[vscode]]></category>
            <dc:creator><![CDATA[Muhammad Hanif]]></dc:creator>
            <pubDate>Sun, 26 Aug 2018 05:18:55 GMT</pubDate>
            <atom:updated>2018-08-26T05:18:55.884Z</atom:updated>
            <content:encoded><![CDATA[<p>Hai gaes,</p><p>Ini tulisan singkat tentang Beberapa Plugin yang saya gunakan sebagai web-frontend dan react-native developer, filosofi saya dalam plugin-plugin yang saya gunakan adalah:</p><ol><li>Automate the boring stuff</li><li>Do not repeat yourself</li><li>Clean Code</li><li>Less running apps</li><li>Productivity</li><li>Less Typos</li></ol><p>Tentunya plugin-plugin yang saya gunakan tidak hanya seputar coding, tapi hal-hal lain yang bersifat produktifitas dan hiburan juga, misalnya, code editor saya bisa mem-play musik dari spotify. maka saya akan membagi review ini kedalam beberapa bagian.</p><blockquote>“By producing a cleaner code you don’t help anyone but your future self”</blockquote><h3>Coding Stuff</h3><p>beberapa plugin yang saya gunakan untuk urusan coding adalah….</p><h4>Auto-close tag</h4><p><a href="https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-close-tag">Auto Close Tag - Visual Studio Marketplace</a></p><p>ya-plugin ini self-explaining lah ya, ini sesuai prinsip nomer 1 dan 2. sebenernya setelah versi 1.16 vscode punya built-in support untuk autoclose tag, tapi hanya untuk file dengan tipe HTML. tapi karena saya juga sebagai frontend developer yang terkadang menggunakan React, dan sering juga menggunakan React Native, maka saya memerlukan ekstensi tambahan ini. Ini sangat berguna terutama kalau kita memiliki component dengan nama yang panjang-panjang seperti &lt;DrawerListItemColumn&gt; bayangkan betapa mudahnya kita untuk typo.</p><h4>Eslint dan Prettier</h4><ul><li><a href="https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint">ESLint - Visual Studio Marketplace</a></li><li><a href="https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode">Prettier - Code formatter - Visual Studio Marketplace</a></li></ul><p>Eslint adalah sebuah sistem lint-ing untuk javascript. Saya tidak akan menjelaskan apa itu lint dan eslint dalam artikel ini, maybe next-time</p><p>Prettier adalah sebuah plugin yang bisa secara otomatis merapikan kodingan kita setiap kali kita men-save project kita. keren-nya prettier ini adalah dia bisa di-integrasikan dengan eslint sehingga dia akan merapikan kodingan kita berdasarkan rule eslint kita.</p><p>nah untuk eslint ini berkaitan dengan nomer 3, producing clean code. apa maksudnya clean code ?</p><p>clean code bukan hanya bermakna kita membuat koding serapih mungkin indentasi nya, tapi clean code berarti membuat koding yang terstandarisasi. Ya ya, saya tau betapa membosankanya standarisasi, Programmer are such lazy creature.</p><p>Tapi bagaimana kalau ternyata kita bisa mendapat kenyamanan kedua dunia ? kita mendapatkan kodingan yang terstandarisasi tapi kita tidak perlu mengerjakan hal hal yang membosankan secara manual ?</p><p>Nah inilah fungsi kedua plugin ini, (eslint dan prettier). dengan eslint dan prettier kita bisa membuat kodingan kita secara otomatis menjadi rapih sesuai rule yang kita definisikan setiap kali kita men-save kodingan kita, biasanya saya meng-extend rule dari airbnb</p><p><a href="https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb">airbnb/javascript</a></p><p>karena rule nya termasuk yang paling komprehensif. meskipun saya menambahkan beberapa rule sendiri karena rule airbnb ini terlalu strict ke hal yang menurut saya tidak perlu (misal rule airbnb mewajibkan seluruh file react berekstensi .jsx).</p><p>Tentu karena Eslint dan Prettier ini hanya tools otomasi ada beberapa kekuranganya, dan tetap ada hal-hal yang harus kita fix secara manual. Terutama rule-rule yang tidak kentara secara langsung dalam kodingan (misal urutan fungsi, urutan pendefinisian variable, etc) yang tidak mungkin di fix secara otomatis.</p><p>Tapi paling tidak, setidak-tidaknya. kalaupun kita begitu malas paling tidak kodingan kita tidak perlu seratuspersen memenuhi standar. paling tidak kodingan kita rapih. saya pun terkadang mengabaikan beberapa error ataupun warning eslint.</p><h4>Flow Language Support</h4><p><a href="https://marketplace.visualstudio.com/items?itemName=flowtype.flow-for-vscode">Flow Language Support - Visual Studio Marketplace</a></p><p>Flow adalah javascript static type checker, lagi-lagi dengan berat hati saya tidak bisa menjelaskan apa itu flow disini karena akan keluar dari konteks tulisan ini, maybe next time ya.</p><p>Tapi singkatnya, laiknya eslint, flow ini digunakan untuk mengakomodasi keperluan untuk menghasilkan koding yang clean.</p><p>bedanya flow ini bukan ke kerapian tapi lebih ke completeness. javascript sebagai sebuah bahasa adalah bahasa yang sangat bebas. misalkan kita bisa menggunakan string sebagai perbandingan, string kosong “” dalam javascript bisa digunakan untuk komparasi dan akan bernilai false.</p><p>Nah simpelnya. Flow ini memberi beberapa aturan khusus ke dalam javascript, sehingga javasript yang kita tulis lebih mengikuti kaidah pemrograman. tentu ada beberapa keuntungan lain seperti fitur autocomplete yang akan lebih lengkap ketika kita menggunakan flow.</p><p>(Solusi lain adalah typescript, tapi saya lebih menyukai flow karena flow berada dalam file Javascript (JS))</p><p>Mungkin sampai sini akan muncul pertanyaan, ngapain ngurusin hal beginian ? karena, pada akhirnya kita akan menjadi professional, bukan seorang hobbyist lagi. seorang hobbyist (orang yang mengerjakan sesuatu karena hobby) melakukan sesuatu untuk dirinya sendiri. Seorang professional mengerti bahwa produk adalah sesuatu yang bersifat kontinu, dan mungkin saja suatu saat akan ada orang yang harus memantain kodingan nya. (saya pun masih dalam transisi dan beberapa kali lalai)</p><blockquote>Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. Code for readability. — John F. Wood</blockquote><h4>Live Server</h4><p><a href="https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer">Live Server - Visual Studio Marketplace</a></p><p><strong>Launch a development local Server with live reload feature for static &amp; dynamic pages.</strong></p><p>Seperti itupenjelasan dari page nya di marketplace. yup, plugin ini biasanya saya gunakan ketika membuat template static html. tentu akan ribet kalau mau buat template saya harus init project js dengan webpack/nodemon kalau yang ingin saya buat sekedar HTML/CSS template. maka saya membutuhkan plugin ini. Ya ini berkaitan dengan automate the boring stuff (mencet Shift + R untuk reload tiap kali save project).</p><h4>Path Intellisense</h4><p><a href="https://marketplace.visualstudio.com/items?itemName=christian-kohler.path-intellisense">Path Intellisense - Visual Studio Marketplace</a></p><p><strong>Visual Studio Code plugin that autocompletes filenames</strong></p><p>Plugin ini untuk memberikan suggestion ketika kita mengetikan path misal ./src/a.. yap, plugin ini berguna sekali untuk menghindari typo ketika kita akan mengimport module ataupun memasukan nama file dalam blok kodingan.</p><h4>React-Native/React/Redux snippets for es6/es7</h4><p><a href="https://marketplace.visualstudio.com/items?itemName=EQuimper.react-native-react-redux">React-Native/React/Redux snippets for es6/es7 - Visual Studio Marketplace</a></p><p>Ini plugin berisi snippet-snippet yang sering dipakai ketika develop React/React-Native + Redux app.. misalkan boilerplate redux, atau sekedar statement import. ya, sesuai dengan konsep Do not Repeat Yourself. dengan snippet ini kita bisa menghasilkan satu block komponen stateless react misalnya, dengan hanya menulis sl lalu menekan enter.</p><h3>Productivity Stuff</h3><p>untuk urusan productivity saya juga menginstall beberapa plugin diantaranya</p><h4>TODO Highlight</h4><p><a href="https://marketplace.visualstudio.com/items?itemName=wayou.vscode-todo-highlight">TODO Highlight - Visual Studio Marketplace</a></p><p>Ini untuk menghighlight comment-comment yang memiliki text “TODO” ataupun “FIXME”. sehingga terlihat berbeda dari block code komentar lainya</p><h4>TODO+</h4><p><a href="https://marketplace.visualstudio.com/items?itemName=fabiospampinato.vscode-todo-plus">Todo+ - Visual Studio Marketplace</a></p><p>ini plugin yang baru saya install akhir-akhir ini and I am very happy with it.<br>Selama ini saya ingin mengikuti prinsip Get-Things-Done sebenarnya untuk manajemen aktivitas yang lebih baik. cuma sebagai seorang programmer belum ada aplikasi yang menurut saya cocok.</p><p>Saya sudah mencoba berbagai macam seperti Todoist, Wunderlist, Ms Todo, etc. tapi masalahnya, terlalu ribet ketika misal saya beres mengerjakan task, saya harus alt-tab mencari task itu didalam tumpukan task, lalu mencentang, lalu alt-tab masuk ke code editor lagi dan ngoding lagi.</p><p>Dulu saya menggunakan vim, saya bahkan punya config yang saya share di github:</p><p><a href="https://github.com/hanipcode/vimconfig">hanipcode/vimconfig</a></p><p>terpengaruh dari komunitas vim, saya ingin aktivitas mengkoding adalah bagaimana caranya meminimalkan perlunya alt-tab ataupun banyak menggerakan tetikus, everything should be accessible within the editor, in the reach of keyboard. Bahkan dulu saya sempat menginstall facebook messenger di dalam vim !</p><p>maka plugin ini sangat menyenangkan bagi saya, bahkan selain sebagai aplikasi GTD saya gunakan plugin ini untuk menyimpan data tentang project juga karena keren, ada warna warnanya.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xdnmoKP29Y0piVwehBrcPw.png" /><figcaption>Tampilan plugin Todo+</figcaption></figure><p>Yaap, ada warnanya, bisa set estimate time atau priority, set task untuk cancelled dll, di dalam editor, sudah begitu ada shortcut nya juga, misal untuk mencentang sebuah task tinggal pencet alt + D. syurgaaa.</p><h4>WakaTime</h4><p><a href="https://marketplace.visualstudio.com/items?itemName=WakaTime.vscode-wakatime">WakaTime - Visual Studio Marketplace</a></p><p>Wakatime ini adalah plugin dari sebuah aplikasi web bernama Wakatime.</p><p><a href="https://wakatime.com/dashboard">WakaTime - Dashboards for developers</a></p><p>Apa fungsinya ?</p><p>untuk time-tracking, jadi wakatime ini secara otomatis men-track aktivitas koding kita. terkadang ngerasa udah ngoding ber-jam-jam. tapi berapa sih waktu aktual kita ngoding. nah aplikasi ini membantu kita mengetahuinya. bahkan dia bisa di-konek-kan dengan git untuk mengetahui kita mengerjakan commit apa selama berapa jam.</p><p>Masih banyak fitur lain tentunya, check for yourself !</p><h4>Advanced New File</h4><p><a href="https://marketplace.visualstudio.com/items?itemName=patbenatar.advanced-new-file">advanced-new-file - Visual Studio Marketplace</a></p><p>Untuk membuat new file di dalam sebuah folder biasanya kita harus mengexpand project di navigator, terus klik-klik navigasi ke folder yang ingin didalamnya kita buat file baru. klik kanan, add new file, etc, etc.</p><p>Seperti yang saya bilang diawal, saya merindukan fitur di vim yang bisa tinggal menggunakan command :e path/namafile.js . maka akan dibuat file baru di path itu, bahkan dengan tambahan beberapa plugin bisa autocomplete path nya juga dengan mencet tab-tab.</p><p>semuanya dilakukan dengan keyboard dan meminimalisasi menggerakan mouse (iya saya tuh sebenernya malesan). plugin ini dibuat untuk itu, berikut screenshootnya</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*TZGaVwSm2nQ2qEb1rV8wtQ.png" /></figure><h3>Lain-Lain</h3><p>berikut ini adalah plugin lain-lain yang penting ga penting tapi ya penting juga sih buat saya. biar vscode nya tampak lebih cool selain juga lagi-lagi meminimalisasi alt-tab.</p><h4>Vscode-icons</h4><p><a href="https://marketplace.visualstudio.com/items?itemName=robertohuertasm.vscode-icons">vscode-icons - Visual Studio Marketplace</a></p><p>Ini adalah ekstensi tambahan yang berisi banyak sekali ikon-ikon untuk file yang lebih lengkap dari bawaan vscode. misalkan dia tau ikon eslint untuk file .eslintrc ataupun ikon babel untuk .babelrc, berikut screenshootnya</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/314/1*nX1nNcLgxP5qmNAVvPOngw.png" /></figure><h4>Vscode-spotify</h4><p><a href="https://marketplace.visualstudio.com/items?itemName=shyykoserhiy.vscode-spotify">vscode-spotify - Visual Studio Marketplace</a></p><p>gak perlu lagi dijelaskan lah ya, intinya dia buat ngeplay musik di dalem vscode, langsung dari spotify kita, berikut sekilas fiturnya</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*_RnjxWGteP9FMxy9Cm_zeQ.png" /></figure><h4>Setting Sync</h4><p><a href="https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync">Settings Sync - Visual Studio Marketplace</a></p><p>Sesuai namanya, ini untuk mensave settingan berikut list plugin vscode kita ke cloud, sehingga kalau ngoding ditempat baru tinggal download dan sync settingnya sembari nunggu plugin-plugin yang kita sync terakhir terdownload.</p><h3>Penutup</h3><p>yapp, itulah semua plugin-plugin yang sekarang terinstall di vscode saya, selain ekstensi-ekstensi tema yang cukup banyak.</p><p>Mungkin sekilas ini semua sia-sia, kenapa sih ga ngoding tu tinggal download editor terus ya langsung ngoding aja ?</p><p>ya kalau ditanya gitu saya juga ga tau jawaban pastinya sih, tapi saya merasa selalu ada cara yang lebih baik dalam mengerjakan sesuatu, dan saya selalu mengevaluasi bagaimana saya mengerjakan sesuatu.</p><p>oh ya lagi pula juga, saya bukan hardcore programmer yang bisa ngoding dengan notepad++ tanpa ekstensi tambahan plugin/ekstensi apapun. walaupun sempet dibilang hardcore programmer karena waktu itu taun 2016an dan saya masih pakai vim.</p><p>Thank you for reading this far !</p><p><em>Penulis adalah Muhammad Hanif, Sekarang merupakan React Native Developer di Shwetech Jogja (We’re looking for React Native devs too!)* . I am a javascript developer that sometime also code in other language for fun. my contact is hanifeij@yahoo.co.id or linkedin : </em><a href="https://linkedin.com/in/hanifeij"><em>https://linkedin.com/in/hanifeij</em></a></p><p><em>* send your portofolio or cv to titisari@shwetech.com or career@shwetech.com</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7238228f2d11" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pengalaman Menggunakan React Native]]></title>
            <link>https://medium.com/@hanifeij/pengalaman-menggunakan-react-native-1a744ae4b55e?source=rss-fa93961a8ac8------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a744ae4b55e</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[mobile-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[app-development]]></category>
            <dc:creator><![CDATA[Muhammad Hanif]]></dc:creator>
            <pubDate>Fri, 13 Jul 2018 17:47:00 GMT</pubDate>
            <atom:updated>2018-07-13T17:47:00.977Z</atom:updated>
            <content:encoded><![CDATA[<h4>Apakah React Native Worth It ? Where it excell where it falls.</h4><p>Hello gaes,<br>Untuk kali ini saya akan sedikit sharing tentang pengalaman menggunakan framework React Native selama kurang lebih 2 tahun dan menggunakan React Native di beberapa project skala kecil maupun besar.</p><p>Ketika kamu membaca tulisan ini mungkin kamu sudah tau tentang React Native, atau mungkin sekedar iseng buka link tulisan ini yang saya share di fesbuk, tapi yah biar tulisanya afdol (harus dimulai dengan rumusan masalah dan pengertian kata pak dosen) saya jelaskan secara singkat tentang React Native.</p><p>React Native adalah sebuah framework open source besutan facebook yang memungkinkan kita membuat aplikasi android dan ios ‘<em>natively’. </em>kenapa <em>natively</em> harus saya <em>garis miring</em> kan ? karena selain ini istilah serapan yang harus dimiringkan penulisannya adalah karena disini poin pentingnya dari React Native.</p><p>Sebelum React Native muncul memang sudah ada beberapa Framework lain yang memungkinkan membuat aplikasi android menggunakan kombinasi Html/css/js. tapi masalahnya adalah Framework tersebut yang saya tau memanfaatkan webview dari si android/ios. yah, kalau pake webview sih, sama aja develop mobile web app kan ?</p><p>Kemudian muncul lah React Native, dimana aplikasi React Native ini memungkinkan untuk mendevelop aplikasi android atau ios yang tidak sekedar webview based app. meskipun beberapa framework lain seperti Ionic (katanya) kemudian menyusul meninggalkan selusi webview based.</p><p>Well, mungkin ekspektasi kita adalah React Native mentranspile atau mengubah script javascript kita menjadi script java atau objc/swift untuk iOS ? sayang sekali tidak, sobat super.</p><p>Framework React Native itu sendiri memiliki 3 bagian, yaitu bagian JS yang di run dengan JS engine masing masing platform, bagian Native yang merender View menggunakan komponen native, lalu yang terakhir bagian yang paling menarik: bagian Bridge yang menyambungkan kedua bagian yang disebut di awal.</p><p>Nah bagian pertama, bagian JS tentu tidak ada masalah, engine nya pun menggunakan engine bawaan masing masing platform yang tentu juga tidak ada masalah. Bagian Native pun demikian. Bagian ketiga alias si Bridge ini lah dimana sering terjadi <em>bottleneck</em> yang membuat aplikasi menjadi terasa lamban.</p><p>Mungkin kamu bertanya-tanya, mengapa ?<br>Secara simpel begini, masalahnya adalah bagian logic dari aplikasi kita ada di Javascript dan bagian rendering ada di native Java/Objective-C. kedua bagian tersebut tentu tidak secara langsung kompatibel. maka dari itu perlu adanya jembatan yang menambah layar abstraksi.</p><p>semisal kita ingin merubah warna dari sebuah view dengan property warna ada di state sebuah komponen. kita akan mengirimkan perintah berikut this.setState({ color: &#39;red&#39; }) nah perintah ini tentu tidak di pahami langsung oleh Java maupun Objective-C. maka perintah tersebut perlu melalui bagian Bridge.</p><p>Jika kamu menggunakan React Native sedari 2016an, beberapa implementasi animasi di React Native sangat terlihat kalah performance nya dari implementasi menggunakan native karena logic nya berada di JS. ya simplifikasinya seperti untuk menggeser component ke kiri 200 width dan kita ingin komponen tersebut tidak ‘teleport’ dan terlihat ada animasinya kita menggunakan for (let i = 0; i &lt; 200; i++) this.setState({ left: -i }); itu hanya simplifikasi, tentu agar lebih smooth kita perlu menggunakan fungsi timing semacam setInterval.</p><p>dan <em>in a nutshell</em>, yang dilakukan dari fungsi diatas adalah mengirimkan instruksi untuk mengubah sebuah view melalui bridge sebanyak dua ratus kali. lalu bagaimana kalau yang kita animasikan adalah View yang kompleks seperti ListView ? tapi tentu, argumen ini sudah tidak valid dan hanya ssebagai contoh, untuk sekarang tentu ada framework Animated dari React Native itu sendiri yang memiliki properti useNativeDriver , ada sistem interpolate dsb.</p><h3>Apakah React Native Framework yang Buruk ?</h3><p>Setelah membaca sampai sini mungkin pikiran ini yang anda punya. oh tentu saja tidak, ada beberapa hal baik yang dimiliki React Native seperti :</p><h4>Multi Platform</h4><p>React Native memungkinkan kita membuat aplikasi yang multi-platform. dan memang dibuat mudah untuk melakukanya seperti otomatis meload file sesuai ekstensi platform semisal root.android.js di run di Android dan root.ios.js di run di iOS ketika memanggil komponen root.</p><h4>Javascript dan NPM</h4><p>Javascript adalah bahasa yang populer sekarang ini. Javascript juga memungkinkan seorang web developer untuk masuk ke dunia app development dengan lebih mudah. selain itu juga berada di ekosistem javascript kita bisa menggunakan NPM yang membuat import library menjadi lebih mudah.</p><h4>Didukung oleh React ecosystem</h4><p>React Native menggunakan React dari company sekelas facebook. React itu sendiri sudah lebih lama dan lebih <em>Battle Tested</em> dari React Native. dan berhubungan dengan poin selanjutnya</p><h4>Component Reusability dan Flux Architecture</h4><p>React Native memiliki sistem Component based seperti React. dimana component ini bisa kita buat se <em>dumb</em> mungkin untuk kemudian kita gunakan di beberapa project secara bersamaan. bahkan sebuah startup bisa membuat semacam UI Library di repo tersendiri untuk kemudian digunakan di repo project lain. ketika ada bug di sebuah komponen, maka hanya perlu memfix yang ada di repo UI Library itu sendiri.</p><h3>Lalu Apa Kekurangan React Native ?</h3><p>Seperti quote terkenal dari film yang tidak kalah terkenal With Great Power Comes a Great Responsibility . Demikian pula dengan React Native, berikut beberapa drawbacks yang saya rasakan saat develop React Native</p><h4>Multi Platform ? Cukup Perlu Satu Jenis Developer ? Errrr…..</h4><p>Banyak yang bilang develop di React Native itu… ‘Write Once Use Everywhere’, betapa sebuah angin surga bagi app developer.</p><p>Tapi kenyataan memang pahit, bagian yang ‘write once’ hanya pada sisi javascriptnya. ketika kita membutuhkan sesuatu yang hanya dapat kita lakukan di native side nya, kita perlu menghandle kedua platform.</p><p>Lalu mungkin kamu akan bilang, ah elah gue ngoding React Native ga pernah sampe perlu ngoding native nya tuh, kan ada Library.</p><p>Tapi justru itu masalahnya, seperti kita tahu, bahkan basic fitur srperti Camera pun kita perlu pake external library. Berapa banyak library native yang ada di project React Native mu / startup mu? dan masalahnya ngintegrasi beberapa library ke project enggak sesimpel angin surga lainya: react-native link .</p><p>Pernah ngalamin run command tersebut berhasil di android dan ternyata pas di iOS crash, setelah baca log baru ketauan kalau file Product dr librarynya belum ke link ? Tenang, kamu gak sendirian.</p><p>Sama sebaliknya dengan kamu yang muter-muter bingung kenapa crash di android ternyata pas di cek di app/build.gradle si library dia pake versi play-service yang beda dengan yang ada di project mu. Tenang <em>boi,</em> kamu juga gak sendirian.</p><h4>Javascript !</h4><p>ini mungkin opini personal, tapi ekosistem javascript apalagi sekarang ini kurang sehat untuk development jangka panjang. React Native sendiri sangat sering mengalami update, bahkan terkadang terlalu cepat seperti dari versi 0.54 ke 0.55 karena ada bug di metro bundler versi 0.54. damn bruh. sebulan sekali ada update framework tentu bukan hal yang menyenangkan untuk developer..</p><p>mungkin it works untuk startup skala besar dengan jumlah programmer yang banyak ataupun sekedar hobi atau project tertentu (akan saya bahas di bagian terakhir artikel ini di bawah).</p><p>Jadi Javascript developer memang penuh dilema.</p><h4>Performance</h4><p>Ini juga lanjutan poin pertama, bagaimanapun untuk memperoleh performance yang setara dengan native developed app kita perlu menyentuh bagian native. sering terjadi performance bottleneck.</p><h4>Reactivity dan Flux Architecture</h4><p>React Native sangat coupled dengan Flux Architecture dan Component Based nya. ini terkadang membuat hal yang mudah menjadi susah entah demi apa. misalkan, ingat ketika di Java ataupun Swift kita ingin membuat custom alert dialog yang digunakan di banyak bagian di aplikasi itu sangat mudah ?</p><p>Well try that on React Native. i dare you. terakhir saya melakukanya saya me-wrap component Navigator saya dengan View dan Menaruh Component Model saya sejajar dengan component Navigator saya. lalu bagaimana biar modal itu bisa di popup dan di customize text nya dari manapun ? saya perlu membuat reducer yang mengkontrol bagian isShowed dan title serta message dari si Dialog.</p><p>Ribet, tapi mungkin cara mudah lainya adalah dengan menaruh component modal di tiap View yang membutuhkan, tapi karena saya memiliki banyak screen ini akan membuat maintainability dari project menurun. not a good choice.</p><h4>Susah Untuk Membuat Layout dan Animasi yang Kompleks</h4><p>Membuat animasi seperti shared transition element ataupun hero element transition belum dimungkinkan tanpa dirty hack di sistem component basednya react native. dimana setiap Screen adalah component tersendiri. dan Child Component dari tiapTop View/Screen tidak shareable.</p><p>dan juga touch event di dalam react native tidak ‘bubling’ seperti di web. sehingga ketika ada dua view overlap, maka component yang memiliki zIndex lebih besar saja yang tertrigger efek touch nya. ini salah satu alasan kenapa dulu sempat ada bug TouchableOpacity/Highlight tidak responsive di dalam ScrollView.</p><p>Masalahnya pattern ini cukup sering digunakan di aplikasi, contohnya adalah Screen di bagian ‘Watch Live’ Bigo yang memiliki beberapa touch event, yaitu ketika di tap dia akan mentrigger efek bubbling Heart/Love, Ketika di swipe kanan dia akan menghide Beberapa View, dan ketika di swipe up dia akan ganti screen. Mereplikasi efek seperti ini di React Native akan sangat susah.</p><p>Terakhir Saya melakukanya solusi saya adalah dengan menggunakan panHandlers dimana saya mendeteksi arah dan distance touch user. dan ketika distance touch horizontal dan vertical lebih kecil dari 20 point saya kategorikan itu event ‘tap’ dan untuk ketika horizontal lebih besar dari 20 saya kategorikan swipe left dan ketika nilai vertical lebih besar dari 20 saya kategorikan swipe up/down. manually……</p><h3>Beberapa Pertimbangan sebelum memilih menggunakan React Native</h3><p>Ada bebrapa poin yang perlu dipertimbangkan ketika memilih menggunakan React Native</p><h4>Kompleksitas Project</h4><p>Ini adalah poin yang paling utama dan mungkin menentukan seberapa signifikan poin poin selanjutnya. Setiap Framework itu punya angin surga masing masing. tapi tidak ada yang benar-benar surga, termasuk React Native.</p><p>Mungkin kamu pun sudah menyadari dari poin poin yang saya sebut diatas. React Native untuk saat ini masih kurang cukup untuk menghandle project yang kompleks.</p><h4>Seberapa banyak Native Module yang diperlukan</h4><p>Seperti kita telah kaji diatas, memanage native module di dua platform bukan hal yang mudah apalagi untuk tim skala kecil. maka ketika kita rasa project kita memerlukan banyak native module ada baiknya kita go to native.</p><p>Lalu bagaimana kita bisa tau seberapa native modul yang sekiranya kita perlukan ?</p><p>Begini, Beberapa modul-modul yang memerlukan akses ke Hardware level seperti infromasi device di React Native masih memerlukan native module. Beberapa SDK yang memiliki React Native Implementation juga tetap saja memerlukan native module seperti FacebookSDK atau GoogleSignIn atau FirebaseSDK.</p><h4>Komposisi Team</h4><p>Ketika ternyata banyak Native Module yang diperlukan dan dengan jiwa startup yang membara kamu ingin startup mu implement React Native, kamu perlu memperhatikan komposisi team. Komposisi yang baik adalah di dalam Team tetap ada beberapa experienced developer dari masing masing dunia baik android maupun iOS. tidak masalah seberapa familiarity mereka dengan javascript/react. kemudian digabungkan dengan beberapa yang familiar dengan React/Javascript di team. Ini membuat membagi tugas akan lebih mudah.</p><h4>Kamu ingin invest di Reusability dari Desain/Component</h4><p>Jika startup mu memiliki beberapa lini produk atau startup jasa yang menyediakan pembuatan aplikasi, mendevelop aplikasi dengan react native apalagi membuat UI Library yang cocok dengan design system startupmu mungkin dapat menjadi investasi jangka panjang yang baik.</p><p>Demikian sharing pengalaman saya selama dua tahunan ini mendevelop dengan menggunakan React Native. mungkin kamu memiliki pengalaman yang berbeda atau pendapat yang berbeda ? Feel free to write something in the comment section !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a744ae4b55e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Your Dream Again ?]]></title>
            <link>https://medium.com/@hanifeij/what-is-your-dream-again-c96b00b2e533?source=rss-fa93961a8ac8------2</link>
            <guid isPermaLink="false">https://medium.com/p/c96b00b2e533</guid>
            <category><![CDATA[software-engineer]]></category>
            <category><![CDATA[poetry]]></category>
            <category><![CDATA[jobs]]></category>
            <dc:creator><![CDATA[Muhammad Hanif]]></dc:creator>
            <pubDate>Thu, 29 Mar 2018 17:27:30 GMT</pubDate>
            <atom:updated>2018-03-29T17:27:30.162Z</atom:updated>
            <content:encoded><![CDATA[<p>As a kid we like to have a dream.<br>something that keep us awake in the night.<br>something that motivate us to go further.<br>You know, some of us like to be a Pilot, a Police, or maybe Software Engineer.</p><p>But what about if that dream already fulfilled ?<br>What if we already land a job at the field we really wish we can be as a kid<br>are we feeling we have nothing to do ?<br>and what to do when even what we used to called a Hobby can’t motivate us any longer ?</p><p>To all proffesionals, who already achieve the dream jobs that they imagine as a child.<br>Allow me to ask one question:<br>What is Your Dream Again ?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c96b00b2e533" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What I learn: While reading Voltaire’s Candide]]></title>
            <link>https://medium.com/@hanifeij/what-i-learn-while-reading-voltaires-candide-dbc0f14cd58c?source=rss-fa93961a8ac8------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbc0f14cd58c</guid>
            <category><![CDATA[literature]]></category>
            <category><![CDATA[history]]></category>
            <category><![CDATA[philosophy]]></category>
            <dc:creator><![CDATA[Muhammad Hanif]]></dc:creator>
            <pubDate>Tue, 12 Dec 2017 15:07:25 GMT</pubDate>
            <atom:updated>2017-12-12T15:07:25.866Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lbt48VjqfAGkPTsxASnHfQ.jpeg" /></figure><h3>Would you mind reading a little background?</h3><p>Earlier this week, I bump in an article that said reading is not always productive. the article titled “<a href="https://writingcooperative.com/why-writing-is-more-important-than-reading-dd561635841c">Why Writing is More Important than Reading</a>”. The article argued that :</p><blockquote>I like to read. I read for knowledge as well as entertainment. But what I have observed is that reading is a lazy activity. You can read mindlessly and not understand a thing. Also reading is deceiving. You read through something and you understand it completely. In some time though you forget about it. You need to read again.Sometimes reading gives you a false assurance that you are taking action.</blockquote><p>Then suddenly I feel guilty that I read books but very little that I write about what I read, this is not the first time a met such argument though. there are already so many books and article saying that we remember better by writing. But I got hindered mostly because I think too much about what people will think about what I write.<br>Now, before the spirit runoff, I want to start a little project to at least read one book each week and write about it.</p><h3>The Journey of Candide</h3><p>So Who is Candide anyway? Candide is the main character in Voltaire’s novel that titled the same as the main character.</p><p>The story is written a few century ago but I can relate so many things while reading it.</p><p>So first Candide, Voltaire depict Candide as a sincere but silly young boy who fell in love with a princess of “Thunder-ten-tronckh” palace throughout the story.</p><p>He has a teacher, his name is Pangloss. Pangloss is depicted as a philosophy teacher that strictly follow Leibniz’s doctrine about “The World that we all living in is the best of all possible world” and all tied together in the chain of action and reaction.</p><p>Candide who is a good and sincere boy believe so much in what his teacher said and follow his teacher’s doctrine. He thought that the palace he has been living in is the best place in the world, in the best of all possible world.<br>The story really began when Candide fell in love with Princess Cunégonde and the royal family know about it. Candide was expelled from the palace with a kick in his butt.</p><p>Being expelled from the palace, Candide starts his journey in Bulgaria. still believing in his teacher doctrine that what happened to him is for the sake of the best of all possible world.</p><p>In Bulgaria, he is deceived and forced to be a soldier and fought in a war. yet on the battlefield, he just paralyzed and can’t even move his sword. he just hides, and at the moment he could be stabbed and die anytime, he thinks: Should war exists in the best of all possible world?</p><p>After the war over Candide who plays dead stood up and runs from the Warfield, continuing his journey where Candide met with his old teacher Pangloss but in the different form.</p><p>Pangloss the best philosopher for Candide has become a begar with a horrific face. Candide asks what happened to his teacher, and to more of his care, what happened to his beloved Cunégonde.</p><p>Pangloss told him that the palace has been attacked and all of the royal family were killed.</p><p>He shocked!</p><p>How can his beautiful and beloved Cunégonde, the best of all beauty, be killed brutally in this best of all possible world?</p><p>His life is now a tragedy. He doesn’t have anything anymore in this world. Even for just a food. In fact, he almost died because asking for a food to the priest who is preaching in front of the congregation. When the priest asks: did he believe in Christ? Candide answered: “I don’t care, what I care now is a piece of food”. The priest got angry and sentenced Candide to a death punishment when an Earthquake occurs.</p><p>Candide was saved. but not Pangloss who already be executed before the earthquake occurs. He is sad that he loses Cunégonde and now his teacher. But that doesn’t last long because he heard someone calling him saying that Cunégonde is still alive.</p><p>Yes! she still alive and being treated by an old woman. His mood shines again. He plots an escape and kills a pastor who owned Cunégonde in the process.<br>But again, the happiness doesn’t last long, because after sailing in a ship together and the ship sunk, they stranded on an island which the ruler want Cunégonde as his wife.</p><p>There is nothing he can do. He loses her again. It looks like a circular process already, in fact, the story revolves around misery that Candide saw and felt in his journey to be able to live happily ever after with Cunégonde, his love. to later realize that he only loves Cunégonde because she is beautiful.</p><p>But he married her anyway because of a vow and the push of social construct of a gentleman. I don’t know I should call the story happy or sad ending.</p><h3>The lesson learned</h3><p>The world nowadays is full of people that fanatic not only to an ideology but to a single person.</p><p>Like Candide to his teacher Pangloss. he never ever for one-second doubt Pangloss teaching about the world — except for when he thinks about his love, Cunégonde.</p><p>Even after all the misery and the reality that happened right in front of his eyes. he doesn’t find any reason to doubt Pangloss’s teaching. yet he found so many things that could stronger reason his teacher’s teaching that whatever happened is for the sake of the best of all possible world.</p><p>In many parts of the story, like us when we root for our idolized hero, Candide shout about his teacher’s title. “Pangloss is the most enlightened man in German, He could never be wrong,” He said when a misery happened.</p><p>There is still unclear however for me about the Pangloss himself, Is he a believer of Leibniz or Voltaire depict Pangloss as Leibniz himself to mock him.<br>But if it’s the second, it means that Voltaire wants to say that some of the philosophical thought is useless to the world and actually immobilize people rather than mobilizing people to do a good thing.</p><p>In one part of the story, Candide wants to save the captain of the ship that thrown out of the ship because of a windstorm. Pangloss stop him. He said that there is already cause and effect, the captain is drowned for a reason and they should let him be.</p><p>I think that also the reason of why he portrays so many wars in the story. Since ancient Greek philosopher, there are already so many thought that war is inevitable and even a good thing. And some of that thought has a root in Idealism or Religion.</p><p>The Voltaire’s Candide is showing a young man who doesn’t have an Idea how the world works. but because of that (i don’t know, idiocy or sincerity ?) he is somewhat free and just does what he think. like asking a food to a priest and saying he doesn’t care about Christ.</p><p>But for me, the story itself feels like Voltaire’s sincerity, he wants to be blunt about his thought and what he hates.</p><p>He hates philosophy (and ironically some people knows him as a philosopher) because the discussion on philosophy (for him) is usually full of nonsensical and not-realistic discourse.</p><p>In fact at the end of the story, after the group who took the journey together debates all through the journey all the day. after for a few months resting in a village and built a house and a farm. they reach a conclusion that at the end of the day “it’s up to us to cultivate our farm”, said Candide. then their lives getting better as they work together to cultivate their farm.</p><p>The last thing I learned from reading the story is, sometimes — if not all the times, we do something because of our social construct said so. Near the end of the story, something bad happened to Cunégonde and she became ugly.</p><p>Candide hesitating to fulfill his vow and marry her. Candide realizes that he only loves Cunégonde because she is beautiful — I think it’s also ironic that Candide never realizes this ’cause and effect’ because he is blinded by love.</p><p>But at the end of the day, he married her anyway, not because he loves her — -again, ironically, because he always said that he continued the journey in the pursuit of his love. but because it is a thing that he should do. And he whines about his whining wife, the love of his live, Cunégonde.</p><p><em>Thank You For Reading this far</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbc0f14cd58c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>