<?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 Terresa Alicia on Medium]]></title>
        <description><![CDATA[Stories by Terresa Alicia on Medium]]></description>
        <link>https://medium.com/@terresaalicia12?source=rss-320b1b763b39------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*gGnf3uZnYu7d0Fa5GuagFg.jpeg</url>
            <title>Stories by Terresa Alicia on Medium</title>
            <link>https://medium.com/@terresaalicia12?source=rss-320b1b763b39------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:00:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@terresaalicia12/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[Wis Ngumbe Rung?]]></title>
            <link>https://medium.com/@terresaalicia12/wis-ngumbe-rung-408b0609feb9?source=rss-320b1b763b39------2</link>
            <guid isPermaLink="false">https://medium.com/p/408b0609feb9</guid>
            <dc:creator><![CDATA[Terresa Alicia]]></dc:creator>
            <pubDate>Sat, 05 Dec 2026 10:57:48 GMT</pubDate>
            <atom:updated>2026-12-05T10:57:48.784Z</atom:updated>
            <content:encoded><![CDATA[<p>Siki lagi weekend toh? Which is dina Setu. Kesel kan 5 dina kerja, tapi ana wektu prei nek ora go ngaso ya mangkat lemburan. Alhamdulillah, rezeki yo ra?</p><p>Tek ngirup nafas sit, fiuhhh ok ok let’s mulai!</p><p>Jane ra tau tau sih nyong nulis kek kie, tapi lagi pengen bae haha. Ternyata nyong bisa survive ya selama 2 taun kie neng Korea. Akeh banget sing nyon gsinauni, munggah mudune, kepriwe carane mikir karo nyikapi suasana. Apa maning neng kene beda sekabeh-kabehane, ya emang sih ana sing pada. Tapi kue sebagian kecil dari sing beda. Neng kene kerja serba cepet, pace e pokoke beda e ra eling karo pas nyong kerja seurung-urunge. Tapi, nyong seneng jujur, karena dadi entuk target dan juga waktu lebih efisien. Nek wis balik kerja, ya wis.</p><p>Nyong ra reti bakal nganti kapan neng kene. Tapi nek suatu hari nanti nyon gentuk opportunity sing luwih kat neng kene, baik dari segi lingkungane, wong-wonge, nyong bakal tak angkati. Nyong iseh terus berusaha. Ben aben ya Alloh, pasti nyong bisa. Nyong ra arep membiarkan mimpi ini padam. Esih akeh kekarepan, impen sing nyong pengen gapai dan nyong pengen lakoni, tentu karo awak sing sehat walafiat tanpa kehilangan, tanpa kesedihan.</p><p>Nyong ngerti sih, kabeh butuh wektu dan ra instan. Kabeh butuh proses. Siki lagi tek lakoni prosese. Nyong yakin Gusti Alloh mboten sare. Gusti Alloh ngertos opo sing dirasake hamba-Ne, sing apik go hamba-Ne. Dadio, nek arep ana dalan anyar, sinau sing temenan, ben kebuka dalane. Aja lali nyuwun donga lan restu meng wongtua utamae meng mamake. Nyuwun ridhoe, insyaAllah pasti kelakon. Apa sing lagi siki dilakoni juga salah satu dongane. Siki donga maning lan terus semangat, aja nyerah, kie tentang wektu sing pas, enteni karo tetap sinau, pasti kasile nyusul sing terbaik. Semangat para pejuang mimpi! Nyong yakin dewek pasti bisa! ~^^</p><p>Psssstttt! Ngomong apa sih jane jan jan</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=408b0609feb9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Do I Track My Day and Future Plan?]]></title>
            <link>https://medium.com/@terresaalicia12/how-do-i-track-my-day-and-future-plan-f0266bf1d70b?source=rss-320b1b763b39------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0266bf1d70b</guid>
            <category><![CDATA[to-do-list]]></category>
            <category><![CDATA[habits]]></category>
            <category><![CDATA[time-management]]></category>
            <category><![CDATA[management]]></category>
            <dc:creator><![CDATA[Terresa Alicia]]></dc:creator>
            <pubDate>Mon, 16 Nov 2026 05:34:13 GMT</pubDate>
            <atom:updated>2026-11-16T05:34:13.026Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yWrf-iEn1YmLLXjWyv5irQ.jpeg" /></figure><p>Hi, nice people!~^^ I want to share about “how do I track my day and future plan?” Pssstttt, I try to become virtual assistant one day xixixi :D, so become I can assist someone, I should to manage myself first :D</p><p>Okay, sometimes we feel like our whole day is disorganized. There are many activities that should to do in 1 (one) day only or there are future task, but it could be forget because a lot of tasks is coming right? Hmm, alright now I’ll show you, how do I manage it and it’s being effective on me since 2021.</p><p>Actually, I’ve tried many way and tools (software and physical tool), I will break it down into which category or where are you being in.</p><ol><li><strong>Sticky Notes Paper</strong></li></ol><p>When I want to track my day and habits about what I’ll to do at Home, I’ll use sticky notes paper or if the task is so many details I’ll write it down into my book and make it like to do list view, so there’s a checkbox and beside that is a task that I want to do, the title for each day is the date, month, and year. It’s enough, really.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1n4-HgvEh16pXh8kza-Lyg.jpeg" /><figcaption>Example of To Do List I write on Sticky Notes Paper</figcaption></figure><p>You can arrange it with consider the priority (P1-P4) or if it’s take a long time, just write it down about what you’ll to do.</p><p><strong>2. </strong><a href="https://keep.google.com/"><strong>Google Keep</strong></a></p><p>Google Keep is a free notes taking app by Google. It’s super easy and one of the interesting is you can real-time collaboration with the person you want to share. The type of notes can be various such as a text, new list (checkbox), new draw, or even new image. In 1 note, you can put a draw real-time with your friend, an image, and of course the text you write together. Once again, it’s FREE! You can use it on your browser, your mobile application (download it on Play Store). Once you installed on your phone, you can make a widget and you can scroll up-down the notes without open the app. Say what? Yashh! Cetasss! :D I super duper like it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*ae7ATUyIcoS_J3gFOqdAOw.jpeg" /><figcaption>3 Types of Google Keep Widgets</figcaption></figure><p><strong>3. Whiteboard</strong></p><p>Yes, whiteboard. I use a black marker to write it on whiteboard. Sometimes I make it like a to do list view. Sometimes I divided it into 4 quadrant and apply Eisenhower Matrix. But to use it, we should to think for a while to consider which one task is important and urgent (Q1) and other options (Q2-Q4).</p><p>Q1: urgent and important, do it now, it’s relate when you’ve a deadline</p><p>Q2: not urgent but important, you can do it later, or it’s look like a scheduled task</p><p>Q3: urgent but not important, you can delegate the task to others</p><p>Q4: not urgent and not important, you can delete the task on your activities, because it can be your distraction</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A5sDJT8w0s-mw-jzWMB6MA.jpeg" /><figcaption>Eisenhower Matrix</figcaption></figure><p>4. <strong>Calendar 📆</strong></p><p>Yuhuuu, it is a physical calendar. On each column at calendar section, I’ll write what I’ll do during 1 month or if there’s any agenda that upcoming later and I know the date, I’ll put it down, it helps me for do not forget the task :D. Just write it down.</p><p>Still on calendar, but now it calendar software (<a href="https://calendar.google.com/">Google Calendar</a>) by Google. Here is the same with physical calendar, but I can do a lot of things. One of the important is, when I want to remind someone whether is about a promise, for each year someone’s birthday 🎂, to do list that run regularly, or invite someone to have a call in future date. Because it’s a software and connected with Google account, I can track it on my phone also on my browser, so easy to update and customize the agenda, because it has various of color, remind time and day, and other details to make it more informative.</p><p>Okay, that’s all that I used for my daily to track my day or future plan. I hope it can be reference for you that needs to track your habit, your day, and your future plan. For me, it’s helpful enough~^^ I start it before sleep and sometimes add a new task after wake up or if I get new task, depends on the situation and condition.</p><p>Thank you for read until finished yuhuuu, cetasss ~^^ keep smile and drink your mineral water~ stay healthy and grateful~</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0266bf1d70b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop Overthinking. It’s Hurt You.]]></title>
            <link>https://medium.com/@terresaalicia12/stop-overthinking-its-hurt-you-52778a114da7?source=rss-320b1b763b39------2</link>
            <guid isPermaLink="false">https://medium.com/p/52778a114da7</guid>
            <category><![CDATA[stop-overthinking]]></category>
            <dc:creator><![CDATA[Terresa Alicia]]></dc:creator>
            <pubDate>Sun, 15 Nov 2026 00:07:43 GMT</pubDate>
            <atom:updated>2026-11-15T00:07:43.003Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Disclaimer: this article is written along with my religion. I’m sorry if maybe make you not uncomfortable with this. I write this because this morning I felt like I was overthinking and one of the way that can heal it, is with write what our mind think. :)</em></p><p>Breathe for a while, take a deep breathe, do it 3–5 times to heal our mind. I know, there are many things that come to our life. Sometimes, bad and good things come in the same time or which one is come first such as good things come first then something bad come or it happens backwards. But there will be always 2, good and bad. Now, we open Surah Ash-Sharh 94:5–6.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H2HV5PVNBEdAkz1MlpOLwA.png" /><figcaption>Surah Ash-Sharh 94:5–6</figcaption></figure><p>It reminds us about “with”, that always come together. I means, it’s already written as what Allah SWT said.</p><p>Everything happens for a reason and our destiny is already written before we come in this world. Sometimes we confused about what will happen for the next, like the next day, next week, next month, or next year. Even we don’t know, that maybe some a big good news comes and every bad things will gone, like your life can change in only 1 night. Okay, we have a plan, we create a plan, back up plan (a-z plan), but remember Allah SWT is a good planner.</p><p>So, because of this reason, just do your best. Best at work as your responsibility to serve best to your job and company. Like, the boss hired us, and they give us “money” and others benefits. What our boss wants? Your skill that can make the company have a good revenue and support the company activity. So it’s look like symbiosis mutualism, like a deal with good transaction. Although we know, everything isn’t good smoothly. But, I believe, at least it trains us to become level up, better rather than yesterday. There will be a wisdom even the bad things happens.</p><p>Don’t regret the past, do your best now, don’t worry about the future.</p><p>Alhamdulillah, after I write it, I feel better and not overthinking again. Actually, I don’t want to overthinking. But although I don’t want it, while in my free time, my brain think a lot. So, I tried to write this to make my mind feel better. Thanks for read, take a good things, skip the bad things.</p><p>Have a good weekend ~^^</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52778a114da7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Basic API CRUD (Go)]]></title>
            <link>https://medium.com/@terresaalicia12/basic-api-crud-go-b9ee8b81eebf?source=rss-320b1b763b39------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9ee8b81eebf</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[crud]]></category>
            <dc:creator><![CDATA[Terresa Alicia]]></dc:creator>
            <pubDate>Sat, 28 Feb 2026 16:40:25 GMT</pubDate>
            <atom:updated>2026-02-28T16:42:26.311Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*opvQEt1cvVSed7odRcubPw.jpeg" /></figure><p>Backend Foundation (Go API)</p><ul><li>Setup Go project</li><li>Create GET /ping</li><li>Create GET /tasks</li><li>Create POST /tasks</li><li>Create DELETE /tasks/:id</li><li>Refactor struct response JSON</li><li>Testing all the endpoint using <a href="https://www.postman.com/">Postman</a></li></ul><p>Let’s deep dive in together!</p><p><strong>Setup Go project</strong></p><p>Before we start to writing the code, we need to initialize the project first (environment setup).</p><ul><li><a href="https://go.dev/doc/manage-install">Go installation</a></li><li>Create a directory mkdir go-tasks-api</li><li>Open your directory cd go-tasks-api</li><li>Initialize the modul by running go mod init go-tasks-api , this creates a go.mod file to manage your dependencies</li><li>Create a file named main.go for the entry point</li><li>We’ll use Chi for separate the GET and POST method. It will make the code readable and best practice for API used.</li></ul><p><a href="https://github.com/go-chi/chi"><strong>Install Chi</strong></a></p><pre>go get -u github.com/go-chi/chi/v5</pre><p>After we setup the environment, now we will continue to get a server running and responding to a simple request. You can put this code into your main.go file (starter, will be updated till the finish writing ^^~):</p><pre>package main<br><br>import (<br> &quot;encoding/json&quot;<br> &quot;net/http&quot;<br> &quot;github.com/go-chi/chi/v5&quot;<br> &quot;github.com/go-chi/chi/v5/middleware&quot;<br>)<br><br>func main() {<br> r := chi.NewRouter()<br> r.Use(middleware.Logger)<br><br> r.Get(&quot;/ping&quot;, pingHandler)<br> r.Get(&quot;/tasks&quot;, getTasks)<br> r.Get(&quot;/tasks&quot;, createTasks)<br> r.Delete(&quot;/tasks/{id}&quot;, deleteTasks)<br><br> println(&quot;Server running on: 8080...&quot;)<br> http.ListenAndServe(&quot;:8080&quot;, r)<br>}<br><br>func pingHandler(w http.ResponseWriter, r *http.Request) {<br> w.Header().Set(&quot;Content-Type&quot;, &quot;application/json&quot;)<br> json.NewEncoder(w).Encode(map[string]string{&quot;message&quot;: &quot;pong&quot;})<br>}</pre><p>To execute the project in your terminal, you can run go run main.go then visit localhost:8080/ping in your browser. The result will show:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*pj8d6HKPp99xYp52y1aP2Q.png" /></figure><p><strong>Defining the Model (Refactoring Structs)</strong></p><p>In Go, we use <strong>struct tags </strong>to tell the language how to convert Go variables into JSON keys. You can add this code too into your main.go file:</p><pre>type Task struct {<br> ID      string `json:&quot;id&quot;`<br> Title   string `json:&quot;title&quot;`<br> Content string `json:&quot;content&quot;`<br>}<br><br>var tasks = []Task{<br> {ID: &quot;1&quot;, Title: &quot;Learn Go&quot;, Content: &quot;Finish the Basic API CRUD.&quot;},<br>}</pre><p>To keep this simple for a foundation project, we will use a global slice to store tasks. In a real app, this would be a database.</p><p><strong>GET /tasks (fetch all)</strong></p><pre>func getTasks(w http.ResponseWriter, r *http.Request) {<br> w.Header().Set(&quot;Content-Type&quot;, &quot;application/json&quot;)<br> json.NewEncoder(w).Encode((tasks))<br>}</pre><p><strong>POST /tasks (create)</strong></p><pre><br>func createTasks(w http.ResponseWriter, r *http.Request) {<br>    var newTask Task<br>    if err := json.NewDecoder(r.Body).Decode(&amp;newTask); err != nil {<br>        http.Error(w, &quot;Invalid JSON input&quot;, http.StatusBadRequest)<br>  return<br>    }<br> <br>    tasks = append(tasks, newTask)<br>    w.Header().Set(&quot;Content-Type&quot;, &quot;application/json&quot;) <br>    w.WriteHeader(http.StatusCreated)<br>    json.NewEncoder(w).Encode(newTask)<br>}</pre><p><strong>DELETE /tasks/:id</strong></p><pre>func deleteTasks(w http.ResponseWriter, r *http.Request) {<br> id := chi.URLParam(r, &quot;id&quot;)<br> for i, t := range tasks {<br>  if t.ID == id {<br>   tasks = append(tasks[:i], tasks[i+1:]...)<br>   w.WriteHeader(http.StatusOK)<br><br>   response := map[string]string{<br>    &quot;message&quot;: &quot;Task with ID &quot; + id + &quot; has been deleted successfully.&quot;,<br>   }<br>   json.NewEncoder(w).Encode(response)<br>   return<br>  }<br> }<br> http.Error(w, &quot;Task not found&quot;, http.StatusNotFound)<br>}</pre><p>We’ve already create the GET, POST, and DELETE methods. Now, we’ll testing it with Postman. Once your server is running go run main.go , open Postman app and check it:</p><p><em>Wait, how do I run this, Miss? Alright! You can open your Postman, then create a new collection, input the collection name (me) -&gt; </em><em>go-tasks-api then you’ll see the </em><em>add a request blue link word and click it. The default request is GET method.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*l-xInUxAswPBW3acn4jYZA.png" /></figure><p><em>If you want to add another request, you can click the three dots below, and choose Add Request then select whatever request you want to add:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/355/1*Iv2N9bdr99_yYTgludm5Qw.png" /></figure><p><em>Reminder!</em></p><p><em>If the response still </em><em>404 Not Found , you can restart your server by typing on the terminal </em><em>go run main.go and enter again the each endpoint you want to access.</em></p><ul><li><strong>GET </strong>localhost:8080/tasks , it should return your initial list.<br>- before you send it, you should to add this code into previous code in func main():<br>r.Get(“/tasks”, getTasks)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l-89wZ856N4bos9Ra4R4dA.png" /></figure><p><em>If you want to save the request method, you can click the button Save on the top right side.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*X49ekUpITz0gH_zeSt2vVg.png" /><figcaption>response on GET /tasks</figcaption></figure><ul><li><strong>POST </strong>localhost:8080/tasks <br>- set body to raw and type JSON <br>- input {&quot;id&quot;: “2”, “title”: “Buy Water”, “content”: “Need 2L water”} <br>- before you send it, you should to add this code into previous code in func main():<br>r.Post(“/tasks”, createTasks)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M8jjAaOmKSR8IrbkxaZ7zg.png" /></figure><ul><li><strong>DELETE </strong>localhost:8080/tasks/2 , it should return a 200 OKstatus and message delete success confirmation on your response body.<br>- before you send it, you should to add this code into previous code in func main():<br>r.Delete(“/tasks/{id}”, deleteTasks)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KVeBEacu3hRuSoqJS6ZGZw.png" /></figure><p>Source code (full):</p><pre>package main<br><br>import (<br> &quot;encoding/json&quot;<br> &quot;github.com/go-chi/chi/v5&quot;<br> &quot;github.com/go-chi/chi/v5/middleware&quot;<br> &quot;net/http&quot;<br>)<br><br>func main() {<br> r := chi.NewRouter()<br> r.Use(middleware.Logger)<br><br> r.Get(&quot;/ping&quot;, pingHandler)<br> r.Get(&quot;/tasks&quot;, getTasks)<br> r.Post(&quot;/tasks&quot;, createTasks)<br> r.Delete(&quot;/tasks/{id}&quot;, deleteTasks)<br><br> println(&quot;Server running on: 8080...&quot;)<br> http.ListenAndServe(&quot;:8080&quot;, r)<br>}<br><br>func pingHandler(w http.ResponseWriter, r *http.Request) {<br> w.Header().Set(&quot;Content-Type&quot;, &quot;application/json&quot;)<br> json.NewEncoder(w).Encode(map[string]string{&quot;message&quot;: &quot;pong&quot;})<br>}<br><br>type Task struct {<br> ID      string `json:&quot;id&quot;`<br> Title   string `json:&quot;title&quot;`<br> Content string `json:&quot;content&quot;`<br>}<br><br>var tasks = []Task{<br> {ID: &quot;1&quot;, Title: &quot;Learn Go&quot;, Content: &quot;Finish the Basic API CRUD.&quot;},<br>}<br><br>func getTasks(w http.ResponseWriter, r *http.Request) {<br> w.Header().Set(&quot;Content-Type&quot;, &quot;application/json&quot;)<br> json.NewEncoder(w).Encode((tasks))<br>}<br><br>func createTasks(w http.ResponseWriter, r *http.Request) {<br> var newTask Task<br> if err := json.NewDecoder(r.Body).Decode(&amp;newTask); err != nil {<br>  http.Error(w, &quot;Invalid JSON input&quot;, http.StatusBadRequest)<br>  return<br> }<br><br> tasks = append(tasks, newTask)<br> w.Header().Set(&quot;Content-Type&quot;, &quot;application/json&quot;)<br> w.WriteHeader(http.StatusCreated)<br> json.NewEncoder(w).Encode(newTask)<br>}<br><br>func deleteTasks(w http.ResponseWriter, r *http.Request) {<br> id := chi.URLParam(r, &quot;id&quot;)<br> for i, t := range tasks {<br>  if t.ID == id {<br>   tasks = append(tasks[:i], tasks[i+1:]...)<br>   w.WriteHeader(http.StatusOK)<br><br>   response := map[string]string{<br>    &quot;message&quot;: &quot;Task with ID &quot; + id + &quot; has been deleted successfully.&quot;,<br>   }<br>   json.NewEncoder(w).Encode(response)<br>   return<br>  }<br> }<br> http.Error(w, &quot;Task not found&quot;, http.StatusNotFound)<br>}</pre><p>You do your best, good job! We created and learned some method that improve our skill. Thank you for working together, bestie!</p><p>Congratulations! We’ve done! Have a good day and see you again~^^</p><p>Don’t forget to smile, grateful, and drink water. Stay healthy!</p><p><em>If there’s any recommendation, advice, and question. Just type below in the comment section. ^^~</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9ee8b81eebf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unnecessary Re-render on React Plus Optimalization!]]></title>
            <link>https://medium.com/@terresaalicia12/unnecessary-re-render-on-react-plus-optimalization-f8ebb8a02148?source=rss-320b1b763b39------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8ebb8a02148</guid>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Terresa Alicia]]></dc:creator>
            <pubDate>Wed, 30 Jul 2025 14:45:16 GMT</pubDate>
            <atom:updated>2025-07-30T14:45:16.757Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LPfTV8hf0GhyEx1Bg-DxXw.png" /></figure><h3><strong>React `memo` and Prevent Unnecessary “Render”</strong></h3><p>Have you ever felt that your React application feels a little slow, especially when there are many components displayed on the screen? Or maybe you see “render” components that happen constantly, when nothing seems to change? If so, you’re not alone! This is a common problem in React development known as <em>“unnecessary re-renders.”</em> But don’t worry, React has a solution to this case, here we go with React.memo.</p><p>Let’s look at the code to understand how React.memo works and why <strong>unnecessary renderings</strong> can be a <strong>problem</strong>.</p><p>In the React application, when the <em>state </em>or <em>props </em>of a component changes, React will automatically “<em>render</em>” that component. This is React’s core mechanism to keep the UI <em>up-to-date.</em> However, problems arise when child components are re-rendered, whereas their own <em>props</em> or <em>state</em> do not change. This is what we call “<strong>unnecessary re-render.</strong>”</p><h3><strong>Why is “Unnecessary Re-renders” such a problem?</strong></h3><p>Every time a component is rendered, React needs to do some work:</p><ul><li>Virtual DOM Reconciliation compares the previous UI snapshot with the new one.</li><li>If there is a difference, React will update the actual DOM in the browser.</li></ul><p>Although the React is very efficient, if there are too many unnecessary renderings, especially in complex or numerous components, this can lead to significant performance degradation. Users may experience unresponsive UI or “<em>jankiness</em>.”</p><h3><strong>Let’s Talk About React.memo</strong></h3><p>This is the time for React.memo to shine! Let’s consider two components in this code:</p><p>CardComponent</p><pre>function CardComponent() {<br>  console.log(&quot;renderCardComponent&quot;);<br>  return (<br>    &lt;div&gt;<br>      &lt;span&gt;Card&lt;/span&gt;<br>    &lt;/div&gt;<br>  );<br>}</pre><p>OptimizeCardComponent</p><pre>const OptimizeCardComponent = memo(function OptimizeCardComponent() {<br>  console.log(&quot;renderOptimizeCardComponent&quot;);<br>  return (<br>    &lt;div&gt;<br>      &lt;span&gt;Card&lt;/span&gt;<br>    &lt;/div&gt;<br>  );<br>});</pre><p>Let’s breakdown it together ~</p><p><strong>CardComponent</strong></p><p>This is a regular functional component. Whenever the state in the App component (e.g. counter or userInput) changes, CardComponent will be re-rendered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AEi5h4goNX9CogOCglgOEA.png" /></figure><p>We can see on the console.log(“renderCardComponent”) appear on the console every time we click a button or type in the input.</p><p><strong>OptimizeCardComponent</strong></p><p>Note how this component is wrapped with memo of React</p><pre>(const OptimizeCardComponent = memo (OptimizeCardComponent() function) { … });) </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6mxxitAi1VFlo4DdFicPOA.png" /></figure><p>This is the <strong><em>difference</em></strong>.</p><h3><strong>What is </strong><strong>React.memo doing?</strong></h3><p>React.memo is the <em>Higher-Order Component (HOC)</em> which “<strong><em>remember</em></strong>” the last render result of a component. If the props given to a memo-modified component are the same as the previous props, React will skip the renderer process and simply use the stored result of the last renderer. It’s like saving “<em>cache</em>” for our components!</p><p>In the example above, since OptimizeCardComponent does not accept any props, React will check for any changes. Because it does not exist, OptimizeCardComponent will not be re-rendered when the counter or userInput in the App changes. We will notice that console.log (“renderOptimizeCardComponent”) only appears once, i.e. in the initial rendering of the application.</p><h3><strong>When to Use React.memo?</strong></h3><p>React.memo is <strong>most effective</strong> for these situations:</p><ol><li>Memos are designed specifically for <strong>functional components</strong>. For class components, we can use PureComponent.</li><li>If we have <strong>frequently re-rendered components,</strong> but the props rarely change, memos can be very helpful.</li><li>If the “<em>render</em>” process involves many computations or complex UI, memos can save a lot of time and resources.</li></ol><p>However, it is also important <strong>not to overuse memos.</strong> Why? Because memos themselves require a little overhead to do comparison props. If our components are very simple and rarely re-rendered, the overhead of memos may be greater than the benefits.</p><p>Finally, understanding and addressing <strong><em>unnecessary re-renders</em></strong> is an <strong>important step</strong> in building high-performance React applications. With React.memo, we have powerful tools to optimize our functional components, ensuring that they are only renders when absolutely necessary. Remember to use it wisely, focus on the components that need optimization the most, and feel the difference in your application!</p><h3>Note:</h3><p>If you used React 19, you can enable React Compiler to automatically get the same result, <a href="https://react.dev/learn/react-compiler/introduction">see more</a>.</p><p>Thank You ~</p><p>Don’t forget to smile with your code :) ^^</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8ebb8a02148" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 2 Naming Variables — JavaScript]]></title>
            <link>https://medium.com/@terresaalicia12/part-2-naming-variables-javascript-f09350bf81ea?source=rss-320b1b763b39------2</link>
            <guid isPermaLink="false">https://medium.com/p/f09350bf81ea</guid>
            <dc:creator><![CDATA[Terresa Alicia]]></dc:creator>
            <pubDate>Mon, 23 Jun 2025 01:05:07 GMT</pubDate>
            <atom:updated>2025-06-23T02:05:35.578Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Part 2 Naming Variables — JavaScript</strong></h3><p>Okayy yuk next bahas tentang <strong>Naming Variables ~</strong></p><p>Jadi ada 2 ketentuan penamaan variabel di JavaScript:</p><ol><li>Nama variabel hanya terdiri dari huruf, angka, atau simbol ($ dan _).</li><li>Karakter pertama bukanlah sebuah angka.</li></ol><p>Contoh penamaan variabel yang valid:</p><p>let name;</p><p>let userData;</p><p>let data123;</p><p>Ketika nama variabel memiliki beberapa kata, jenis penulisan yang biasa digunakan ialah camelCase (awal kata huruf biasa, kata berikutnya menggunakan huruf kapital).</p><p>Seperti yang disebutkan di atas, simbol yang bisa digunakan untuk penamaan variabel adalah dollar $ dan <em>underscore </em><em>_ .</em></p><p>Contoh:</p><p>let $ = 3;</p><p>let _ = 0;</p><p>============================================================</p><p>Nah daritadi kan contoh yang valid ya, sekarang ini kita akan lihat versi yang ga validnya:</p><p>let 4a; // ga valid karena diawali dengan angka</p><p>let user-name; // ga valid karena ada simbol dash yang gabisa digunakan untuk penamaan variabel</p><p>============================================================</p><p>Oiya, variabel dengan nama alpukat dan ALPUKAT itu adalah 2 jenis variabel yang berbeda lho, walaupun tulisannya sama tetapi stylenya beda, yang satu lowercase dan yang satunya capslock.</p><p>Lanjuttt, ada ga sih variabel yang namainnya pake bahasa asing? Ada dong dan bisa aja, tapi kurang direkomendasikan karena ada kesepakatan bahwa untuk penamaan variabel adalah menggunakan Bahasa Inggris. Karena apa? Karena agar orang dari negara lain bisa membaca kode kita ❤.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f09350bf81ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 1 Variabels — JavaScript]]></title>
            <link>https://medium.com/@terresaalicia12/part-1-variabels-javascript-0b5c49fac81a?source=rss-320b1b763b39------2</link>
            <guid isPermaLink="false">https://medium.com/p/0b5c49fac81a</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Terresa Alicia]]></dc:creator>
            <pubDate>Tue, 17 Jun 2025 12:43:30 GMT</pubDate>
            <atom:updated>2025-06-17T12:43:30.979Z</atom:updated>
            <content:encoded><![CDATA[<h3>Part 1 Variabels — JavaScript</h3><p>Actually I want to deep learning at React, but the first roadmap I got from <a href="http://roadmap.sh/">roadmap.s</a>h is make sure to learn the “Beginner” topics of the JavaScript roadmap. Aha! I got it, it will help me to understand the detail and concept about the fundamental. So, yeah I followed it and here I just want to recall what I learned. The source is from the roadmap and others just followed on it. Ummm, I will explain it on Bahasa Indonesia or maybe mix it :3</p><p><strong>A Variables</strong></p><p>Variabel itu tuh penyimpanan nama untuk sebuah data, variabel bisa digunakan untuk menyimpan data barang, data pengguna atau pun data lainnya.</p><p>Untuk membuat sebuah variabel di JavaScript , bisa menggunakan keyword let , contohnya waktu kita membuat sebuah statement (statement dalam kata lain bisa disebut sebagai deklarasi/declare). Yuk buat variabel dengan nama address :</p><p>let address;</p><p>Hurray! Sekarang udh bisa namain sebuah variabel nih :D. Tapiii, variabelnya masih kosongan :( terus biar keisi gimana dong? Jadii, kalau mau isi data ke sebuah variabel, kita bisa gunain operator = (sama dengan). Contohnya:</p><p>let address = &#39;Indonesia&#39;;</p><p>Nah sekarang variabel address sudah memiliki nilai/data yaitu Indonesia . Variabel address ini sekarang memiliki data yang bertipe data String.</p><p>PS: Kalau kalian coba di VSCode bisa aja langsung aktifin terminalnya dan jalanin codenya dengan command/perintah node variable.js (kalau nama filenya variabel.js yahh, jadi variable.js ini bisa disesuaikan dengan penamaan file kalian ^^).</p><p>Oiya, sebelum running terminalnya, pastikan kalian udah nambahin console.log(address) supaya nanti bisa keprint/kecetak di terminal, berikut kode lengkapnya:</p><p>let address = &#39;Indonesia&#39;;</p><p>console.log(address);</p><p>Dahhh, gimana hasilnya? Harusnya sih kecetaknya Indonesia aja, sama gak? Kalau iyaa, SELAMATTT kalian udah bisa ngerunning dan ngecetak yuhuuu ~~~</p><p>Lanjut yah, deklarasi variabel itu bisa <em>single line </em>bisa juga <em>multiline. </em>Bedanya apa?</p><p><em>Single line </em>itu mendeklarasikan variabel/beberapa variabel dalam satu baris kode.</p><p>Contoh:</p><p>let food = &#39;Bakso&#39;; // satu variabel satu line</p><p>let food = &#39;Bakso&#39;, drink = &#39;Es Jeruk&#39;, address = &#39;Indonesia&#39; // 3 variabel dalam satu line</p><p>Sedangkan, <em>Multiline </em>itu mendeklarasikan variabel ke dalam beberapa baris kode.</p><p>Contoh:</p><p>let food = &#39;Bakso&#39;;</p><p>let drink = &#39;Es Jeruk&#39;;</p><p>let address = &#39;Indonesia&#39;;</p><p>Semuanya baik ya, yang <em>Single Line </em>dengan beberapa variabel emang sih terlihat lebih ringkas, tapiii kurang efektif alias kalau pas lagi cek kodenya / maintenance / pas lagi dibaca sama tim. Jadi recommended yang satu line satu variabel / <em>multi line.</em></p><p>Gapapa banget kelihatan lebih panjang nulisnya, tapi lebih gampang buat dibacanya hihi :D.</p><p>Oiyaaa, let itu keyword yang fleksibel, karena nilainya <em>mutable </em>atau bisa di-<em>reassigned.</em></p><p>Contoh:</p><p>let address;</p><p>address = &#39;Indonesia&#39;;</p><p>address = &#39;Nusantara&#39;; // nilainya berubah dari yang awalnya Indonesia jadi Nusantara</p><p>console.log(address);</p><p>bisa juga gini:</p><p>let address = &#39;Indonesia&#39;;</p><p>let place;</p><p>address = place;</p><p>console.log(address); // Indonesia</p><p>console.log(place); // Indonesia</p><p>Panjang bangettt omayuwuwuwu, okay lanjut di next Part 2 Naming Variables — JavaScript, okengg? Besok banget rilis xixixi, Mimin mau tidur dulu :D</p><p>#SemangatNgoding #JavaScript #Variable</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0b5c49fac81a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setup JDK in Environment Variables]]></title>
            <link>https://medium.com/@terresaalicia12/setup-jdk-in-environment-variables-065656f83d53?source=rss-320b1b763b39------2</link>
            <guid isPermaLink="false">https://medium.com/p/065656f83d53</guid>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[jdk]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[intellij]]></category>
            <category><![CDATA[android-studio]]></category>
            <dc:creator><![CDATA[Terresa Alicia]]></dc:creator>
            <pubDate>Sat, 04 Jan 2025 05:02:37 GMT</pubDate>
            <atom:updated>2025-01-04T06:34:25.901Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s setup with me! 🤗</p><ul><li>First thing first, you can download your JDK in <a href="https://www.oracle.com/kr/java/technologies/downloads">Oracle</a> platform and choose JDK version you want to install and use it (I use JDK 21).</li><li>Choose the OS (operating system) you use (I use Windows and choose x64 installer).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Ody2BCHmK4XwqQw-kfhMA.png" /></figure><ul><li>Then, your download file will automatically placed on Downloads.</li><li>After your download is done, you can open the <em>exe.</em> file jdk-21_windows-x64_bin.exe and follow the installation instruction (next and next until finish).</li><li>Then, your Java will place in default location (i.e., C:\Program Files\Java\jdk-21).</li><li>Next, browse Environment Variables in Windows search bar, and choose Environment Variables… .</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*gzei4DNG1xkfE0msNgo7aA.png" /></figure><ul><li>Look at System variables menu, and choose the <strong>Path </strong>variable, open it.</li><li>Click New button and copy your Java location before — usually on Program Files location (i.e., C:\Program Files\Java\jdk-21\bin).</li><li>Then, add New again %JAVA_HOME%\bin to the list too.</li><li>Click OK.</li></ul><p><strong>How to Check Java version that already install?</strong></p><ul><li>Open your Command Prompt.</li><li>Type java -version and enter.</li></ul><p>The result should be:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*snNxfThcZrU8IwJJwvAUUA.png" /></figure><p><strong>How to know Where’s Java version?</strong></p><ul><li>Open your Command Prompt.</li><li>Type where java and enter.</li></ul><p>The result should be:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*-pbefIgJjMQK-i_dTAO-Mg.png" /></figure><p>DONE!</p><p>If there’s any question, don’t hesitate to ask me in the comment yup!<br>Thank You! ^^</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=065656f83d53" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[java.lang.UnsupportedClassVersionError]]></title>
            <link>https://medium.com/@terresaalicia12/java-lang-unsupportedclassversionerror-43a174d1969a?source=rss-320b1b763b39------2</link>
            <guid isPermaLink="false">https://medium.com/p/43a174d1969a</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[jdk]]></category>
            <category><![CDATA[intellij]]></category>
            <dc:creator><![CDATA[Terresa Alicia]]></dc:creator>
            <pubDate>Fri, 03 Jan 2025 22:43:51 GMT</pubDate>
            <atom:updated>2025-01-03T22:43:51.741Z</atom:updated>
            <content:encoded><![CDATA[<p>I already create a simple code in Intellij IDEA using Kotlin within file name StringTemplate.kt</p><p>Here is my code:</p><pre>package com.belajar.kotlin.iteration<br><br>class StringTemplate {<br>    val animal = &quot;hamster&quot;<br>}<br><br>fun main() {<br>    val stringTemplate = StringTemplate()<br>    print(&quot;My role is ${stringTemplate.animal}&quot;)<br>}</pre><p>I just want to run this code, but there’s an error like this:</p><p>java.lang.UnsupportedClassVersionError: com/belajar/kotlin/iteration/StringTemplateKt has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 52.0</p><p>Okay, here’s my way to solve this error:</p><p><em>Disclaimer: it happen due to my Kotlin code was already compile with new Java version from Java runtime that used for running code. “class file version 65.0” indicate that my Kotlin code was already compile with Java 21, but my Java runtime is JDK 8 that only support “class file version 52.0&quot;.</em></p><p>Here we go, please use Java runtime that suitable with compiler version:</p><ul><li>Open File menu, choose Project Structure.</li><li>Choose SDKs tab in Platform Settings.</li><li>Add JDK version (i.e., JDK 21 from <a href="https://www.oracle.com/kr/java/technologies/downloads/#jdk21-windows">Oracle</a>), and download it. <em>Don’t forget to set the </em><em>bin folder in your environment variables.</em></li><li>Set SDK Project with your newest JDK.</li></ul><p>Next, we should set the Gradle JVM:</p><ul><li>Open File menu, choose Settings.</li><li>Open Build, Execution, Deployment menu &gt; Build Tools &gt; Gradle.</li><li>Choose your newest JDK version on Gradle JVM.</li><li>Click OK.</li></ul><p>You can run your program.</p><p>Note: Sometimes when you already define it such as the step above, but there’s a toast information ‘Configure JDK Version’ and the system will detected your newest JDK, just click <em>configure.</em></p><p>If there’s any question, don’t hesitate to ask me in the comment yup!<br>Thank You! ^^</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43a174d1969a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create Kotlin program with Gradle Init]]></title>
            <link>https://medium.com/@terresaalicia12/create-kotlin-program-with-gradle-init-9785ab4be6fc?source=rss-320b1b763b39------2</link>
            <guid isPermaLink="false">https://medium.com/p/9785ab4be6fc</guid>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[gradle]]></category>
            <dc:creator><![CDATA[Terresa Alicia]]></dc:creator>
            <pubDate>Wed, 01 Jan 2025 13:59:59 GMT</pubDate>
            <atom:updated>2025-01-01T14:29:05.095Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Disclaimer: this note is my page for being my reflection while learning Kotlin, yeah I can mention it as a ‘documentation’ ㅋㅋㅋㅋㅋㅋ</em></p><ol><li>Open your command prompt on your folder you want to build Kotlin.</li><li>After your command open was open, you can give command with gradle init .</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*eJiVXXDeI2LMfMBa1DL_fA.png" /><figcaption>command: gradle init</figcaption></figure><p>3. Next, select what type of application you want to build (i.e., 2).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*C80E1EznFPJTlvQ_eOBoDg.png" /></figure><p>4. After that, select which language you want to use (i.e., kotlin).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*aMeCAQ8nzYrJe1En9mv6tA.png" /></figure><p>5. If there’s any question about creating multiple subprojects, you can choose ‘no’ as a default (i.e., no).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*xr2zyVwL2tvTyEy_ig8DbQ.png" /></figure><p>6. For the next, you can choose with what kind of build script you want use (ie., 1).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/1*L44PWXqY20CTc4HBohBTag.png" /></figure><p>7. After that, you can entering your project name (up to you) (i.e., kotlin-starter).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*U85P1SzK3oF1BS7E05RS0w.png" /></figure><p>8. Then, you can customize your package name (i.e., com.belajar.kotlin)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*14DkWOwTYPFN1giyJ5XjSA.png" /></figure><p>9. Next, you can enter your Java target version (i.e., 23 — as the latest version right now).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*JJsCZ0NrJ_FYEU7n3saUYg.png" /></figure><p>10. If there’s any question about ‘Generate build using new APIs and behavior’, you can choose the default option (i.e., no).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*8uUW4vz8b41Mj3o8cEWb8w.png" /></figure><p>11. Finally, your Kotlin project was build successfully!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*qDlK8ZixCrdOe0ADCNPzGw.png" /></figure><p>— — — — — —</p><p>OR</p><p>— — — — — —</p><p>You can simply create the project by using this command:</p><p>gradle init — type kotlin-application — dsl kotlin — project-name kotlin-starter — package com.belajar.kotlin</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*aooPkCBt0P2aAblVnohgNQ.png" /></figure><p>And taraaaa here is the result!</p><p>If you want to run the project, you can enter this command gradle run . The default result will print Hello World! .</p><p>But, if you found error like this, you can upgrade your Java version into 21 (it happen because my JVM is 21):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JY9My8k_zNsw7BcI5J6J0Q.png" /></figure><p>You can change the version in file build.gradle.kts and open it using Notepad or others, and change this line:</p><p>java {<br> toolchain {<br> languageVersion.set(JavaLanguageVersion.of(23))<br> }<br>}</p><p>INTO</p><p>java {<br> toolchain {<br> languageVersion.set(JavaLanguageVersion.of(21))<br> }<br>}</p><p><em>Note: Please set the Java version as you already have before…</em></p><p>And the result should be like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hOHiJFIYwBh72odo8SBgQA.png" /></figure><p>Q: Why the init task was SKIPPED?</p><p>A: Yeah, cause I create the same project name in the same folder, but you can try it in another project name and folder — it can identify the project as a different things.</p><p>If there’s any question, don’t hesitate to ask me in the comment yup!<br>Thank You! ^^</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9785ab4be6fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>