<?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 Ramon Echeverria on Medium]]></title>
        <description><![CDATA[Stories by Ramon Echeverria on Medium]]></description>
        <link>https://medium.com/@ramon-l-echeverria?source=rss-59371f2c8adf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*G82pf1ry0yNvskT9bGDAOg.png</url>
            <title>Stories by Ramon Echeverria on Medium</title>
            <link>https://medium.com/@ramon-l-echeverria?source=rss-59371f2c8adf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 06:49:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ramon-l-echeverria/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[The Kilobyte’s Gambit]]></title>
            <link>https://ramon-l-echeverria.medium.com/the-kilobytes-gambit-8b3c823072b?source=rss-59371f2c8adf------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b3c823072b</guid>
            <dc:creator><![CDATA[Ramon Echeverria]]></dc:creator>
            <pubDate>Mon, 15 Mar 2021 03:58:17 GMT</pubDate>
            <atom:updated>2021-03-15T03:58:17.520Z</atom:updated>
            <content:encoded><![CDATA[<p>Is it just me or is everyone getting into Chess all of a sudden. Maybe it’s just odd to me, but I could have sworn I saw my younger watching a breakdown video of a popular YouTuber who plays Chess. I would care to venture that the Queen’s Gambit (On Netflix) is also a factor here. If you haven’t seen it you, give it a go. It’s worth the watch.</p><p>Alas, I digress but here’s something fun I found that ties this all together. Welcome to the Kylobyte’s Gambit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*169uz5yrP4t3thGnRCE9zQ.png" /></figure><p>Gosh, I love the retro look of this app, which you can play at <a href="https://vole.wtf/kilobytes-gambit/">https://vole.wtf/kilobytes-gambit/</a>. This is obviously inspired by the Queen’s Gambit series. But it actually is a fully functional Chess Game. So what of the 1024 bytes of Javascript? The game runs a modified version of Óscar Toledo G’s 1k chess, which is 1.25kb to be accurate. The smaller engine size and rolled back graphics are what give you the game :) All in All, this all runs within 1024 of bytes of JS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9rQtq77hyXYBDQZI0_rn-g.png" /></figure><p>Now, I’m no expert chess player, or particularly good. But this is fairly responsive with move sets. And supposedly, my opponent thinks four moves ahead which doesn’t give me much calm haha. One thing I did notice in terms of losing to this engine, was on a successful checkmate, there is graphic saying you lost which is kind. How you realize it’s over is that, you are left with no available moves. But it’s a very nice single page application with a restart function, and some info, definitely check it out</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*bdMQF2kG03VE2W-pJwVlwA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*hw-EeXgP9qM05SZ6UGC7kQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b3c823072b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Default returns]]></title>
            <link>https://ramon-l-echeverria.medium.com/default-returns-41ab2b58547?source=rss-59371f2c8adf------2</link>
            <guid isPermaLink="false">https://medium.com/p/41ab2b58547</guid>
            <dc:creator><![CDATA[Ramon Echeverria]]></dc:creator>
            <pubDate>Sun, 07 Mar 2021 22:52:17 GMT</pubDate>
            <atom:updated>2021-03-07T22:52:17.121Z</atom:updated>
            <content:encoded><![CDATA[<p>Now, if you enjoy testing much of your code, especially in JS. You may find yourself using the console log to display information as you are running code. What’s even better, you can add multiple things to display, as an example in the REPL</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*WwBdaY5C4noW_u6iOuJ7Lw.png" /></figure><p>This can be handy, in those instances when you’re checking multiple things inside of a function. But here’s something strange I did realize during a recent debug session with a friend. It works a bit different when returning values in a function to console log. Such as,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*R69r7FbKJzLYGuZ2HL6NIg.png" /></figure><p>Even more interesting, it’s giving me the last variable in the return. Why thought?</p><p>Well the short answer is JavaScript doesn’t support a return multiple values. This is something that does appear in multiple languages. Some underlying reasons would include the mathematical nature of programming, or data structures you are working with. But surely, this is something that isn’t something we discovered. What if I needed a multiple value return?</p><p>So they trick to returning multiple values is using an array or an object with the return values. Then, making use of destructuring to unpack values from the array, or properties from objects.</p><p>To avoid any confusion, I’ve adjusted the variable names in my greeting function. So using an array, deconstructing would look as such</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*_JI6FvPid2LGRWmsSHonYA.png" /></figure><p>Likewise, using a returned object, we would our deconstructed variables as such</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*rsnhYZyWs1BKJJ5AGNfLQQ.png" /></figure><p>There you go. I did find it a bit odd overall. But should you find yourself needing multiple value returns in a function, be sure to desconstruct to make it easy peasy.</p><p>Till next time</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41ab2b58547" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Memoization]]></title>
            <link>https://ramon-l-echeverria.medium.com/memoization-a3c0fa66f678?source=rss-59371f2c8adf------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3c0fa66f678</guid>
            <dc:creator><![CDATA[Ramon Echeverria]]></dc:creator>
            <pubDate>Mon, 01 Mar 2021 04:41:59 GMT</pubDate>
            <atom:updated>2021-03-01T04:41:59.585Z</atom:updated>
            <content:encoded><![CDATA[<p>This word is a bit more intimidating, surely its the spelling or the how would you pronounce it? In any case, it’s actually a super helpful concept that you (yes, you) can employ to help speed up code. As a base you may see memo, which lines up with what memoization does.</p><p><strong>Memoization</strong> is a technique used to speed up programs by storing the results and returning a stored result when the same inputs happens.</p><p>Case in point, the Classic Fibonacci Sequence</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/297/1*U4rr_Uh3wd5eoCMI6zTIkw.png" /></figure><p>Now this is the recursive version of the sequence, which can be helpful. Unfortunately, as you progress higher with the n input is the recursion can get deeper. Hence, we need to find a way to help cut runtime of our code outputting the n number in the sequence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*KCCioWPrKWP9cKkUgnpbhQ.png" /></figure><p>First, we can insert an empty object named memo which we will make use of in a second. Use of the memo object lies in using it as base case to pause our recursion, as out function spirals into madness =)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/333/1*JYq2GlJ9r8VNAdoS-7bj9A.png" /></figure><p>Hence, should N match a key in our memo later on, we will automatically produce the value needed for our input.</p><p>So we need to store the current result to our memo, by adjusting our return as such:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*1wKTui5ws2M6hjkFV1QPog.png" /></figure><p>Now, our original return/recursion is stored as a key/value of memo[n]. We also make sure to send the memo object into our arguments. Finally, we return memo[n] which is our result of fib(n-1, memo) + fib(n-2, memo).</p><p>I do think the most impressive part is the immediate pop when running the function at higher N values. It’s like night and day, and definitely worth the remodel of the original sequence</p><p>I’d definitely recommend giving it try, both in this function and the original. Might be great to add to the peskier time consuming functions, you might be struggling with.</p><p>Well till next time =D</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3c0fa66f678" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Interesting Collections]]></title>
            <link>https://ramon-l-echeverria.medium.com/interesting-collections-cc86a865ae5e?source=rss-59371f2c8adf------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc86a865ae5e</guid>
            <dc:creator><![CDATA[Ramon Echeverria]]></dc:creator>
            <pubDate>Mon, 22 Feb 2021 02:54:29 GMT</pubDate>
            <atom:updated>2021-02-22T02:54:29.440Z</atom:updated>
            <content:encoded><![CDATA[<p>During my first mock technical interview, I was given a very simple algorithm question. While I dont remember the exact wording, I was given a string and was asked to return an object with key value pairs, that were to be each letter and a count of how often it shows up in the string.</p><p>So essentially, take <strong>const string = ‘aassfbkhbfkjb’ </strong>return {a:2, s:2 … } etc. My original method was to iterate through the string and create the key value pairs, and updating the count as I worked through my string. At the end, return the object. As an example, in Javascript I wrote</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/1*NOG2NAR2EfFMkAdwyLUdBg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*A9rWiGbeJouEBCAm522Odw.png" /></figure><p>As I’ve mentioned previously, I’ve been working in Python with a study group and a similar problem came up and someone used Counter. This was new to me, since it was an import and I’m not terrible familiar with the standard libraries in Python. Enter ‘ from collections import Counter’</p><p>Now Collections is a module gives you access to various containers, which are objects that store other objects. You can also iterate through them. Python is powerful, and when I tried counter in my example I was able to return the key value pairs in an object, in pretty much 2 lines of code. Check this out :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/317/1*_9djOPqJrrztBBqNCHN4KA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*ZXplco_OqoOXlZ4fnkFs2Q.png" /></figure><p>I mean, Python did some work behind the scenes but wow. Still 2 lines of code, is something to take notice. The order is different but the key value pairs line up, in a alphabet soup ind of way haha.</p><p>As always, it raised the question what other built in functions or libraries, are we not using in any language we are programming in? There’s definitely more built into collections with Python, and I’m excited to make some smaller rabbit holes into some of the more fringe parts of programming.</p><p>Till next time :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc86a865ae5e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CORS]]></title>
            <link>https://ramon-l-echeverria.medium.com/cors-871dd4d2b032?source=rss-59371f2c8adf------2</link>
            <guid isPermaLink="false">https://medium.com/p/871dd4d2b032</guid>
            <dc:creator><![CDATA[Ramon Echeverria]]></dc:creator>
            <pubDate>Mon, 15 Feb 2021 01:59:55 GMT</pubDate>
            <atom:updated>2021-02-15T01:59:55.806Z</atom:updated>
            <content:encoded><![CDATA[<p>I am consistently testing my apps when I am building. Me developer tools are consistently open, whether it be for javascript or for css (Cascading Style Sheets =). Now when I’m building, I will run into an occasional hiccup or maybe my console log will not be what I need it to be in the exact moment. But wow, working on some socket io stuff, I noticed this when I opened my dev tools on chrome.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*wB67RpWEN_4l772aJiA3fw.png" /></figure><ul><li>Internal Scream* I normally work with Ruby on Rails for API and databases, but for this project I’m working with node.js, nodemon and socket io, so this is a bit new for me. ‘</li></ul><p>As a refresher, CORS (Cross-Origin Resource Sharing) is used for accessing web resources on different domains, and a common standard. It pops up a lot when you are starting out. For this instance, its giving me the side tackle, when testing my server. Also, wow 76 console errors in a minute can be a bit much haha. Still both my client and server are working, just not getting along.</p><p>So, I did started to look at the documentation which gave some practical advice to fix this specific error. This can be a bit problematic with the generality of the documents. But I know the constant for my io is the target, or the bug of my issues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*0q0sBHdwtTTNMyhoh1nGYg.png" /></figure><p>As per the documentation, I need to also take into account which version of socket io. I am using which happens 3.1.1 which is important. Make sure should you travel this path of the troubleshooter, that you have some numbers to work with from your dependencies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*-t8LqhsULOLCIx9irScKqQ.png" /></figure><p>Now I don’t want to alter my code too much, so I need to take into account I’m calling my requirement for socket, so const socketio is my “require(“socket.io”) and server is (httpServer, … yadadada }. Like a great recipe i need to adjust and remeasure for the taste of my javascript server.</p><p>Now things did start to work well, but ran into some occasional issues with cors as I continue to build up my application from the setup. So… I pursued the issue a bit more and found this, using * as the origin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*N7UT9G7bqT0Ya6y7iPGLMw.png" /></figure><p>Now this is actually, works pretty well. As for why, using the * means that the resource can be accessed by any origin. Now this is obviously, not recommended for production or when deploying. But Locally, I can use this to add layers to my frame. Then, readjust my cors object for the parameters needed when I deploy. This is entirely for the extra security that cors gives us.</p><p>Well, was a fun rabbit hole, but back to work. Till next time</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=871dd4d2b032" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Going Local or Session in Storage]]></title>
            <link>https://ramon-l-echeverria.medium.com/going-local-or-session-in-storage-a3ce00eccfb8?source=rss-59371f2c8adf------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3ce00eccfb8</guid>
            <dc:creator><![CDATA[Ramon Echeverria]]></dc:creator>
            <pubDate>Mon, 08 Feb 2021 03:00:25 GMT</pubDate>
            <atom:updated>2021-02-08T03:00:25.225Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SypENTmuOkNKALAnFrr_fg.jpeg" /></figure><p>On occasion, a Developer will need to have some specific user data persist specifically with the browser/view component of an application. When forging my current portfolio, I introduced changing themes and wanted theme to persist. Enter Local Storage.</p><p>When writing this post, I wanted to chat just about local storage and looked at the documentation. And, it made a clear distinction on where it differs from session storage. Gosh, another rabbit hole. What is session storage?</p><p>So let’s start with where both come from, which is the Storage object located in the Web Storage API. I know, I’m including more terms and suddenly this is an Inception like spiral of terms related to web development. But I’ll keep these deeper levels a bit shallow as we. move back up quickly.</p><p>In short, the Web Storage API is a provider which allows your browser to store data as key-value pairs. Why? The function is to allow a more intuitive option when compared to. using cookies. Now, The Web Storage API has two main components, localStorage and sessionStorage.</p><p>To access these objects, we need to use Window object and evoke using Window.sessionStorage and Window.localStorage. This will create a storage object available for use in setting, retrieving and deleting data.</p><p>Both, session and local objects store data, run independent of a server and have higher storage limits than a cookie.</p><p>Where they differ is this. A session object creates unique sessions with each new tab a user opens in the app or browser. Each page is a session that lasts until the page is closed, refreshes and restores don’t erase the data. It also boasts a limit of 5MB, for reference. Once, closed sessions objects are all cleared, like a blank slate.</p><p>As for our local storage object, data inside the object persists. Much like a twinkie ( according to urban myth) they have no real expiration date. Objects retain data unless removed by a Javascript function, clearing the cache or locally stored data. While it varies, data limits are closer to 10MB based on the browser, which is an optimization to avoid excess memory usage and performance issues with web storage.</p><p>Now for my portfolio, I used local Storage. So you can keep the theme light or dark consistently. In case you are not a fan of the light (default) you can always revisit and the theme will be consistently dark should you return.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*1npzKoPA0-LW9COenl8Jvw.png" /></figure><p>All in all, another rabbit hole managed. But now, maybe a use for session Storage in a future project? Time will tell.</p><p>Till next time. =)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3ce00eccfb8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[First Time Mob]]></title>
            <link>https://ramon-l-echeverria.medium.com/first-time-mob-49561dff9b22?source=rss-59371f2c8adf------2</link>
            <guid isPermaLink="false">https://medium.com/p/49561dff9b22</guid>
            <dc:creator><![CDATA[Ramon Echeverria]]></dc:creator>
            <pubDate>Sun, 31 Jan 2021 21:31:17 GMT</pubDate>
            <atom:updated>2021-01-31T21:31:17.682Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*Fj47TUZ4MYyaiXh8Zv_aaQ.jpeg" /><figcaption>Image by <a href="https://pixabay.com/users/geralt-9301/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=523236">Gerd Altmann</a> from <a href="https://pixabay.com/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=523236">Pixabay</a></figcaption></figure><p>Recently, I’ve been working more and more with Python. I’ve even joined a Study Group that primarily works with Python to add some momentum as I round the learning curve. Our organizer, leader, visionary (hehe) recently invited me to a session of mob programming. Now I’ve never heard of mob programming but who am I to say no.</p><p>Now I am familiar with pair programming. 2 individuals collaborating, taking turns as Driver and Navigator. Mob programming has a similar setup but introduces the mob. Now the mob in short are the onlookers and part of the collaboration. While rules can generally vary on how people shift roles, our session started with 1 driver, 1 navigator and the mob, with 5 minute timer in roles as the rotate people out. In fact there’s a site that provides a simple app that can track this for you and it’s free. It’s a pretty nifty tool also, so link attached.</p><p><a href="https://mobti.me/">MobTime</a></p><p>The basic concept of a mob programming session is everyone working on the same problem, task, or code, at the same time. In fact being a part of the mob, while passive, requires a bit more detailed viewing of what the driver and navigator are working on or trying to accomplish. Once you slot into active role, driver or navigator, you have pick up or maybe go in a separate direction. But the mob can also interject when something might go awry or if the navigator is a bit in the fog or unsure what was going to happen prior to the role switch.</p><p>Now I’d love to say that this new group I was a part of, hit the ground running or synced like a video of dancers on tik tok. Truth is, it was a bit nebulous for a lot of us working on a leetcode problem. Also, we were using Pytest to also work on Test Driven Development at the same time. So, there were plenty of plates spinning. After, a few hours there were plenty of circles my mind made in trying to keep up and digest in terms of this mix of engineers. Then, like most things in programming or at least in my mind, it suddenly clicked.</p><p>After a few lackluster turns navigating, I got the flow of how others viewed the specific question and what the current approach was, and suddenly my test flashed green, SUCCESS. Of course, it got a bit late at that point so we set the code aside for when we meet next. But overall, going in it seemed like ths was going to be a far bigger challenge. We sometimes focus on trying to knock it all out on our own, but once I gave into the general flow things started happening. I had that Nemo moment in the East Australian Current.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/355/1*OxpsZetk2SVmnax8Baim7w.gif" /></figure><p>It was cool, and I’m looking forward to the next session. So wish me luck. Till next time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49561dff9b22" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DM Ref: BreadCrumbs]]></title>
            <link>https://ramon-l-echeverria.medium.com/dm-ref-breadcrumbs-1f1c23ff1206?source=rss-59371f2c8adf------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f1c23ff1206</guid>
            <dc:creator><![CDATA[Ramon Echeverria]]></dc:creator>
            <pubDate>Mon, 25 Jan 2021 02:59:28 GMT</pubDate>
            <atom:updated>2021-01-25T02:59:28.297Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey All…</p><p>So I’ve been a bit busy, but I did not forget this project in progress. =) I did get a chance to touch base with my buddy running our D&amp;D game, or as titles go I spoke with my Dungeon Master. I mentioned my workshopping a possible app for our game that we could use. He started to name drop a lot of things he’s using to bring the game together. I started to see how much work goes into bringing together a game session.</p><p>While my app is very bare so far, I did get some great ideas of possible functions we could bring in that would make sense and maybe centralize his work and allow the players a core source for reference.</p><p>I started to show off a bit in terms of bootstrap and some of the things I could bring visually. Then he asked me, what are breadcrumbs?</p><p>I’m not a huge design person based on my current exposure so this was new question. Now if you hear breadcrumbs, if your mind works like mine, you start to think Hansel and Gretel or maybe chicken parm. Again, random associations are my thing haha.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/236/1*ecAa69Wt5lrBFmvHinebxA.jpeg" /></figure><p>The use of the name breadcrumbs is can be attributed to the classic fairy tale by the Brothers Grimm. They also are a way to follow your path in the forest of a website. These breadcrumbs appear as hyperlinks aka links.</p><p>So why breadcrumbs? Well, breadcrumbs are not useful in single page applications but have great uses in larger scale sites. Typically, the reside in a horizontal line and provide users an idea of where they are in terms of your site. As an example, in this unnamed popular electronics website ;)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*74fw7-Zsc8Moa9nRy2UlOw.png" /></figure><p>In the top let corner, you can see I’ve travelled from Home to Office Solutions to Monitors then LCD/LED monitors. Of course, If I’ve travelled too far, I can click on any of the links previous to LCD/LED monitors look at those more expanded pages. This type of link navigation also reduces the amount of clicks.</p><p>While excitingly looking this up, and explaining it to my friend, something did hit me. While I have seen this feature, why don’t all site implement this. For starters, this feature can be additional but should generally be more of a “if needed” feature. There is plenty to consider when you are building a site and you don’t want to overload the visual aspects of your site.</p><p>Not quite sure, if I will use this breadcrumbs just yet but something worth thinking about as I retool my current vision after the feedback session with my friend. I will say there are plenty of variations and expansions, but let’s see how this evolves with my next update on this project in motion.</p><p>Till next time</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f1c23ff1206" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Arguments in JS functions]]></title>
            <link>https://ramon-l-echeverria.medium.com/arguments-in-js-functions-32fc7a1abecf?source=rss-59371f2c8adf------2</link>
            <guid isPermaLink="false">https://medium.com/p/32fc7a1abecf</guid>
            <dc:creator><![CDATA[Ramon Echeverria]]></dc:creator>
            <pubDate>Mon, 18 Jan 2021 03:56:22 GMT</pubDate>
            <atom:updated>2021-01-18T03:56:22.678Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently, been working on some algorithms. One question, I recently worked on involved taking in any number of positive integers and returning a value. Now this was a bit weird for me, normally when. constructing a function you declare your arguments or parameters for the function before hand but how to work with an unknown number… enter arguments.</p><p>lets say for example I need to find the sum of integers passed into a function, if I had 2 numbers I could write something like this in JS</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/1*eh3cJAJ799a3eBiAvSZ9rw.png" /></figure><p>But what if I had to take all numbers, like num1, num2 … num10. My functions would pick up the first 2 and ignore the rest. Unbeknownst to me there exists an object in functions called arguments, which if logged with 10 integers shows this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*jByEv4B0VOklFsaO4058IQ.png" /></figure><p>As you can see, I’m picking up the first 2 and return 3 at the end of the function, but arguments is giving me key value pairs with the inputs in. Although it is an object, arguments behaves like an array which is why the keys are similar to the index of an array. So arguments[1] = 2 which seems straightforward. Arguments also has a length property which is not found in objects such as arguments.length would equal 10. Otherwise there is are no other array methods available for arguments. However, we have plenty of object methods we can evoke using arguments.</p><p><em>Note: You can turn arguments into an array using a few methods as an example.</em></p><pre>Method1:<br>let args = Array.from(arguments);<br>Method2:<br>let args = [...arguments];</pre><p>Using this specific input and function, I can retool my sumOfNums to add all my parameters being used when I call the function. I can iterate through the object using a for… in iterator. While I could keep num1 and num2 variables, it would just be confusing when you look at it and iterate, so ill be omitting them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*-VYbB1bDMVoX9JfCDu1VSQ.png" /></figure><p>Since the parameters exist in arguments as my keys, using the arguments[key] will give me the inputs, which I can add to my sum variable and return the sum of the inputs being feed into my function.</p><p>I will say there is a lot of interesting functionality with arguments, such as you can use the spread operator to initialize arguments as an array</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*WaqEtFsNYxEKjPa2YZpUMw.png" /></figure><p>I feel like I will go on forever, but I’ll attach the MDN documentation for your reference. I’d definitely take look, since it’s an added functionality I just found out about =) Maybe it will be your first introduction as well.</p><p>Well till next time</p><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments">The arguments object - JavaScript | MDN</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32fc7a1abecf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[90–90]]></title>
            <link>https://ramon-l-echeverria.medium.com/90-90-43328ec1cb54?source=rss-59371f2c8adf------2</link>
            <guid isPermaLink="false">https://medium.com/p/43328ec1cb54</guid>
            <dc:creator><![CDATA[Ramon Echeverria]]></dc:creator>
            <pubDate>Mon, 11 Jan 2021 02:53:06 GMT</pubDate>
            <atom:updated>2021-01-11T02:53:06.001Z</atom:updated>
            <content:encoded><![CDATA[<p>Being new to the world of software development, I’m use to running into terms that are new vocab for my early storage of speaking Developer.</p><p>It was recently that I was being my usual impression of a rubber duck with a fellow developer. As usual, the specific bug was something quite simple and maybe just needed fresh eyes. So remember, be kind to yourself, since you may already be there.</p><p>From my perspective, the project seemed almost done but I was hit with “ well, this might be the first 90 percent and I probably still have 90 percent to go”. Of course, my mind did the math and was like that’s 180 %, what exactly are you building? XD</p><p>This general rule is based on a quote by Tom Cargill</p><blockquote>The first 90 percent of the code accounts for the first 90 percent of the development time. The remaining 10 percent of the code accounts for the other 90 percent of the development time.</blockquote><blockquote>— Tom Cargill, Bell Labs</blockquote><p>This specific day, I got a quick crash intro about the 90/90 rule. Essentially building the core functionality of any application hits you with this wave and vision of the finish line for your app. But the trick is, that core stuff can be misleading. There is plenty of little things that add up that eventually take up a good chunk of time, thus more work must be done in order to reach completion, thus the remaining 10 percent of a project becomes another 90 percent of development time.</p><p>The little items can be anything ranging from the edge cases or refactoring code, which can introduce you to a host of new bugs and application errors. This can make the timeline much longer. Why does this come up?</p><p>The general idea is to be aware that the secondary 90 percent is always around the corner. However, don’t be discouraged by it. It’s completely normal and is something you expect to handle as you gain more experience as a developer.</p><p>In terms of keeping this rule in mind. It’s important to cushion your timeline for the last 90 percent. It will find you or you will find it. But nothing we can’t handle, just be sure to find it before it finds you.</p><p>till next time</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43328ec1cb54" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>