<?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 📌RightBrainLearnsCode on Medium]]></title>
        <description><![CDATA[Stories by 📌RightBrainLearnsCode on Medium]]></description>
        <link>https://medium.com/@rightbrainlearnscode?source=rss-2b60fc13aaaf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*L57r0lFmahoxvmK3v2yqCg.jpeg</url>
            <title>Stories by 📌RightBrainLearnsCode on Medium</title>
            <link>https://medium.com/@rightbrainlearnscode?source=rss-2b60fc13aaaf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 06:10:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rightbrainlearnscode/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[NOTION.SO — the all-in-one task-manager with which I’ve fallen in love.]]></title>
            <link>https://medium.com/@rightbrainlearnscode/notion-so-the-all-in-one-task-manager-with-which-ive-fallen-in-love-87dfc17ae356?source=rss-2b60fc13aaaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/87dfc17ae356</guid>
            <category><![CDATA[kanban-board]]></category>
            <category><![CDATA[task-management]]></category>
            <category><![CDATA[workplace]]></category>
            <category><![CDATA[to-do-list]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[RightBrainLearnsCode]]></dc:creator>
            <pubDate>Tue, 07 Jul 2020 14:25:57 GMT</pubDate>
            <atom:updated>2020-07-07T18:05:12.435Z</atom:updated>
            <content:encoded><![CDATA[<h3>NOTION.SO — the all-in-one task-manager with which I’ve fallen in love.</h3><blockquote>Disclaimer: Not an affiliated post. Or so how much I wish it was :)))</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V2gQ8jcTDsKCDSJrc_DMMg.png" /></figure><p>Recently, but not so recent, JJ introduced me with a task-manager tool which he finds extremely fascinated about. After quite some time using it, now I know where all the heat comes from and I can say it is by far the best task-manager I’ve ever experienced.</p><p>Simply put, NOTION.SO is a task-manager tool that combines note-taking, to-do list, kanban board, files and databases, web clipper, support for code snippets, images, progress tracker, and so on. It is similar to Google Keep, Evernote, Trello put together, augmented with sleek design and a user-friendly approach.</p><p>Prior to NOTION, I was using Evernote and Trello. Yet, the drawback of Evernote is that it doesn’t support creating directories (create a page with depth, with a layer of many pages inside — which is what I currently do with NOTION) and its design isn’t so straightforward. With task manager or to-do list, I had to switch to Trello. Sometimes, it was just cumbersome having to jump between several tabs and tools, and it led to a scenario when you didn’t remember where you put the exact piece of information.</p><p>Then came NOTION and it’s fixed almost all of my problems with task-organization and has served as my only source of truth. The tool comes with various pricing plan, yet I only use the free version because it’s enough for my personal use. There are, indeed, a number of cool features born with NOTION, so I think one needs to give it a try and figure for themselve. Here I will review a certain features which I use everyday, so that you can have a clearer notion (pun not intended!) about the tool.</p><h3>1. An empty page with endless possibility to start with</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v45ruiHhzPfdtTvIlgUxMQ.png" /></figure><p>Everything is so interactive and straightforward that you can play around and organize your workspace in whatever way you prefer. I usually create a new page for every subject that I wish to make note. You can even choose a cool icon for each of your page. Great! Then comes the fun part of designing your page to match with your need. You can do it as you please or choose one template among (I guess) dozens of theirs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qcc46UYuNhH4Qf37MOfyvQ.png" /></figure><p>They have different templates for a number of fields such as HR, Marketing, Personal, Sales, Tech, etc, each serves a different purposes. Have I told you I like their design?</p><p>So now you’ve already have a new page with your desired template, so you can start working or if you’re like me, proceed to create a directory for each of my new page.</p><h3>2. A concrete support of directories</h3><p>I always create a new directory for each programming language that I have worked with. Inside the page (served as a folder), I divide into different folders (each on its own page) and just continue like that. This is similar to the way computer folders work. Creating new page is like a breeze. All you need is to hover on the plus icon and then it shows a range of blocks which you can use in your page.</p><p>This turns my workspace into a book with each title leads to a new chapter and going further, convenient to organize and systemize my notes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s8Qb9vg-pnwI0SGrnKE8Xw.png" /></figure><h3>3. A wide variety of text editing</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OAxVnO8xmuY4F0PdH5bs_g.png" /></figure><p>I just fancy the fact that I can hover onto anything and be able to fix or edit it. With a simple text like this, you can make it bold, italic, add link, or change its color, together with the possibility to turn it into a heading (1, 2, or 3). This gives my note a new look and helps finding bits and pieces of information more easily.</p><h3>4. Code-snippet with multiple programming languages</h3><p>Since I always document my code, I find this feature a huge boost for my work. I can copy and paste code snippet from IDE into a page and annotate it for later checkup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kRFv483cE5yMEU2ixg808w.png" /></figure><p>As you can see from the drop-down box, there are multiple programming languages that are supported by NOTION, so there is no difference between your code here and in your code editor.</p><p>Alright then, so far they are the features which I use the most and find the most helpful, they are absolutely not all, and I believe if you are a UI/UX designer, copywriter, or someone working in creative fields, you can use it to its best result since I’ve taken a sneak peak to these template and was totally amazed.</p><p>Thanks for reading until now, I hope my post has been useful to you, so if you find the tool interesting or you’re searching for a new task-manager, let’s give it a try and let me know what you like and don’t like about it. Cheers!</p><p>==============</p><p><em>A bit about myself, I’m Ngoc Do — a Vietnamese living and working in Finland. At the moment, I’m learning Java and Kotlin and working to deliver a 2022 version of myself as an Android Developer.</em></p><p><em>For posts in Vietnamese, you can visit my Facebook page @</em><a href="https://www.facebook.com/naophaidicode">facebook.com/naophaidicode</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87dfc17ae356" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[It’s ok to fail test cases]]></title>
            <link>https://medium.com/@rightbrainlearnscode/its-ok-to-fail-test-cases-62d6be147d27?source=rss-2b60fc13aaaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/62d6be147d27</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[failure]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[experience]]></category>
            <dc:creator><![CDATA[RightBrainLearnsCode]]></dc:creator>
            <pubDate>Tue, 02 Jun 2020 07:18:32 GMT</pubDate>
            <atom:updated>2020-06-02T07:33:51.345Z</atom:updated>
            <content:encoded><![CDATA[<h4>As long as you’ve tried your best</h4><p>At first when my Java lessons was still simple, straightforward and consisted of all easy exercises, I felt overwhelmingly satisfied with myself whenever I returned a solution to the TMC server and received the announcement that my solution had passed all test cases. The green marks on my screen and the statement “All tests passed on the server” filled me with pride and content, the naive feeling of a child when it successfully solves the very first math problem in its entire life “1 plus 1 equals 2”.</p><p>That naive feeling would gradually be replaced by a sour feeling of failing as the lessons and the exercises get harder and harder. Of course I do not expect that I would do it right every single time, yet failing is the bitter medicine to swallow. And I wouldn’t have felt so embarassed and angry to myself if the errors had not been for my carelessness: sometimes they were caused by the lack of a semicolon, which could have been avoided if I had checked my code one last time before submitting, sometimes they were caused by the lack of…well…brain, and sometimes errors were the mystery of time which I did not know where it came from and how to get it fixed.</p><p>Yet looking on the bright side, each failing leads me to a different land of knowledge which fruits will then be added to my basket of experience. Such as I know that if I want to have a value added up with the amount stated by users, I should declare it and assign it to 0 outside of the while loop instead of inside because everytime the while loop executes the value will be set to 0 again.</p><pre>int value = 0;<br>while (true) {<br>    System.out.print(&quot;Add to the value: &quot;);<br>    int amount = Integer.valueOf(scan.nextLine());</pre><pre>    if (amount &gt; 0) {<br>        value += amount;<br>    }<br>......</pre><p>I’ve learnt to be patient when trying to untangle errors because sometimes things are not as straightforward as it seems, and it requires a bit of effort to research, Google searches, or ask JJ. More importantly, I’ve learnt that there are cases when my solution is more suffice, but it’s not what the requirements are asking for, and that’s why it failed. Similar to the workplace, as JJ once told me, sometimes you come up with a brilliant solution, but it can be rejected because the client didn’t like it. It’s just normal, as I soon understand.</p><p>Now after a few months into this, I’ve got used to the fact that errors are part of a developer’s work and failing test cases are part of a developer’s experience because a developer develops, and if everything is perfect, what to do next? The more errors they meet with, the sharper their problem solving skills become.</p><h3>Sum it upppp!</h3><p>It’s OK to fail test cases. Yet, I do not allow myself to be careless and hasty as to make avoidable mistakes such as mistyping variable names or missing semicolons, etc. I try to overcome my feeling of “OK I’m done now let’s get it checked on the server” and instead say “Calm down let’s check it YOURSELF FIRST and see if there is anything overlooked”. I’m fully awared that I’m not receiving an adequate education in this field like a lot of other people, so I always try my best in everything I do to make up for that.</p><p>I hope that you could be as well resilient and persistent to achieve what you’re aiming for. See you in the next post!</p><h4>Bye friends.</h4><p>==============</p><p><em>A bit about myself, I’m Ngoc Do — a Vietnamese living and working in Finland. At the moment, I’m learning Java and Kotlin and working to deliver a 2022 version of myself as an Android Developer.</em></p><p><em>For posts in Vietnamese, you can visit my Facebook page @</em><a href="https://www.facebook.com/naophaidicode">facebook.com/naophaidicode</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62d6be147d27" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Code’nLearn 2: Separate UI from logic and the main program]]></title>
            <link>https://medium.com/@rightbrainlearnscode/codenlearn-2-separate-ui-from-logic-and-the-main-program-a1f027b8327c?source=rss-2b60fc13aaaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1f027b8327c</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[experience]]></category>
            <dc:creator><![CDATA[RightBrainLearnsCode]]></dc:creator>
            <pubDate>Tue, 02 Jun 2020 07:17:47 GMT</pubDate>
            <atom:updated>2020-06-02T07:32:33.002Z</atom:updated>
            <content:encoded><![CDATA[<h4>There are three crucial parts of a Java program: main, the user interface, and the program logic.</h4><h3>Main Program</h3><p>Call the method <strong>start()</strong> of UserInterFace class to run the program.</p><pre>import java.util.Scanner;</pre><pre>public class Main {</pre><pre>    public static void main(String[] args) {<br>        Scanner scanner = new Scanner(System.in);<br>        PointsList pointsList = new PointsList();<br>        UserInterface ui = new UserInterface(scanner, pointsList);<br>        ui.start();<br>  <br>    }<br>}</pre><h3>UserInterface class</h3><p>Store the method <strong>start()</strong> and is responsible for receiving users’ inputs and printing outputs. It receives two objects as its main parameters: scanner class to read users’ input and the logic class to process the data. It’s important to divide the <strong>start()</strong> method into different methods reflecting each essential part of the UI.</p><pre>import java.util.Scanner;</pre><pre>public class UserInterface {<br>    private Scanner scanner;<br>    private PointsList pointsList;<br>    <br>    public UserInterface(Scanner scanner, PointsList pointsList) {<br>        this.scanner = scanner;<br>        this.pointsList = pointsList;<br>    }<br>    <br>    public void start() {<br>        readInputs();<br>        printOutputs();<br>    }<br>    <br>    public void readInputs() {<br>      // some logic....<br>    }</pre><pre>    public int printOutputs() {<br>      // some logic....<br>    }<br>....<br>}</pre><h3>The program logic</h3><p>The core logic of the program and stores the class which is used to create the program’s object and other relating methods to process the data passed into it.</p><pre>public class PointsList {<br>    private ArrayList&lt;Integer&gt; pointsList;<br>    private int passing;<br>    <br>    public PointsList() {<br>        this.pointsList = new ArrayList&lt;&gt;();<br>        this.passing = 0;<br>    }<br>    <br>    public void add(int points) {<br>        if (!(points &lt; 0 || points &gt; 100)) {<br>            this.pointsList.add(points);<br>        }        <br>    }<br>}<br>.....</pre><p>I used to struggle at the beginning of each problem because I didn’t know what to do first and what next. The program’s logic and UI got tangled and hard to be put into, let’s say, “groups”. Yet, based on this knowledge, I now can get hold of the skeleton of each program, like I did with an essay in the past, and build upon from that.</p><h3>Sum it upppp!</h3><p>Just a quick note from my experience with Java so far and I hope you don’t have to struggle like I did at the beginning. This knowledge touches a very surface of the concept of object-oriented programming, more from that in the next posts!</p><h4>Bye friends!</h4><p>==============</p><p><em>A bit about myself, I’m Ngoc Do — a Vietnamese living and working in Finland. At the moment, I’m learning Java and Kotlin and working to deliver a 2022 version of myself as an Android Developer.</em></p><p><em>For posts in Vietnamese, you can visit my Facebook page @</em><a href="https://www.facebook.com/naophaidicode">facebook.com/naophaidicode</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1f027b8327c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I have come to familiarize myself with the world of coding]]></title>
            <link>https://medium.com/@rightbrainlearnscode/how-i-have-come-to-familiarize-myself-with-the-world-of-coding-91e1235b17b1?source=rss-2b60fc13aaaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/91e1235b17b1</guid>
            <category><![CDATA[experience]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[sat]]></category>
            <category><![CDATA[learning-method]]></category>
            <dc:creator><![CDATA[RightBrainLearnsCode]]></dc:creator>
            <pubDate>Tue, 02 Jun 2020 07:17:31 GMT</pubDate>
            <atom:updated>2020-06-02T08:03:02.853Z</atom:updated>
            <content:encoded><![CDATA[<h4>(or in other words) Pay tribute to the SAT and the JAVA language</h4><h3>From a social science girl</h3><p>My background is, I guess, have been conveyed clearly through the title of this part. Yes, I come from a world which is a hundred percent different from that of coding. Let’s take JJ as an example: while JJ uses his left brain in almost everything, I use my right. JJ thinks logically, I employ my emotions. JJ writes code on a daily basic, I write essays and literary analysis. And although I could expand my horizon to as far as working in marketing, writing business reports, discussing politics, or even doing bits and pieces of design, I had found coding to be a place full of bizarre and highly-intelligent concepts that only people who early in their childhood have shown that they will someday be majored in natural science could understand.</p><p>So, I have never thought that someday I would sit down at my desk and decided that I would learn coding.</p><p>My motif is sort of a long story. I would be happy if you stay, but if you don’t want to tolerate that, you can skip to the next part to read about my early experience with coding to understand why me — being under the dominance of my right brain — couldn’t learn it properly.</p><p>Well, let’s begin with my ever-burning passion: to be a copywriter working in advertising. About 4–5 years ago, when I was still a 20-year-old creature who didn’t know what to do with her talent and passion in words and languages, I met JJ. JJ was then a graphic designer, and he was the first one to open my world about print ads and advertising campaigns and posters and Ogilvy and copy and so on so forth. I was like crazy when finally felt the click between my passion and an ideal career choice. I was over the moon when imagining myself working for an advertising agency and doing overtime for upcoming projects. To further realize my dream, I’d equiped myself with lots of books about this field, and we did collab (JJ and me) to work on several freelance projects. I practiced almost everyday how to write catchy copies, how to have brilliant ideas and ways to implement them. Yeah that’s how much I loved advertising.</p><p>However, things took an impressive turn when we decided to study abroad. I chose for myself an English Philology major because I wanted to write copy in English and I’d determined to master this language. Yet, I didn’t expect that it could someday become a barrier for me to find jobs in Europe. Of course, if I had more time and opportunities I would eventually find a job that will provide me with financial stability. Yet, I don’t have that much time await; I want to take care of my parents as soon as possible and be able to rebuild our house which was then leaky and moudly all around. I want to do the surgery for my mom and allow my dad to retire at the age of 65 — the age that he’s supposed to enjoy his fruitful work than working 8 hours a day standing on his legs.</p><p>I find it very guilty to admit that I come to coding mainly because of the financial stability it promises, but I guess I should be frank and admit that, at least, to myself. And now, after concluding my journey with languages and the field of social science, I have taken on the new part of a programmer, a developer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hrLnZiDyJMzIkCXDT6DfVg.png" /></figure><h3>To her first encounter with coding (sour and bitter!)</h3><p>It’s not that you want to “do programming” for money, then you go “do programming” for money. It’s not easy, and you have to prove your determination, your passion, as well as your resilience.</p><h3>Part 1 — My “right-brain” method</h3><p>My very first lessons of coding happened on freeCodeCamp platform — where I learnt HTML, CSS, JavaScript — which was not very successful because I didn’t have any proper learning method to learn coding. I say “proper” because I have employed all of my methods that I used to study languages or to understand any concept in my previous study, and all of them didn’t work with coding. Coding was very strange; it was a field that if you know it, you know it. You cannot merely know it or analyse it based on your thinking, emotions, or perspectives. It simply doesn’t work like that, and yet, I continued to force it to go that way. For example:</p><ul><li>When I learn a new language, I will keep a notebook for new vocab or concepts which I find useful or essential to remember, and I did similarly with coding, <strong>writing</strong> new concepts or technical vocabulary and trying to <strong>remember</strong> them.</li><li>Also, I <strong>listen</strong> to TED Talks when I want to understand a phenomenon or a new idea because the speakers explain them simply and in detail. So I would do the same and listen to programmers talk about their experience or any theory in programming, be it “How to build a JavaScript project” or “Five things I wish I knew as a software developer”, etc and try to acquire the knowledge.</li><li>Then I <strong>read</strong>, a lot of articles from Medium, and books such as “Head First HTML and CSS”, “Head First JavaScript”, “Web Design with HTML, CSS, JavaScript and jQuery Set”, or “JavaScript and Jquery: Interactive Front-End Web Development”, to name a few.</li><li>I went to some websites such as W3S or javapoint.com where they have lots of syntax explanation and tutorials. But things didn’t go well as you might have guessed.</li><li>I even <strong>watched</strong> a great numbers of videos made by software developers who talk about topics such as “A day as a software developer” or “5 things I have learnt when being an engineer” to get the feel of the field, and I followed everything related to coding, programming, technology, and feel satisfied with myself thinking that I am being productive.</li></ul><p>But, as you might have noticed, my methods — which mainly focused on listening, reading, and writing — didn’t get me anywhere because it lacked the most fundamental aspect of coding — actually sit down and <strong>code</strong>.</p><p>After a few months, I have come to realize that the essence of coding lies in the fact that it happens on my computer when I code and practice, not on the bed or sofa when I read and try to stuff those dry facts into my head. It is important that I follow the exercises or the examples by typing them out in the IDE myself, not reading them and trying to understand because it’s simply just impossible.</p><p>I was looking for a change, but that’s when another matter occurs.</p><h3>Part 2 — Java is too difficult for me!</h3><p>JJ recommended me to start with JavaScript because when compared to other programming languages, it’s much simpler, and there are tons of materials. However, the reason that there are tons of materials combines with the fact that I hadn’t yet adopted a suitable learning method led me to a pitfall. This, I consider the most painful period of my journey to learn coding. Why? Because I couldn’t understand JavaScript, and when someone told you this language is very simple to understand and you couldn’t understand it, it created in you a feeling that “I am so stupid”.</p><p>JJ gifts me some courses on Udemy and Codecademy because I told him that I study best when there are examples and I follow them, be it rewriting or filling in the blank. It’s true that those courses helped me some bits, but at the end when JJ checked my knowledge of even simple stuff, I didn’t know. There were times when I discussed with JJ whether I should learn Java instead, and we did always exchange looks as if to say “Well you know, Java is too difficult for you”. I did try to learn Java at the time, but there was no course that would be suitable to me, and together with the thinking that I couldn’t make it, I gave up.</p><p>I did stop learning coding for nearly a year, when I wanted to focus on my thesis for my bachelor study. And that’s when I had an interesting experience with the SAT, which would then change my thoughts and my skills for the better.</p><h3>SAT teaches me to think logically.</h3><p>I decided that I would go to school to study coding because self-studying was very painful to me, and I would apply for a university in Helsinki based on my SAT score.</p><p>As a result, I started to practice with the SAT problems, firstly with a math book by Nelson Phu named “The College Panda: Sat Math The Advanced Guide” and then on Khan Academy. I began solving math problems from the All Math practice sesson on Khan Academy from algebra to advanced mathematics, from data analysis to geometry, trigonometry, and complex numbers. I solved math almost everyday and intensively at the weekend — when I timed my progress to try to finish 58 math questions in 75 minutes. Just like that for 3 months until I took my SAT in December last year.</p><p>After the journey with SAT, I’ve noticed several different things in me: I’ve started to think faster, more logically; I’ve began to analyse problems step by step, and importantly I’ve began to use my left brain more often.</p><p>If there is one thing I would say about SAT and how it relates to my learning process, it would be that SAT has prepared my brain to work with logics and problems. Now let’s not focus too much on the SAT but let’s say math in general; I think it’s useful to first familiarize yourself with the world of coding by solving simple math problems and time them to train your brain to work under pressure; that’s when you can force it to process information faster but still maintain the accurary.</p><p>Personally, I think it’s not proper to adopt a different field of knowledge using my regular learning methods used for another field of knowledge, especially when these two field are of the opposite to one another (like in my case: language and coding). It would be easier to temporarily forget your old learning methods and adopt a set of new ones and try to create an environment where your brain can develop according to the field you are studying. For instance if you are a software engineer and want to pursue a career in literature, let’s not analyse a book like you did a computer program but close your eyes and feel it with your heart. In contrast, if you are a student of English literature and want to pursue a career in tech, let’s open your eyes to see each problem as it is, don’t infer or digress too far from it.</p><h3>JAVA has presented me with the world of coding</h3><p>If I want to recommend any course or book that I’ve found most useful for my learning, it would be the “Java Programming Free Course” offered by Helsinki University and the “Java: How to Program” book; both found by JJ.</p><p>I guess because Java is a hard language to learn, both in terms of syntax and concepts, so fewer people who first start to learn programming choose it as their first language. Therefore, the number of materials for Java might be fewer than those for other modern languages, but because of that the available resources seems to be more concrete and detailed, like books or intense courses. And for this reason one can easily stick to one book and study it from page 1 to end without being distracted by tons of resources out there. So I’ve chosen this path to go on.</p><p>I would say that right now I am pretty content with my progress, being able to focus completely on my course and my book in a certain time frame and after that coming back to other interests like writing blogs, reading, or exercising. I don’t force myself to always focus in coding because I know it would make me hate coding one day.</p><h3>Sum it upppp!!!</h3><p>I think what I have right now is the result of not days, not weeks, but months (and two years) of constantly trying and experimenting with myself, with coding, with the materials, and with the way I learn. It can be the SAT that helps me; it can be the Java course that helps me; it can be JJ; it can by myself. Anyway, I believe that all the things I have done up until now have created me of the present. Sometimes I think that if it hadn’t been for the time I blindly learn code and trying to learn by heart all the coding concepts, would I be able to understand them right now? I don’t really know, but I know one thing that I have tried all the methods that I could think of, and now I’m sharing them with you.</p><p>I’m glad if some of them are useful to you, or you can jump straight to my math-solving preparation to brace yourself for this long and daunting journey. Hope my story help!</p><h4>Bye friend!</h4><p>==============</p><p><em>A bit about myself, I’m Ngoc Do — a Vietnamese living and working in Finland. At the moment, I’m learning Java and Kotlin and working to deliver a 2022 version of myself as an Android Developer.</em></p><p><em>For posts in Vietnamese, you can visit my Facebook page @</em><a href="https://www.facebook.com/naophaidicode">facebook.com/naophaidicode</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91e1235b17b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Code’nLearn 1: Finding the largest number in an array using Java]]></title>
            <link>https://medium.com/@rightbrainlearnscode/codenlearn-1-finding-the-largest-number-in-an-array-using-java-5ce7c443b50?source=rss-2b60fc13aaaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ce7c443b50</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[arrays]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[RightBrainLearnsCode]]></dc:creator>
            <pubDate>Sat, 30 May 2020 15:55:59 GMT</pubDate>
            <atom:updated>2020-07-07T12:22:30.872Z</atom:updated>
            <content:encoded><![CDATA[<h4>This problem occurs when we want to return the largest value in a series of values input by users.</h4><p>When I first started learning coding, this used to be the problem (to me) was unsolvable. Why? You might ask. It seems simple and fairly straightforward. Well, not very much with someone whose thinking is a bit convoluted like me. In my head, everything seems a little bit more complicated than it truly is, and that is one of the matters I have to tackle when I learn to code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lyN7M7AK1AtQAmfmkhWhPg.png" /></figure><p>Basically, because I could see the array presented in front of my eyes👆, I knew exactly which value/ which number was the largest one, and I forgot that a computer couldn’t see like I did. Also, I didn’t know how a computer could process the array to “churn out” the largest value in it. The result was: I had to find the answer on <em>stackoverflow</em> or ask JJ (not one, but a handsome deal of times) because I couldn’t wrap my head around the concept of “unknowing the known” then apply it to the computer.</p><p>However, when I began to learn Java a month ago, I started to understand the core factor of the problem (not because of Java, but I guess my brain has now used to think in a logical kind of way), and that lies in three keywords: first <strong>assign</strong> then <strong>compare</strong> and <strong>replace</strong>. When we don’t know something, for example “who is the strongest weightlifter in our class?”, we tend to assume that the current strongest one is someone named X, then we compare the total weights that X can lift to that of the next person. If the next person, someone named Y, could lift heavier weights, then Y now becomes the strongest one, and if not, X can still maintain the status. Keep doing like that and at the end, we have the answer for ourselves.</p><p>The solution to finding the largest number/value is similar to the above scenario in some way: we would have to assign the initial value (frequently 0 or the first value in the group) to the variable that stores the largest value, then compare that initial value to other elements in its group and replace it with the more suitable element.</p><h3>Statements we employ</h3><p>There are two statements involving in our process, which is control flow statement (for loop / while loop / for each) and conditional statement (if…else). These two statements are extremely important and are basic of every computer program because repeating tasks is what computers are born to do.</p><p><strong>1. For loop</strong>: The for loop is used to iterate over every element of an array or a list to find the most suitable element for the condition we set. The syntax in Java is as followed (assume we have 10 elements in the list)</p><pre>for (int i = 0; i &lt;= 10; i++) {<br>// some logic in here<br>}</pre><p>What to do when we don’t know in advance the number of elements in the array or the list? No worries, we can always ask for the size of an array list or the length of an array.</p><pre>for (int i = 0; i &lt;= arrayList.size(); i++) {<br>// some logic in here<br>}</pre><pre>for (int i = 0; i &lt;= array.length; i++) {<br>// some logic in here<br>}</pre><p><strong>2. While loop</strong>: Similar to the for loop used for iteration, yet it is used when the number of times we want the loop to run is not fixed.</p><pre>while (true) {<br>    System.out.print(&quot;Enter a number: &quot;);<br>}</pre><p><strong>3. If…else statement</strong>: This statement is used to compare our initial value with other values in the group to find out the “one and only” element that matches our search. In Java, it is used as below:</p><pre>int largestValue = 0;</pre><pre>if ( nextValue &gt; largestValue) {<br>    largestValue = nextValue;<br>}</pre><h3>Context of the problem — User Input</h3><p>With that knowledge, we will now our solution to find the largest number</p><p>In Java, user’s inputs are read using Scanner which is a class from java.util package. It’s imported and declared like this:</p><pre>import java.util.Scanner; </pre><pre>public class nameOfClass {<br>    public static void main(String[] args) {<br>        Scanner scanner = new Scanner( System.in );<br>    }<br>}</pre><p>We obtain the user’s inputs using Scanner’s method nextLine() and store that value in a variable. Yet, remember that the inputs are always in String type, so if we want to use them as numbers, we have to convert them using a Java method to return an Integer object:</p><pre>int number = Integer.valueOf(scanner.nextLine());</pre><p>The variable number will now track the most recent input entered by the user and is used in our if…statement to compare with the initial largest value.</p><pre>int largestValue = 0;</pre><pre>if ( number &gt; largestValue) {<br>    largestValue = number;<br>}</pre><p>Working with user inputs, there are two scenarios that could happen: first is when we know in advance how many inputs we’re going to allow (for example 10 or 20), and second is when the number of inputs is not set at the beginning, but our program will stop receiving inputs when the user signals it by giving a certain indicator.</p><p>With the first situation, we simply have to declare a counter variable and let it count how many inputs we have received already and when it reaches the limit, the loop we set out to ask for input will stop.</p><pre>int counter = 1;</pre><pre>while (counter &lt;= 10) {<br>    System.out.print(&quot;Enter a number: &quot;);<br>    int number = Integer.valueOf(scanner.nextLine());<br>}</pre><p>With the second situation, we use a special value called <strong>sentinel value</strong> to indicate when the loop will stop (for example an empty string or the number -1).</p><pre>int number;<br>while (number != -1) {<br>    System.out.print(&quot;Enter a number: &quot;);<br>    int number = Integer.valueOf(scanner.nextLine());<br>}</pre><p>or we can use an if…statement in the while loop to indicate when the program will stop if it meets the sentinel value. Personally, this is the way I usually implement in my program, which at the moment it’s just the matter of habit, and I guess I would have to write a post when I find out the exact reason.</p><pre>while (true) {<br>    System.out.print(&quot;Enter a number: &quot;);<br>    int number = Integer.valueOf(scanner.nextLine());<br>    if ( number == -1) {<br>        break;<br>    }<br>}</pre><p>Finally, combining the knowledge of control flow statement and conditional statement, we’re going to solve our problem which used to appear so daunting to me in the past.</p><h4>Largest number in a series of 10 inputs</h4><pre>int counter = 1;<br>int largestValue = 0; </pre><pre>while (counter &lt;= 10) {<br>    System.out.print(&quot;Enter a number: &quot;);<br>    int number = Integer.valueOf(scanner.nextLine());<br>    if ( number &gt; largestValue) {<br>        largestValue = number;<br>    }<br>    counter++; <br>}<br>System.out.println(&quot;Largest number in the range: &quot; + largest);</pre><p>Here we have something to notice:</p><ul><li>We can declare the number variable outside of the while loop, creating a global variable, yet because we aren’t going to use it anywhere else in our program, we will declare it as a local variable so that it won’t take up as much memory as global variables do.</li><li>This is a tiny teenee thing and I find it silly to mention, yet it was my mistake and I don’t want it to happen with anyone. That is we have to iterate the counter, or else it will forever remain 1 and will always less than 10, causing the loop to run forever.</li></ul><h4>Largest number in a series of unknown number of inputs — sentinel-controlled repetition</h4><pre>while (true) {<br>    System.out.print(&quot;Enter a number: &quot;);<br>    int number = Integer.valueOf(scanner.nextLine());<br>    if ( number == -1) {<br>        break;<br>    }<br>    if ( number &gt; largestValue) {<br>        largestValue = number;<br>    }<br>    counter++; <br>}<br>System.out.println(&quot;Largest number in the range: &quot; + largest);</pre><p>Phew…we’ve reached the end of the post and I hope by this moment we’ve all been familiar with this type of problem, be it finding the smallest value or finding the person with “N” as the first letter of name. The concept is the same; we just need to modify our code a little bit. Personally, I feel a lot satisfied with myself because I have never thought that one day I could write a complete post about coding, using technical languages and markdown conventions and so on so forth.</p><p>Still, what I’ve learnt through this problem and this post are:</p><ul><li>Being able to use loops to repeat certain tasks</li><li>Use if…statement to compare values</li><li>Use while loop when asking for user input</li><li>Use sentinel values to signal the end of data entry</li><li>How to import Scanner to read user inputs</li><li>How to convert String inputs to Integer ones</li></ul><p>So, bye for now and see you in the next post!</p><p>==============</p><p><em>A bit about myself, I’m Ngoc Do — a Vietnamese living and working in Finland. At the moment, I’m learning Java and Kotlin and working to deliver a 2022 version of myself as an Android Developer.</em></p><p><em>For posts in Vietnamese, you can visit my Facebook page @</em><a href="https://www.facebook.com/naophaidicode">facebook.com/naophaidicode</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ce7c443b50" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Side effects” of SAT and Sudoku]]></title>
            <link>https://medium.com/@rightbrainlearnscode/side-effects-of-sat-and-sudoku-8e7478d9206e?source=rss-2b60fc13aaaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e7478d9206e</guid>
            <category><![CDATA[logical-thinking]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[sudoku]]></category>
            <category><![CDATA[sat]]></category>
            <dc:creator><![CDATA[RightBrainLearnsCode]]></dc:creator>
            <pubDate>Sat, 30 May 2020 15:46:23 GMT</pubDate>
            <atom:updated>2020-06-02T07:31:13.065Z</atom:updated>
            <content:encoded><![CDATA[<h4>SAT and Sudoku accidentally make me think faster</h4><p>Prior to learning for the SAT, I was quite a slow thinker.</p><p>Having surrounded myself with literature and writing pieces in college, I have developed a dreamy mind only suitable for chilling activities like reading or writing (please don’t generalize, that’s just me!). At that time, my thinking was a bit convoluted and illogical, but I didn’t recognize that until I had to take the SAT and did the first few math questions on Khan Academy and found out that my answers were all wrong. Plus I was too slow to spot the correct choice among other misleading selections.</p><p>Needless to say, I panicked because if I couldn’t tackle those simple math problems, how I could be able to learn programming — an art that requires high level of logical and analytical thinking. However, thinking positively, now I knew what I lack to pursue this career and why don’t take this as an opportunity to practice my left-brained skills, and I did.</p><p>I started by learning the theory and formulation for each problem and forcing myself to really focus on each question to recognize the given inputs and by that drafting out the solution step by step. I even pushed it further by timing my work because anyway I would have to finish the whole MAT session in a limit amount of time (for anyone who doesn’t know, it’s 80 minutes for 58 questions and mind you, that’s tough!).</p><p>At first I thought that I was too harsh on myself, but the end result came out fantastic. Everyday I found myself thinking a bit clearer, faster, sharper, and more logical, like I could just scan the question and immediately cross out the incorrect choices, leaving behind the more possible ones and quickly test them to find the most correct answer, then move on and repeat the process. Someday I could even solve 30 questions in 20 minutes or less. This has helped me a lot now I’m learning coding as I can already draw in my mind the solution for each coding challenge right after reading the requirements. Also, learning to solve a problem step by step is extremely useful because it helps me write better code, knowing which methods to write first and from that develop the program. This has confirmed that brain is actually a muscle, and the more you practice it, the stronger and sharper it becomes.</p><blockquote>Learning math and solving math problems have indeed built the foundation for my programming journey as they both require logical thinking. I highly recommend this way for people like me (who wants to start learning programming but find that their brains are quite slow or that they need a boost to stay real with code)</blockquote><p>After taking the SAT, I move on to Sudoku. I have known about this game for ages, but playing it seriously means trying to finish it in the shortest amount of time, and similar to the above method, this forces my brain to process data faster and churn out the correct number to fill in the square, after looking at the whole battlefield and minusing the inappropriate candidates. It’s somehow similar to programming as you have to decide which sub-problems to solve first or which direction to build the program.</p><p>2 years ago, I started to learn coding the first time, but I failed. The reason: my brain was not ready for it. But I didn’t know that, and instead of preparing myself, I thought that it’s because of the programming language I choose. Now started for the second time, I know exactly where the problem is and how to fix it.</p><p>It’s like if you start playing tennis and find that you are too weak for it, before concluding that the sport is too heavy for you, try improving your physical strength first.</p><p>This post is to remind myself that if one day I find coding is too challenging, let’s pause for a sec and think of ways to become tougher.</p><p>==============</p><p><em>A bit about myself, I’m Ngoc Do — a Vietnamese living and working in Finland. At the moment, I’m learning Java and Kotlin and working to deliver a 2022 version of myself as an Android Developer.</em></p><p><em>For posts in Vietnamese, you can visit my Facebook page @</em><a href="https://www.facebook.com/naophaidicode">facebook.com/naophaidicode</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e7478d9206e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hi there ]]></title>
            <link>https://medium.com/@rightbrainlearnscode/hi-there-e414499c920a?source=rss-2b60fc13aaaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/e414499c920a</guid>
            <category><![CDATA[sharing]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[experience]]></category>
            <dc:creator><![CDATA[RightBrainLearnsCode]]></dc:creator>
            <pubDate>Sat, 30 May 2020 13:37:58 GMT</pubDate>
            <atom:updated>2020-06-02T07:30:43.035Z</atom:updated>
            <content:encoded><![CDATA[<h4>Something about Right Brain Learns Code</h4><p>Thank you for clicking to this post and, at the same time, get to know my corner. This is the place where I record my journey to programming as a right-brained person, a journey to explore the second half of myself.</p><p>Since I was a small girl, I have always loved to write (stories, poems, things like that) and to learn languages, and I am known among my circle of friends to be someone who are creative, who writes a lot, and who tends to be more sentimental and “soft”. That somehow imposes on me the thinking that I would never go along well with math or any “hard” subjects of that kind, tho I’m really into chemistry and biology.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EfmyI0BWxpQkUa0I0OEUAA.png" /></figure><blockquote>Then about a year ago, I started to learn coding out of the need to find job and my personal interest in the field.</blockquote><p>I guess we all know the stereotype that right-brained people might be a bit unsuitable to pursue technical subjects like programming/coding. However, I find myself falling in love with the syntax and logic of code, because similar to the purpose of human language, programming is to use computer language to solve everyday life’s problems. You have to say the correct word in the correct situation. You need to combine analytical + methodical thinking skills from your left brain and people skills + emotional intelligence from your right brain.</p><blockquote>That’s why I learn code by storytelling — a technique I’ve adopted from the time I was still learning advertising. I tell stories of each concept and topic in code in order for my brain to process it better. Writing them down, as I’m going to do on this page, is also a way to remember them for a long time, and may it be helpful to someone else.</blockquote><p>I’ve experienced doubts and lack of confidence in myself due to the fact that I’m switching to code from a different background and sometimes be seen as not good enough, so I totally understand if you ever feel like rejected. That’s also a reason for me to set up this page: to share my stories in order for people who have similar situation as me to find a common voice and to say that “You’re not alone”.</p><p>Currently I call myself “an outsider”, but I don’t want to be full of myself with that position. I’m trying to be in the circle, and I want to make myself qualified for this field, so that I don’t only have good stories to tell, but I also have the right skills to show.</p><p>I think that everyone will have a unique approach to coding, and so do I as a right-brained person, so I hope that you will like my sharings about technical knowledge, about tips to learn better, or any reflection I have for myself.</p><p>Finally, if you ever visit this post, please keep accompanying me on my journey. That’s my biggest motivation.</p><p>Thank you ❤</p><p>==============</p><p><em>A bit about myself, I’m Ngoc Do — a Vietnamese living and working in Finland. At the moment, I’m learning Java and Kotlin and working to deliver a 2022 version of myself as an Android Developer.</em></p><p><em>For posts in Vietnamese, you can visit my Facebook page @</em><a href="https://www.facebook.com/naophaidicode">facebook.com/naophaidicode</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e414499c920a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>