<?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 Ewe Lin Loo on Medium]]></title>
        <description><![CDATA[Stories by Ewe Lin Loo on Medium]]></description>
        <link>https://medium.com/@EweLinLoo?source=rss-7f2bd161e21b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*UBy9ZTcFJBZ86R5HVagEjg.jpeg</url>
            <title>Stories by Ewe Lin Loo on Medium</title>
            <link>https://medium.com/@EweLinLoo?source=rss-7f2bd161e21b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 16:06:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@EweLinLoo/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[Global variables across multiple files (Ruby)]]></title>
            <link>https://medium.com/bug-bytes/global-variables-across-multiple-files-ruby-ffefb5f3b886?source=rss-7f2bd161e21b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ffefb5f3b886</guid>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[Ewe Lin Loo]]></dc:creator>
            <pubDate>Sun, 07 Apr 2019 03:17:45 GMT</pubDate>
            <atom:updated>2019-04-07T03:17:45.583Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fuQ64Go1U-A_KZkxa5rX-Q.png" /></figure><p>Here’s how to separate an array from simple source code to a separate file. This short tutorial was inspired by <a href="https://stackoverflow.com/questions/8288271/how-to-reference-an-array-from-one-ruby-script-to-another">this</a> Stack Overflow post. Note: This method is only recommended for short pieces of code.</p><p>We’re starting off with the code below. Here you can see that items is an array of hashes.</p><pre>items = [{ customer: &quot;John&quot;, item: &quot;Soup&quot;, cost: 8.50}, {customer: &quot;Sarah&quot;, item: &quot;Pasta&quot;, cost: 12}, {customer: &quot;John&quot;, item: &quot;Coke&quot;, cost: 2.50}]</pre><pre>puts &quot;Enter a customer&#39;s name.&quot;</pre><pre>customer_owing = gets.chomp.capitalize</pre><pre>owed = 0</pre><pre># Cycle through array of hashes</pre><pre>array_elem = items.each do |hash|</pre><p>The first, intuitive thing to do would be to cut and paste the array into another file.</p><pre># amount-owing-list.rb</pre><pre>items = [{ customer: &quot;John&quot;, item: &quot;Soup&quot;, cost: 8.50}, {customer: &quot;Sarah&quot;, item: &quot;Pasta&quot;, cost: 12}, {customer: &quot;John&quot;, item: &quot;Coke&quot;, cost: 2.50}]</pre><p>and</p><pre># amount-owing.rb</pre><pre>puts &quot;Enter a customer&#39;s name.&quot;</pre><pre>customer_owing = gets.chomp.capitalize</pre><pre>owed = 0</pre><pre># Cycle through array of hashes</pre><pre>array_elem = items.each do |hash|</pre><p>How do we link these two files together? That’s where the first point of this post comes in.</p><h3>Require_relative</h3><p>From the <a href="http://ruby-doc.org/core-2.6/Kernel.html#method-i-require_relative">docs</a>:</p><blockquote>Ruby tries to load the library named <em>string</em> relative to the requiring file’s path. If the file’s path cannot be determined a <a href="http://ruby-doc.org/core-2.6/LoadError.html">LoadError</a> is raised. If a file is loaded true is returned and false otherwise.</blockquote><p>So by saving our two files in the same folder, require_relative will be able to load amount-owing-list.rb into amount-owing.rb. We simply need to add <strong>require_relative(&quot;amount-owing-list.rb&quot;)</strong> to the latter.</p><p>BUT we still won’t be able to use our array in amount-owing.rb.</p><h3>Global variables</h3><p>From the docs:</p><blockquote>A global variable has a name beginning with $. It can be referred to from anywhere in a program. Before initialization, a global variable has the special value nil.</blockquote><blockquote>Global variables should be used sparingly. They are dangerous because they can be written to from anywhere. Overuse of globals can make isolating bugs difficult; it also tends to indicate that the design of a program has not been carefully thought out.</blockquote><p>We simply need to add $ to the front of items to make it a global variable. This needs to be done in both files, wherever the variable name is mentioned.</p><p>And voila! amount-owing.rb will have access to the global items variable in a separate file.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffefb5f3b886" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bug-bytes/global-variables-across-multiple-files-ruby-ffefb5f3b886">Global variables across multiple files (Ruby)</a> was originally published in <a href="https://medium.com/bug-bytes">Bug Bytes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Debug of the Day #1 — Ruby types (novice)]]></title>
            <link>https://medium.com/bug-bytes/debug-of-the-day-1-ruby-types-novice-58e46e3df5bc?source=rss-7f2bd161e21b------2</link>
            <guid isPermaLink="false">https://medium.com/p/58e46e3df5bc</guid>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[debugging]]></category>
            <dc:creator><![CDATA[Ewe Lin Loo]]></dc:creator>
            <pubDate>Thu, 28 Mar 2019 05:08:45 GMT</pubDate>
            <atom:updated>2019-04-04T07:51:20.986Z</atom:updated>
            <content:encoded><![CDATA[<h3>Gets and input types (Ruby)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yYufkw-st0AOQxh1vSdcnw.png" /></figure><p>This post is all about the gets method. The below is some basic source code that contains a crucial bug. See if you can spot the bug!</p><pre>puts “What is your name?”</pre><pre>name = gets.chomp</pre><pre>puts “Hi, #{name}! How old are you?”</pre><pre>age = gets.chomp</pre><pre>puts “Wow! You are #{age} years old. Congratulations!”</pre><pre>puts “#{name}, in #{100 — age} years, you will be 100 years old!”</pre><p>The issue here is that the method getsstores the user input <em>as a string. </em>This means that it is unable to calculate the expression in the final string interpolation #{100-age).</p><p>To fix this, we simply need to rewrite the string interpolation as #{100-age.to_i}. The .to_i method converts the string to an integer, which allows the expression 100-age to be calculated.</p><p>The best way to do this is to re-write the variable assignment of age as age = gets.chomp.to_i. This would allow age to always be used as an integer if the code were to be expanded.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58e46e3df5bc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bug-bytes/debug-of-the-day-1-ruby-types-novice-58e46e3df5bc">Debug of the Day #1 — Ruby types (novice)</a> was originally published in <a href="https://medium.com/bug-bytes">Bug Bytes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Academy Xi: UX Elevate Week 2 — Conducting research]]></title>
            <link>https://medium.com/@EweLinLoo/academy-xi-ux-elevate-week-2-conducting-research-3ac083102fbd?source=rss-7f2bd161e21b------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ac083102fbd</guid>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[academy-xi]]></category>
            <dc:creator><![CDATA[Ewe Lin Loo]]></dc:creator>
            <pubDate>Mon, 18 Jun 2018 05:11:41 GMT</pubDate>
            <atom:updated>2018-06-21T00:39:04.705Z</atom:updated>
            <content:encoded><![CDATA[<p>For week 2, we were tasked with conducting research. This mainly involved practicing interview techniques, writing surveys and conducting competitor analysis. We were also given the opportunity to speak up about the course through a survey. Here are my three personal lessons from the week.</p><p><strong>Lesson #1: Pick the right candidates for your interviews</strong></p><p>I picked a problem statement that would allow me to conduct research with the general public. I thought that this would make things easier for me but I’m not sure if the information I gained from my interviews goes into enough depth. In retrospect, picking a problem area with definite experts would have made it easier to collect information.</p><p><strong>Lesson #2: Test your survey questions</strong></p><p>One of the admin staff members shared <a href="https://www.invisionapp.com/blog/ux-user-research-surveys/?utm_source=loop11&amp;utm_campaign=fab-ux-five&amp;ref=loop11">this</a> link with us through the class Slack channel. It’s all about writing survey questions from the first-person. I followed the advice contained in this article however, I received some negative feedback from those who took my survey. In particular, there were comments saying that my questions were “too personal” and “leading”. This is despite the fact that I edited my questions a couple of times. My class members opted to focus on multiple choice questions and I can see a definite difference in cadence between our surveys. Take everything you read with a grain of salt!</p><p><em>Update: </em>We’ve just had our week 3 classes and I felt the need to update what I wrote here. The qualitative survey answers to my open-ended questions turned out to be quite useful for affinity mapping. I’ve yet to find out how useful quantitative data can be.</p><p><strong>Lesson #3: Reflect on what was done well, what could be done better and what needs doing</strong></p><p>This week gave us our first opportunity to provide course feedback. This early on in the course, I feel the content has been solid. Every class has had a nice mixture of theory and practice. I’d love to see more examples that illustrate the concepts we’re being taught. It would particularly be good to see examples of good versus bad. I’d give bonus points if the instructors were willing to show us how they’ve progressed in terms of their UX skills.</p><p><em>Week 3 sneak-peek: Affinity maps and sticky notes galore!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ac083102fbd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Academy Xi: UX Elevate Week 1 — Defining a problem area]]></title>
            <link>https://medium.com/@EweLinLoo/academy-xi-ux-elevate-week-1-82663b15305d?source=rss-7f2bd161e21b------2</link>
            <guid isPermaLink="false">https://medium.com/p/82663b15305d</guid>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[academy-xi]]></category>
            <dc:creator><![CDATA[Ewe Lin Loo]]></dc:creator>
            <pubDate>Fri, 15 Jun 2018 04:12:41 GMT</pubDate>
            <atom:updated>2018-06-18T04:24:44.885Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://academyxi.com/courses/user-experience-design/">UX Elevate</a> is the 10-week part-time course offered by Academy Xi in Australia. I signed up to their EOFY deal at 30% off the full course price with free access to their other workshops and bootcamps thrown into the bargain. Additionally, they offer access to their job board at the end of the course.</p><p>We’re currently heading into week 3 but I thought it would be nice to journal my entire experience with the course. With that in mind, week 1 was an overview of UX.</p><p>My key takeaway from week 1 was that <strong>UX is an ever-evolving process</strong>, not something to be tacked on to the end of a project. There are always many user considerations to take into account.</p><p>Looking back at the class slides, I had to refresh myself on:</p><ol><li><a href="https://en.wikipedia.org/wiki/Agile_software_development">Agile methodology</a> — “an approach… under which requirements and solutions evolve through the collaborative effort of self-organising and cross-functional teams and their customer(s) and user(s). It advocates adaptive planning, early delivery… and it encourages rapid and flexible response to change.”</li><li><a href="https://www.interaction-design.org/literature/topics/affordances">Affordances</a> — “an object’s properties that show the possible actions users can take with it, thereby suggesting how they may interact with it.”</li></ol><p>For homework, we were assigned the task of defining a problem statement that we would work on throughout the course. My first draft of a problem statement was “How might we encourage people to understand startup NGOs and participate as volunteers, donators, or clients?” My project continues to be in the same problem area but my problem statement has since evolved from that.</p><p>The second task we were assigned was to set goals for ourselves as well as creating an actionable plan on how to fulfil those goals. My two primary objectives to get from this course are a solid UX foundation and a project that I can develop into a portfolio piece. As the instructors have told us, <strong>“You get out what you put in.” </strong>To fulfil my goals, I intend to dedicate a little bit of time every day to learning about UX and completing my homework.</p><p>Keep an eye on my posts for updates on my progress through Academy Xi’s part-time UX course as well as notes from their events.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82663b15305d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Systems Thinking]]></title>
            <link>https://medium.com/@EweLinLoo/introduction-to-systems-thinking-f33a9e331520?source=rss-7f2bd161e21b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f33a9e331520</guid>
            <category><![CDATA[systems-thinking]]></category>
            <dc:creator><![CDATA[Ewe Lin Loo]]></dc:creator>
            <pubDate>Fri, 15 Jun 2018 01:05:25 GMT</pubDate>
            <atom:updated>2018-06-15T01:05:25.833Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Systems thinking refers to the interconnectivity of parts (systems) and how you see the world (thinking).</strong></p><p>Systems thinking originated from cybernetics in the 1940s.</p><p>The exact definition of systems thinking is debated. Overall, it’s about the awareness of complexities involved in design. It’s about understanding the multiple perspectives involved in any given situation.</p><p><strong>Systems are subjective mental constructs.</strong><em> </em>Every person has a different idea about where the boundaries of a system begin and end. <em>Positive communication </em>of independent thoughts is vital to systems thinking.</p><p>Some of the many examples include:</p><ul><li>Bill and Melinda Gates Foundation (solving issues on a global scale)</li><li>Ford (the experience of mobility)</li><li>UNESCO (global environmental cause)</li><li>Nestle (from farms to the table)</li></ul><p>On a global scale, the idea of a <em>circular economy </em>is fundamental to systems thinking. One applied example of this is sustainable design. Systems thinking means following the process from design to production to sales to recycling and back to design.</p><p>Systems thinking is applied to problems with no definite solutions. These are called w<em>icked problems — </em>a term that originated in the 1970s. Every attempt at addressing the problem will have pros and cons. In order to come up with the best solution, it is important to acknowledge what you do not know.</p><p><strong>Systems thinking encourages a holistic perspective on everyday life.</strong> It can be applied to any issue from national politics to raising your kids. Mastering systems thinking means become a better, more rounded individual.</p><p>I was introduced to this concept at <a href="https://www.meetup.com/Systems-Thinking-Sydney/">Systems Thinking Sydney</a> — a newly formed MeetUp group. Check them out if you’re local and interested in finding out more!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f33a9e331520" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>