<?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 Trimikha Valentius on Medium]]></title>
        <description><![CDATA[Stories by Trimikha Valentius on Medium]]></description>
        <link>https://medium.com/@tvalentius?source=rss-9084a5b1a920------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KXfIi4glAyVbZFlBX3q0YQ.jpeg</url>
            <title>Stories by Trimikha Valentius on Medium</title>
            <link>https://medium.com/@tvalentius?source=rss-9084a5b1a920------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:16:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tvalentius/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[Expanding Your Impact by Contributing Back to the Tech Community]]></title>
            <link>https://medium.com/@tvalentius/expanding-your-impact-by-contributing-back-to-the-tech-community-2a1bf53a5331?source=rss-9084a5b1a920------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a1bf53a5331</guid>
            <category><![CDATA[tech-ecosystems]]></category>
            <category><![CDATA[indonesian-startup]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Trimikha Valentius]]></dc:creator>
            <pubDate>Tue, 12 Mar 2024 13:59:43 GMT</pubDate>
            <atom:updated>2024-03-12T13:59:43.302Z</atom:updated>
            <content:encoded><![CDATA[<p>As someone who received a lot of guidance, best practices, and mentorship within the tech community. My journey has been significantly shaped by experienced professionals willing to share their knowledge</p><p>There are a lot of ways and methods to contribute, however with my background that is more towards engineering/development of the software development process, I would focus on the top 3 that comes to mind on how we can contribute.</p><ul><li>Open source project</li><li>Writing articles/tutorials</li><li>Organizing local meetups</li></ul><h3>Open Source</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sHNytLCzV50C7Yqr" /><figcaption>One of the most famous open source project.</figcaption></figure><p>One of the straightforward contributions you can make is to contribute back to any existing open source project or even start/initiate your own open source project. The rise of public repository services such as Github make it easier for us to contribute to an existing open source project.</p><p>Some people might see this as a daunting task, fear of your code being judged by the public, etc, where in reality it is the most straightforward contribution you can make. Feel you’re not having enough skill to contribute to the code? No problem. Start with adding/modifying existing documentations, fixing bugs, and work towards until you have the self confidence to propose/add features to the OS project itself.</p><p>On top of that, there is a lot of evidence that people who contribute back to open source projects get better job opportunities and visibility of their work. So not only do you have the satisfaction of contributing back to the community, but also having an almost immediate benefit by doing this.</p><h3>Writing tech articles or tutorials</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L68Nm5kPn_hH-aJQ" /><figcaption>Articles written by one of the DevRel from AWS</figcaption></figure><p>Most developers (including myself) learned about new technologies, programming languages, and libraries by reading tech articles. It could range from a tutorial to the results of an experimentation of a new tech implemented in an existing project. Blogging platforms such as Medium, Substack, and Dev.to make it easier for developers to write an article and also helped its discoverability as well.</p><p>It is a shame that there are still a lot of developers out there who focus too much of their time writing codes and not really invest their time writing a note about their creations even if it can be read within 5 minutes. Surprisingly, even a lot of them do not even invest enough time to write an article that is even for an internal team.</p><p>Not only is it beneficial for the community to write an article, it could also improve our writing skills including documentation, post-mortem, or just a well structured note for our own internal tech team to help them understand the decision making process behind the projects that we are working on.</p><h3>Organizing local meetups</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*k2At3L3rLIUpzfui" /><figcaption>Meetups we organized in Bali back in 2017</figcaption></figure><p>Whether you are volunteering to help the current organizers of tech meetups in your city or starting your own. Organizing local meetups could be your best way to contribute back to your local tech community.</p><p>Compared to the previous 2 ways of contributions that I mentioned above, this could be more daunting than those, but could bring huge benefits for your local tech community and yourself. Organizing a local meetup could significantly improve your non-technical skills such as leadership, project management, and communications which are the essential skills that most of the software engineers are lacking.</p><p>Back in 2015, I had a chance to relocate to Bali from Jakarta. I love living and working on this beautiful island. The only thing that I am missing from Jakarta is the vibrant tech community, where we could find any type of dev local meetups every week while visiting the fancy Indonesian tech startup or big tech company who has an office in the capital of Indonesia.</p><p>With a couple of local developers, we decided to initiate a local meetup focusing on discussing the latest trend on Javascript. We pretty much borrowed the idea from the existing local community such as SydJS, BrooklynJS, LondonJS, etc and copied their playbooks. The local community was active until the COVID-19 era hit where unfortunately we were not allowed to do any in-person gatherings at that time.</p><p>Interestingly, leading this community allows me to be connected with the <a href="https://nkeise.medium.com/volunteer-developer-community-organizers-what-motivates-them-405e989b0df2">developer community program initiated by Meta</a> (then Facebook) where they were currently looking to open up a chapter in Bali. I was fortunate to be entrusted to lead the Bali chapter and eventually hired by them to look after the tech ecosystem of Indonesia. It’s proof that from small meetups can come significant impact.</p><p>I made a quick chart on the potential benefits you could get by doing one of the above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/0*4OKSFxo-g0l5PdGB" /><figcaption>Simplified benefits chart on contributing back to tech ecosystem.</figcaption></figure><h3>Closing</h3><p>Starting on the journey of contribution is often met with hesitation and doubt. However, it’s crucial to remember that it is completely ok if it’s not perfect. Starting somewhere and improving incrementally is what matters the most. Whether it’s a pull request to your favorite open-source project, publishing your first article on installing a new shiny framework, or organizing your first local meetup.</p><p>Any other ideas that I might miss on how to contribute back to the tech ecosystem?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a1bf53a5331" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Menggunakan Map, Reduce, Filter di Javascript]]></title>
            <link>https://medium.com/@tvalentius/menggunakan-map-reduce-filter-di-javascript-4aeb1a64c3ba?source=rss-9084a5b1a920------2</link>
            <guid isPermaLink="false">https://medium.com/p/4aeb1a64c3ba</guid>
            <category><![CDATA[arrays]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[bahasa-indonesia]]></category>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[loop]]></category>
            <dc:creator><![CDATA[Trimikha Valentius]]></dc:creator>
            <pubDate>Sat, 16 Jun 2018 13:13:14 GMT</pubDate>
            <atom:updated>2018-06-16T13:18:38.855Z</atom:updated>
            <content:encoded><![CDATA[<p>Sebagai seorang <em>Software Developer</em> kita sering sekali menggunakan <em>array </em>dalam menyimpan dan memanipulasi data, angka, <em>objects</em>, <em>string</em>, dll. Untuk menggunakan <em>array</em> itu sendiri, selama ini kita sering menggunakan perulangan <em>for</em> untuk melakukan perintah di tiap elemen yang ada di <em>array</em> tersebut.</p><p>Pada tahun 2011, Javascript memperkenalkan beberapa fitur yang di ambil dari <em>functional programming</em> yaitu <em>map, reduce</em> dan <em>filter</em> sebagai alternatif dalam merubah elemen di dalam <em>array</em>, mencari akumulasi nilai, atau membuat <em>array</em> baru berdasarkan kondisi yang sudah ditetapkan. Metode ini cukup membantu <em>software developer</em> menulis kode yang lebih simple dan juga membuat kode lebih mudah dibaca.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IZLW4zkMlZpiwRsEgo7brQ.jpeg" /></figure><p><strong>Perulangan Tradisional</strong></p><p>Berikut adalah contoh kode dimana kita menggunakan perulangan (looping) <em>for</em> untuk membuang angka ganjil di dalam suatu array</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/49004233fe101bc0488d159fd5cc7ae4/href">https://medium.com/media/49004233fe101bc0488d159fd5cc7ae4/href</a></iframe><p>Kita bisa melihat kode ini melintasi array dan memasukan elemen (angka) yang habis dibagi 2 (angka genap) ke array yang baru. Untuk memahami kode ini, kita harus melihat 5 hal.</p><ol><li><em>var i = 0</em> (mulai dari sisi kiri array atau dari index 0)</li><li><em>i &lt; array.length</em> (berhenti di sisi kanan array atau index terakhir)</li><li><em>i++</em> (maju 1 index untuk tiap perulangan)</li><li><em>array[i] % 2 === 0</em> (melakukan pengecekan jika nilai dari elemen habis dibagi 2 atau bilangan genap)</li><li><em>arrayBaru.push (array[i])</em> (memasukan elemen kedalam array baru, kita harus memastikan arrayBaru ini sudah ada atau menginisiasikan array ini terlebih dahulu)</li></ol><p>Kita harus mengecek 5 baris kode untuk memahami apa dilakukan oleh kode ini dalam 1 perulangan for</p><p><strong>Pendekatan <em>Functional</em></strong></p><p>Dengan menggunakan fitur bawaan Javascript filter() , kita bisa menulis kode dengan fungsi serupa tapi dengan baris kode yang lebih sedikit.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4472c30ac27a7d33c9a200079acd4724/href">https://medium.com/media/4472c30ac27a7d33c9a200079acd4724/href</a></iframe><p>Lebih simpel dan mudah dimengerti</p><p>mari kita bandingkan dengan kode sebelumnya.</p><ol><li>langkah #1 , #2, #3 tidak diperlukan karena filter() sudah melakukannya secara otomatis</li><li>langkah #4 tetap diperlukan tapi tanpa tambahan if(…)</li><li>langkah #5 , kita tidak perlu lagi memastikan bahwa arrayBaru ini sudah ada karena filter() akan mengembalikan array baru tanpa merubah nilai array yang sudah ada sebelumnya (side-effects)</li></ol><p>Jadi bisa disimpulkan bahwa map, reduce dan filter membuat kode lebih simpel, tanpa side-effects dan lebih mudah dipahami.</p><p>mari kita lihat satu-persatu contoh dari map, reduce, dan filter</p><p><strong><em>map()</em></strong></p><p><strong>Biasa digunakan untuk : </strong>merubah semua elemen di dalam suatu <em>array </em>menjadi elemen dengan nilai yang baru.</p><p><strong>Contoh :</strong> merubah semua bilangan desimal menjadi bilangan biner (basis 10 ke basis 2).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/23d69bb7c358382d2d9911e6d76c9050/href">https://medium.com/media/23d69bb7c358382d2d9911e6d76c9050/href</a></iframe><p><strong>Apa yang dilakukan : </strong>Melintasi <em>array</em> dari kiri ke kanan dan memanggil fungsi <em>callback</em> ke setiap elemen. Setelah semua elemen berhasil dilintasi, fungsi map() mengembalikan array baru dengan elemen-elemen yang baru.</p><pre>array.map( function(element, index, array) {<br>    ...<br>   }, thisArgument);</pre><p><strong>Parameter</strong> :</p><ol><li><em>element</em> (nilai dari elemen)</li><li><em>index</em> (index dari tiap lintasan, dari kiri ke kanan ( 0 ke N ) )</li><li><em>array</em> (array semula yang memanggil fungsi ini)</li><li><em>thisArgument</em> ( Opsional, <em>object</em> yang akan di arahkan sebagai <em>this</em> di dalam fungsi <em>callback</em> )</li></ol><p><strong><em>reduce()</em></strong></p><p><strong>Biasa digunakan untuk : </strong>Mengakumulasikan atau mengurangi nilai berdasarkan elemen di dalam array.</p><p><strong>Contoh : </strong>Menjumlahkan penduduk Bali dari tiap kabupaten/kota pada tahun 2014</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ea3576ee94109aa9e3e72cfa5d1c6a66/href">https://medium.com/media/ea3576ee94109aa9e3e72cfa5d1c6a66/href</a></iframe><p><strong>Apa yang dilakukan : </strong>Mirip seperti <em>map()</em> , fungsi ini melintasi <em>array</em> dari kiri ke kanan dan memanggil fungsi <em>callback</em> ke setiap elemen. Nilai yang di kembalikan adalah berupa akumulasi nilai melalui tiap <em>callback</em>. Setelah semua elemen dilintasi, <em>reduce()</em> akan mengembalikan nilai akumulasi.</p><pre>array.reduce(function(value, element, index, array) {<br> …<br> }, initialValue);</pre><p>Parameter :</p><ol><li><em>value</em> (nilai yang di akumulasikan pada tiap callback)</li><li><em>element</em> (nilai dari element)</li><li><em>index</em> (index dari tiap lintasan, dari kiri ke kanan ( 0 ke N ) )</li><li><em>array</em> (array semula yang memanggil fungsi ini)</li><li><em>initialValue</em> ( Opsional, nilai yang digunakan sebagai nilai awal di callback yang pertama (index 0) )</li></ol><p><strong><em>filter()</em></strong></p><p><strong>Biasa digunakan untuk : </strong>Membuang elemen dalam <em>array</em> berdasarkan kondisi yang ditetapkan.</p><p><strong>Contoh : </strong>membuang elemen yang berupa angka ganjil</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4472c30ac27a7d33c9a200079acd4724/href">https://medium.com/media/4472c30ac27a7d33c9a200079acd4724/href</a></iframe><p><strong>Apa yang dilakukan : </strong>Mirip seperti <em>map()</em> , fungsi ini melintasi <em>array</em> dari kiri ke kanan dan memanggil fungsi <em>callback</em> ke setiap elemen. Nilai yang dikembalikan harus dalam bentuk <em>boolean</em> untuk menentukan apakah elemen tersebut akan di disimpan atau dibuang. Setelah semua elemen dilintasi, <em>filter()</em> akan mengembalikan <em>array</em> baru dengan semua elemen yang mengembalikan nilai <em>true</em>.</p><p>Parameter :</p><p>Paramater sama dengan fungsi <em>map()</em></p><p><strong>Kekurangan</strong></p><p><em>map, reduce</em>, dan <em>filter</em> bukanlah <em>silver bullet</em> dalam melakukan perulangan, beberapa kekurangan nya adalah sebagai berikut.</p><ul><li><strong><em>Performance</em></strong><br>Dari sisi performance , <em>map</em>, <em>reduce</em>, dan <em>filter</em> masih dibawah perulangan <em>for</em>. Disarankan untuk menggunakan<em> for</em> ketika kira harus memproses <em>array</em> dengan elemen yang cukup banyak (contoh : lebih dari 1000 elemen)</li><li><strong><em>Perulangan kompleks</em></strong><br>Masih lebih cocok menggunakan <em>for</em> dalam perulangan yang kompleks, misalkan harus menghentikan ( <em>break</em> ) proses perulangan ketika suatu kondisi tercapai.</li></ul><p><strong>Penutup</strong></p><p>Dalam postingan kali ini kita membahas tentang penggunaan <em>map()</em>, <em>reduce()</em>, dan <em>filter()</em> untuk menulis kode yang lebih mudah dipahami dan mengurangi <em>side-effects</em> dalam software yang kita tulis. semoga artikel ini bermanfaat dan silahkan tinggalkan komentar dibawah ini.</p><p>“<em>Artikel ini sangat terinspirasi oleh artikel </em><a href="https://danmartensen.svbtle.com/javascripts-map-reduce-and-filter"><em>https://danmartensen.svbtle.com/javascripts-map-reduce-and-filter</em></a><em> yang ditulis oleh Dan Martensen “</em></p><p>Map : <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map</a></p><p>Reduce : <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce</a></p><p>Filter : <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter</a></p><p>Gambar : <a href="https://unsplash.com/photos/u2d0BPZFXOY">https://unsplash.com/photos/u2d0BPZFXOY</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4aeb1a64c3ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>