<?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 Rachel McTavish on Medium]]></title>
        <description><![CDATA[Stories by Rachel McTavish on Medium]]></description>
        <link>https://medium.com/@raccmct?source=rss-b93aeae9c55------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_tiG_9VpZwlngcAK_Tc-Ag.jpeg</url>
            <title>Stories by Rachel McTavish on Medium</title>
            <link>https://medium.com/@raccmct?source=rss-b93aeae9c55------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 07:16:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@raccmct/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[Reading Docs, Challenging Myself and a Little Interview Prep]]></title>
            <link>https://raccmct.medium.com/reading-docs-challenging-myself-and-a-little-interview-prep-b256080cab4e?source=rss-b93aeae9c55------2</link>
            <guid isPermaLink="false">https://medium.com/p/b256080cab4e</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[lodash]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <dc:creator><![CDATA[Rachel McTavish]]></dc:creator>
            <pubDate>Mon, 19 Apr 2021 02:49:36 GMT</pubDate>
            <atom:updated>2021-04-19T02:49:36.698Z</atom:updated>
            <content:encoded><![CDATA[<p>This week, I’m rounding out my JavaScript 211 course and have hit some good milestones in my learning to program journey. Yes, I continue to struggle with how to write good unit tests, especially for API calls, but this is just one topic that I will continue to work through outside of classes.</p><p>This week I spent a good amount of time reading documentation on Lodash, a JavaScript library that uses underscore notation (._).</p><p>This was somewhat challenging, since this learning was one of the first times I was learning a library only from documentation, rather than having more guidance. However, the struggle, a lot of errors and finally some unit testing, I feel proud of being able to write a few functions using this library and knowing that I could be able to learn something independently (well, with some help from classmates) is another step towards becoming a developer.</p><figure><img alt="Macbook with post it notes stating phrases, “code, debug, learn, sleep, repeat”" src="https://cdn-images-1.medium.com/max/640/1*8XnSjznLinAq5hlI--kg2g.jpeg" /><figcaption>Image from user <a href="https://pixabay.com/users/15548337-15548337/">ID# 15548331 on Pixabay</a></figcaption></figure><p><strong>Some More Intro Developer Interview Prep:</strong></p><p><strong>Explain Function.prototype.bind()</strong></p><p>In JavaScript, the function bind() creates a new function, that has its this keyword set to the supplied value. This uses a given sequence of arguments preceding any provided when the new function is called.</p><p>From: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_objects/Function/bind">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_objects/Function/bind</a></p><p><strong>What is event bubbling?</strong></p><p>Event bubbling refers to the order event handlers are called when one element is nested inside a second element. In event bubbling, both elements have registered a listener for the same event (e.g., “onClick”).</p><p><strong>What’s the difference between the window load event and document DOMContentLoaded event?</strong></p><p>The DOMContentLoaded event fires when parsing of the current page is complete.</p><p>The load event fires when all files have finished loading from all resources (e.g., images, ads, videos).</p><p><strong>Describe the call stack.</strong></p><p>The call stack is the data structure which stores information about the active routines and subroutines of a program. It’s essentially the list of activities (often functions- including implicit functions) that are firing and the data being stored as a result. The call stack is useful in debugging since it is essentially a list of all the active functions that have been called to get to the current point of execution. The call stack includes an entry for each function called, as well as which line of code will be returned to when the function returns.</p><p>I hope this helps anyone who is pushing themselves further in their coding journey to feel a little less isolated. Remember, celebrate the little wins and that even the most senior developer (or genius) had to start with the same “hello world”!</p><p>Your friend in code,</p><p>Rachel</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b256080cab4e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[APIs and breaking down AJAX]]></title>
            <link>https://raccmct.medium.com/apis-and-breaking-down-ajax-8db464699356?source=rss-b93aeae9c55------2</link>
            <guid isPermaLink="false">https://medium.com/p/8db464699356</guid>
            <category><![CDATA[ajax]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Rachel McTavish]]></dc:creator>
            <pubDate>Mon, 12 Apr 2021 17:16:11 GMT</pubDate>
            <atom:updated>2021-04-12T17:16:11.221Z</atom:updated>
            <content:encoded><![CDATA[<p>This week I spent a fair amount of time working through using fetch() and get fun API data was an interesting challenge. From an app design perspective, it has opened a new series of data to pull and combine for future and current smaller learning projects that will (hopefully) pan out into some fun interactive apps.</p><p>However, as with all new and exciting topics, it included multiple new bugs to work through. One unexpected issue was that my API projects now do not have a real database, so I had to use CORS, a well-built proxy designed for API projects for people like me who are learning (cors-anywhere.herokuapp.com). It now requires you to request permission each day to use it as a temp proxy server. So, for building an app that requires a database to “talk with” for public consumption beyond a learning exercise would require an actual database build… Which is coming soon! Stay tuned for my soon adventures in MySQL.</p><figure><img alt="computer screen with code" src="https://cdn-images-1.medium.com/max/640/1*JXwtaU8En_Yu-_WmWS2A8g.png" /><figcaption>Image from JohnsonMartin on <a href="https://pixabay.com/users/johnsonmartin-724525/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1084923">Pixabay</a></figcaption></figure><p><strong>Why use something like the load event? What are some disadvantages, alternatives, and when to use them?</strong></p><p>A load event runs when the page is fully loaded. By using the “load” event within JavaScript, you can detect when the web page or images, scripts etc. have finished loading. From there, you can run a callback function to act.</p><p>One well discussed disadvantage is that load events run instantly, so functions can run before data is retrieved from a database or the backend of the app or website. So, those that those functions may not be able to perform, so in those cases asynchronous functions would be a good choice.</p><p>Readystatechange and DOMContenetLoaded are alternatives to the load event. They are initiated when the DOM and its elements are ready to use, but before external resources are fully loaded.</p><p>You would use these when you do not need everything to load before running functions.</p><p>Here is a great video tutorial:</p><p><a href="https://www.youtube.com/watch?v=NdKTdc6dLoc">https://www.youtube.com/watch?v=NdKTdc6dLoc</a></p><p><strong>What is AJAX?</strong></p><p>AJAX stands for: Asynchronous JavaScript And XML.</p><p>It uses a browser built-in XMLHttpRequest object (to request data from a web server) and it uses JavaScript and HTML DOM to display or use the data.</p><p>AJAX apps can use XML to transfer data, but can also transfer data as plain text or JSON text.</p><p>AJAX lets web pages to be updated asynchronously by exchanging data with a web server behind the scenes. This makes it possible to update parts of a web page, without reloading the entire web page.</p><p><a href="https://www.w3schools.com/whatis/whatis_ajax.asp">https://www.w3schools.com/whatis/whatis_ajax.asp</a></p><p><strong>What are the advantages and disadvantages of using Ajax?</strong></p><p><strong>PROS:</strong></p><p>AJAX allows webpages to update serially by exchanging a small amount of data with the server. This way it is possible to update parts of a webpage, without reloading the whole page.</p><p>Asynchronous data retrieval can be done by using XmlHttpRequest, so requests are handled effectively and this can improve the performance.</p><p><strong>CONS:</strong></p><p>AJAX depends on JavaScript. But JavaScript can be implemented differently for different browsers. Browsers which have the JavaScript option disabled will not be able to use its functionality. Therefore, it is not useful or optimal for mobile applications.</p><p>The webpage can be hard to debug, and it can increase the code size of your webpage.</p><p>Additional resources:</p><p><a href="https://way2tutorial.com/ajax/ajax-advantages-and-disadvantages.php">https://way2tutorial.com/ajax/ajax-advantages-and-disadvantages.php</a></p><p><a href="https://dzone.com/articles/pros-and-cons-of-ajax">https://dzone.com/articles/pros-and-cons-of-ajax</a></p><p><strong>How does JSONP work? (aka how it is not really Ajax)…</strong></p><p>JSONP means JSON with Padding. It requests files using the script tag instead of the XMLHttpRequest object.</p><p>Essentially, JSONP loads the JavaScript file and runs the code inside JavaScript file when it is loaded.</p><p>Ajax is using XMLHTTPRequest to request any kind of resource, but cross-domain feature depends on browser implement.</p><p>Reference Resource for expanded explanations: <a href="https://stackoverflow.com/questions/10289789/i-dont-get-how-jsonp-is-any-different-from-ajax">https://stackoverflow.com/questions/10289789/i-dont-get-how-jsonp-is-any-different-from-ajax</a></p><p><strong>What does it mean when we talk about time complexity of an algorithm?</strong></p><p>Time complexity refers to how many actions it takes to iterate through an array to find a specific element or handle and return a solution. If you have to iterate over an array of five items once, then your time complexity would be 1(n). If you have to re-iterate over an array (e.g., bubble sorting), then it would have a higher time complexity.</p><p>There are sometimes where a higher time complexity is necessary because other factors may need to be taken into account (e.g., memory)</p><p>Additional resources on this topic:</p><p><a href="https://www.freecodecamp.org/news/time-complexity-of-algorithms/">https://www.freecodecamp.org/news/time-complexity-of-algorithms/</a></p><p><a href="https://www.cs.utexas.edu/users/djimenez/utsa/cs1723/lecture2.html">Data Structures: Lecture 2</a></p><figure><img alt="antique clock on wooden table" src="https://cdn-images-1.medium.com/max/640/1*fnNPVL6Ot8RK3U_bl55MTg.jpeg" /><figcaption>Image by Monoar_CGI_Artist on <a href="https://pixabay.com/users/monoar_cgi_artist-2240009/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1274699">Pixabay</a></figcaption></figure><p><strong>What are the three laws of algorithm recursion?</strong></p><p>1) Must call itself recursively.</p><p>2) Must have a base case. Base cases are what let the algorithm stop recursing (so a stopping point otherwise you end up in an infinite loop- not cool!)</p><p>3) Must change its state and move towards the base case. The data changes until it meets the conditional of the base case. Essentially, the data is being manipulated in steps or increments towards the final solution.</p><p>Reference resources:</p><p><a href="https://runestone.academy/runestone/books/published/pythonds/Recursion/TheThreeLawsofRecursion.html">https://runestone.academy/runestone/books/published/pythonds/Recursion/TheThreeLawsofRecursion.html</a></p><p><a href="https://sites.google.com/a/lps.k12.co.us/ahs-intro-to-computer-science/home/recursion/2-three-laws-of-recursion">https://sites.google.com/a/lps.k12.co.us/ahs-intro-to-computer-science/home/recursion/2-three-laws-of-recursion</a></p><p><strong>How do I see myself growing as a web developer?</strong></p><p>Did my first hello world in December, so growing a lot as far as skills, but also in my mindset that “failure” is actually a learning process, and debugging is not “de-failure” or trying to make up for a shortcoming, it is just part of the process. However, during some debugging periods, especially this weekend while I was sick, it can be difficult to keep a growth mindset at the forefront.</p><p>I know that I will be a good developer, because even after hitting some rougher debugging or coding patches, I keep coming back and keep learning. There is a very steep and intimidating learning curve, but being reassured that imposter syndrome is persistent even among senior developers helps, we all have the same struggles, because while I am still at the beginning of my coding journey, everyone has to start with the same “Hello World”.</p><p>If anyone needs some quick motivational videos, these are helpful. Also, very easy to listen to in the background when you are busy attempting “real life” when not coding to feel motivated again after some debugging time.</p><p><a href="https://www.youtube.com/watch?v=tvuD0W_Dt88">https://www.youtube.com/watch?v=tvuD0W_Dt88</a></p><p><a href="https://www.youtube.com/watch?v=QPXSV0kudyk">https://www.youtube.com/watch?v=QPXSV0kudyk</a></p><p>I hope this article helps anyone who needed some coding review, is dealing with API call debugging, or is curious about AJAX and what the heck it means (all the cool kids on StackOverflow seem to talk about it plenty)!</p><p>Your friend in code,</p><p>Rachel</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8db464699356" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hackathon Practice and Algorithms: breaking down some intimidating parts of coding]]></title>
            <link>https://raccmct.medium.com/hackathon-practice-and-algorithms-breaking-down-some-intimidating-parts-of-coding-ae6e1bc5cdde?source=rss-b93aeae9c55------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae6e1bc5cdde</guid>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[hackathons]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[code]]></category>
            <dc:creator><![CDATA[Rachel McTavish]]></dc:creator>
            <pubDate>Mon, 05 Apr 2021 02:28:53 GMT</pubDate>
            <atom:updated>2021-04-10T00:57:18.841Z</atom:updated>
            <content:encoded><![CDATA[<p>This week I spent some time doing a “practice” hackathon and puzzling my way through algorithms. Now both of these buzz words were very intimating to me and were therefore a challenge I knew I would have to confront but was dreading it.</p><p>As always in life, it ended up being a little anti-climatic in some ways. I have built up the idea of a hackathon and algorithms as impossibly difficult tasks that only the elite programmers or those who were somehow born with brains that can spit out brilliant mathematical statements would be able to do early on in their coding journeys. Nope, that is simply not true, well, those individuals probably can and do, but us mere mortals and coding students can as well!</p><figure><img alt="Man working on laptop in dark room (black and white photograph)" src="https://cdn-images-1.medium.com/max/640/1*bw2yRT5kyTCNTvu1sKsPJw.jpeg" /><figcaption>Image by I Am Mr Rob on <a href="https://pixabay.com/users/iammrrob-5387828/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=2903156">Pixabay</a></figcaption></figure><p>For my hackathon practice, I teamed up with some other code newbies to tackle some complex problems together in a set time limit. Now unlike a true hackathon our problems would be quick for a senior developer to solve and they could likely do them solo and in about 15 minutes rather than our 1 hour time frame. But to us they were more complicated, required us to communicate and I felt the most confident I have ever during this experience. Which was a very very unexpected result.</p><p>It solidified some of my “soft skills” that are absolutely essential for a successful career in tech, regardless of the job title. That is the significance for setting up and convincing teammates of code planning during a hackathon or collaborative programming setting to solve a complex problem.</p><p>This was not the only time, nor will it be that I end up leaning on my background in project management and academic teaching. I was the one to keep the big picture in focus, forced my team to really talk and verbalize the problem to break it down BEFORE we started getting into the coding. Now, this was not easy, because we were all excited to start the solving part, but it is impossible to really solve a problem as a team unless we all understand what the problem means, what are the steps we want to take to solve it. By verbalizing it out loud, with some dictation, we were able to ensure that we all had a mutual understanding of what everyone was thinking. The project manager in me also felt the need to ensure everyone felt heard. This allowed the actual coding to be more efficient and our “divide and conquer” algorithms were not difficult, since we had a plan for how to divide and conquer them. And when there were bugs, as a team we were better able to discuss them since we knew why the code was written.</p><figure><img alt="Annimated people putting together a block puzzle together" src="https://cdn-images-1.medium.com/max/640/1*pju0dYEpT4AacEcq4kIvCw.jpeg" /><figcaption>Image by Peggy Marco on <a href="https://pixabay.com/users/peggy_marco-1553824/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1027571">Pixabay</a></figcaption></figure><p>So, my takeaways for my future hackathons and my breakdown for the structure that we took (with some reminders of what the big picture was sprinkled in for good measure).</p><p>1) Everyone has to be on the same page with what the goal is- it is always surprising how the same prompt or problem can be interpreted in different ways, or even the written steps can be interpreted differently. But in a timed situation and a collaborative setting, it is critical to have everyone on the same page at the start.</p><p>2) Code planning or even first verbalizing the logic behind the goal is important- this is the opportunity to ensure everyone using different phrases really means the same thing and everyone understands each other.</p><p>3) Then write out all the steps, that way it’s broken down into increments- so it’s like setting up a series of prompts / to-do lists to make it a series of simple problems that work together to solve the complex problem.</p><p>4) Then tackle the steps one by one in the business logic order or the agreed upon order.</p><p>5) Test increments as you go (unit testing or console.log).</p><p>6) Overall, make sure you are in continual communication. One person can be researching or even the team and then discuss which solution to try first.</p><p>7) Makes it a more efficient process, makes sure everyone is heard and contributes, but also ensures we’re getting to the solution in a manner where everyone benefits (turns it into a learning experience)</p><p><strong>Now onto some algorithms and concepts of object oriented programming that I’ve been working through!</strong></p><p><strong>Immutability: What is it and what are the pros and cons?</strong></p><p>Immutability is a core principle in functional programming and has lots to offer to object-oriented programs as well. A mutable object is an object whose state can be modified after it is created. An immutable object is an object whose state cannot be modified after it is created.</p><p><strong>Pros</strong></p><ul><li>Programs with immutable objects are less complicated to think about, since you do not need to worry about how an object may evolve over time. Therefore, in some ways it is more maintainable and easier to code and read between different developers on the same or different teams.</li><li>One copy of an object is just as good as another, so you can cache objects or reuse the same object multiple times.</li></ul><p><strong>Cons</strong></p><ul><li>Distribution of many small objects rather than modifying existing ones can cause a performance impact.</li><li>Cyclical data structures such as graphs are difficult to build. If you have two objects which cannot be modified after initialization, how can you get them to point to each other?</li></ul><p><strong>That’s great, but how can we actually achieve immutability in our own code?</strong></p><p>There are immutability libraries like <a href="http://facebook.github.io/immutable-js/">immutable.js</a>, <a href="https://github.com/swannodette/mori">mori</a> or <a href="https://github.com/immerjs/immer">immer</a>.</p><p>Otherwise, use const declarations combined with the techniques mentioned above for creation.</p><p>Then, to “mutate” objects, use the spread operator, Object.assign, Array.concat(), etc., to create new objects instead of mutating the original object.</p><p><a href="https://www.invivoo.com/immutability-and-javascript/">Immutability and Javascript</a></p><p><a href="https://wecodetheweb.com/2016/02/12/immutable-javascript-using-es6-and-beyond/">https://wecodetheweb.com/2016/02/12/immutable-javascript-using-es6-and-beyond/</a></p><p><a href="https://www.sitepoint.com/immutability-javascript/">Immutability in JavaScript - SitePoint</a></p><figure><img alt="Cartoon person with confused expression" src="https://cdn-images-1.medium.com/max/640/1*q0bJi47_MRP9fqPG3_zEeA.png" /><figcaption>Image by MMillustrates on <a href="https://pixabay.com/users/mmillustrates-8219771/">Pixabay</a></figcaption></figure><p><strong>What are Divide and Conquer algorithms? How do they work?</strong></p><p>Well, we worked through some divide and conquer problems in our hackathon and they seem relatively common in both coding interviews and real world programming situations. It can be divided into the following three parts:</p><p>Divide: dividing the problem into some sub problems</p><p>Conquer: Work through sub problems by calling recursively until a sub problem solved.</p><p>Combine: Once the sub problems are solved you will get find problem solution.</p><p>Some of the quick examples of divide and conquer algorithm problems include:</p><ul><li>Binary Search.</li><li>Quick Sort.</li><li>Merge Sort.</li><li>Integer Multiplication.</li><li>Matrix Multiplication (Strassen’s <strong>algorithm</strong>)</li><li>Maximal Subsequence.</li></ul><p><a href="https://en.wikipedia.org/wiki/Divide-and-conquer_algorithm#:~:text=A%20divide%2Dand%2Dconquer%20algorithm,solution%20to%20the%20original%20problem">https://en.wikipedia.org/wiki/Divide-and-conquer_algorithm#:~:text=A%20divide%2Dand%2Dconquer%20algorithm,solution%20to%20the%20original%20problem</a>.</p><p><a href="https://www.radford.edu/~nokie/classes/360/divcon.html">https://www.radford.edu/~nokie/classes/360/divcon.html</a></p><p><a href="https://www.geeksforgeeks.org/divide-and-conquer-algorithm-introduction/">https://www.geeksforgeeks.org/divide-and-conquer-algorithm-introduction/</a></p><p><strong>Some algorithm problems: How do insertion sort, heap sort, quick sort, and merge sort work?</strong></p><p>First, note that algorithms are yes a mathematical term, but it’s much easier to think of them as just recipes. They’re blocks of code that work together to create something. When you really think about it, you’ve likely been writing, reading and working through algorithms long before stumbling onto the actual word “algorithm” in your coding journey. Hence my former statement of them being both conquerable by us mere coding mortals. But they can be difficult to recall in a pressure situation and they can also be incredibly complicated. Here are some simpler ones to get us started!</p><p><strong>Insertion Sort:</strong></p><p>Insertion sort is a comparison algorithm that builds a final sorted array one element at a time.</p><p>It iterates through an input array and removes one element per iteration. It then finds the place the element belongs in the array, and places it there.</p><p><strong>Quick Sort:</strong></p><p>Quick sort is a comparison algorithm using divide-and-conquer to sort an array.</p><p>The algorithm picks a pivot element, A[x] and then rearranges the array into two subarrays.</p><p>Sub-array 1) A[p . . . . x-1] , so that all elements are less than A[x]</p><p>Sub-array 2) A[x+1 . . . r] , so that all elements are greater than or equal to A[x].</p><p><strong>Heap Sort:</strong></p><p>Heap sort is another comparison algorithm which uses a binary heap data structure to sort elements.</p><p>It divides its input into a sorted and an unsorted region. It then iteratively shrinks the unsorted region by removing the largest element and moving that into the sorted region.</p><p><strong>Merge Sort:</strong></p><p>Merge sort is a comparison algorithm that centers on how to merge together two pre-sorted arrays results in an array that is also sorted.</p><p><a href="https://www.cpp.edu/~ftang/courses/CS241/notes/sorting.htm">https://www.cpp.edu/~ftang/courses/CS241/notes/sorting.htm</a></p><p><a href="https://sciencing.com/the-advantages-disadvantages-of-sorting-algorithms-12749529.html">The Advantages &amp; Disadvantages of Sorting Algorithms</a></p><p><a href="http://www.cs.cornell.edu/courses/cs211/2000fa/materials/Nov16%20Sorting.pdf">http://www.cs.cornell.edu/courses/cs211/2000fa/materials/Nov16%20Sorting.pdf</a></p><p><strong>What are the three laws of algorithm recursion?</strong></p><p>Law 1) A recursive algorithm must have a base case.</p><p>Law 2) A recursive algorithm must change its state and move toward the base case.</p><p>Law 3) A recursive algorithm must call itself, recursively.</p><p>In a base case, this means that a problem that is small enough to solve directly.</p><p>The change its state and move toward the base case means that some of the data is modified and in some manner, it gets us closer to a solution.</p><p>The algorithm must call itself, which is essentially just recursion.</p><p><a href="http://pages.di.unipi.it/marino/python/Recursion/TheThreeLawsofRecursion.html#:~:text=Like%20the%20robots%20of%20Asimov,move%20toward%20the%20base%20case">http://pages.di.unipi.it/marino/python/Recursion/TheThreeLawsofRecursion.html#:~:text=Like%20the%20robots%20of%20Asimov,move%20toward%20the%20base%20case</a>.</p><p>I hope this helps anyone who heard the words, “hackathon” and “algorithms” to be a little less intimidated and realize that yes, they can be scary and complicated but once we break them down, these two concepts are the same as every other part of our coding journey. A scary concept, which we then learn about and experience (sometimes push through) and then ultimately become less intimidating and perhaps fun?! Well, at least fun outside of the coding interviews.</p><p>Your friend in code,</p><p>Rachel</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae6e1bc5cdde" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Small Steps Towards Object-Oriented Programming in JavaScript]]></title>
            <link>https://medium.com/geekculture/small-steps-towards-object-oriented-programming-in-javascript-f10501173de3?source=rss-b93aeae9c55------2</link>
            <guid isPermaLink="false">https://medium.com/p/f10501173de3</guid>
            <category><![CDATA[austin-coding-academy]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[object-oriented]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Rachel McTavish]]></dc:creator>
            <pubDate>Mon, 29 Mar 2021 03:14:13 GMT</pubDate>
            <atom:updated>2021-04-05T22:21:04.676Z</atom:updated>
            <content:encoded><![CDATA[<p>This week was filled with “life” getting in the way of my coding journey. But that does not mean I slacked off from pushing myself to learn more and practice. It simply meant I had to keep in mind my strategies for imposter syndrome and a lot of time management.</p><p>As such, this post is short and concise that reviews some concepts that tie into object-oriented programming in JavaScript and everyone’s favorite, the “new arrow” syntax (aka fat arrows). As always, more links to outside resources that dive in depth are included!</p><figure><img alt="Cartoon of woman on couch working on laptop" src="https://cdn-images-1.medium.com/max/558/1*nypCxikaDQVO1D_kuX5gow.png" /><figcaption>Image from Pixabay by: <a href="https://pixabay.com/users/graphicmama-team-2641041/">Graphic Mama- Team</a></figcaption></figure><p><strong>Now why learn object oriented programming?</strong></p><p>This week was a crash course in object-oriented programming. So, I have worked on creating classes in JavaScript, which are different from HTML classes. But the idea of inheritance that we use when styling HTML classes in CSS is similar. Classes in JavaScript follow a similar family tree structure as those from HTML. JavaScript classes help us to create objects, keep them organized and write more efficient code, especially when we are trying to DRY it up!</p><p>Once object oriented programming, closures and restructuring become more second-nature, then I will feel much more confident going into learning React, but that is still a ways off. There is more JavaScript to learn first!</p><p><strong>Use case for the new arrow =&gt; function syntax</strong></p><p>The new arrow (sometimes called the fat arrow) function syntax is helpful because it allows us to write shorter functions.</p><p>BEFORE: hello = function(){ return “hello friends!”};</p><p>AFTER: hello = () =&gt; {return “hello friends!”};</p><p>But more noticeably, the new arrow function syntax deals with “this” differently. With arrow functions, there is no binding of “this”.</p><p>In regular functions, the “this” keyword represents the object calling the function (e.g., document, button, etc.). But using arrow functions, “this” keyword always represents the object that defined the arrow function.</p><p>Above explanation is based from <a href="https://www.w3schools.com/js/js_arrow_function.asp">W3 schools</a></p><p><strong>Classic Interview Question: </strong>Explain the differences on the usage of foo between function foo() {} and const foo = function() {}</p><p>A) Function foo(){}</p><p>B) Const foo = function (){}</p><p>A: the function statement is hoisted to the top.</p><p>B: using const we can declare a variable (foo) and const gives it block scope, which stops the full hoisting to the top, and makes sure it cannot be re-declared.</p><p><strong>What advantage is there for using the arrow syntax for a method in a constructor?</strong></p><p>For object oriented programming, the arrow syntax is crucial. With arrow functions, a new function does not define its own “this” value. Using arrow functions, “this” is bound to the newly created object and therefore leads to much cleaner code and more maintainability in object oriented programming.</p><p><strong>What is destructuring an object or an array?</strong></p><p>Destructuring in JavaScript lets us extract data from arrays, objects, maps and sets into their own variable. It allows us to extract properties from an object or items from an array (or multiple at a time). Instead of creating multiple variables, we destructure them into a single line of code.</p><p>Example:</p><p>Const user = {first: ‘Rachel’, last: ‘Smith’, county: ‘Travis’ , city: ‘Austin’};</p><p>Const {first, last} = user;</p><p>Documentation and examples: <a href="https://wesbos.com/destructuring-objects">https://wesbos.com/destructuring-objects</a></p><p><strong>What is closure and how can we use it?</strong></p><p>Closure gives access to the outer function’s scope from an inner function. In JavaScript, closures are created every time a function is created, at function creation time. This means that when we are dong unit testing in node.js, then if we write out tests properly, closures can help. Because essentially, closure is a function assigned (or in the case of unit tested returned as a value) and it’s associated scope.</p><p>Helpful resources on closure in JavaScript:</p><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Closures">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Closures</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F71AtaJpJHw0&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D71AtaJpJHw0&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2F71AtaJpJHw0%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/e546f2eafd218fafa31ba56f74565f35/href">https://medium.com/media/e546f2eafd218fafa31ba56f74565f35/href</a></iframe><p><a href="https://medium.com/javascript-scene/master-the-javascript-interview-what-is-a-closure-b2f0d2152b36#:~:text=To%20use%20a%20closure%2C%20define,the%20outer%20function%20has%20returned">https://medium.com/javascript-scene/master-the-javascript-interview-what-is-a-closure-b2f0d2152b36#:~:text=To%20use%20a%20closure%2C%20define,the%20outer%20function%20has%20returned</a>.</p><p><a href="https://blog.bitsrc.io/closures-in-javascript-why-do-we-need-them-2097f5317daf">Closures in JavaScript: Why Do We Need Them?</a></p><p>I hope this helps anyone working on learning the basics of object oriented programming or is studying for those dreaded interview questions!</p><p>Your friend in code,</p><p>Rachel</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f10501173de3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geekculture/small-steps-towards-object-oriented-programming-in-javascript-f10501173de3">Small Steps Towards Object-Oriented Programming in JavaScript</a> was originally published in <a href="https://medium.com/geekculture">Geek Culture</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning to Code and Keeping a Growth Mindset: how tough weeks mean you’re making progress]]></title>
            <link>https://raccmct.medium.com/learning-to-code-and-keeping-a-growth-mindset-how-tough-weeks-mean-youre-making-progress-f89e5a034a92?source=rss-b93aeae9c55------2</link>
            <guid isPermaLink="false">https://medium.com/p/f89e5a034a92</guid>
            <category><![CDATA[austin-coding-academy]]></category>
            <category><![CDATA[growth-mindset]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Rachel McTavish]]></dc:creator>
            <pubDate>Mon, 22 Mar 2021 01:39:36 GMT</pubDate>
            <atom:updated>2021-03-23T02:00:50.112Z</atom:updated>
            <content:encoded><![CDATA[<p>Some weeks, it is more than hitting a wall, taking time out and then re-focusing to figure out the solution with a fresh perspective. Sometimes it feels like you’re banging your head against the same wall attempting to program or solve a problem that is different than what you have ever had to do before. It means scrapping code, debugging and getting something to work only to realize it is not solving the problem you intended, or it is technically working but not the way you need it to.</p><p>How do we as developers not only “get through” these problems, projects and days/weeks? By not only fighting imposter syndrome (yes, often still there lurking in the background), but by trying to keep a growth mindset perspective. This is not easy, but it is helpful. It’s more than just a cliché of “it’s the journey not just the destination” because quite honestly, we still need to get to the destination and often on a deadline.</p><figure><img alt="People with lightbulb heads on laptops and phones with electricity string between them. Showing thoughts passing back and forth." src="https://cdn-images-1.medium.com/max/640/1*NDHZ_MjelKLDlJEE4Aw6Nw.jpeg" /><figcaption>Image by Mohamed Hassan on <a href="https://pixabay.com/users/mohamed_hassan-5229782/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=3085367">Pixabay</a></figcaption></figure><p><strong>Lessons Learned from this Week in Learning to Code:</strong></p><p>Let’s start with the “progress” or “growth” mindset”. For me, this has been a week that has been the epitome of not just hitting a wall but banging my head against it to the point that I began thinking perhaps I may not be cut out for “real programming”. The type where it is actual problem solving, even if I can get the syntax down.</p><p>In this case, I was able to get through my homework and build terminal games, getting help that I understood from my classmates and feeling positive.</p><p>But for the past 10ish days I have been consistently working on a more complicated GUI than I have ever attempted. In this case, there were drag and drop features, with rules for selection and where/if a drop was allowable, along with all the fun flexbox provides (I really do enjoy using flexbox).</p><p>Now, I was in a situation where there was no boiler plate template, and everyone I could find on the internet who had created similar UI’s for games came up with completely different solutions.</p><p>So, I started by doing even more research, reading, time spent scouring StackOverflow, docs, playing in CodePen and reaching out to everyone in my coding network for help and advice.</p><p>This meant scrapping my code and starting fresh multiple times. Which was honestly getting a little disheartening. But by going back through, tweaking and then realizing it was not approaching the problem how I needed or wanted it to, I kept learning and researching other topics that were beyond what I had been learning in coding classes. Beyond diving deeper into the DOM and JavaScript functionality, the aspects that were not directly impacting my GUI functionality were probably the most useful to learn. These were the parts of programming that are so ingrained into professional developer’s mindsets and habits that they are often not directly discussed or explained in beginner tutorials or classes (e.g., code planning, javadocs).</p><p>There were multiple times where I felt that ever-looming imposter syndrome rearing up, I had to fall back on the reminder that I am learning and growing. Trying to keep a growth mindset was helpful. Keeping a growth or progress forward mindset is helping me to remain motivated to learn beyond jus the minimum for classes. In this way, I have spent the week incorporating growth into my coding journey.</p><p>I am on my way to pushing myself further and even though this means more bugs, changing the way in which I am attempting to solve a problem, etc.</p><p>For some helpful videos on growth mindset in programming:</p><p><a href="https://www.youtube.com/watch?v=tvuD0W_Dt88">https://www.youtube.com/watch?v=tvuD0W_Dt88</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FF5qRDLPIpWU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DF5qRDLPIpWU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FF5qRDLPIpWU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4016e3986ef7419b4ed4cc2f15ac8ee3/href">https://medium.com/media/4016e3986ef7419b4ed4cc2f15ac8ee3/href</a></iframe><h3><strong>Now, what are some examples “cold hard programming knowledge” I learned this week?</strong></h3><h3><strong>Here are some answers to example interview questions!</strong></h3><p><strong>What is the main difference between a forEach loop and a .map() loop? When would you use either one?</strong></p><p>Both go over a loop, but forEach returns the original array, while .map() creates a new array. So, forEach mutates the array, and .map() creates a copy of the array and simultaneously applies those changes to this new array.</p><p>Essentially, the choice between these functions comes down to if we want to mutate the original array or do we want to change a duplicate array?</p><p><strong>What is the difference between Bubbling and Capturing?</strong></p><p><strong>Bubbling</strong> means that in the DOM, an event generates from the item that was clicked (child) up to all its parent tree, starting from the nearest one.</p><p><strong>Capturing</strong> is the opposite: the outer event handlers are fired before the more specific handler (e.g., on a button).</p><p>In the example below, bubbling would be when the button fires before the container. Capturing would be the container fires before the button.</p><p>&lt;div id=”container”&gt;</p><p>&lt;button&gt;Click me&lt;/button&gt;</p><p>&lt;/div&gt;</p><p>Here are three great resources for more examples:</p><p><a href="https://javascript.info/bubbling-and-capturing">https://javascript.info/bubbling-and-capturing</a></p><p><a href="https://flaviocopes.com/javascript-event-bubbling-capturing/">https://flaviocopes.com/javascript-event-bubbling-capturing/</a></p><p><a href="https://developer.mozilla.org/en-US/docs/Web/API/Event/bubbles">https://developer.mozilla.org/en-US/docs/Web/API/Event/bubbles</a></p><p><strong>What is the definition of a higher-order function?</strong></p><p>Higher order functions: any function that accepts and/or returns another function.</p><p>This is due to the fact that in JavaScript, all data can be stored in variables, arrays, properties, and methods.</p><p>Examples: .map(), .sort().filter()</p><p>Additional resources:</p><p><a href="https://www.youtube.com/watch?v=H4awPsyugS0">https://www.youtube.com/watch?v=H4awPsyugS0</a></p><p><a href="https://www.codecademy.com/learn/game-dev-learn-javascript-higher-order-functions-and-iterators/modules/game-dev-learn-javascript-iterators/cheatsheet">https://www.codecademy.com/learn/game-dev-learn-javascript-higher-order-functions-and-iterators/modules/game-dev-learn-javascript-iterators/cheatsheet</a></p><p><strong>ES6 Template Literals offer a lot of flexibility in generating strings…</strong></p><p>Template literals are enclosed by the backtick (` `) instead of double or single quotes.</p><p>They can include placeholders. The expressions in the placeholders and the text between the backticks (` `) get passed to a function. Example: (${expression}).</p><p>Expanded explanation: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals</a></p><p><strong>What Is an “associative array” in JavaScript? Do they exist?</strong></p><p>Yes, associative arrays do exist in JavaScript, but not in the same way as other languages.</p><p>Associative arrays are objects in JavaScript where indexes are replaced by user defined keys. They do not have a length property and cannot be navigated using normal for loop.</p><p><em>Explanation from: </em><a href="https://www.tutorialspoint.com/what-are-associative-arrays-in-javascript#:~:text=Associative%20arrays%20are%20basically%20objects,traversed%20using%20normal%20for%20loop."><em>tutorialspoint.com</em></a><em>.</em></p><p><strong>Why to NEVER use new Array in JavaScript…</strong></p><p>Since JavaScript is a continually updated language, it is no surprise that there has been updates since new Array was used. These days, programmers create a variable and set it to an empty array. That way we can name the “new array” something descriptive to help us keep track of what we intend our arrays to contain/purpose to serve.</p><p>I hope this helps anyone who is working diligently on some tough programming projects/bugs or feeling nervous about when will you figure out the problem-solving aspect to programming.</p><p>Have a good evening / weekend / time, and I hope you take some refresher breaks to pat yourself on the back for keeping with it!</p><p>Your friend in code,</p><p>Rachel</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f89e5a034a92" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning More Advanced Code: Leveling up my JavaScript]]></title>
            <link>https://raccmct.medium.com/learning-more-advanced-code-leveling-up-my-javascript-ec3858dbed1a?source=rss-b93aeae9c55------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec3858dbed1a</guid>
            <category><![CDATA[austin-coding-academy]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[junior-developer]]></category>
            <category><![CDATA[code]]></category>
            <dc:creator><![CDATA[Rachel McTavish]]></dc:creator>
            <pubDate>Mon, 15 Mar 2021 01:51:45 GMT</pubDate>
            <atom:updated>2021-03-15T01:51:45.895Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>This week, even though every day felt like a Monday…</strong></p><p>I have been working on creating the habit of writing out a code plan, including pseudo-code prior to tackling a problem. This week it included a series of post-it notes to really play through the game Towers of Hanoi to really understand the rules and to work through the game logic.</p><p>I talked this out with my coding network, and it was reassuring that even senior developers sometimes need to sketch out a problem before even writing their pseudo-code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KoilLRaq6YEtdd6UtSadoA.jpeg" /><figcaption>Image by Slon on Pixabay: <a href="https://pixabay.com/users/www_slon_pics-5203613/">https://pixabay.com/users/www_slon_pics-5203613/</a></figcaption></figure><p><strong>What’s the difference between: function Person(){}, var person = Person(), and var person = new Person()?</strong></p><p><strong>function Person() {}</strong></p><p>Declares a named function but does not execute it. It can be called at a later point using Person(); .<em> </em>In JavaScript, you need to declare a function, but you can use it prior to it being declared.</p><p><strong>var person = Person()</strong></p><p>Declares a new function called <em>Person</em>. It also uses (invokes) it. Then, it assigns the return value to the variable person.</p><p><strong>var person = new Person()</strong></p><p>This is an example of an object constructor function, meaning it is the initiation of the <em>new</em> keyword. In this case, it returns a new object instance. The value of “person” in this example is an object.</p><p><strong>What’s the difference between an “attribute” and a “property”?</strong></p><p>An attributes refers to additional information of an object, while properties are describing the characteristics of an object.</p><p><a href="https://javascript.info/dom-attributes-and-properties">https://javascript.info/dom-attributes-and-properties</a></p><p><strong>What language constructions do you use for iterating over object properties and array items?</strong></p><p>I regularly use for loops, but have also been researching and playing with Transformation methods. The transformation methods I have been working through learning are map() and filter(). These I can see being useful to quickly search a series of arrays for testing and QA.</p><p>This video link was helpful for introducing me to Transformation methods (along with other helpful methods):</p><p><a href="https://www.youtube.com/watch?v=R8rmfD9Y5-c&amp;t=81s">https://www.youtube.com/watch?v=R8rmfD9Y5-c&amp;t=81s</a></p><p><strong>What is the event loop?</strong></p><p>JavaScript operates on a single thread. Browser API’s make it appear like a multi-threading language. The event loop enables the process of asynchronous development.</p><p>The event loop continuously checks if the call stack is empty. If empty, new functions are added from the event queue. If it is not, then the current function call is processed.</p><p>Essentially, the event loop is what is moving our code through the code and ensuring everything is run until all functions are called and executed.</p><p>A great explanation (with diagrams) is on this website:</p><p><a href="https://flaviocopes.com/javascript-event-loop/">https://flaviocopes.com/javascript-event-loop/</a></p><p><strong>What is the difference between call stack and task queue?</strong></p><p>The <strong>call stack</strong> keeps track of all operations in line to be executed. Whenever a function is finished, it is popped from the stack.</p><p>The <strong>event queue</strong> sends new functions into the track (or queue) for processing. It follows the data structure to maintain the correct sequence in which all operations should be sent for execution.</p><p><strong>What are the differences between ES6 classes and ES5 function constructors?</strong></p><p><strong>ES6 Classes:</strong></p><p>· Defines new object and appends functions to prototype</p><p>· Considered as syntax base for constructor functions</p><p>· Allows developers to instantiate objects using new operator</p><p>· Ensure the keyword which is basically used inside the class only refers to the object that is being created by the developer</p><p><strong>ES5 Function Constructors:</strong></p><p>· Can only be executed with the help of a new operator</p><p>· Focuses on how the objects are instantiated</p><p>· Focuses on implementing the reusable object creation code</p><p>· Any function can be used as a constructor</p><p>Even though this post is a little drier than my normal, well, it’s been a 7 day series of Mondays this past week. However, I plan to keep pushing through, learning more about DRY’ing up my code and attempt to put these more advanced concepts into practice.</p><p>Your friend in code,</p><p>Rachel</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec3858dbed1a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript Unit Testing, Standards and Maintainability]]></title>
            <link>https://raccmct.medium.com/javascript-unit-testing-standards-and-maintainability-837c92a6b3f4?source=rss-b93aeae9c55------2</link>
            <guid isPermaLink="false">https://medium.com/p/837c92a6b3f4</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[austin-coding-academy]]></category>
            <dc:creator><![CDATA[Rachel McTavish]]></dc:creator>
            <pubDate>Mon, 08 Mar 2021 00:34:02 GMT</pubDate>
            <atom:updated>2021-03-08T00:34:02.149Z</atom:updated>
            <content:encoded><![CDATA[<p>This week has been an exciting journey into unit testing, this time starting to write my own (with guidance and a lot of trouble-shooting). I have also been reading more into standards, this time more than just accessibility standards set by W3C. So here’s what I have to show for another week of Google, Stack Overflow, coding night classes, and thankfully very helpful cohort.</p><p><strong>Unit Testing Adventures using Node.JS</strong></p><p>I am working on figuring out how to write edge case unit tests in node.js (using Mocha). It is not so difficult to think of basic edge cases, however the actual writing of the tests can be trickier. Although the tip to write unit tests prior to diving into the code has been a helpful mentality. It is one that will take me a while to fully adopt, since habit forming takes time and consistency, but it should also make my code cleaner, more efficient and help me to continue to develop good habits now that I am learning to work in a test-driven development environment.</p><p>It is nice to see those little green checks that say at least part of my code works!</p><figure><img alt="Illustration of green checkmark and red “x”" src="https://cdn-images-1.medium.com/max/640/1*Sw_5029mEzOzf3Pdj_pHTg.png" /><figcaption>Image by Open Clipart-Vectors on <a href="https://pixabay.com/users/openclipart-vectors-30363/">Pixabay</a></figcaption></figure><p><strong>What is this whole “use strict”; thing? Why and maybe why not to use it…</strong></p><p>“Use strict” helps to negate potential compatibility issues when using JavaScript. Because JavaScript is robust and has evolved a lot over time and,</p><blockquote>“any mistake or an imperfect decision made by JavaScript’s creators got stuck in the language forever.</blockquote><blockquote>This was the case until 2009 when ECMAScript 5 (ES5) appeared. It added new features to the language and modified some of the existing ones. To keep the old code working, most such modifications are off by default. You need to explicitly enable them with a special directive: &quot;use strict&quot;.” (<a href="https://javascript.info/strict-mode">https://javascript.info/strict-mode</a>).</blockquote><p>“use strict” can be beneficial by helping to ensure cross-browser compatibility. However, it changes syntax and runtime behavior. It converts mistakes into errors, which means it is beneficial for us junior developers since these mistakes are converted to errors and it break the code. Therefore, when doing unit testing, it is a good way to quickly find these mistakes and fix them.</p><p>However, for more seasoned developers, this could be a drawback, since these small mistakes that are semantic but still would run in a real-time environment it can be frustrating and possibly lose momentum with increased frustration.</p><p>Here are some helpful links that broke down “use strict” in a very comprehensive manner:</p><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode</a></p><p><a href="https://javascript.info/strict-mode">The modern mode, &quot;use strict&quot;</a></p><p><strong><em>Hoisting</em> in JavaScript.</strong></p><p>Hoisting in JavaScript is similar to it’s more utilitarian meaning. To “hoist” is to raise or haul up, often using ropes, pulleys, or your own strength (e.g., hoisting the mast on a ship, he hoisted the suitcase into the car).</p><p>So in JavaScript, when we say “hoisting” we mean that wherever we write or declare a variable, it can be used or pulled from. Therefore, we can use a variable prior to it being declared.</p><p>Here are some docs for good review:</p><p><a href="https://developer.mozilla.org/en-US/docs/Glossary/Hoisting">https://developer.mozilla.org/en-US/docs/Glossary/Hoisting</a></p><p><a href="https://www.w3schools.com/js/js_hoisting.asp">W3Schools.com</a></p><figure><img alt="Ship with full mast sailing on the water" src="https://cdn-images-1.medium.com/max/640/1*LY1zCul8RALywcKcfz06Yg.jpeg" /><figcaption>Image by Peggy Marco on<a href="https://pixabay.com/users/peggy_marco-1553824/"> Pixabay</a></figcaption></figure><p><strong>Why do we have standards and standards bodies like ECMA and W3C?</strong></p><p>Sorry internet cowboys, outlaws or whatever you call yourself while coding late into the night… in this case, standards and standard bodies are important.</p><p>Think about it as the fact that standards, especially when it comes to an international and almost universal medium for creation, information dissemination and global networks, such as the internet and web content is very important so that anyone working on web development, software development, hardware, etc. can successfully communicate, share knowledge and allow for the successful translation between languages. Essentially, JavaScript developers in different countries, even if their native language are different, should be able to understand each other’s code.</p><p>Standard bodies like ECMA and W3C are important because they have global members who work to uphold and focus their research into issues of significance for large-scale topics, such as accessibility, language integration, etc.</p><p>Here are some additional links for contextual information:</p><p><a href="https://www.webstandards.org/learn/external/orgs/index.html">https://www.webstandards.org/learn/external/orgs/index.html</a></p><p><a href="https://en.wikipedia.org/wiki/ECMAScript">https://en.wikipedia.org/wiki/ECMAScript</a></p><p><a href="https://www.ecma-international.org/publications-and-standards/standards/ecma-262/">https://www.ecma-international.org/publications-and-standards/standards/ecma-262/</a></p><p><a href="https://tc39.es/ecma262/">https://tc39.es/ecma262/</a></p><p><a href="https://www.w3schools.com/js/js_es6.asp">W3Schools.com</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*TGQMNYzjLtO61_OI5Toa-Q.jpeg" /><figcaption>Image by James Markosborne on <a href="https://pixabay.com/users/jamesmarkosborne-1640589/">Pixabay</a></figcaption></figure><p><strong>Okay, so now what have I actually done to start increasing my own code maintainability in recent projects?</strong></p><p>I am working towards improving my own code writing maintainability by trying to keep out anything too fancy, by writing out comments to organize the code and help me to track my line of thinking. I also am working to re-read my past coding projects (cringe) and learn from what I had coded (and not commented out well) a month ago. By looking back, I am reflecting on how far I have come in my coding, but also getting a better feel for if I were a developer who had never seen my code before, what questions would I ask?</p><p>This reflection is helping me to make small improvements to how I go about writing code and more importantly, what I do and do not comment out in the code I am now writing.</p><p><a href="https://www.coveros.com/13-ways-to-improve-maintainability/">https://www.coveros.com/13-ways-to-improve-maintainability/</a></p><p><a href="https://www.sealights.io/software-quality/software-maintainability-what-it-means-to-build-maintainable-software/">https://www.sealights.io/software-quality/software-maintainability-what-it-means-to-build-maintainable-software/</a></p><p><strong>Why is it, in general, a good idea to leave the global scope of a website as-is and never touch it?</strong></p><p>Global variables in JavaScript are dangerous because if you change it in one location, it can break the code in other areas you likely did not foresee.</p><p>All code shares a single global namespace, so it you start changing the global scope, it can change other areas you did not intend to change.</p><p>I hope this helps to clarify any of some of the likely points that will come up in some (hopeful) future junior developer job interviews for both myself and anyone else. Now back to researching and practicing ALL THE THINGS!</p><p>Your friend in code,</p><p>Rachel</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=837c92a6b3f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tips & Tricks: Brief Overview of JavaScript 211]]></title>
            <link>https://raccmct.medium.com/tips-tricks-brief-overview-of-javascript-211-40679367e5af?source=rss-b93aeae9c55------2</link>
            <guid isPermaLink="false">https://medium.com/p/40679367e5af</guid>
            <category><![CDATA[accessibility]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[austin-coding-academy]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Rachel McTavish]]></dc:creator>
            <pubDate>Mon, 01 Mar 2021 01:48:57 GMT</pubDate>
            <atom:updated>2021-03-01T01:49:23.811Z</atom:updated>
            <content:encoded><![CDATA[<h3>Tips &amp; Tricks: Brief Overview on Starting JavaScript 211</h3><p><strong>What am I learning or trying to incorporate in my daily coding?</strong></p><p>I am working on understanding how and when to ask questions with regards to vague prompts. In a professional setting, it will be imperative to ask for clarification because to break down a problem or solution into steps to code, a solution or product is difficult to create.</p><p>To practice this skill, I am spending time to really focus on prompts or problems to solve, breaking them down into steps in plain English and then putting into logical code steps. It is still a work in progress, but the more I can break down the logical steps in “regular speak” it is easier to figure out how to convert it into code.</p><figure><img alt="Woman with code projected on her face and behind her" src="https://cdn-images-1.medium.com/max/1024/1*xHa7TwoWhgTKb2sdNEWsQw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@thisisengineering?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">ThisisEngineering RAEng</a> on <a href="https://unsplash.com/@thisisengineering?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p><strong>The difference between == and === ?</strong></p><p>“==” means: an object is similar to an expected outcome (e.g., x == 3). This the example, x == 3, “x” can be the number 3, or a string element of “3”- as would pass through an input html element in a form.</p><p>“===” means: an object is exactly the expected or desired outcome (e.g., x === In this case, x === 3, means that it must be the number 3, not a string element of “3”.</p><p>One way to think of it is if you are sorting an Excel Spreadsheet, numbers and text may be intermixed depending on the setup or who is entering the information. In this scenario, if we want to pick up any numbers that were accidently classified or entered as text (“string elements”), then we would want the “==” double equals signs.</p><p>The triple equals signs “===” are an absolute match, the data type and the actual character(s).</p><p><strong>In this function, what is the value of foo? “var foo = 10 + ‘20’;”</strong></p><p>In this scenario, foo literally would have a value or output of “1020”, because the code reads like a sentence.</p><p>“foo is 10 and 20”</p><p>The “+” stands for and, it appends the two objects together. Since there is no space in the ‘20’ there would not be a space in the append.</p><p>The ‘’ makes the object ‘20’ a string element, not a number.</p><p>Depending on how the object 10 was stored or entered, it could still be a string. For example, input values in a form are always cataloged as a string value. While there are options to allow for making input values numbers, they are still an HTML string element.</p><p>The “number type” means that if on a mobile device, the number keyboard will appear and it also pre-fills with number characters options that are whole number characters with arrows for up or down to have the number characters increase or decrease (including -1…).</p><p><strong>What is a terminal application?</strong></p><p>A terminal application is a local or remote terminal where an application or component can be tested for functionality without a user interface. These can be particularly useful if you want to test a series of functions, a game, an app, or internal component/product development milestones that are very large and therefore it would be less efficient to use a large amount of bandwidth.</p><p>They can also be useful for internal organizational or large-scale project testing on larger teams, just so long as everyone on the team is using the same terminal application.</p><p>Here are some good resources below:</p><p><a href="https://www.ibm.com/developerworks/rational/library/test-terminal-based-applications-automatically/index.html">https://www.ibm.com/developerworks/rational/library/test-terminal-based-applications-automatically/index.html</a></p><p><a href="https://spin.atomicobject.com/2016/01/11/command-line-interface-testing-tools/">https://spin.atomicobject.com/2016/01/11/command-line-interface-testing-tools/</a></p><p><a href="https://opensource.com/article/19/2/testing-bash-bats">Testing Bash with BATS</a></p><p><strong>What is a ternary operator?</strong></p><p>A ternary operator is a JavaScript method for a shorthand or shortcut for an “if statement”. It can help to clean up code. The format looks simple but in the beginning (where my practice levels are at), it can take quite a bit of thought to logic through writing one correctly. Of note, they are useful, but not always necessary. It is important to keep in mind a clarity of code. If using ternary operators is to “look cool” rather than clean up the code then it is maybe best to come back and look at it again with fresh eyes. If using the ternary operator(s) is making the code more confusing to a future or fellow developer (or even yourself in 1–2 weeks), perhaps the long hand is better.</p><p>From MDN WebDocs:</p><p>“The <strong>conditional (ternary) operator</strong> is the only JavaScript operator that takes three operands: a condition followed by a question mark (?), then an expression to execute if the condition is <a href="https://developer.mozilla.org/en-US/docs/Glossary/Truthy">truthy</a> followed by a colon (:), and finally the expression to execute if the condition is <a href="https://developer.mozilla.org/en-US/docs/Glossary/Falsy">falsy</a>. This operator is frequently used as a shortcut for the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else">if</a> statement.”</p><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_Operator">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_Operator</a></p><p>Another Good Resource:</p><p><a href="https://codeburst.io/javascript-the-conditional-ternary-operator-explained-cac7218beeff">JavaScript — The Conditional (Ternary) Operator Explained</a></p><p><strong>What are some ways to ensure that your website design or web application is accessible and user-friendly?</strong></p><p>First, becoming familiar with the W3C/WAI standards and guidelines is necessary for accessibility. Then using the A11y project checklists throughout the website design can help to ensure accessible design. It is also important to check and recheck these resources, as well as any others you like, since guidelines and advice for different functions, elements, etc. can change as browsers are updated and coding languages and syntax adapts.</p><p>It is also very important to keep in mind during the design phase that just because something meets all the checklist(s) criteria for accessibility, it does not equate a user-friendly experience or intuitive interaction with a website or web application. It is important to continually test on the user-end.</p><p>I am starting to gain more and more insight by going to websites that I like or find to have an nice design, then I turn off my mousepad and try to navigate ONLY by keyboard. Or I will attempt to navigate websites by using a screen reader and putting on a sleep mask.</p><p>These are two very quick ways that I can check for accessible AND intuitive designs as a sighted person. This does not mean I make perfect accessible and beautiful and intuitive websites yet, but it is a useful learning experience that keeps me both humble and learning from the ground-up to be a solid accessibility engineer (in some capacity).</p><p>It is also important to keep in mind during the design phase issues such as trigger warnings for flashing images or videos for particular individuals sensitive to overstimulation or sudden light flashing (e.g., epilepsy, some autism) and provide an option to not play an animation or video.</p><p>Another issue is the font-size and color contrast necessary for individuals of different types of colorblindness and those who need larger text.</p><p><strong>Some of my go-to resources:</strong></p><p><a href="https://www.w3.org/WAI/standards-guidelines/aria/">https://www.w3.org/WAI/standards-guidelines/aria/</a></p><p><a href="https://www.a11yproject.com/checklist/#toc_Does-this-checklist-guarantee-my-site-is-accessible-">https://www.a11yproject.com/checklist/#toc_Does-this-checklist-guarantee-my-site-is-accessible-</a></p><p><a href="https://www.ibm.com/able/">https://www.ibm.com/able/</a></p><p><a href="https://css-tricks.com/improving-accessibility-24-ways/">https://css-tricks.com/improving-accessibility-24-ways/</a></p><p><strong>User Friendly Design Resources:</strong></p><p><a href="https://careerfoundry.com/en/blog/ui-design/8-sites-with-great-ui/">https://careerfoundry.com/en/blog/ui-design/8-sites-with-great-ui/</a></p><p><a href="https://www.commonplaces.com/blog/10-tips-for-building-a-user-friendly-website/">https://www.commonplaces.com/blog/10-tips-for-building-a-user-friendly-website/</a></p><p><a href="https://usabilitygeek.com/5-ways-to-make-your-business-website-user-friendly/">5 Ways To Make Your Business Website User Friendly - Usability Geek</a></p><figure><img alt="Laptop with Visual Studio Code and code layout on the screen" src="https://cdn-images-1.medium.com/max/1024/1*eShP9pgf0QvFR1Jh3UG-_w.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@altumcode?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">AltumCode</a> on <a href="https://unsplash.com/s/photos/coding?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p><strong>What are my favorite features of HTML5, and how have you implemented them in my front-end development projects?</strong></p><p>I like to use Slideshows, as it is a dynamic and interactive way to showcase multiple images, videos, text information, etc. But is also has good documentation for making it accessible for keyboard and screen reader friendly. It can bring a page to life without making it overwhelming for a user and can fit within pretty much any theme or design color scheme.</p><p>I have also been working on using input radio buttons hidden behind images. However, the trick is to keep their native accessibility. The trick is instead of using, “position: hidden”, you change the width, opacity and height and position it behind the image, thus changing the styling and NOT hiding it from a screen reader and keeping the native keyboard navigation. You then style the button and image together for positioning and focus.</p><p>The full explanation is here: <a href="https://stackoverflow.com/questions/17541614/use-images-instead-of-radio-buttons/17541916">https://stackoverflow.com/questions/17541614/use-images-instead-of-radio-buttons/17541916</a></p><p><strong>How I structure your CSS and JavaScript to make it easier for other developers to work with</strong></p><p>I use comments to help organize my CSS files. If it is a particularly long file, I try to make a table of contents for order of styling- I use comments as sub-sections or the table of contents to help a developer figure out where to find something.</p><p>In JavaScript, I am working on building good habits for naming functions. I it is a button onclick then it is useful to have “Click” at the end of the function. This helps to quickly know if it is called by a button click or if it runs on its own and not called based on an event listener. It is also useful to put in a label of some sort if it loads on window.</p><p>When I am working on JavaScript files and I am working through multiple functions, I will comment out the functions that did not work, so I can trace my logic and if I find I need part of that code, then it is right there. I always use comment headings to label what worked or why my logical thinking for an application was. This is ONLY useful for personal projects or for a bootcamp assignment, as in a professional or group setting, these comments can become annoying to another developer if they are not using an editor like VS Code where you can minimize multi-line comments. I could also be harder to read from a github repo- requiring a developer to fork/clone a repo to pull down the code.</p><p><strong>What is my process for addressing browser-specific rendering problems? Do you find that a certain browser is more challenging to work with than others?</strong></p><p>This is definitely a big component of my “work in progress”…</p><p>When I am working on browser-specific rendering issues, it usually takes a bit of research to figure out if I need to add meta tags to the &lt;head&gt; of the HTML, and quite a bit of testing and searching through Google and StackOverflow.</p><p>My biggest issue is being able to test on Safari. I need to borrow apple products to do that, since Apple does not update the Safari for the Windows operating system…</p><p>Also, it is a matter of creating a testing routine to check for cross-browser compatibility.</p><p>I hope these small tips/tricks help anyone who is learning to code or brushing up for an exciting interview coming up!</p><p>Your friend in code,</p><p>Rachel</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40679367e5af" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Incorporating Self-Compassion while Learning to Code]]></title>
            <link>https://levelup.gitconnected.com/incorporating-self-compassion-while-learning-to-code-b12722d39754?source=rss-b93aeae9c55------2</link>
            <guid isPermaLink="false">https://medium.com/p/b12722d39754</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[imposter-syndrome]]></category>
            <dc:creator><![CDATA[Rachel McTavish]]></dc:creator>
            <pubDate>Tue, 23 Feb 2021 13:42:28 GMT</pubDate>
            <atom:updated>2021-02-23T13:42:28.045Z</atom:updated>
            <content:encoded><![CDATA[<p>Self-Compassion is a loaded term and one that can have negative and positive connotations depending on who reads the phrase and their life experiences and world-view. For me, the phrase “self-compassion” was introduced by someone I dated who was actively helping me to overcome my imposter syndrome as I was finishing a PhD program. A very well-intentioned book as a gift resulted in me not fully embracing what the meaning of self-compassion was and resulted in me reading a psychologists’ advice and research as a way to reinforce my imposter syndrome. Rather than the intended goal of stopping those negative thoughts and countering them with rational evidence to the contrary, I was amplifying them in my head, thus making my imposter syndrome worse.</p><p>Self- compassion is a nuanced topic, but it can be boiled down to some key take-aways (see Dr. Kristen Neff’s work — <a href="https://self-compassion.org/the-three-elements-of-self-compassion-2/#:~:text=Self%2Dcompassion%20entails%20being%20warm,flagellating%20ourselves%20with%20self%2Dcriticism.">summary link</a>).</p><ol><li>Self-kindness</li><li>Common humanity</li><li>Mindfulness</li></ol><p>Instead of me working on giving myself the same kindness that I would give to a friend, family member or even a stranger, I instead said abusive things to myself, lowering my self-esteem and reinforcing my imposter syndrome.</p><p>We have all said these thoughts in our heads, “If you were smarter…”, “You’re not qualified”, “Everyone else at this job already knows this stuff”, “They’re all better suited than I am”… and the list goes on and on. In a relationship with another person, if these phrases were continually said, we may call this verbal abuse, gaslighting, etc. We would tell a friend or family member to drop that person saying those unkind things asap! But it’s different when this is an internal thought process.</p><figure><img alt="Photo of woman in deep thought and eyes closed" src="https://cdn-images-1.medium.com/max/640/1*9APdkIa75eZULvRBvtEUlg.jpeg" /><figcaption>Image from Pixabay by: Pexels (<a href="https://pixabay.com/users/pexels-2286921/">https://pixabay.com/users/pexels-2286921/</a>)</figcaption></figure><p>Fast forward years later and here I am, learning to code in a boot camp part-time after work and having imposter syndrome rear its ugly head once again.</p><p>However, this time around I have read and re-read that same book. I have reached out to my support network in frustration, times of doubt and struggles to learn to code in order to make a career change. Learning to code is not easy, especially since it has been something I never imagined myself pursuing and have worked to actively stop being intimidated by learning a new frame of thinking and problem-solving.</p><p>I am in some ways well-equipped to learn to code and work in web development, since I have only ever worked in male-dominated industries. I have more often been the only or one of the only women on a work or research team and already know the realities of having to work in a continuous learning environment.</p><p>However, the journey to learn coding, web development, agile and gain the skillset necessary to “break into tech” is not easy. No matter who you are, the real struggles to break through and persist when hitting a wall in coding, trying to debug and not being afraid to share code.</p><p>The early mornings, long days and weekends spent learning and sometimes re-working the same concept or code until it really starts to click in my head can take a toll.</p><p>Programming is difficult, mostly because it requires a continual push to learn more and code more and keep on going even when a function just is not working or you cannot figure out where the syntax error is located.</p><figure><img alt="Photo of computer screen with code" src="https://cdn-images-1.medium.com/max/640/1*1J5hEXXT6Jbmk2v3QEpsnQ.jpeg" /><figcaption>Image from Pixabay by Pexels: <a href="https://pixabay.com/users/pexels-2286921/">https://pixabay.com/users/pexels-2286921/</a></figcaption></figure><p>While I am confident (or honestly some days fake confidence) about showing my code- especially when there are bugs and I am stuck in the debugging process, that imposter syndrome of feeling like I am treading water while the rest of my cohort can swim does not go away. I am just used to asking for help because even when I am embarrassed that I am stuck on a problem that my classmates seem to be confident in working through, I still need to reach that same end goal. BUT, if I can take a deep breath, remember my voice and simply say aloud that I am lost, I do not know where to start the debugging process, I cannot figure out why a function is not working, or I am uncertain that I understand a problem prompt, then I will get the help I need, learn through my mistakes (and I make plenty) and then achieve that same goal.</p><p>It is in those moments that I take a breath, speak up in class and admit to everyone that I am struggling and actively share my screen so everyone can see me go through my code and everyone can see where my bugs are located, how I have organized and written my code that I get the most valuable feedback.</p><p>I am already writing more organized code, so I can not only find bug locations faster and easier, but by showing my code I am also facing down my imposter syndrome.</p><p>I am gathering the realty check data, I am showing self-compassion by putting myself into a situation where I am learning, growing and being kind to myself. By sharing my screen in class and going through line by line, console.log() by console.log () in front of an audience, I am becoming more comfortable in an agile and tech environment and I am actively gathering the data to counter my imposter syndrome.</p><p>That data gathering to counter imposter syndrome is key in learning to code. By connecting with other programmers, coding students, instructors, or just other human beings for learning in a constructive and supportive environment, I am being pushed to become a better coding student, future junior developer and better communicator. I am able to “speak tech” and communicate real programming issues in a way that another developer who is looking at my code for the first time can understand my issue. I am able to write code so they can see my logic and what I was thinking (along with comments- they are a life saver).</p><figure><img alt="Photo of woman working at a laptop" src="https://cdn-images-1.medium.com/max/640/1*nLNu2ti02pEyxi6LIBeJqw.jpeg" /><figcaption>Image from Pixabay by Pexels: <a href="https://pixabay.com/users/pexels-2286921/">https://pixabay.com/users/pexels-2286921/</a></figcaption></figure><p>So, self-compassion can be a series of ways to counter that imposter syndrome, the little voice that says everyone else around you is better, faster, smarter or just more aligned to the mindset necessary to succeed in coding.</p><p>Instead, by learning self-compassion with my coding I am actively putting myself into intimidating situations, like sharing my flaws in coding very openly, but then also taking the feedback and using it as evidence that I am good enough.</p><p>Instead of listening to the feedback as evidence for my inadequacies or evidence that my cohort are all smarter or better aligned to tech than I am, I take their feedback as evidence of their commitment to helping me in my coding journey.</p><p>If they thought I was not cut out for programming, then why would they waste their time? If I was so terrible at code, then they would be indifferent to my concerns. Instead, they are actively there to help de-bug, give tips on how they get through frustrations and share stories of their own imposter syndrome struggles. But it starts with me putting myself and my code out there for others to see.</p><p>I still have a long was to go on my coding journey and I am going to need more practice with self-compassion. I am a work in progress, but that is honestly a pretty great place to be. If I thought I was a perfect person or had mastered programming, then I doubt I would get too far in tech. A continually shifting, changing and improving industry requires people who are flexible and able to continually learn. So that is what I will continue to do and be.</p><p>For anyone who is having moments that feel overwhelming or are struggling learning to code, is making or facing major life changes, or just needs help finding a counter to those negative thoughts of self-doubt, you are not alone. I am there with you, and so are many many people who are not yet able to find their voice or are unable to speak up. And there is a good possibility that those people who seem “more” than what you feel like have similar internal thoughts. I am measuring my level of “more” or “good” in my persistence and ultimately continuing to grow and learn.</p><p>Your friend in code,</p><p>Rachel</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b12722d39754" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/incorporating-self-compassion-while-learning-to-code-b12722d39754">Incorporating Self-Compassion while Learning to Code</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reflections on Learning: ¼ way Through My Bootcamp Coding Journey]]></title>
            <link>https://raccmct.medium.com/reflections-on-learning-%C2%BC-way-through-my-bootcamp-coding-journey-a32e3fbabf1?source=rss-b93aeae9c55------2</link>
            <guid isPermaLink="false">https://medium.com/p/a32e3fbabf1</guid>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[self-awareness]]></category>
            <category><![CDATA[austin-coding-academy]]></category>
            <dc:creator><![CDATA[Rachel McTavish]]></dc:creator>
            <pubDate>Sun, 14 Feb 2021 20:13:30 GMT</pubDate>
            <atom:updated>2021-02-24T01:46:38.985Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Thinking back on my first day of class…</strong></p><p>I thought websites were built by brilliant teams of math geniuses, I mean really… Not exaggerating, <em>this was why it has taken me so long to be less intimidated by even the idea of coding and programming</em>. My brother and father have been in tech for years and regularly read mathematics books for fun. And by math books, I mean theoretical algebra and I have seen my father re-read old math textbooks from the 1960s. Which is far from what my fun reading involves.</p><p><strong><em>How did I think websites were built?! Apart from little math elves?</em></strong></p><p>I thought that websites were built primarily by just sitting down with a vision or blueprint (aka wireframe) and then programmers just sat down and wrote the code.</p><p><strong>And now…?</strong></p><p>Now, I know that there is so much more research and work that goes into web development before anyone even starts to code. And I had never given much though into website accessibility before learning to code. For some reason I just made the basic assumption that I am sure many sighted people make, and that since computers, websites, and screen readers all automatically work together seamlessly. They can, but it takes an incredible amount of research, time and dedicated testing and retesting to create that user experience. And I am only now realizing the tip of the iceberg as far as the discrepancies between a goal for an inclusive web experience and developer time dedicated and budgeted towards accessibility to achieve this goal.</p><figure><img alt="Graphic of programmer at a laptop and lines of code in the background" src="https://cdn-images-1.medium.com/max/640/1*SKeduohXAiyXAIZtqpp9Ag.png" /><figcaption><a href="https://pixabay.com/users/200degrees-2051452/">https://pixabay.com/users/200degrees-2051452/</a></figcaption></figure><p><strong>Perspective shifts after 2 months:</strong></p><p>I also am becoming increasingly aware that it is not just coding students and junior developers who end up looking up information on the internet. There are just so many different aspects that it is not feasible nor is it encouraged to try to memorize everything. And that there is no shame involved in searching stack overflow or google for looking up how to do something or to remember what properties or syntax is paired with a particular function.</p><figure><img alt="Graphic art of computer screen with Google Search on the screen" src="https://cdn-images-1.medium.com/max/640/1*CSysjF7npBaV0YnpuN3Ceg.png" /><figcaption><a href="https://pixabay.com/users/200degrees-2051452/">https://pixabay.com/users/200degrees-2051452/</a></figcaption></figure><p><strong>What have I gained through this course beyond code? Beyond technical savvy?</strong></p><p>Beyond continually learning about programming and the logic and syntax behind coding, I have gained more insight into the psychological concept of “self-compassion”. It is something that I had researched and attempted to put into practice during my PhD work, but would stop due to frustration and inability to really delve into being patient and kind to myself because I was so goal-oriented and focused that I ended up even more stressed attempting to be kind to myself and give myself breaks.</p><p>I am still a work in progress as a developer and have a slough of classes and tutorials on my to-do list, but taking time to reflect on my progress, celebrate the little wins and coming back to being compassionate with myself. I have spent my life pushing myself harder and harder to achieve goals and to be the best version of myself, but on the opposite side I did not put that same effort into checking that same little voice that says, “you’re behind”. Countering that little voice with a more rationale response or one I would tell to a friend of family member or someone in my cohort. The rekindling of my learning self-compassion is something that I have gained. It’s still a work in progress, but an aspect of my self-growth that going into an intensive coding bootcamp requires and by marrying the two journeys, I hope to find myself at the other end both a savvy developer and a person who can extend the same compassion she gives to others to herself.</p><figure><img alt="Blackboard with phrase, “Trust Yourself” written and person standing in front of it reading the text" src="https://cdn-images-1.medium.com/max/640/1*8pMrSaeN_G5sfjLcxyVmCA.jpeg" /><figcaption><a href="https://pixabay.com/users/geralt-9301/">https://pixabay.com/users/geralt-9301/</a></figcaption></figure><p><strong>Where do I think I am headed? What am I going to do to keep moving forward?</strong></p><p>I have two different routes for a career in tech that I could be pursuing/actively working on as I finish up the coding bootcamp. Ideally, I could even implement getting an internship or project management position before I graduate. I have experience in project management and enjoy working with teams to achieve a common goal. One of my personal strengths is that I enjoy facilitation and planning.</p><p>Post-graduation, I plan to either become a scrum master or a full-time developer working on a team with accessibility-focused projects.</p><p>I am still unsure which path is best for me, so I am working towards learning and training myself for both. Because programming and facilitating/assisting programming teams are inter-twined.</p><p>I have broken down smaller goals and timelines to keep me learning alongside the bootcamp curriculum.</p><p>The smaller goals are learning how to be an active and positive scrum master and learning the ins/outs of agile in different scaled projects and companies. I have signed up for scrum classes and am practicing making mock trello boards for even small projects to get into the habit of seeing the end-product and breaking it down into smaller tasks.</p><p>I am also working towards learning and getting more intuitive with coding in JavaScript. I am pushing myself to continually think about accessibility and checking the W3C guidelines and checklists. As the simpler aspects of accessibility become more intuitive, the research for the harder/bigger sections is my next challenge. Essentially, building a library for myself and perhaps I can someday work on one of the bigger accessibility teams (e.g., IBM, Chrome). Hey, a girl can dream!</p><figure><img alt="Graphic art of binary code radiating in center to a void" src="https://cdn-images-1.medium.com/max/640/1*CHilv-QbX3ZTwKicOCSsJA.jpeg" /><figcaption><a href="https://pixabay.com/users/geralt-9301/">https://pixabay.com/users/geralt-9301/</a></figcaption></figure><p><strong>What kinds of projects do I see myself working on in 10 months?</strong></p><p>No matter what my job title ends up being or the company I first start working at, I plan in 10ish months to be actively working on phase 2 of my capstone project. My colleague (co-archaeological curator) and I are hoping that we can present it as a case study for the importance of digital archaeology during the pandemic and beyond. (fingers crossed I will be presenting it at a national archaeology conference in 2022!) But first, I will need to make the project. So, for now I am working on the design, since building accessibility starts at the design phase!</p><p><strong>So now, onto some practice interview questions to show off what I have learned!</strong></p><p><strong>Why is it generally a good idea to position CSS &lt;link&gt;s between &lt;head&gt;&lt;/head&gt; and JS &lt;script&gt;s just before &lt;/body&gt;?</strong></p><p>We want the CSS to load with the browser first. But if you are using a CSS reset, that needs to go before your styling CSS sheets. That way you do not have to type double code. It will load the reset setting and then your modifications on top of it.</p><p>For the JavaScript, this was a lesson I learned early on trying to figure out how my landing pages. I could not get the image slideshow to advance! But then I found the answer on Stack Overflow! The simple fix was to put the JS &lt;script&gt; right before the closing &lt;/body&gt; tag. The &lt;scrip&gt; blocks the DOM loading into the browser until it is done loading and rendering. So, you can load your page and it take some time before any JS functionality is available. So, if you are having issues with an animation, button onclick or slideshow advancing, try moving the &lt;script&gt; tag to the end.</p><p>This may not fix everything, but it is worth checking and turning into a habit early on! Once you have ruled out this loading error, it is easier to go into the console to track down any remaining bugs.</p><p><strong>Consider HTML5 as an open web platform. What are the building blocks of HTML5?</strong></p><p>HTML5 building blocks include semantic text markup, form elements, video/audio, API’s (e.g., Javascript, geolocation), Canvas/SVG and new data storage.</p><p><strong>What’s the difference between the :nth-of-type() and :nth-child() selectors?</strong></p><p>:nth-child() selectors will select an element if it is a paragraph element &lt;p&gt; or is the nth child of a parent. Essentially, it will select an element regardless of the element type that is the nth child of its parent.</p><p>:nth-of-type() selectors will select an element if it is the nth paragraph element child &lt;p&gt; of a parent.</p><p>Here are two resources with good examples I like as references:</p><p><a href="https://css-tricks.com/the-difference-between-nth-child-and-nth-of-type/">https://css-tricks.com/the-difference-between-nth-child-and-nth-of-type/</a></p><p><a href="https://www.w3schools.com/cssref/sel_nth-of-type.asp">https://www.w3schools.com/cssref/sel_nth-of-type.asp</a></p><p><strong>What is CSS-selector specificity, and how does it work?</strong></p><p>There are four categories that define the specificity for a selector.</p><p>IDs: a unique ID assigned to page elements (e.g., #button2). This is assigned in the HTML, and then can be used for styling and positioning that specific element in CSS.</p><p>Inline styles: these are unique code styles put directly into the HTML. Example: &lt;h2 style= “color: lightblue;”&gt;Hello World! &lt;/&gt;</p><p>In this example, the phrase, “Hello World!” would be colored light blue, while the other text on the page would remain their original color.</p><p>Classes, attributes, pseudo-classes: This category includes examples such as :hover, :focus</p><p>Elements and pseudo-elements: This includes element names and pseudo-elements (e.g., button, div, :before, :after)</p><p><strong>What resources do you use to learn about the latest in front-end development and design?</strong></p><p>I am always finding new resources to learn about front-end development and design. Mostly from my classmates. Although here are three of my favorite websites to get inspiration from.</p><p><a href="https://freefrontend.com/">https://freefrontend.com/</a></p><p><a href="https://www.awwwards.com/">https://www.awwwards.com/</a></p><p><a href="https://www.interaction-design.org/literature/topics/web-design">https://www.interaction-design.org/literature/topics/web-design</a></p><p>Depending on the project, I will also search for examples. So, for my capstone project, as I am researching before design the wireframes, I am looking at the similarities and differences between museum and archival websites. I look for the functionality, the user interaction, number of clicks, educational components, and the overall flow.</p><figure><img alt="Graphic with person at computer and code in background" src="https://cdn-images-1.medium.com/max/640/1*x_VglgWy-wiirFcgq4ROOw.png" /><figcaption><a href="https://pixabay.com/users/lakexyde-2489063/">https://pixabay.com/users/lakexyde-2489063/</a></figcaption></figure><p>So, to anyone who is currently on their learning to code journey, please know that you are not alone. I have found that this journey is a series of continual improvement projects. One part that I did not anticipate but am happy I decided to incorporate is working on my self-compassion. I still have a long way to go with both the self-compassion and coding, but trust me, if you can incorporate another aspect of self discovery or self-improvement that is not directly related to tech, it can be surprising at how quick they can lead to an interwoven but better and richer journey.</p><p>Your friend in code,</p><p>Rachel</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a32e3fbabf1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>