<?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 Ferdinand Jason Gondowijoyo on Medium]]></title>
        <description><![CDATA[Stories by Ferdinand Jason Gondowijoyo on Medium]]></description>
        <link>https://medium.com/@ferdinand.jason?source=rss-d63e587b5ea7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*yPV_VILpSEu-7i51Czz_Aw.jpeg</url>
            <title>Stories by Ferdinand Jason Gondowijoyo on Medium</title>
            <link>https://medium.com/@ferdinand.jason?source=rss-d63e587b5ea7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:05:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ferdinand.jason/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[Building the Special To-Do List App Journey]]></title>
            <link>https://medium.com/@ferdinand.jason/building-the-special-to-do-list-app-journey-35157fe07ed0?source=rss-d63e587b5ea7------2</link>
            <guid isPermaLink="false">https://medium.com/p/35157fe07ed0</guid>
            <dc:creator><![CDATA[Ferdinand Jason Gondowijoyo]]></dc:creator>
            <pubDate>Sat, 25 Apr 2020 10:36:47 GMT</pubDate>
            <atom:updated>2020-04-25T10:36:47.572Z</atom:updated>
            <content:encoded><![CDATA[<p>Not long ago, I wrote about the journey of the Android module on the Gojek Bootcamp and now I will write my journey working on the final project of this Android module. In this module, we are given the task to create Special Todo lists.</p><h3>What are the special To-do Lists?</h3><p>What are the special To-do Lists?<br>In general, the special to-do list is the same as the regular todo list (CRUD task) with the addition of several features, first, it can create todo/task with images. Second, there is a feature to display the current weather.</p><p>What I want to tell here is a journey to deal with the problems I face, some interesting features, and tools that are useful in making this application.</p><h3>The architecture</h3><p>The architecture used in this project is MVP (Model View Presenter) and this is the complete structure of the architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T2HijNQASTRjCn8qpESKLQ.png" /><figcaption>Android Architecture that I use for the To-do List Application</figcaption></figure><p>For me, using this architecture is very helpful if you want to add or change a feature. But sometimes this will take a long time to code because you have to think about what class/function this layer or package should be placed on.</p><h3>Theme on android</h3><p>For me, this is the biggest obstacle, because I don’t know how to override the default theme to suit my preferences. I managed to solve this problem by searching on Google and Stackoverflow. Yeah, Google and Stackoverflow is your best friend on coding!.</p><h3>Layout Inspector</h3><p>Layout Inspector on Android allows you to inspect the screen for the current state of the screen, so you can find out how your components are rendered, how to place components, all information on the complete components here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*JSNadieCN_6R_arI51f-rg.png" /></figure><p>To use this tool, you can find it in the Tools Menu&gt; Layout Inspector and select the emulator that is running.</p><p>I use the Layout Inspector to check whether my component can be rendered perfectly or not.</p><p>From here you can see how messy my design is. And yes, actually I prefer backend than frontend because everyone’s preference is different for a design, the design that I use also cheats from the design on the internet. Sorry if the design of this application is not too good for you. For the design, I need a long time to make a layout, how to make a layout like this, and so on. Maybe I use a nested layout so that it reduces the performance of the android. For me, making a layout on iOS is easier than on Android because it just drags and drops. But the advantage of Android is that we can customize our components more freely than iOS.</p><h3>Retrofit &amp; Picasso</h3><p>Retrofit is a hero in this project, why? because this Library only needs to define interfaces and annotations, and this Library will build the boilerplate of the class that will be used. Also, Retrofit has set that connections will be made in the Thread, and callbacks will be made in the Main Thread. before I knew this, I was able to wrap the retrofit into a thread, so there was an error that I didn’t understand. But again Google is your friend :) Here’s how the Retrofit works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*jMH1IkmhTe7_QOI2pfdCNw.png" /></figure><p>Picasso is a library of squares that is very useful in image loading. Why? Because this library is very simple to use. Here is an example of how Picasso loads images.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*6-nR6FCBaMq0RO9DaZaXqQ.png" /></figure><p>The load function can accept files and URLs and their use syntax is easy to understand.</p><blockquote>“Programming against an interface” is a must</blockquote><h3>Callback</h3><p>Previously my code was a bit untidy because I put too many callbacks into the presenter. This arguably violates many programming principles. I get a suggestion to wrap the callback in an interface and pass that interface into the presenter. What a good idea !. “programming against an interface”, that phrase must indeed be implemented to keep your code clean.</p><p>But there are a few more problems, callback chaining, for this I have not found the correct solution.</p><h3>Test</h3><p>Previously I have given an overview of the pyramid from the test. Many libraries can be used, I use Mockito, Mockito is a library to mock an interface and is used to verify the logic of our code. This is one more reason why we have to implement “programming against an interface”! So that our code is easy to test. Besides, there are similarities in iOS and Android, namely UI Test. But for me, the UI Test on Android is easier to read and satisfying when seen :) for sure.</p><p>Here’s the final application. Enjoy this 6.2 MB GIF.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*9Ga8Oe2Yu9pOxrUT-zvYCA.gif" /><figcaption>To-Do List Application</figcaption></figure><p>I want to thank all the coaches on this Android module for teaching them how to make Android for a week! Thank you coach, you’re awesome.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35157fe07ed0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Android Journey Part 2]]></title>
            <link>https://medium.com/@ferdinand.jason/learning-android-journey-part-2-fb8d8825352?source=rss-d63e587b5ea7------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb8d8825352</guid>
            <dc:creator><![CDATA[Ferdinand Jason Gondowijoyo]]></dc:creator>
            <pubDate>Mon, 20 Apr 2020 14:02:00 GMT</pubDate>
            <atom:updated>2020-04-20T14:02:00.044Z</atom:updated>
            <content:encoded><![CDATA[<p>Back again on this blog, now I will tell you what I have learned during the 3rd-day android module. Today is a pretty hard day because today is <strong><em>Monday</em></strong>.</p><h3>Day 3</h3><p>The third day begins with a homework showcase and blog post. After that proceed with the introduction to Recycler View. Recycler View is similar to UITableView on iOS. When you display a large number of items in a scrollable list, most of the items aren’t visible. For example, in a long list of words or news headlines, the user only sees a few items at a time. From a performance perspective, you want to conserve memory and save time:</p><ul><li>To conserve memory, minimize the number of View items that exist at any given point.</li><li>To save time, minimize the number of View items you have to create.</li></ul><p>To accomplish both these goals, create more View items than the user can see on the screen and cache the created View items. Then reuse the items with different data as list items scroll in and out of the display. That’s the come for. The RecyclerView class is a more advanced and flexible version of ListView.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5Z4r6eQZ7NIAvUJw" /></figure><p>The diagram above illustrates the difference between ListView and RecyclerView on Android.</p><p>To make RecyclerView several components need attention, which is as follows.</p><ul><li>Data</li><li>RecyclerView</li><li>Layout for Item</li><li>Layout Manager</li><li>Adapter</li><li>ViewHolder</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Amxtk3vwi88TYj2-" /><figcaption>source: <a href="https://google-developer-training.github.io/">https://google-developer-training.github.io/</a></figcaption></figure><p>In the afternoon session, we discussed the MVP architecture. Model–view–presenter (MVP) is a derivation of the model–view–controller (MVC) architectural pattern which mostly used for building <em>user interfaces</em>. In MVP, the <em>presenter</em> assumes the functionality of the “middle-man”. In MVP, all presentation logic is pushed to the presenter. MVP advocates separating business and persistence logic of the Activity and Fragment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/0*8ahoxiYl_SHNSwC7" /></figure><p>And in the afternoon session, we discussed testing on Android. The first thing discussed was about the Pyramid Test. This Pyramid Test has 3 parts, namely, Small (Unit Test), Medium (Integration Test), and Large (E2E) Tests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*crWukyXZ8QQdSndi" /></figure><p>After that proceed with a discussion about Test Doubles. Test Doubles has several components, namely Fake, Mock, Stub, Dummy, and Spy.</p><p>That’s all my blog, hopefully, it can help a lot of people. Sorry if there are many wrong words. I hope I can learn a lot from this module. Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb8d8825352" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Android Journey Part 1]]></title>
            <link>https://medium.com/@ferdinand.jason/learning-android-journey-part-1-fe1b5813e81d?source=rss-d63e587b5ea7------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe1b5813e81d</guid>
            <dc:creator><![CDATA[Ferdinand Jason Gondowijoyo]]></dc:creator>
            <pubDate>Sun, 19 Apr 2020 15:08:38 GMT</pubDate>
            <atom:updated>2020-04-19T15:11:55.664Z</atom:updated>
            <content:encoded><![CDATA[<p>After the iOS module, the Android module rises. Another day about Gojek Bootcamp about mobile. Yep, now is the time for Android. At the time this blog was written, Android modules were run for 2 days. Here I will tell what I have learned for 2 days on the Android module.</p><h3>Day 1</h3><p>On the first day, we got material about the Hitchhiker’s Guide Building exceptional apps for 2.5 billion users out there. First, we get material about Kotlin. This is some philosophy from Kotlin</p><ul><li>Concise &amp; Pragmatic</li><li>Safe</li><li>Java Interoperability</li><li>Kotlin is Functional and Object Oriented.</li></ul><p>For almost 6.5 hours on the first day, we get material about</p><ul><li>Data type</li><li>Variable</li><li>Function</li><li>Accessors</li><li>Class</li><li>and Kotlin Idioms</li></ul><p>After learning about Swift, it might look similar to Swift, but there are many differences in it. If Swift has more concern for memory management, while Kotlin has a unique delegation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*mZa_9-wAz-pdg1OheXW6uA.jpeg" /><figcaption>source: <a href="https://medium.com/@nvashanin/swift-vs-kotlin-design-patters-d82d50e34741">https://medium.com/@nvashanin/swift-vs-kotlin-design-patters-d82d50e34741</a></figcaption></figure><h3>Day 2</h3><p>On the second day, we continued with Kotlin’s material yesterday, here we get additional material as follows</p><ul><li>Conditional Statements</li><li>Functional Kotlin</li><li>Inline classes and functions</li><li>Type Alias</li></ul><p>After this, we enter into Android material. Yey!. <br>The Android module starts by creating a <em>Hello World</em> project. <br>After that, we explained about Gradle, Activity, Android Manifest, and Android UI Fundamentals. Just like the previous blog, I will give an example of an Android Calculator Application that has been made as a task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*ROTauobdqbTj3LTGudUhlw.png" /></figure><p>When compared to iOS, in Xcode, in UI development, we can drag and drop easily, but in Android, it can’t be done as easily as iOS but has the advantage that it might produce a few bugs, and can be easily customized. Then in making TableView (iOS) or ListView (Android) there are different paradigms in both but have similarities about the data that must be provided. Only a glance that I can review, because I have not learned much. Thank you for reading my post.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe1b5813e81d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What I’ve learned in the iOS module.]]></title>
            <link>https://medium.com/@ferdinand.jason/what-ive-learned-in-the-ios-module-2937594a3c9b?source=rss-d63e587b5ea7------2</link>
            <guid isPermaLink="false">https://medium.com/p/2937594a3c9b</guid>
            <dc:creator><![CDATA[Ferdinand Jason Gondowijoyo]]></dc:creator>
            <pubDate>Tue, 14 Apr 2020 14:03:55 GMT</pubDate>
            <atom:updated>2020-04-15T02:48:21.826Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*0vOpbhovyPetvYKIFu8tgQ.jpeg" /><figcaption>source: <a href="https://twitter.com/ios_memes/status">https://twitter.com/ios_memes/status</a></figcaption></figure><p>Bootcamp has been running for 7 weeks and is almost at the end of the iOS module. This module about mobile and a new world for me because it has never been coding mobile previously, especially iOS.</p><h3>First Day</h3><p>On the first day, we learn about Swift. The language that I think is similar to Java, Golang, JavaScript, C # (haha it’s a lot), and how to use URLShared to call the API. Following is an example of Swift’s syntax.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aBrIKR8Tm_i3BztNXgtt7Q.png" /></figure><p>Look how beautiful and clean code in there. Also, I thought, that XCode is a very good IDE, starting from the font and how to debug it (in the playground) rarely found in other IDEs.</p><h3>Next Three Days</h3><p>On the second day, we learned about Application Lifecycle, Auto Layout, and Delegate patterns. At this stage I think that this module is very difficult, so I have to pay attention to the coach in the tutorial.</p><p>On the third day, we are introduced to TableView, ColelctionView, and UserDefaults. Here it starts to appear that XCode is sometimes annoying because there are a lot of bugs that have to close all the windows and open them again, but it’s not necessarily the problem will be solved. TableView and CollectionView here still look simple. But when put together it starts to be a bit troublesome.</p><p>On the fourth day, we were taught about the MVP pattern. Because before we put all logic into the View Controller, this class has too many responsibilities, which violates the SOLID principle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*bTdtaYqzsHjKoZk3KpgU7w.jpeg" /><figcaption>source: <a href="https://twitter.com/ios_memes">https://twitter.com/ios_memes</a></figcaption></figure><h3>Fourth day onwards</h3><p>We are given a project to make a simple food delivery app, by loading everything we have learned before. Here I feel the difficulty to make the view because indeed I am not a person who likes frontend. But because the pizza prize will be given, LET’S DO IT, especially since working on this project with the team, we certainly can. Combine View, where there is Collection View in Table View.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*NyFhCgximzvWe70Sft-LZg.jpeg" /></figure><p>Using a custom view, using a library from outside, how to use a library from outside. Using Auto Layout, the delegate pattern makes you confused. At this stage, I understand why there are so many memes on iOS. And about the final project, we work with git. And even there’s a meme about a conflict in Interface Builder or Pbxproj.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*2345pYkBXZv16sHYQiIjrQ.jpeg" /><figcaption>source: <a href="https://twitter.com/ios_memes">https://twitter.com/ios_memes</a></figcaption></figure><h3>Final Project</h3><p>After going through many problems, working hard, and lack of sleep with a pair. We succeeded in working on this Final Project, our team named #NewWargaBikiniBottom and this task we named GoKrustyKrab. The following is a brief overview of our application</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*ZbyOrjzNrKhefSq9oByPXA.gif" /></figure><p>I hope, we #NewWargaBikiniBottom can get a pizza. And thank you <a href="https://medium.com/u/20cf1e5a8557">SK</a> for helping, accompanying, advising, and giving me tips regarding this Final Project. Cheers! Learning iOS it is very fun. I enjoy every moment make a UI and writing a code that we can see the result. Oh, one more thing, I want to say thank you for Stackoverflow and our coach! Thank you to Andrew, Mila, Bimon, and Bayu!.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2937594a3c9b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Graduation — A once-in-a-lifetime Ceremony]]></title>
            <link>https://medium.com/@ferdinand.jason/graduation-a-once-in-a-lifetime-ceremony-afe2c1851477?source=rss-d63e587b5ea7------2</link>
            <guid isPermaLink="false">https://medium.com/p/afe2c1851477</guid>
            <dc:creator><![CDATA[Ferdinand Jason Gondowijoyo]]></dc:creator>
            <pubDate>Sun, 15 Mar 2020 13:39:36 GMT</pubDate>
            <atom:updated>2020-03-15T13:39:36.213Z</atom:updated>
            <content:encoded><![CDATA[<h3>Graduation — A once-in-a-lifetime Ceremony</h3><p>If you now ask the proudest moment of my life, I will answer it with Graduation. Why? Besides, because I just graduated, graduation itself is a symbol of student struggle in college life. How happy to go through the ‘bloody’ phase in college life. In college life, there are often many ‘dramas’ such as angry and moody supervisors, group work but one-person work (carrier), forgetting to do assignments, and ‘<em>hutang piutang</em>’. But everything is paid for with glorious graduation 😢</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i4iiYKTkYJRY7-oxHk-ZRA.jpeg" /></figure><p>Toga is one of the mandatory equipment during graduation. The process of being able to wear a toga is not easy. You have to struggle for years through college so you can wear it proudly at graduation. By using “toga” there are several meanings to use it and attend graduation.</p><h3>Black means Darkness</h3><p>The black color of the toga which means mystery and darkness is what a student must defeat. With the knowledge that has been obtained during college, a scholar is expected to uncover darkness.</p><h3>Pentagon Toga Hat</h3><p>the corners of the hat are intended so that students who have used it, are required to think rationally. Not only that, but toga hat also means a student must look at things from various points of view.</p><h3>Toga Rope shifting from Left to Right</h3><p>It turns out the transfer of the strap on the toga hat is likened to the brain. Initially on the left, because during college, students use the left brain associated with material, language, and also memorization. When graduation, the rope is moved to the right in the hope that scholars will use the right brain which is related to imagination, creativity, and innovation.</p><p>A student is expected to be able to open up employment opportunities for himself and others with the provision of creativity, imagination, and innovation.</p><p>Not only using the left brain, which is only material and still relies on the work of others. Besides the toga rope is also likened to a symbol of a bookmark. The boundary will be removed when opening a new sheet of book. This is interpreted as a scholar should continue to learn and add insight even though he has graduated and graduated so that his knowledge develops.</p><p>I am proud to be able to do all the points above, but in the graduation ceremony, the moment that makes me most proud is the moment where my name is called as a graduate with cumlaude predicate in the middle of a large building and seen by my parents and many people in the building. 😏</p><p>Besides graduation, the moment I got a job at a decacorn company in Indonesia was also a proud moment in my life. I can solve real-world problems with the knowledge I have gained during college and bootcamp. Thank you, Gojek.</p><p>Although the graduation ceremony was said to be the worst graduation ceremony, because it was held in the midst of a corona outbreak, so there were many limitations and canceled events (graduation included). But this does not reduce the essence of graduation itself. We must stay healthy to continue working.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=afe2c1851477" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TiDB — SQL at Scale!]]></title>
            <link>https://medium.com/@ferdinand.jason/tidb-sql-at-scale-6056c0f4c36?source=rss-d63e587b5ea7------2</link>
            <guid isPermaLink="false">https://medium.com/p/6056c0f4c36</guid>
            <dc:creator><![CDATA[Ferdinand Jason Gondowijoyo]]></dc:creator>
            <pubDate>Sun, 08 Mar 2020 10:37:02 GMT</pubDate>
            <atom:updated>2020-03-08T10:37:02.364Z</atom:updated>
            <content:encoded><![CDATA[<h3>TiDB — SQL at Scale!</h3><blockquote>TiDB (“Ti” stands for Titanium) is an open-source NewSQL database that supports Hybrid Transactional and Analytical Processing (HTAP) workloads. It is MySQL compatible and features horizontal scalability, strong consistency, and high availability.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/289/1*ms6haaZS2z6Hj_cG0908pg.png" /><figcaption>source: <a href="https://github.com/pingcap/tidb">https://github.com/pingcap/tidb</a></figcaption></figure><p>PingCAP defines TiDB is as a “one-stop data warehouse for both OLTP (Online Transactional Processing) and OLAP (Online Analytical Processing) workloads”. TiDB is inspired by the design of Google F1 and Google Spanner, and it supports features like horizontal scalability, strong consistency, and high availability. TiDB developed with <a href="https://golang.org/">Go</a> programming language. In this post, I have decided to explain about TiDB.</p><h3>NewSQL</h3><p>NewSQL is a new approach to relational databases that wants to combine transactional <a href="https://en.wikipedia.org/wiki/ACID">ACID</a> (atomicity, consistency, isolation, durability) of RDBMS and the horizontal scalability of NoSQL.</p><p>The main problem with SQL/RDBMS is that it is very difficult to scale, as its performance quickly deteriorates as a database grows larger. Sharding is quite problematic as well. That’s why people sometimes moving to NoSQL. NoSQL can provide incredible read/write speeds but did not have ACID guarantees built into them, which prevented many systems from full adoption, as they require strong data integrity guarantees. NewSQL comes as the solution, these databases achieve an amazing feat of scalability by focusing their efforts on solving issues in one problem domain.</p><h3>TiDB Architecture</h3><p>The TiDB architecture consists of three key components: the TiDB server, the PD server, and the TiKV server. In addition, TiDB also provides a TiSpark component to support the needs of OLAP and TiDB Operators to make things simpler for management and deployment in the cloud. I’ll explain the three key components in TiDB.</p><figure><img alt="source: https://github.com/pingcap/tidb" src="https://cdn-images-1.medium.com/max/1024/1*ZajoNhC7pwKlmDIlT5qpfg.png" /><figcaption>source: <a href="https://github.com/pingcap/tidb">https://github.com/pingcap/tidb</a></figcaption></figure><p><strong>TiDB Server</strong><br>The TiDB server is stateless. It does not store data and it is for computing only. TiDB is horizontally scalable and provides the unified interface to the outside through the load balancing components such as Linux Virtual Server (LVS), HAProxy, or F5. The responsibilities of TiDB Server are shown as follows.</p><ol><li>Receiving the SQL requests</li><li>Processing the SQL related logics</li><li>Locating the TiKV address for storing and computing data through Placement Driver (PD)</li><li>Exchanging data with TiKV</li><li>Returning the result</li></ol><p><strong>PD Server (Placement Driver)</strong><br>The PD server ensures redundancy by using the Raft consensus algorithm. The Raft leader is responsible for handling all operations, with remaining PD servers available for high availability only. It is highly recommended to deploy PD as an odd number of nodes (more than one as well so that the Raft consensus algorithm will able to run). The responsibilities of TiDB Server are shown as follows.</p><ol><li>Storing the metadata of the cluster such as the regional location of a specific key.</li><li>Scheduling and load balancing regions in the TiKV cluster, including but not limited to data migration and Raft group leader transfer.</li><li>Allocating the transaction ID that is globally unique and monotonically increasing.</li></ol><p><strong>TiKV Server </strong><br>The TiKV server is responsible for storing data. From an external view, TiKV is a distributed transactional Key-Value storage engine and can be seen as a huge distributed ordered Map that is of high performance and reliability. The region is the basic unit to store data. Each Region stores the data for a particular Key Range which is a left-closed and right-open interval from <em>StartKey</em> to <em>EndKey</em>. There are multiple Regions in each TiKV node. TiKV uses the Raft protocol for replication to ensure data consistency and disaster recovery.</p><h3>Difference with MySQL</h3><p>TiDB is an open-source NewSQL database released under the Apache 2.0 License. Because it speaks the MySQL protocol, your existing applications will be able to connect to it using any MySQL connector, and most SQL functionality remains identical (joins, subqueries, transactions, etc.).</p><p><strong>TiDB natively distributes query execution and storage<br></strong>With MySQL, it is common to scale-out via replication. Typically you will have one MySQL master with many slaves, each with a complete copy of the data. Using either application logic or technology like ProxySQL, queries are routed to the appropriate server.</p><p>But TiDB works a little bit differently, query execution is handled via a layer of TiDB servers. Scaling out SQL processing is possible by adding new TiDB servers. The data for tables is automatically sharded into small chunks and distributed among TiKV servers.</p><p><strong>TiDB’s storage engine is RocksDB<br></strong>MySQL’s default storage engine has been InnoDB since 2010. Internally, InnoDB uses a <a href="https://en.wikipedia.org/wiki/B%2B_tree">B+tree</a> data structure, which is similar to what traditional commercial databases use.</p><p>To compare, TiDB uses RocksDB as the storage engine with TiKV. RocksDB has advantages for large datasets because it can compress data more effectively and insert performance does not degrade when indexes can no longer fit in memory.</p><p><strong>TiDB gathers metrics in Prometheus/Grafana</strong><br>Tracking key metrics is an important part of maintaining database health. MySQL centralizes these fast-changing metrics in Performance Schema. Performance Schema is a set of in-memory tables that can be queried via regular SQL queries.</p><p>With TiDB, rather than retaining the metrics inside the server, a strategic choice was made to ship the information to a best-of-breed service. Prometheus+Grafana is a common technology stack among operations teams today, and the included graphs make it easy to create your own or configure thresholds for alarms.</p><p><strong>TiDB handles DDL significantly better<br></strong>TiDB implements online DDL using the <a href="https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/41344.pdf">protocol introduced by the Google F1 paper</a>. In short, DDL changes are broken up into smaller transition stages so they can prevent data corruption scenarios, and the system tolerates an individual node being behind up to one DDL version at a time.</p><p><strong>TiDB is designed for HTAP workloads<br></strong>The MySQL team has traditionally focused its attention on optimizing performance for online transaction processing (OLTP) queries. TiDB is designed to perform well across hybrid transaction/analytical processing (HTAP) queries.</p><h3>Hands-on Experience</h3><p>After using TiDB for approximately one week with the following architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V-uiBoQafOCS6MYMAEIs6Q.png" /></figure><p>Here’s what I got</p><ul><li>MySQL Syntax Related<br>- Cannot add/alter/drop PRIMARY KEY and FOREIGN KEY <br>- Cannot use CREATE TEMPORARY TABLE syntax<br>- The output format EXPLAIN is different<br>For a complete list of TiDB compatibility with MySQL can be seen at the following link [<a href="https://pingcap.com/docs/stable/reference/mysql-compatibility/">here</a>]</li><li>Performance Test by JMeter<br>It was found that TiDB with the above architecture can handle 1000 requests to get some data with 3.6/sec throughput with an average response time of 6 ms</li><li>Performance Test by Sysbench<br>The experiment was carried out to get one data (point select) with several PD servers (1 to 3) obtained the following data<br>- 1 PD : 7741.62 transaction/sec<br>- 2 PD : 8456.82 transaction/sec<br>- 3 PD : 9235.65 transaction/sec<br>So it can be concluded that increasing the number of PD servers can improve the performance of TiDB (scaling-up) but with insignificant numbers</li></ul><p>For more information about TiDB, visit GitHub/official page here</p><ul><li><a href="https://github.com/pingcap/tidb">GitHub - pingcap/tidb: TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. Try AI-powered Chat2Query free at : https://www.pingcap.com/tidb-serverless/</a></li><li><a href="https://pingcap.com/docs/stable/">TiDB Introduction | TiDB Documentation</a></li><li><a href="https://dbdb.io/db/tidb">Database of Databases - TiDB</a></li><li><a href="https://en.wikipedia.org/wiki/TiDB">TiDB</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6056c0f4c36" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Smart is a Neural Network?]]></title>
            <link>https://medium.com/@ferdinand.jason/how-smart-is-a-neural-network-37d26765ef09?source=rss-d63e587b5ea7------2</link>
            <guid isPermaLink="false">https://medium.com/p/37d26765ef09</guid>
            <dc:creator><![CDATA[Ferdinand Jason Gondowijoyo]]></dc:creator>
            <pubDate>Sun, 01 Mar 2020 14:21:19 GMT</pubDate>
            <atom:updated>2020-03-01T14:39:27.696Z</atom:updated>
            <content:encoded><![CDATA[<p>Nowadays, many companies are competing to implement machine learning into their business, like sales forecasting, customer research, data validation, and risk management. The neural network is one of the simple machine learning approaches to solve problems. Here we will discuss how neural networks can be that “smart”.</p><h3>The Idea of how neural network work</h3><p>Neural Networks usually consist of several layers of computational units called neurons, which have connections with other layers. Input data will enter into each layer of the Neural Network and transform the data into output. Each neuron multiplies an initial value by some weight, sums results with other values coming into the same neuron, adjusts the resulting number by the neuron’s bias, and then normalizes the output with an activation function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*NeRo40VwnRLl2UsPKecotA.jpeg" /><figcaption>Illustration of a Neural Network</figcaption></figure><h3>Iterative learning process</h3><p>A key feature of neural networks is an iterative learning process in which records are presented to the network one at a time, and the weights associated with the input values are adjusted each time. During this learning phase, the network trains by adjusting the weights to predict the correct class label of input samples. This process is called forward propagation which is symbolized by the following equation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/218/1*ksCNf-0RRan2pjGNkmJ4aw.gif" /></figure><p>For example, in the classification process, the Neural Network will look for lines (blue lines in the figure below) that can divide the dataset into sections and label the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*Nm1B1jsghKZgf7qiYX5M6Q.jpeg" /><figcaption>Lines that generated by Neural Network to predict OR and XOR Function</figcaption></figure><p>When the network architecture is composed, ready to be trained neural network. Initially, the weight of each node will be selected at random. Then the neural network learning can begin. So, what makes this so special? The answer is the backpropagation algorithm which is the brain of the neural network. Backpropagation short for “backward propagation of errors” is a learning algorithm to reduce the error rate by adjusting its weight based on differences in output and desired targets using <em>gradient descent</em>.</p><p>Gradient descent is an iterative optimization algorithm to find the minimum of a function; in our case, we want to minimize the error function. To find a local minimum of a function using gradient descent, one takes steps proportional to the negative of the gradient of the function at the current point. In this algorithm, we can set the “learning rate”, so we can control our architectural models. Below is the equation of gradient descent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*43evEjxw4nT5na-Sg7_7cQ.gif" /></figure><p>With this simple equation, this architecture can learn with various desired inputs and outputs. The network will process the records in the “training set” one at a time, using the weights and functions in the hidden layers, then compares the resulting outputs against the desired outputs. Then errors will propagated back through the system, causing the system to adjust the weights for application to the next input. This process will be repeated until the weights are tweaked and satisfy us. During the training of a network, the same set of data is processed many times as the connection weights are continually refined.</p><h3>Is that simple?</h3><p>One of the challenges for beginners in learning neural networks is understanding what exactly goes on at each layer. It can be seen in the previous equation there is a formula for calculating the derivative of the equation used at each layer on a neural network. For someone who does not have a strong mathematical background, certainly learning neural networks is difficult. But with the help of technology, scientists and programmers help us abstract neural networks into libraries that we can learn and use.</p><h3>Development of Neural Network</h3><p>By adapting/optimizing the idea of neural networks, scientists are evolving neural networks to a new level that is expected to solve problems in the real world.</p><p><strong>Convolutional Neural Networks (ConvNets)</strong></p><p>ConvNets derive their name from the “convolution” operator. The primary purpose of convolution in the case of a ConvNet is to extract features from the input image. Convolution preserves the spatial relationship between pixels by learning image features using small squares of input data. One of the uses of this algorithm is to identify faces.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*MZhO56JoywtSdvFRxZGWCA.png" /></figure><p><strong>Recurrent Neural Networks</strong></p><p>RNNs can be trained for sequence generation by processing real data sequences one step at a time and predicting what comes next. This allows it to exhibit temporal dynamic behavior. Derived from the feed-forward neural networks, RNNs can use their internal state (memory) to process variable-length sequences of inputs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*2vQMX73KNRKD7vxdJGrzvg.png" /></figure><p>Same as the story of “The Stone Soup” from the pragmatic programmer’s book, from an originally simple backpropagation formula can be optimized, adapted into something big that can help many people. Because many people join in developing it so that it can quickly develop.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37d26765ef09" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Who’s Jerome Polin?]]></title>
            <link>https://medium.com/@ferdinand.jason/whos-jerome-polin-aad4975ac974?source=rss-d63e587b5ea7------2</link>
            <guid isPermaLink="false">https://medium.com/p/aad4975ac974</guid>
            <dc:creator><![CDATA[Ferdinand Jason Gondowijoyo]]></dc:creator>
            <pubDate>Mon, 24 Feb 2020 15:32:56 GMT</pubDate>
            <atom:updated>2020-02-24T15:32:56.209Z</atom:updated>
            <content:encoded><![CDATA[<p>Who doesn’t know about Jerome Polin? The owner of the YouTube account “Nihongo Mantappu” with 2.68M subscribers successfully captured the attention of netizens because of this “gokil” behavior. Also, Jerome is very good at mathematics. He was able to solve difficult math problems.</p><p>The first time I ever met Jerome was when Jerome being the winner of the Mathematics competition in 2014. At that time Jerome was still not as famous as now. Then in 2016, I met Jerome again when participating in the competition ITS, where Jerome won again (as very easy 😆). Later on, around the end of 2017, I found the blogpost about Jerome, which tells about his journey to get a scholarship from Japan. Since then I thought “ah I’m with the same batch with Jerome, but Jerome has a lot of achievement, I have to able to”. Later on around 2018, I found out that Jerome has a YouTube account and becoming a famous person. Then I think to make Jerome my motivation to achieve something. If he can, I can too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*8aiR78MajSqnftbKureQgA.jpeg" /></figure><p>Then, what values (I) can be taken from Jerome?</p><p><strong>Dream as high as possible</strong></p><p>Jerome aspires to study aboard and finally Jerome is able to achieve his goals. The key to success is always being optimistic and praying. That also applies to us, We must always be enthusiastic, optimistic, dedication, always trying and praying to achieving our goals. And don’t forget <em>dream as high as possible, </em>FYI, now Jerome wants to be the Minister of Education in Indonesia.</p><p><strong>Not being shy, communicating and very open-minded</strong></p><p>Maybe this is why Jerome can be very successful with this dream (and his YouTube channel ✌️). Communication is the biggest key to success, where sometimes this still a problem, especially for me, because I&#39;m is the people who shy to communicate their ideas.</p><p><strong>Be King of all Trades, master of all</strong></p><p>Yes, that’s right, “King”. When you see Jerome, good at math, good at speech, good at playing piano, Youtuber, author of a book, maybe he can do anything!. My point is that we must train the talents that God has given to us are not in vain and can be useful or be aspirations to others.</p><p>In fact, I have not been able to implement the values that I have mentioned before, but humans are there to keep learning, they’re always rooms to improve. (Forgive my messy English 😅). Actually, the value that can be obtained from a Jerome is still a lot, but what I write here is that has a big impact on my life. That is my role model, how about you?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aad4975ac974" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gojek Bootcamp Journey (Part II)]]></title>
            <link>https://medium.com/@ferdinand.jason/gojek-bootcamp-journey-part-ii-bf6c34b215e?source=rss-d63e587b5ea7------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf6c34b215e</guid>
            <dc:creator><![CDATA[Ferdinand Jason Gondowijoyo]]></dc:creator>
            <pubDate>Sun, 16 Feb 2020 10:05:01 GMT</pubDate>
            <atom:updated>2020-02-16T10:05:01.591Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi, come back with me, Ferdinand. On this opportunity, I will share the experience and value that I got during the second week on the Gojek pre-bootcamp.</p><p><strong>How to Create Technical User Story</strong></p><p>In this session, we have a special guest, Yudi is the tech-lead at GoPay, who explains in detail and clearly how to create a technical user Story. This technical user story is a derivative of the user story created by the Product Manager.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MngQbKOxemNKHWe84Lqevg.png" /></figure><p><strong>#NgepoinCS</strong></p><p>This time, some of us had the opportunity to visit the Gojek operational office located in Kemang Timur and Landmark Tower. Here I get the part to Landmark Tower. The operational office at Landmark Tower is a “first-layer” handling of customer service. There are tow services available, namely DCU (Driver Care Unit) and CCU (Costumer Care Unit). Besides that, we got the opportunity to “spy” on costumer complaints handled by customer service by telephone. Here we can see how fussy the customer, how innocent the customer, and how negligence the customer. On the other side, customer service, many CS work hard to respond to out complaints (just info, within 10 minutes, CS can receive and resolve 3–5 phone calls), not a few also receive out “scolding” because of mistakes that we sometimes make ourselves. The message we can take from this session is Try to calm down, don’t panic over the problems we face, Ask nicely and politely, and thank those who have helped us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*nVnzrJ6X-6F2CxC3V0sHgg.png" /></figure><p><strong>Speaking Drill</strong></p><p>Just like the previous week, on this opportunity, we tried to level up to level 1, and in the end, all of us leveled up to level 1. Although in the process we found many fallacies in our argument, this is the essence of the learning process, never give up.</p><p><strong>How to Give and Receive Feedback,</strong></p><p>Sometimes some of us are afraid to receive feedback for several reasons such as (the feedback is negative, we have no control over feedback, not in the right place and time) and give feedback for several reasons such as (do not know how to convey correctly, fear of ruin friendship). But one thing we must remember is that if we are given feedback, it means that the people who give us feedback are people who care about us. In delivering feedback it is better to wrap it in the SBI-model. SBI stands for Situation — Behavior — Impact.</p><ol><li>Situation<br>When you’re giving feedback, first define the where and when of the situation you’re referring to. This puts the feedback into context and gives the other person a specific setting as a reference.<br>For example:<br>“During yesterday morning’s team meeting, when you gave your presentation…”</li><li>Behavior<br>Your next step is to describe the specific behaviors that you want to address. This is the most challenging part of the process because you must communicate only the behaviors that you observed directly.<br>For example:<br>“During yesterday morning’s team meeting, when you gave your presentation, you were uncertain about two of the slides and your sales calculations were incorrect.”</li><li>Impact<br>The last step is to use “I” statements to describe how the other person’s action has affected you or others.<br>For example:<br>“During yesterday morning’s team meeting, when you gave your presentation, you were uncertain about two of the slides and your sales calculations were incorrect. I felt embarrassed because the entire board was there. I’m worried that this has affected the reputation of our team.”</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf6c34b215e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[First Week Journey in Gojek]]></title>
            <link>https://medium.com/@ferdinand.jason/first-week-journey-in-gojek-9ab2ad98062f?source=rss-d63e587b5ea7------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ab2ad98062f</guid>
            <dc:creator><![CDATA[Ferdinand Jason Gondowijoyo]]></dc:creator>
            <pubDate>Sun, 09 Feb 2020 09:53:49 GMT</pubDate>
            <atom:updated>2020-02-09T12:51:17.392Z</atom:updated>
            <content:encoded><![CDATA[<h3>Gojek Bootcamp Journey (Part I)</h3><p>Hi!, I am one of the new Product Enginer in Gojek. My journey in becoming a Product Engineer in Gojek, started with a pre-bootcamp session that lasted 3 weeks. In this first week of pre-bootcamp, there are some new and exciting events to follow. For me, this event was very useful in my development, because it is my motivation to be able to speak English well. This part I, will discuss about first week of bootcamp. Next is the session for the first week.</p><p><strong>Orientation</strong></p><p>In this orientation session, we bootcamper are introduced to engineering principles at Gojek, followed by making ruby metric for self learning. Here are the Gojek guiding principles that serve as a great reference point to understand how Gojek think of Engineering:</p><ul><li>Everyone Codes</li><li>Walk the Talk</li><li>Leaders are grown. Not made.</li><li>Pair programming &amp; TDD Work.</li></ul><p><strong>Agile Exercise</strong></p><p>In my opinion, Agile Exercise session is the most fun session of the other session in the first week. Because in this session, other than exploring the agile methodology, we also play Lego to build a fantasy zoo! Sounds fun right?. I think it would be better if the duration of this g̶a̶m̶e̶ session is extended</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qYKj2Et_EddROC2FKS-rHA.jpeg" /><figcaption>Our “Fantasy Zoo” — [Dragon, Giraffe, and baby giraffe in pic, try guess!]</figcaption></figure><p><strong>Speaking Drill</strong></p><p>Drill? Speaking? Basically this session is a simulation to improve speaking skill to convey arguments. The speaking drill is divided into 3 levels, level 0 to 2. Where this session will start at level 0. At level 0, we are asked to speak an argument to our friends for 30 seconds, so that all our friends can get the same argument. Where after all friends get the same arguments, we will level up to to level 1. For me this is a very challenging session, because I am actually a person who is difficult to express opinions or arguments.</p><p><strong>Ruby Checkpoint</strong></p><p>In this session, we have a discussion about the progress of learning Ruby. In addition we also discuss other ways of learning to further explore Ruby language, by rewriting “Battleships” problem into Ruby language. And before this session ends, Mutia and Aida, our “guides”, give us additional tasks for the weekend, which are reading “a lot” books and writing blogs. <br>[Thank you Mutia and Aida, for made a productive weekend for us]</p><p>My impression in the first week at Gojek is that we will always learn and discover new things wherever we are, so that we should adapt quickly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ab2ad98062f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>