<?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 Ikhda Muhammad Wildani on Medium]]></title>
        <description><![CDATA[Stories by Ikhda Muhammad Wildani on Medium]]></description>
        <link>https://medium.com/@ikhdamuhammadwildani?source=rss-9efe52e14e65------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*CvutbPTM6hD-BkJqU7XTlg.jpeg</url>
            <title>Stories by Ikhda Muhammad Wildani on Medium</title>
            <link>https://medium.com/@ikhdamuhammadwildani?source=rss-9efe52e14e65------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 05:40:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ikhdamuhammadwildani/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[Back End with Express JS (Node JS)]]></title>
            <link>https://medium.com/basho-code/back-end-with-express-js-node-js-c30802b558c0?source=rss-9efe52e14e65------2</link>
            <guid isPermaLink="false">https://medium.com/p/c30802b558c0</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[bootcamp]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[expressjs]]></category>
            <dc:creator><![CDATA[Ikhda Muhammad Wildani]]></dc:creator>
            <pubDate>Mon, 06 Jan 2020 11:29:09 GMT</pubDate>
            <atom:updated>2020-03-17T07:42:55.872Z</atom:updated>
            <content:encoded><![CDATA[<h3>Full Stack with Express JS (Node JS) and Template Engine (EJS)</h3><p>Hi, back again to Basho Code (the place you can learn code for free) and now we will going to learn about how to make basic CRUD (Create, Read, Update, and Delete) with Express JS and the bonus is Filter. So, we will call it BREAD (Browse, Read, Edit, Add, and Delete).</p><p><a href="https://github.com/bashocode/express-CRUDF">bashocode/express-CRUDF</a></p><p>Minimum Requirements you should have are JavaScript, HTML, CSS, Bootstrap, and JSON (because we will not use database yet for now). And also you need to have Coffee and Music Player (also speaker or earphone lol).</p><p>This tutorial will not use any database yet, instead we will use JSON and learn basic Node JS like Read File or Write File and you should know that this tutorial will so loooooooooooooooooooooooong, hahahahaha but don’t worry I just kidding, it will not long as you watching Korean Drama or Anime Series, here we go !!</p><p>So, my question is did you installed Node JS on your PC ? I use Ubuntu (Linux based) and I will reccomend you to use Linux or Mac, because I will not answer your question if you use Windows (beacuse I don’t know).</p><p>If you have read about Get in Touch with Express JS before, you should know your software requirement, and if you not read that yet, go there and read it !! Now !! This litte things is the requirement too.</p><p><a href="https://medium.com/basho-code/get-in-touch-with-express-js-cf6bfadd39ac">Get in Touch with Express.js</a></p><p>I assumed that you was created your first project and also know about basic Express JS, so right now open your terminal and create new folder, after that type this again.</p><pre>npm init --yes &amp;&amp; npm install --save express ejs body-parser</pre><p>Or you can type multiple times like this, but I prefer type once (just add <strong>&amp;&amp;</strong> and separated with white space in npm install).</p><pre>npm init --yes<br>npm install --save express<br>npm install --save ejs<br>npm install --save body-parser</pre><p>We need to install express of course and why we install EJS and Body-Parser ? EJS is template engines that help us to write html code and put javascript code on it (you will know later) and body-parser is needed to catch the user input on form or something like that.</p><p>Now, we need to create a new JavaScript file, just call it <strong>app.js.</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bf8c2b4319a2f8082cff46ca7409375c/href">https://medium.com/media/bf8c2b4319a2f8082cff46ca7409375c/href</a></iframe><p>We need to import body parser, express and fs (stands for file-system, and default on nodejs) you can find the node js documentation, and you can learn there.</p><p><a href="https://nodejs.org/en/docs/">Index | Node.js v25.7.0 Documentation</a></p><p>As always we need to execute express and define the port, after that we see that app will setting views to folder <strong>views</strong> and set view engine to <strong>ejs,</strong> then we will use body-parser and telling express to set the static to folder called views so client can download it from server (it will explain how client can see your front end).</p><h3><strong>How to do Read</strong></h3><ul><li><a href="https://www.npmjs.com/package/body-parser">body-parser</a></li><li><a href="https://expressjs.com/">Express.js · Node.js web application framework</a></li><li><a href="https://ejs.co/">EJS</a></li></ul><p>You can also find the better implementation by reading on the official documentation, you should read and try it by yourself for better experience.</p><blockquote>Programming is not about copy-paste, but thinking the algorithm and also read the documentation.</blockquote><p>fs.readFileSync is the method from file-system, go to the node js documentation to get it more. We just use syncrhronous for the first time and in the future we will try to use asyncrhonous and learn about async await, promise, and callback (will very interesting). You see that the file we should import is inside of folder data, so we need to make new directory (folder) called data and create new json file inside of it (called series.json) and look like this.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/92529e50e642bcc5b56b0856eaf9072b/href">https://medium.com/media/92529e50e642bcc5b56b0856eaf9072b/href</a></iframe><p>And you know why we <strong>parse</strong> the data ? Try to find the answer at google (for your task) about JSON.parse and JSON.stringify (it will useful, trust me).</p><pre>data<br>    series.json<br>node_modules<br>    blablabla<br>    blablabla<br>    blablabla<br>views<br>    index.ejs<br>app.js<br>package-lock.json<br>package.json</pre><p>Remember, we create index.ejs not index.html because we use template engine, ejs file can contain html and css too, so don’t worry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/161/1*9qrda3zZozjrptAPlfre3g.png" /></figure><p>Forget about README.md and .gitignore for now haha</p><p>The structure should look like that, and just give index.ejs default html (if you use vscode you can just press <strong>shift + 1</strong> and enter, it’s called emmet).</p><pre>app.get(&#39;/&#39;, (req, res) =&gt; {  <br>   res.render(&#39;index&#39;, { data });<br>});</pre><p>Above code, like you learn before in get in touch with express.js is how to make route, and you know what ? res.render will render the view file called index because you passing index in first arguments and how about { data } ? data is the json file you parsed before and it will send to the views, so you can use that data inside of html, that’s why we need EJS to processing that.</p><p><a href="https://getbootstrap.com/">Bootstrap</a></p><p>Open the documentation of bootstrap and see the bootstrap CDN, we will use cdn for now but you can also install bootstrap if you want, for this tutorial I will use CDN, copy paste to the index.ejs we have.</p><p>We just need the CSS, okay! And put this to the head tags</p><pre>&lt;link rel=&quot;stylesheet&quot; href=&quot;https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css&quot; integrity=&quot;sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh&quot; crossorigin=&quot;anonymous&quot;&gt;</pre><p>Now open the EJS documentation, and you will see like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nDBCh6-KiarVvmr4x7vvyA.png" /></figure><p>You should read that documentation before continue this tutorial, not so long just one page. Then you will know about &lt;% , &lt;%=, &lt;%-, etc.</p><p>You should find the table in bootstrap, and put that code on your index.ejs, but with the help from EJS you will see the magic lol.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d662e1747ef9b8e488542b122753cc05/href">https://medium.com/media/d662e1747ef9b8e488542b122753cc05/href</a></iframe><p>With that starting code, you can run the app with type <strong>node app.js</strong> again (like we did in the last tutorial). Then you need to open browser and go to <strong>localhost:3000</strong> again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*syyjtHC6Uw7q9HpLvbGLiw.png" /></figure><p>Yeaaaaaa, we have done to do Read (Read is how to implement logic that will give client possibility to see the data we have), how ? haha did you remember what is &lt;% and &lt;%= ? And also you need to do closing tag %&gt;, you will know how to implements EJS if you read first and you try.</p><blockquote>You will get nothing if you just copy paste and not try to think how that’s happen, trust me!</blockquote><h3>How to do Add</h3><p>Now, we need to close our app in terminal by <strong><em>CTRL + C</em></strong> and then we can continue to code, why we need to do that ? Because Node JS is server side rendering, so they can’t automatically update when the code has been changed. But alternatively we can use auto-run by Nodemon. If our app is big, nodemon will help a lot. For now we will not use it because this is practice not working.</p><p>So, what will we do now ? Yeah, we will create new route and also another page which contain form for create data.</p><p>First, create an EJS file inside of views directory called <strong>add.ejs</strong> and then the file will contain this code</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/11c73af4a2282c5ee89a8a79d9c297b5/href">https://medium.com/media/11c73af4a2282c5ee89a8a79d9c297b5/href</a></iframe><p>You will see the form, and button. In that form, we have action called “/add” and method “POST” that’s mean after the form has been submitted by press button type “SUBMIT” they will call router POST called add. Make sure we has that route to handle incoming request.</p><p>So, we need to add some code to the app.js right ? The code is for the new route we want</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3d31147b395ce5cadfa38bd12d919b0d/href">https://medium.com/media/3d31147b395ce5cadfa38bd12d919b0d/href</a></iframe><p>If we work with routing, we can just use a get method to go to the that route with passing the link ‘/add’ then like we did for home page, we just render the add.ejs file by just typing add, no need .ejs anymore.</p><p>Then if we want to receive the client input form, we can add more route but for now we create POST route, and then we can do destructure the body, if you console.log(req.body) you will see whole the client input (this is work because we install the body-parser), in other way to get the body we can use the way we access the property of object, like this</p><pre>const title = req.body.title;<br>const country = req.body.country;</pre><p>Work as same as destructure</p><pre>const { title, country } = req.body;</pre><p>What is desctructure ? Find out ! Before continue.</p><p>Nah, we have done with the app.js file, then the add.ejs, but we need to give the link to the add in home page, so just open the index.ejs and add the below code under the table and inside of div class container.</p><pre>&lt;a href=&quot;/add&quot; class=&quot;btn btn-primary&quot;&gt;Add&lt;/a&gt;</pre><p>Now, we call again the server by type in the terminal</p><pre>node app.js</pre><p>Can you try to add some data ? Let me know if you have some problems. Your final code for this step should look like this</p><pre>views/add.ejs</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d0b08a2e360ce50ecb3b897e3a7028a6/href">https://medium.com/media/d0b08a2e360ce50ecb3b897e3a7028a6/href</a></iframe><pre>views/index.ejs</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/37ce11c8b1d07f7b9c25993b7a2e6dee/href">https://medium.com/media/37ce11c8b1d07f7b9c25993b7a2e6dee/href</a></iframe><pre>app.js</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7f3a1833181436bc610a3ca9bbb924db/href">https://medium.com/media/7f3a1833181436bc610a3ca9bbb924db/href</a></iframe><pre>data<br>--series.json<br>node_modules<br>--blabla<br>views<br>--add.ejs<br>--index.ejs<br>app.js<br>package-lock.json<br>package.json</pre><p>If your app doesn’t work, just type in the comment what’s your problems I hope I can help you.</p><h3><strong>How to do Edit</strong></h3><p>Now, we will go through to do how to Edit our data, and how to do that ?</p><blockquote>Logically, we need to choose one data what we want to edit right ? And that’s why we including the id, so we can choose by id not by name (because id is unique and the name can be same each other). After we got the data we choose, we will show the existing data, why ? Because we editing not adding.</blockquote><p>We will make new route and new page for edit and also button for edit in each data, so what we do now ? Yeah you are right, create a file called edit.ejs in the views folder and make new route get and post at app.js. What’s code look like ? Here we go now…</p><p>First we need to provide the route</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6bc5cb1c624b9193322557c1e39adb86/href">https://medium.com/media/6bc5cb1c624b9193322557c1e39adb86/href</a></iframe><p>You see /edit/:id ? Why we use :id ? With this colon, they will automatically registering the id (name we gave, you can give it another you want) as a parameter, and we also can get the parameter by <strong>req.params.id</strong>. Then we need to find the data which contain the same ID what we want to choose, then we rendering the edit page with passing the data.</p><p>After that, create a file called edit.ejs and copy paste from the add.ejs</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0c2d93ede46422aeaf359b6874e40609/href">https://medium.com/media/0c2d93ede46422aeaf359b6874e40609/href</a></iframe><p>The action should be /edit/&lt;%=data.ID%&gt; (you need to pass the id), and change the placeholder to value like this</p><pre>value=&quot;&lt;%= data.Title %&gt;&quot;</pre><p>And give this to inside of options</p><pre>&lt;%= data.Country == &quot;Indonesia&quot; ? &quot;selected&quot; : &quot;&quot; %&gt;<br>&lt;%= data.Country == &quot;Japan&quot; ? &quot;selected&quot; : &quot;&quot; %&gt;<br>&lt;%= data.Country == &quot;Korea&quot; ? &quot;selected&quot; : &quot;&quot; %&gt;</pre><p>Why ? This is the feature of EJS you can do that logic, the value came from the data.Title and if the Country if Indonesia that option will has a selected, and it’s also work for Japan and Korea right ? Because just one country we have.</p><blockquote>You should learn about Ternary in JavaScript</blockquote><p>Then you need to open up the index.ejs, and add more field to your table, you must to add this below code inside of <strong>&lt;thead&gt;&lt;/thead&gt;</strong> under the Country</p><pre>&lt;th scope=&quot;col&quot;&gt;Action&lt;/th&gt;</pre><p>And then add this code in the <strong>&lt;tbody&gt;&lt;/tbody&gt;</strong></p><pre>&lt;td&gt;</pre><pre>    &lt;a href=&quot;/edit/&lt;%= d.ID %&gt;&quot; style=&quot;color: white&quot;&gt;</pre><pre>        &lt;button type=&quot;button&quot; class=&quot;btn btn-success&quot;&gt;</pre><pre>             Edit</pre><pre>        &lt;/button&gt;</pre><pre>     &lt;/a&gt;</pre><pre>&lt;/td&gt;</pre><p>Why I use button ? I need to make this anchor looks like button, then you will see the href is /edit/&lt;%= d.ID %&gt; this is the EJS templates can do, they can passing the ID. So, if we click One Piece you know that One Piece ID is 1, so you will redirected to the <a href="http://localhost:3000/edit/2">http://localhost:3000/edit/</a>1 and if you click Naruto, you will go to <a href="http://localhost:3000/edit/2">http://localhost:3000/edit/</a>2 . This is awesome right ?</p><p>So, what we will doing now ? Of course we will make the POST route, not for add new data but for update existing data.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1ed496bb4379a9db92c85844e18128e0/href">https://medium.com/media/1ed496bb4379a9db92c85844e18128e0/href</a></iframe><p>The logic is same, you will see that we need to get the data by id first then change the value and finally we save that.</p><p>Now, try to edit some values. And this is our code now</p><pre>views/edit.ejs</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/96573239b7e5f8c3959fbce6972b50db/href">https://medium.com/media/96573239b7e5f8c3959fbce6972b50db/href</a></iframe><pre>views/index.ejs</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cfa816681964f7f4c2d466d3894d7336/href">https://medium.com/media/cfa816681964f7f4c2d466d3894d7336/href</a></iframe><pre>app.js</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7eee38b29527b0097322001923fb8474/href">https://medium.com/media/7eee38b29527b0097322001923fb8474/href</a></iframe><h3>How to do Delete</h3><p>Now, we will going to do delete. And we must pick one between GET or POST, so what we must to choose ? Should we create a route with GET or with POST ?</p><p>POST is used when we want to send data to the back end, and GET is the opposite (back end will give something to us) and this one (delete) is so confusing to me, what should I do ? I need to send data to back end which one the data I want to remove and in other side we are not “really” send some data.</p><p>I try to find out, and I got some insight, instead I send something to back end with POST why not to just give a parameter and still use GET method ?</p><p>Okay we got the answer, so we need to create route or button for delete first ? Hahaha it’s just piece of cake for give a delete button right ? Do your own haha</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8b733083325b5c7fd7d41521f86282aa/href">https://medium.com/media/8b733083325b5c7fd7d41521f86282aa/href</a></iframe><p>We add onclick confirm to this because we don’t want to auto delete the data when user is accidentaly click the delete button, so we need to ask the user for surely delete this one or not</p><p>And we add route</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b2d24538d85cc646020f7dc08ef937d7/href">https://medium.com/media/b2d24538d85cc646020f7dc08ef937d7/href</a></iframe><p>And if you try to delete the data you will get this error</p><pre>TypeError: Assignment to constant variable.</pre><p>And we must to change const variable to let.</p><pre>const readJson = fs.readFileSync(&#39;./data/series.json&#39;);</pre><pre>const data = JSON.parse(readJson);</pre><p>to</p><pre>const readJson = fs.readFileSync(&#39;./data/series.json&#39;);</pre><pre>let data = JSON.parse(readJson);</pre><blockquote>Remember, after we change the file we need to <strong>ctrl + c</strong> to stop the server and run again with<strong> node app.js</strong></blockquote><h3>How to do Filter</h3><p>This is the last thing that we will do, that is a filter. So what will we do is create the form first right, and we will modify the index.ejs because we will put our filter in the data table.</p><p>You need to add this code first to index.ejs</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ee9335033e70dfd23dc442693525d83b/href">https://medium.com/media/ee9335033e70dfd23dc442693525d83b/href</a></iframe><p>Why we need a <strong>action=”/”</strong> ? because our route is home (localhost:3000/) right, and then why we use <em>GET method instead of using POST method</em> ?</p><blockquote>If we use POST we will not get the query url and we can’t save what people try to search, so we do with GET and then the route will give use a query.</blockquote><pre>&lt;input type=&quot;text&quot; name=&quot;filter&quot; class=&quot;form-control&quot; placeholder=&quot;Search...&quot; value=&quot;&lt;%= filter ? filter : &#39;&#39; %&gt;&quot;&gt;</pre><p>For the example, we want to search “Naruto” and then we will get the query url like this <strong>localhost:3000/?filter=”Naruto”</strong>. Depends on what will you give the name of your input, we use this one <strong><em>name=”filter”</em></strong>. Try to change your name of the input tag, and see what happen.</p><p>And give your button to type submit. That’s important!</p><p>Now, we gonna change our route ‘/’ in app.js.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d7d03a0b080c2e4fbd15dad03abb46a5/href">https://medium.com/media/d7d03a0b080c2e4fbd15dad03abb46a5/href</a></iframe><p>We can get our query from req.query, it’s same things like we get from req.params.</p><p>Now, we will use the logic to do filter. You need to know why I use that logic. This is important why we need to have algorithms, so we can do our own logic.</p><p>Now, our tutorial has done guys. I am so sorry if this tutorial is not complex or not enough yet but maybe this tutorial can give you some kind of knowledge about fundamental web development so you can learn more more and more.</p><p>Thank you very much!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c30802b558c0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/basho-code/back-end-with-express-js-node-js-c30802b558c0">Back End with Express JS (Node JS)</a> was originally published in <a href="https://medium.com/basho-code">Basho Code</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Get in Touch with Express.js]]></title>
            <link>https://medium.com/basho-code/get-in-touch-with-express-js-cf6bfadd39ac?source=rss-9efe52e14e65------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf6bfadd39ac</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[expressjs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[backend]]></category>
            <dc:creator><![CDATA[Ikhda Muhammad Wildani]]></dc:creator>
            <pubDate>Tue, 23 Apr 2019 17:04:13 GMT</pubDate>
            <atom:updated>2019-04-24T08:23:30.032Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/365/1*Jr3NFSKTfQWRUyjblBSKeg.png" /></figure><p>Hi, we will learn about Express.js right now and before we going any further, we must install Node.js in our computer. Go to the website and download it!</p><blockquote>I use ubuntu 18.04</blockquote><p><a href="https://nodejs.org/en/">Node.js - Run JavaScript Everywhere</a></p><p>After we install the Node.js, we will automatically have NPM, and let’s started to make express app.</p><blockquote>If you wanna check your version of node and npm just type this in the terminal</blockquote><pre>node -v</pre><pre>npm -v</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*BZycLyG10PpuFXNbGo-6nQ.png" /></figure><p>Oh, I forgot about our canvas, we must have code editor and I using <strong>visual studio code</strong> which is have intregrated terminal and this will help us a lot.</p><p><a href="https://code.visualstudio.com/">Visual Studio Code - Build what comes next</a></p><p>So, open the code editor, and open the terminal with <strong><em>ctrl+shift+` </em></strong>(control shift backtick)</p><blockquote>backtick is placed before number 1 in your keyboard</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3I2m4wVEhQcG4Hg7uxPa_Q.png" /></figure><p>Now, let’s type <strong>npm init</strong> in the terminal, this command will help us to make node js app</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*9q5aUc2Nupzeao_B72FUAA.png" /></figure><p>Then, you will got question from the terminal. You can just ignore with press enter or you can type some kind of words, there is the name of your project or the description and so on.</p><p>But, if we make some real app, don’t forget about author field.</p><p>After that, you will get this new file called <strong>package.json</strong>,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/222/1*nSrgsrAklZpOyqTOQSgjvQ.png" /></figure><p>So, then we need to install express to our project by typing this command</p><pre>npm install --save express</pre><p>We got one file called <strong>package-log.json</strong> and folder <strong>node_modules</strong>, our preparation has done.</p><p>Now, we will create a new file and give it name app.js give the code looks like</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fb109373c69abe4fde88a28f1913554e/href">https://medium.com/media/fb109373c69abe4fde88a28f1913554e/href</a></iframe><p>First, we import express module and store it in constant because we will not re-assign this variable in the future.</p><p>Second, we use the express module, because express is a function so we need to call this function and store it to the constant called app (or anything you want, but app is most commonly used)</p><p>Then, we can create some route to our web app, with using</p><pre>app.get(firstArgs, secondArgs);</pre><p>First Arguments is the route (address of our web) we want, and the Second Arguments is function that have two parameters (requests and responses).</p><pre>res.send(&quot;some kind of message&quot;)</pre><p>Then, in the second arguments we can pass the face of our web, but right now I just wanna said “hello world” for the home page and “I am Express.js” for about.</p><p>And the last thing is what is port ? Port is environment that our node.js listening on</p><pre>process.env.PORT || 3000</pre><p>This mean, that’s we don’t have any environment, then the default is port 3000, we can passing any number in here instead of 3000, we can use 4000, 8080, and so on.</p><p>And then we listen on that port, with passing the constant of port and the function, inside the function we just calling console.log and pass the port into the console.log.</p><p>Then, to checking our web app is work or not, we call it by typing</p><pre>node app.js</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dqvwWrcAw7U2g1R9njyDTQ.png" /></figure><p>So, go to the browser and try to reach the web by write</p><pre>localhost:3000</pre><p>And this will we got</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OEUVEj285Pia3m4EF6CQfQ.png" /></figure><p>Let’s try to another page</p><pre>localhost:3000/about</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MBt2XbVm8oVhNEH5E9QKEQ.png" /></figure><p>Finally, we made it. So, how about Express.js ? Do you love it ?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf6bfadd39ac" width="1" height="1" alt=""><hr><p><a href="https://medium.com/basho-code/get-in-touch-with-express-js-cf6bfadd39ac">Get in Touch with Express.js</a> was originally published in <a href="https://medium.com/basho-code">Basho Code</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Trello clone with ReactJS and Firebase]]></title>
            <link>https://medium.com/@ikhdamuhammadwildani/trello-clone-with-reactjs-and-firebase-70bd927d34d?source=rss-9efe52e14e65------2</link>
            <guid isPermaLink="false">https://medium.com/p/70bd927d34d</guid>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[bootstrap]]></category>
            <dc:creator><![CDATA[Ikhda Muhammad Wildani]]></dc:creator>
            <pubDate>Mon, 18 Mar 2019 07:08:20 GMT</pubDate>
            <atom:updated>2019-03-18T07:08:20.457Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi, I am Ikhda and I am person who’s learn about Full Stack Programming with JavaScript for now. And in this part I will write about how to make trello clone using ReactJS, ReactStrap and for BackEnd we will use firebase as a service. I hope you can understand about my English haha. Let’s started!</p><p>First, we need to create react app with this command in terminal. Go to the documentation of React</p><p><a href="https://reactjs.org/">React</a></p><h3>create-react-app trello-clone</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2U_i5fqANEpprA_gqO51FQ.png" /></figure><p>Then we need to change directory to trello clone and <strong><em>yarn start</em></strong> to see what will react default display in the browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gfu0exbDtZHhhGbag88gSA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QRjV7LQ6T36HEYFj3cKF2Q.png" /></figure><p>Now, we will starting to write code. As you can see right now I opened Visual Studio Code and open the terminal. Now we have App.js in here, what we will do is we need to delete whole of render code and delete the import logo and import app.css</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bOjeuvCs9i0ibTGfhLaoLg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SiyrzpPAMwacPmF8E-u0DA.png" /></figure><p>Second step is we need to install ReactStrap, you can go to the documentation of ReactStrap</p><p><a href="https://reactstrap.github.io/">Storybook</a></p><p>I use yarn in here, so I will type yarn add reactstrap</p><p>If you use NPM, npm install --save reactstrap</p><p>Make sure to check your package.json file has a react, react-dom, and reactstrap</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PzPFgNO5VV3piil-Aua2NQ.png" /></figure><p>Now we can use ReactStrap for styling, for your information we must import what we will use from ReactStrap before, for the example we use CardDeck component for now</p><p>Now, for example we type h1 element from JSX. Just call it hello world or something you want.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G5pa2gIK27oH2tDnZMNjTg.png" /></figure><p>Now, we try to make fake data for example. Inside of constructor we declare a new state which is have a value of what we want to display like trello.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dy9YxX1Pk-wujfMO6q4UVg.png" /></figure><p>Hm, let’s try to display this in the browser, so we need to loop this data. Like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uahDk1pV7ZB645kiCYHMHA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sOtrTRyF49Z8-_mmtk98ww.png" /></figure><p>We will see the error from reactstrap, because we don’t import that component yet, so let’s import it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t7nnvbIpHOYS60Y1hkT7qw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X4HjTc-Lr_wS5YhIgmdb4w.png" /></figure><p>NOOOOO!! We need to fix this. We forgot something important. Install bootstrap first haha, we can use NPM like docs or yarn add bootstrap</p><p>And use bootstrap at Index.js, how to use it ? simple, import it like this, you can see the docs too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u4loX1oVD9T_Yt5awyuPbA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LeHPlQ6_UbE0eEzy7ArMnw.png" /></figure><p>We need to make our code getting better, so we add folder <em>component</em> inside <em>src</em> and make some new file called <strong>Data.js </strong>or something you want but don’t forget to use capital for the name. And then copy all of <strong>App.js </strong><em>to</em><strong> Data.js</strong> and change the name of the class to Data okay.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SUcRfRo5v1jl-D6yRTyO1Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V2KA89XUOu0LrDMqlr1KOw.png" /></figure><p>Then, at App.js we need to import our new file and delete all of the code and change it to<strong> &lt;Data /&gt;</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V2KA89XUOu0LrDMqlr1KOw.png" /></figure><p>The next step is how to connect our trello clone to firebase, so we need to create new project in the firebase, oh yeah before that we will give placeholder to our card and list, so go back to the <strong>Data.js</strong> and go to the <strong>input</strong> tag, give it<strong> placeholder=”add a list”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*imQP2VuKxVf0_LGZNgaQMA.png" /></figure><p>Preparation okay, so we go to firebase</p><p><a href="https://firebase.google.com/">Firebase | Google&#39;s Mobile and Web App Development Platform</a></p><p>Click Get Started</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jv_gaj2b6VQf9Oihg3RO-g.png" /></figure><p>Then Add Project, so you have a pop up</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H0ZFApHp2oqlVPHApU574g.png" /></figure><p>Give it the name as you want and choose locations for server, I choose US but my country is Indonesia haha, it’s okay. Now click create project</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*plk_Im4gkHJfIfqPuzPUYw.png" /></figure><p>Then click database</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g1uDR-BNnf9ZEOceEJDa7w.png" /></figure><p>So we try to create database</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R-DPHUMY-3mt1jzxKDZbAQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ofmsK4eOjy1VHzDXmEm4rA.png" /></figure><p>For now, we choose test mode, but don’t use test mode if you build real project because anyone can change your database</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B5J7DAMsk6nRHk6YbR6D8Q.png" /></figure><p>Now, go to project overwiew</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6lFmLQEGeQhjz8vc7p_SCg.png" /></figure><p>Then, click logo<strong> &lt;/&gt; </strong>which is describe that we choose web</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*59ay5NPjGtRfr1kGd_icVg.png" /></figure><p>After that, copy the code</p><p>Now, go back to our code editor, and create new folder inside src called firebase and create new file that we can call it index.js. Paste what we copied from firebase, but we need to delete something we don’t need to use. And adding something what we need to use hehe</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V1uiAXXcIgLenjKGOYeTSw.png" /></figure><p>Now we delete our fake data, and try to make some script that we can add the data to the firebase,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VGhg7Y1dppdqRLugrxDJtA.png" /></figure><p>You will see the error, don’t worry about it. We go to stackoverflow haha. Yeah we currently not install it haha npm install --save firebase or yarn add firebase</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eUOd0e83dQrNUU2WX7pWMg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sHGYqiOvAYUPczd2I0nKRg.png" /></figure><p>We need to add <strong>componentDidMount </strong>and<strong> console.log(firebase)</strong> first for seeing what value in there</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VOwshVuqbkVnJqKVgM4IPQ.png" /></figure><p>Now we need to add code like this at componentDidMount because we need to display data in firebase to our project. As you see, our database is null</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j1lTiHP5O-NfBT9X8ubzRw.png" /></figure><p>Then we can add code like this, this mean if our database is not null so we will change the state, so our state have a value from firebase. You can do this to your cards as well</p><p>Our problems are, how to add some list and card to the firebase, so what will we do is make a function to handle save. So here we go</p><p>Let’s try to our project. First we need to make function to handle changing at input tags, add state to be temporary for list name</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BLgl2Dg_SeW9e0ha_RdL7g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QuomKvkNIpqJBXENdbLFSg.png" /></figure><p>I got a wrong sorry, so We change the position of input task and list like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9bgYptAzBh1wdj86dXNA2w.png" /></figure><p>Then, we need to make function which is can save our input text to firebase database</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q_Rwjiq0GFAwuy1S6-3Gng.png" /></figure><p>Then on the Button component we must use the function saveList</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eA0PCkmJxmzBvwVSAcR60Q.png" /></figure><p>Yattaaaaa!! we did it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yaK70EAUqQeM3sEfZWAYiw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MXfN3NDQSPRP_VeEq6fYsQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BpVWApyY7eHsHaw7W0nnVQ.png" /></figure><p>Next task is delete that list, now we must to make function to handle delete</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xz2RROXhpy_ufE4AuiCdqg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xY5hXPf2fLQQeO5TtJuCoQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0tcyj4NKMyPTEmMtHieslQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*utS65IJqKMQuCWBYQvaDPg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CycL13HkVb-ywqbZ0DsGdA.png" /></figure><p>Yeah, we did it. But our code has a bug, if that last list we try to delete, they dont removed on our project but if we check at firebase the database are gone,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YHdAuIUP0zmxuNVp50pCaA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-0uhlkgCUG8clkFFW4etwg.png" /></figure><p>So we need to add code at handle delete list</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uLqAYAkRZBNODkNa7gKImA.png" /></figure><p>So, let we console.log the length of our dataLists after we delete</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9fdOssBE5pqTZi76CxEr_g.png" /></figure><p>You see that ? there are 3 items, but at our firebase we have 2 items, this is the bug</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mYgkayjMOWaineIvLIyy0Q.png" /></figure><p>So, try it again</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eQf2MRLAZeNPYz0KM9Uz9Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BawtcQGYk_hthCEmAGn_Ag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-54_fV0DunumyGBp8t3RFg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vcg17adNTOYf3hNZ5nvwRA.png" /></figure><p>Did you see ? so just add code to our handle delete list like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XKsJ4P2rRZdBBwt-qbMfuw.png" /></figure><p>If we still have 1 items at our state we force them to array without value, so let’s try again to our project</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G-qp0gfHsDLJIQrh-W1AlQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oDSYC1IMHC49Klo72Ah_Zg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VtGIlt7ZZFKxRZHachLSXA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V1sxTnZOVc0dBUdCXRe3bA.png" /></figure><p>Yeah, we did it haha. let’s take some rest, drinking or something.</p><p>Nah, we got some mistake if we try to delete only the list, that’s the card will not deleted, if you want to try, just delete the list and see it at your firebase database, you will see that your list is deleted but the card still there, so we need to add our code until when we delete the list, the card inside will deleted too.</p><p>We go to the <strong>_handleDeleteList</strong> function and modified our code like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*glQJsne0PdaIEOIvbrSjDQ.png" /></figure><p>The logic is when we deleted some list, we will match the key of list with the listKey of the card, and we will delete all of this card only when the key is same.</p><p>Now we going to make function for moving the card to another list, right now we will not use drag n drop but we will use button for it, I hope we can make it better sometimes with using dnd, but for now that’s enough for try using button, I am still newbie bro hahaha.</p><p>We need to make the button first, we will make it simple and give little logic, if the list only one so that’s button will disabled and if the the list at the first we can’t move card to the left and for the last as well, we can’t move the card to the right. So, here we go!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pNfujFs3gm9NQp1RLZ5WKQ.png" /></figure><p>I’m sorry that I change a little of my code, and this is the result</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GLkZn7g3BfClUW39Q3Pytg.png" /></figure><p>Then we must to make a function that will handle move cards, the logic is when we move that card to the right so we increment the index by one and also to the left we will decrement the index by one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*roUTvCjHAcgJ51cwK5X4iw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9YzYohNTXk9-5VhjbXQndg.png" /></figure><p>And then we will try to run the code, but we got a mistake, our database structure are so confusing</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L4cBbc8HRqe5AqwrSeeEiQ.png" /></figure><p>And if we try to move the card we will get a bug like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zxZfEmZwdNQMwn6ZcwClQw.png" /></figure><p>As you see that our database has changed, so we will fix it with changing the cards.map and handle save cards, this is currently our code</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UX2nOUDukcprOHEaV9xGWw.png" /></figure><p>We will change it to this,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xtz-PtjrN87glLwViXtMJw.png" /></figure><p>Haha, I am sorry we don’t need to change our map but we need to change little bit at componenDidMount</p><p>This is my explanation, we need to see what we have at our databases, that’s why I use console.log at handle save card because I need to know the value, and I got an object so I change key to the key.key because first key is an object and second key is the key name object and I want to get the value not the key name so I change it</p><p>After that, I go to componentDidMount and I change myCardFromDatabase[key].cardName.title to myCardFromDatabase[key].cardName, why I can do that ? That’s about how to know what actually the value of our databases, and we use console.log to see that.</p><p>And yeah, our trello has done, but not perfect, it’s okay because we can improve it more more and more. Keep learning!</p><p>I know that my tutorial is not good to you, because of that I will give you link to the my repository to see what have I done with it, so I f you consfused you can go there and match your code, thank you very much.</p><p><a href="https://github.com/emzhofb/trello-clone">emzhofb/trello-clone</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70bd927d34d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Frustasi? Ingin menyerah dan kehilangan harapan?]]></title>
            <link>https://medium.com/@ikhdamuhammadwildani/frustasi-ingin-menyerah-dan-kehilangan-harapan-39e17a17713e?source=rss-9efe52e14e65------2</link>
            <guid isPermaLink="false">https://medium.com/p/39e17a17713e</guid>
            <dc:creator><![CDATA[Ikhda Muhammad Wildani]]></dc:creator>
            <pubDate>Fri, 08 Mar 2019 15:41:46 GMT</pubDate>
            <atom:updated>2019-03-08T15:41:46.137Z</atom:updated>
            <content:encoded><![CDATA[<p>Semoga sedikit harapan akan kembali kita dapatkan setelah selesai membaca tulisan ini, tulisan ini juga sebagai pengingat diri saya sendiri.</p><p>Saya ingin menceritakan rentetan kegagalan saya setelah lulus SMK sampai hampir setahun setelahnya, dimulai dari mencoba masuk universitas namun gagal dan kegagalan lainnya.</p><p>Sebelum itu, saya pernah mencoba bisnis online saat saya masih kelas 2 SMK dengan membeli domain dan mendesainnya dengan mencari template lalu tutorial tutorial di internet, namun selama setahun tidak ada yang beli sama sekali!!</p><p>Lalu saya coba dengan menggunakan facebook ads dan fanspage seperti setahun lalu, kala itu saya bisa mendapatkan keuntungan bersih 1.200.000 selama seminggu dengan modal iklan 250.000. Namun lagi lagi saya gagal dan tidak balik modal.</p><p>Sebelum itu juga saat saya masih MTs (setara SMP) saya membuka bisnis cetak foto dan pulsa, lumayan seneng saat itu bisa menambah uang jajan dan saat lulus MTs coba jualan sate hehe</p><p>Eh, maaf kelepasan. Mari kembali ke topik utama ya, sebelum saya UN, saya coba daftar SNMPTN namun tidak di terima, dan setelah UN saya putuskan tidak mengikuti SBMPTN karena saya ingin mencoba kuliah ke luar negeri lewat agensi yang memberikan loan.</p><p>Parah ya, diri saya 😂😂. Udah otak pas pasan nekat lagi ingin kuliah ke luar negeri haha. Namun, ya. Sekali lagi saya gagal.</p><p>Akhirnya saya coba bicara dengan orang tua untuk menunggu 3 bulan lagi (persiapan sebelum kuliah di buka 4x dalam setahun), dan mendaftar kuliah dengan biaya sendiri, saat itu sudah di fikirkan matang matang tentang biayanya dan saya di restui, Alhamdulillah.</p><p>Saat saya mencoba mendaftar, namun ternyata takdir berkata lain, rupiah inflasi sampai titik 15.000 per 1 dollar dan pastinya biaya kuliah membengkak, mau nekat? Ga berani. Saya lebih memilih menundanya lagi.</p><p>Akhirnya saya temukan harapan baru, coding bootcamp dengan jaminan kerja dengan gaji 10jt perbulan. Dengan harapan saya bisa menabung untuk kuliah diri saya sendiri toh saya suka IT dan sebenarnya saya juga ingin belajar Data Science, kenapa tidak saya ambil dulu peluang ini?</p><p>Akhirnya saya coba mendaftar kelas persiapan, dan keterima. Lalu proses pembelajaran pun berjalan dengan semestinya, namun saat ujian masuk kelas utama saya belum bisa lolos, dan akhirnya terstempel gagal lagi.</p><p>Haha, hidup saya penuh kegagalan ya sepertinya, lalu apa yang saya lakukan setelah itu?</p><p>Ya, saya mencoba lagi. Mencoba mencari tempat lain untuk belajar dan hmm saya merasa semakin jauh dengan impian saya.</p><p>Saat itu saya menangis, apa yang sudah saya perjuangkan semuanya belum mendapatkan hasil yang memuaskan. Ibu saya bilang “jalani saja dulu jalanmu ini, tidak usah mengkhawatirkan masa depanmu akan seperti apa, teruslah berusaha”</p><p>Sejujurnya saya tidak ingin kuliah di indonesia karena saya tau, biaya kuliah lumayan mahal dan membutuhkan waktu yang lama, saya tidak ingin membebani orang tua saya lebih dari ini.</p><p>Kenapa saya memilih luar negeri? Di sana ada teman saya yang bisa sambil kerja dan membiayai kehidupan mereka sendiri.</p><p>Saya merasa iri dengan mental mereka, mental pejuang dan kemandirian mereka yang membuat saya ingin merasakan kehidupan seperti itu.</p><p>Yah, saya masih memiliki waktu, paling tidak saya harus terus mencoba, mungkin bukan kemarin, mungkin juga bukan hari ini, tapi besok? Itulah yang saya coba cari jawabannya, semoga hari esok ada pertolongan Allooh SWT yang datang mewujudkan impian saya. Aaamiin</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39e17a17713e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hal menarik tentang impian Luffy mencari One Piece]]></title>
            <link>https://medium.com/@ikhdamuhammadwildani/hal-menarik-tentang-impian-luffy-mencari-one-piece-24eced6fa3d5?source=rss-9efe52e14e65------2</link>
            <guid isPermaLink="false">https://medium.com/p/24eced6fa3d5</guid>
            <category><![CDATA[dreams]]></category>
            <category><![CDATA[anime]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[one-piece]]></category>
            <dc:creator><![CDATA[Ikhda Muhammad Wildani]]></dc:creator>
            <pubDate>Fri, 15 Feb 2019 17:26:01 GMT</pubDate>
            <atom:updated>2019-02-25T03:50:17.593Z</atom:updated>
            <content:encoded><![CDATA[<p>Halo semua, sudah lumayan lama saya tidak menulis kembali.</p><p>Kali ini saya tidak akan membahas tentang anime one piece, tetapi tentang cara Monkey D. Luffy menggapai impiannya.</p><p>Jangan salah loh, ternyata dalam anime sekalipun ada banyak pelajaran yang bisa kita dapatkan, dan kali ini saya akan sharing tentang apa yang saya rasakan ketika menonton anime One Piece dan relasinya dengan kehidupan saya.</p><p>Untuk yang sudah pernah menonton anime atau membaca manga One Piece mari kita flashback sebentar, dan bagi yang belum pernah tau One Piece silakan tetap lanjutkan membaca karena saya akan menceritakannya, mari langsung saja.</p><p>Monkey D. Luffy sangat ingin menggapai impiannya mendapatkan One Piece karena terinspirasi oleh Shanks (orang yang menyelamatkannya dulu waktu kecil saat berumur 7 tahun).</p><p>Lalu 10 tahun kemudian, tepatnya saat 17 tahun Luffy mulai mencoba menggapai impiannya, hari demi hari berlalu sampai akhirnya dia mendapatkan beberapa temannya untuk berjuang bersama.</p><p>Namun, petaka terjadi. Saat akhirnya luffy dkk di hajar habis habisan oleh musuhnya, lalu Luffy meminta teman temannya sembunyi dan kembali 3 hari lagi namun mereka terpisah dengan kekuatan teleportasi lawan.</p><p>Setelah itu, luffy mendapat kabar bahwa kakaknya Portgas D. Ace ditahan dan akan di eksekusi mati, lalu luffy melupakan kekalahannya dan mencoba menyelamatkan kakaknya, namun yang terjadi adalah kakaknya mati di depan matanya sendiri.</p><p>Setelah itu luffy sadar bahwa dia masih terlalu lemah untuk mencapai impiannya.</p><p>Luffy depresi, ingin berhenti mengejar impiannya, semuanya sudah hilang, harapan, teman temannya dan bahkan kakaknya.</p><p>Namun, teman barunya Jinbei menyadarkannya untuk bangkit dan calon gurunya yakni Rayleigh datang menawarkan bantuan dan akhirnya Luffy mengumumkan ke teman temannya lewat media massa, bukan 3 Days, 2 Years.</p><p>Mereka akan bertemu 2 tahun lagi, bukan 3 hari seperti yang di janjikan.</p><p>Dia bertekad menjadi lebih kuat dengan berlatih bersama Rayleigh untuk melindungi teman temannya dan mencoba kembali menggapai impiannya tersebut.</p><p>Disinilah letak sebenarnya inti dari apa yang ingin saya sampaikan.</p><blockquote>Terkadang, kita butuh jeda untuk menggapai impian, jeda bukan berati berhenti untuk selamanya.</blockquote><blockquote>Namun berhenti sementara untuk memantaskan diri agar impian kita bisa tercapai.</blockquote><p>Kita pasti pernah merasa depresi, sakit hati, dan tidak punya lagi semangat untuk mendapatkan apa yang kita impikan.</p><p>Namun, tunggu! Jangan menyerah dulu. Mungkin kita butuh jeda.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24eced6fa3d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kekuatan sharing ilmu]]></title>
            <link>https://medium.com/@ikhdamuhammadwildani/kekuatan-sharing-ilmu-a684b67ac0db?source=rss-9efe52e14e65------2</link>
            <guid isPermaLink="false">https://medium.com/p/a684b67ac0db</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[teaching]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[sharing-stories]]></category>
            <category><![CDATA[knowledge]]></category>
            <dc:creator><![CDATA[Ikhda Muhammad Wildani]]></dc:creator>
            <pubDate>Mon, 28 Jan 2019 14:50:01 GMT</pubDate>
            <atom:updated>2019-01-28T14:51:19.369Z</atom:updated>
            <content:encoded><![CDATA[<p>Halo, saya siapa? Ini dimana?</p><blockquote>Krik krik, krik krik.</blockquote><p>Garing!!</p><p>Sumimasen, gomenasai, warukattana, sumanakatta.</p><p>Bingung? Semuanya berarti maaf dalam bahasa jepang.</p><p>OOT nya kepanjangan, mari kita mulai saja ya, oh iya semua ini berdasarkan pengalaman pribadi. Langsung saja</p><p>Sebagai seorang pembelajar, kita janganlah pelit ilmu, karena sesungguhnya jika kita mau berbagi ilmu maka In Syaa Allooh, ilmu baru akan mendatangi kita.</p><p>Kemarin, saya mencoba membantu teman saya yang masih kesulitan belajar programming, dan saya minta beliau mengerjakan hal hal dasar seperti looping yang saya sendiri pun ternyata lupa.</p><p>Namun, saat saya melihat codingan beliau saya jadi mulai paham bahwa codingan setiap orang meskipun outputnya sama, namun terkadang logika dan penulisan sintaksnya bisa berbeda.</p><p>Akhirnya saya mendapatkan ilmu baru, disamping saya mengingat kembali apa yang dulu saya lupakan, namun bukan itu saja manfaatnya.</p><p>Saat kita bisa membantu orang menyelesaikan masalahnya, pasti akan terasa bahagia kan, dan itu bisa membuat kita lebih bersemangat dalam belajar lagi, lagi dan lagi. Karena motivasi bisa datang kapan saja, termasuk karena kita ingin mengajari orang maka kita harus bisa terlebih dahulu.</p><p>Motivasi dalam belajar sangatlah penting, terkadang saya sudah menyiapkan waktu belajar dari jam 9 sampai jam 12 malam, namun di antara waktu waktu tersebut pasti lah ada beberapa jam yang terbuang, karena terkadang saya suka sekali menonton anime, musik video atau membuka youtube.</p><p>Tanpa motivasi yang besar, rasa malas pasti akan menerpa ya, nah maka dari itu kita harus punya tujuan kenapa kita belajar sesuatu.</p><p>Bagi beberapa orang, belajar sesuatu dilakukan agar mereka mendapatkan uang, ya saya tidak bisa menyalahkan mereka, karena memang itu manusiawi. (Saya juga-red).</p><p>Oh iya, saat kita sharing, kita juga akan melatih diri kita untuk bersabar, hehe.</p><p>Dan manfaat lainnya mungkin masih banyak, namun saya baru bisa share segini saja, karena baru ini yang saya rasakan. Terima kasih sudah membaca dan sampai jumpa.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a684b67ac0db" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>