<?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 Maxnmcbride on Medium]]></title>
        <description><![CDATA[Stories by Maxnmcbride on Medium]]></description>
        <link>https://medium.com/@maxnmcbride?source=rss-a132388d7358------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*g60gUdNKbbSunB9P</url>
            <title>Stories by Maxnmcbride on Medium</title>
            <link>https://medium.com/@maxnmcbride?source=rss-a132388d7358------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 07:55:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@maxnmcbride/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[How To Create A React and Ruby Application On A Mono-Repo]]></title>
            <link>https://medium.com/@maxnmcbride/how-to-create-a-react-and-ruby-application-on-a-mono-repo-ad5cd084a75?source=rss-a132388d7358------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad5cd084a75</guid>
            <dc:creator><![CDATA[Maxnmcbride]]></dc:creator>
            <pubDate>Wed, 01 Feb 2023 19:34:26 GMT</pubDate>
            <atom:updated>2023-02-02T18:15:14.508Z</atom:updated>
            <content:encoded><![CDATA[<p>When building new applications it is a likely scenario that you will be building a front end using the JavaScript library React and a backend using Ruby on Rails, at least this is how I tend to build my applications. As such I will be presenting a step-by-step guide of how I like to handle this. Please note, this is assuming that you have access to Ruby/Ruby on Rails and React on your local environment.</p><p>Step One: Create a Rails application</p><p>Before starting any project I like conducting a versions check so that I know what I am working with. I like to take note of the versions of frameworks or libraries that I am using in my README.md file so that others will better understand how to interact with my code, and so that a few weeks, months, or years from now I know what I was working with. Even while working on a project I like to have a quick and easy location to check versions so that I know what documentation to look up. To check what version of Rails you are running simply type in the command: $ rails -v. I am currently running Rails 7.0.4.2. From your terminal type in the command: $ rails new desired_file_name_here — — api — — minimal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*MRboS1JapSBn9VWkzKgqgQ.png" /><figcaption>Command in terminal: $ rails new file_name — — api — — minimal</figcaption></figure><p>This command will generate a new rails application whose functionality is that of an API (application programming interface) without the framework to build out a front end application. While it is possible to build full stack applications in Ruby, I am more comfortable using REACT for my for the front end of my applications. With the addition of the — — minimal flag, the Rails installation will skip the some extras including: action_cable, action_mailbox, action_mailer, action_text, active_job, active_storage, bootsnap, jbuilder, spring, system_tests, turbolinks, and webpack. By stripping out the unnecessary components during install this will allow you to run a lighter application.</p><p>If at any point in your project you would like to enable the functionality of one of the eliminated files you can restore them by accessing your Gemfile. In your Gemfile simply add the desired gem by including the following in your Gemfile: gem “name_of_desired_gem”, “desired_version_number”. Then run $ bundle install from your terminal while in the desired directory. I like to include a lot of notes in my code, especially when learning a new skill or utilizing something new, therefore, I try to include a description of what the gem does.</p><p>Step Two: Create a React application</p><p>Once the install is complete cd (change directory) into the newly created directory, in the case of this example, $ cd file_name. From the terminal, once navigated to be in the newly created directory, type in the command to create a new React application: $ npx create-react-app react_file_name. For this example, and due to my preferred naming practice, I will call the new file “client”. The reason I like to call the new file “client” is so that it is obvious to my future self, and hopefully to other coders that my React application is acting as the client in terms of interaction with the Rails file and database I am going to create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*RojyQn6DACdEK5o9-G0DgA.png" /><figcaption>Command in terminal from within file_name directory: $ npx create-react-app client</figcaption></figure><p>Upon completing the creation of the new React app you should get a “Happy Hacking” message to signify that all went smoothly. To double check that the React application was created correctly I like to start the React app from the terminal. Being that we are starting it from the directory called “file_name,” but our React application is called “client” the start command is $ npm start — — prefix client.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*7cDNgKxSPNsxc8CPtGIkzg.png" /><figcaption>Command in terminal from within file_name directory: $ npm start — prefix client</figcaption></figure><p>Note, you can also cd into the “client” directory and start the application without the — — prefix client flag.</p><p>Step Three: Initialize New Git Repo and Push Changes</p><p>Though the front end and back end are not yet communicating (I will be covering how to create the necessary connections in a subsequent blog), it is important to upload your progress to a new Git Repo, after all, that was the entire point of this blog. To start the process of creating a repository for my new application I like to go to GitHub (<a href="https://github.com/new">https://github.com/new</a>) and generate a repository from the browser. The reason that I prefer using the browser is that I can add a description to my work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bTehKl2WPHiYMaFw7GOCcA.png" /><figcaption>Screenshot of GitHub /new without fields filled in</figcaption></figure><p>Additionally, once the route for the repository is created, instructions for initializing the repository and navigating to the appropriate branch from the command line is provided.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yhVQ7RsSIAxNzhUWKre2tA.png" /><figcaption>Screenshot of GitHub showing the provided commands to initialize the repository and navigate to the main branch</figcaption></figure><p>Note that each of these commands are meant to be input sequentially.After the initialization and navigation commands are completed from the command line I like to double check that the repository is accessible by way of my GitHub profile. I also like to check that I am getting access to the repo from the terminal by entering the command: $ git status. If everything is working as you intended, a response will be given showing the current branch you are on. This should cover all of the steps of creating a mono-repo for you full stack applications using Ruby on Rails and React. Being that our React files are embedded within the Rails application there are two ways that we can start our React app. We will need to either navigate into the appropriate directory, in the case of this example “client” then type $ npm start into the command line, or simply start the React application without first navigating into the directory using $ npm start — — prefix client ( — — prefix takes us to the appropriate directory, which in our example case is “client”).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad5cd084a75" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using React Spring to Create Parallax Effect]]></title>
            <link>https://medium.com/@maxnmcbride/using-react-spring-to-create-parallax-effect-d4ef81f30347?source=rss-a132388d7358------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4ef81f30347</guid>
            <dc:creator><![CDATA[Maxnmcbride]]></dc:creator>
            <pubDate>Wed, 04 Jan 2023 02:44:46 GMT</pubDate>
            <atom:updated>2023-01-04T02:44:46.362Z</atom:updated>
            <content:encoded><![CDATA[<p>Learning to build a creative and interactive feeling website is imperative to modern front end development. People go to hundreds of websites throughout their lifetime, so creating a memorable experience can definitely be difficult. Making use of the parallax effect can be a quick and effective way of building a memorable user experience.</p><p>If you are not familiar with the parallax effect, most simply put it is an effect that allows for a background component and a foreground component to move at different rates on the screen. This is an effect that has been used for decades, not only in web development, but in gaming alike! Long before I knew what this effect was called I was familiar with it from playing arcade games, and one of my favorite SEGA games of all time, Sonic the Hedgehog!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*1Tn2zBFuLehTEzcHahu1cg.gif" /></figure><p>In this GIF we can see that while Sonic is running along the track the foreground is scrolling at the speed of play, the background is scrolling by significantly slower, giving the impression of distance. In addition to creating a sense of depth, it can also create a beautiful effect on websites. Throughout this blog I will be showing you how to implement the parallax effect utilizing the React-Spring animation library. While the parallax effect can be implemented by means of vanilla CSS or other React libraries, React-Spring has so many tools to aid in beautiful animation effects and I have had a lot of success with it.</p><p>What do we need to build in order to build the parallax effect? Apart from making use of React-Spring, we will need to use multiple layers comprised of both text blocks and images. For purposes of this blog I created<strong> </strong>5 layers using the free drawing website called Pixilart.com/draw. This is a fun and free tool that allows users to make pixelated artwork with a similar feel to MS Paint. After creating my art, all that was left to do was create a React app.</p><p>Step One: Create The React App</p><p>I decided to name this app Parallax so that I would know what I was practicing with this project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*dgCEDRfb_IjZegviZANjsg.png" /></figure><p>Step Two: Install React-Spring</p><p>In their own words, “React Spring is a cross-platform spring-physics first animation library.” It’s primary use is not for helping users create the parallax effect, but to instead ass smooth and realistic animation to components in their apps. Luckily for us, it is also a very powerful tool for creating a great looking parallax effect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*NXciZxhmMMkfIxsayx9iJA.png" /></figure><p>Step Three: Check Package.json File</p><p>I always like to check my package.json file in my react app to make sure that the dependencies I want, in this case React Spring, are available and are the appropriate version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*PCtVVLIHkdUKLHcDt36zdA.png" /></figure><p>Step Four: Import Parallax and ParallaxLayer From React Spring Into Desired Component</p><p>For my project, I am creating the parallax effect on the Home Page, and nowhere else, so I imported into there. The Parallax container houses each of the layers while the ParallaxLayer is the layer with the desired image or text. The Parallax container has attributes shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c-D00emJJZhgHoemLO8TFw.png" /><figcaption>Parallax Attributes</figcaption></figure><p>For my project the only attribute I had to specify was the pages. The ParallaxLayer also has attributes associated with it and are shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E908oWvNkKNeJbRoHsHZ-A.png" /><figcaption>ParallaxLayer Attributes</figcaption></figure><p>I used many more of the attributes of the ParallaxLayer as these are where, at least for me the fun in the animation begins. I used five layers which span four pages. Each layer can be set to a different speed which allows for the greatest sense of motion and depth. Speed rates are extremely variable and can be specified to .25 increments. The offset property is useful for having different images load at different points while scrolling through the number of pages set in the Parallax attributes. You can increase or decrease the amount of space a layer takes up on a page using the Factor attribute. This can be specified to size increments of .5. The final attribute I set was Sticky. This allows layer to move at in line with the speed of scrolling and can be set to start moving at a certain offset and stop moving at a certain offset.</p><p>Step Five: Setting Attribute Parameters On My Project</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kRxyVveDUkpTuCYyjbfwCA.png" /></figure><p>While the majority of my code is compressed, I have left open a layer which contains the stick attribute and another layer which contains offset, factor, and speed, so that you can see how they are written. Let’s take a look at the end result!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gK1hYr6P0ipTfKO-eUqFfg.gif" /></figure><p>Not bad! There is a lot more I would like to implement with React Spring. I did run into some issues while using it which I hope to learn to resolve. Firstly, getting images sized appropriately was difficult for me, and I was not able to find decent documentation on how to appropriately adjust that. Secondly, I have not been able to properly implement client side routes nested within parallax layers, I am sure it will take more exploration into the library. I plan on updating the blog once I find more relevant information on tackling these two issues. I look forward to exploring more the React Spring library, as I know it is capable of a lot.</p><p>Helpful Resources:</p><ul><li><a href="https://www.npmjs.com/package/@react-spring/parallax">@react-spring/parallax</a></li><li><a href="https://www.npmjs.com/package/react-spring?activeTab=readme">react-spring</a></li><li><a href="https://reactjs.org/docs/create-a-new-react-app.html">Create a New React App - React</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FUgIwjLg4ONk%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DUgIwjLg4ONk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FUgIwjLg4ONk%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/97d41d8481aa46ff7d370ebdaab46eb1/href">https://medium.com/media/97d41d8481aa46ff7d370ebdaab46eb1/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4ef81f30347" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Coding in Music]]></title>
            <link>https://medium.com/@maxnmcbride/coding-in-music-5f457a21dd8d?source=rss-a132388d7358------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f457a21dd8d</guid>
            <dc:creator><![CDATA[Maxnmcbride]]></dc:creator>
            <pubDate>Thu, 15 Dec 2022 17:20:03 GMT</pubDate>
            <atom:updated>2022-12-15T17:20:03.156Z</atom:updated>
            <content:encoded><![CDATA[<p>As with much art today, music is no exception when it comes to incorporating electronics, computers, coding, and even AI to push the bounds of what was previously possible. Coding now occupies a vast space in music affecting everything from music composition by means of notation software, music production through the development of increasingly complex and capable DAWs (digital audio workstations: Logic, Protools, Ableton, etc.), to the creation and performance of music through programs such as Max/MSP/Jitter or Sonic Pi, to how we consume music through streaming. With our world becoming increasingly more digitized it is imperative for musicians to be present at the table for the development of these emerging technologies to ensure their efficacy and have awareness of their limitations.</p><p>Having studied composition for the past eight years and hoping to someday work for a music technology company I have a great interest in learning more about, and understanding the programming languages used in music notation software. While researching about the various music notation software programs I have used such as Finale, Sibelius, Dorico, and MuseScore I was unsurprised that all of these programs have great overlap. All of these programs are coded in C++ and generally function in a manner similar to word processing programs, allowing for users to change basic formatting settings i.e. margin, note head type, etc. One of the largest differences between these notation softwares and a word processor is the ability to playback the audio of the notated music, most frequently by means of MIDI.</p><p>The means by which scorewriters (software notation programs) are able to playback audio is with the implementation of scripting languages such as Lua. I found this interesting and surprising as many video games use Lua such as World of Warcraft. Many current scorewriters are meant to be used by composers and are thus structured using graphic user interfaces, however, there are a number of text-based scorewriters such as LilyPad and Impro-Visor. While Impro-Visor has a built in front end, LilyPad makes use of a seperate front end program called Denemo. Looking at the code used to generate scores from text-based composition software really boggles my mind, and I am not exactly sure who this is intended for, as you would need to be both a proficient coder and composer, or at least able to read music.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*FEruNf_UaL92dRIjar-Bcw.png" /><figcaption>LilyPad Notation Input</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*cFyctseS4aCkngukxI0zkA.png" /><figcaption>LilyPad Notation Output</figcaption></figure><p>While learning about the history of scorewriters I was shocked to learn that the first scorewriter was developed in 1957, at the University of Illinois on their famous Illiac computer. The thing that makes this surprising is not not only how early in computing these developments came along, but that this computer also COMPOSED the music that it wrote. The computer was given a set of parameters as prescribed by the programmers, Lejaren Hiller and Leonard Isaacson, and generated the <a href="https://en.wikipedia.org/wiki/Illiac_Suite"><em>Illiac Suite</em> of 1957</a> for a string quartet. Though the computer did not have the technology to then perform the music it generated this development came leaps and bounds ahead of when I would have expected.</p><p>It is now common place for music to be generated using programming languages, and there is, in fact, a style of music known as Live Coding which commonly uses FoxDot, Max/MSP/Jitter, or Sonic Pi. Sonic Pi and FoxDot are both text based coding environments based on Ruby. Max/MSP/Jitter is a visual progamming language.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f457a21dd8d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ruby Gems, Truly a Treasure]]></title>
            <link>https://medium.com/@maxnmcbride/ruby-gems-truly-a-treasure-1bda14ea5879?source=rss-a132388d7358------2</link>
            <guid isPermaLink="false">https://medium.com/p/1bda14ea5879</guid>
            <dc:creator><![CDATA[Maxnmcbride]]></dc:creator>
            <pubDate>Wed, 07 Dec 2022 15:44:25 GMT</pubDate>
            <atom:updated>2022-12-07T15:44:25.028Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*bScqZ8Y652ROK2z5MdxroA.jpeg" /><figcaption>Treasure chest filled with rubies</figcaption></figure><p>What is a Ruby Gem? Ruby Gems are open source libraries that contain bundles of Ruby code which can be implemented by the user to make their coding experience more seamless. As with all other programming languages, a library is a collection of prewritten code that can carry out common tasks in an optimized fashion. Using gems in your coding will lessen the amount of code that you need to write as a programmer, and, with practice, allow you to create more powerful programs. Gems carry out a lot of work “under the hood,” so you needn’t program absolutely everything from scratch. As with any tool used in coding, it is important for you to read the documentation to understand how the Gems you want to use are supposed to function and to get a full grasp on the extent of the capabilities of the Gem.</p><p>There are tons of different Ruby Gems available to users, literally thousands! Personally, I have yet to run into a situation that I have been unable to find a Gem that provides what I need, but if you are a more advanced coder than myself. As there are thousands of Gems, I will provide a brief overview of some of the most popular ones available which are all available via <a href="https://rubygems.org/">https://rubygems.org/</a>.</p><ol><li><strong>Bundler:</strong> In their own words,<em> Bundler provides a consistent environment for Ruby projects by tracking and installing the exact gems and versions that are needed</em>. This is extremely useful as a coder so that you needed individually create all of your dependencies separately, instead, they are organized and accounted for, for you. This means that you do not need to write require ‘<em>NAMEOFGEM</em>’ at the top of each of your code blocks. Bundler also provides an easy means for coders to create their own gems as well!</li><li><strong>Rack: </strong>In their own words, <em>Rack provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in the simplest way possible, it unifies and distills the API for web servers, web frameworks, and software in between (the so-called middleware) into a single method call. </em>From my cursory understanding of middleware, rack is an interfacing software that helps different softwares to talk to one another with ease. As a programmer, using Rack will ensure that you needn’t worry so much about making sure programs can communicate and you can worry more about the functionality of the application you are building.</li><li><strong>Faker: </strong>In their words, <em>It’s a library for generating fake data such as names, addresses, and phone numbers. </em>This is a Gem that is really as simple as it seems. When building and subsequently testing databases it is imperative to have lots of varied data to test with. Instead of having to manually input information into a seed file, the Faker Gem allows a user to generate data to fill out specific parameters.</li><li><strong>JSON:</strong> In their own words,<em> It provides an API for parsing JSON from text as well as generating JSON text from arbitrary Ruby objects. It’s easily the most used JSON library in Ruby. </em>Note, however, that in versions of Ruby 1.9.2 and newer that, the <strong>JSON</strong> Gem is already bundled with the Ruby distribution, so you are covered unless you have an older version of Ruby running!</li></ol><p>There are tons of Gems, so many, in fact, that we do not have the time or space to get into all of them. But know that for nearly anything you need help with, from interfacing languages with Ruby to organizing your Gems within a program, there is a Gem for that.</p><p>The means by which you install a Ruby Gem is extremely easy as well. Once you have found the Gem that you would like to install either on <a href="https://rubygems.org/">https://rubygems.org/</a> or from another source you can just go into your terminal and enter <em>gem install NAMEOFGEM. NAMEOFGEM </em>should be substituted with the actual name of the Gem, i.e. rack. Uninstalling a Gem is just as simple as installing one. Simply go into your terminal and enter <em>gem uninstall NAMEOFGEM.</em></p><p>Note that while installing you are able to specify which versions of a Gem you would like to install. This is useful in the case circumstance that the project you are working on is suited to an older version of a Gem, or if you want to avoid a new version of a Gem that may still be in beta. This can be done with the -v command. This would look like <em>gem install NAMEOFGEM -v </em>in your terminal, following the -v you would specify which version number you would like to install<em>. </em>Alternatively you can also use a comparator command to install up to a specific version, or ensure that the version you install exceeds a specific version.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1bda14ea5879" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning How to Learn as a Developer]]></title>
            <link>https://medium.com/@maxnmcbride/learning-how-to-learn-as-a-developer-cda3d16c3150?source=rss-a132388d7358------2</link>
            <guid isPermaLink="false">https://medium.com/p/cda3d16c3150</guid>
            <dc:creator><![CDATA[Maxnmcbride]]></dc:creator>
            <pubDate>Mon, 14 Nov 2022 17:23:11 GMT</pubDate>
            <atom:updated>2022-11-15T17:27:17.167Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LIxPAqTpgbWBM_8NZ2mcqA.jpeg" /></figure><p>For the past few weeks I have been a student at Flatiron School for software development. One of the most challenging components of the course for me has been learning how to learn new information in a compressed format. For some context, for nearly as long as I have been alive I have been a student. I went into an undergraduate program where I focused my studies on Technology Education (learning how to be an effective educator on the various topics in technology, my focus being on architecture and industrial design) and Music Education (my focus being on jazz education and composition). Following my undergraduate program I ended up pursuing my graduate education in Jazz Pedagogy.</p><p>While teaching music in a Philadelphia middle school I repeatedly found myself in a position of needing to learn about different styles of music and new artists to help facilitate connections between the topics I was teaching, and providing examples that resonated with the students. Needless to say, I have often viewed myself as an effective and enthusiastic learner. Despite being an enthusiastic learner, I have had to adjust my learning mindset during my educational journey as a software developer.</p><p>Being in a bootcamp, the expectation of learning is on a compressed timeline, quite different from any educational experience I have had previously. I came into Flatiron School without any understanding of coding outside of the required pre-work, so being able to learn, understand, and implement so much new material felt akin to drinking from a fire hose. Throughout my learning journey at Flatiron I have found that keeping a few things in mind have helped me stay positive while learning difficult material, and have helped me understand the new information more deeply.</p><p>Things that have been helpful for me to keep in mind:</p><ol><li>This material is new, so it makes sense that I do not fully understand it.</li></ol><p>Coming from a background as a teacher I am used to being a person with more answers than questions. However, as my instructors have made abundantly clear, not even the most advanced software developers are going to know everything, and all of them will refer to documentation.</p><p>2. Get comfortable reading documentation, then get comfortable USING what was read.</p><p>A sentiment commonly expressed by teachers of all fields of study is that one of the most effect ways of learning is by doing. For me, implementing the techniques and code seen documentation solidifies the insights presented in reading the documentation. Many times, reading the documentation once will help me hone in on what I am having gaps in understanding, but it will not magically allow me to understand new concepts. What really helps me understand how the code functions is by implementing and editing the code seen in the documentation. As frequently as possible simply write code.</p><p>3. Stay curious and inquisitive.</p><p>Whether you are learning code in a bootcamp, from a book, or in a self-paced online course new concepts can be extremely intimidating, frustrating to learn, and feel completely foreign. By continually asking questions you will learn how to articulate your thought, and hone the verbiage you use. This will not only allow you to communicate more clearly with others in the field, but it will also allow you to self-assess. Are you able to express your curiosity in a meaningful and understandable manner.</p><p>Regardless of your learning experience, you’ve got this! Use documentation, watch YouTube videos, find some helpful books or PDFs, try and talk to other coders or students, join an online forum. You will slowly find out what means of learning best suits you, and you will learn what means of learning does not suit you. Learning anything new can be intimidating, but it should not be a barrier to becoming more proficient in something you have never seen before.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cda3d16c3150" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Console.log(), your soon-to-be friend]]></title>
            <link>https://medium.com/@maxnmcbride/console-log-your-soon-to-be-friend-6212b0922c15?source=rss-a132388d7358------2</link>
            <guid isPermaLink="false">https://medium.com/p/6212b0922c15</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Maxnmcbride]]></dc:creator>
            <pubDate>Wed, 05 Oct 2022 13:49:39 GMT</pubDate>
            <atom:updated>2022-11-14T17:23:34.682Z</atom:updated>
            <content:encoded><![CDATA[<p>I am currently in a coding bootcamp run through Flatiron School learning to become a full stack developer in a meager fifteen weeks. The intensity of the course has left my brain feeling a bit like a slinky, completely stretched and under tension one second, the next, breakthroughs occurring once the other half of my brain catches up. Everyday I am learning to use the amazing tools and techniques that coders utilize in order to make our websites, apps, and games function. For me, the most powerful tool I have used to learn was also one of the most surprising: console.log().</p><p>The reason I was surprised by the power of console.log() is that I did not understand its functionality. When first learning to write some basic code a few months ago, console.log() was presented as a method for getting a message to be able to show up on my screen. Getting a message, most frequently ‘Hello World!’, to pop up in the web console, while initially exciting, felt a bit like a party trick. I was interacting with coding, but I had know idea why this tool was working, and why I would want something to just show up in the web console versus showing up on the actual website. Now that I understand how to use console.log() a bit better I have been blown away with how much it is teaching me about the functionality of different components of code.</p><p>Console.log() is a means of getting components of your code to render a message to the web console. So, what does that mean and why is it helpful? Rendering a message in the web console just means that you are asking the code to tell you how it interprets your coding. More specifically, console.log() effectively allows you to ask the code, “How do you respond when I write this? Are you able to make sense of what I am trying to accomplish? Can this new piece of code that I wrote interact properly with everything I wrote prior?” In essence, Console.log() can be used as a method of setting up check points for yourself.</p><p>Console.log is very helpful as it can be used as a means of checking your code while you are writing it, so that you can test specific components, and ensure that they are operating as you anticipated. Let’s look at an example so that we can make more sense of this.</p><p>I was working on creating a To Do list application that would allow me to submit different tasks to a list, then, upon completion, delete those tasks from the list. This may sound simple enough, but I needed to implement events and functions that were brand new to me. So, in order to make sure that my ‘Submit’ event was operating as expected, I used console.log() on each component ensuring their functionality.</p><p>The code I wrote for the submit function can be seen below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*8fuDj8bd_RV9fy1yvqfzcw.png" /></figure><p>As you can see, I have event an event listener that waits for interaction with the ‘Submit’ component on my app. Once ‘Submit’ has been, in this case, clicked it will trigger the function ‘formSubmit(event)’. To start off with, I have two tasks to be carried out by my function once the ‘submit’ event occurs. First, there is an event.preventDefault(), this simply keeps my page from reloading as soon as the submit event occurs. The second is a console.log(‘I hit the button’). This logs to the web console solely to provide me with the insight that the ‘submit’ event is truly triggering the formSubmit function as I want and expect it to operate. Below, you can see confirmation from my web console that the intended message did get logged.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*fgas36op-P373bPFfCT05A.png" /></figure><p>After confirming its operation, I was able to add the real functionality to formSubmit(event) as can be seen below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xh9pkyMr_8X0uy52_tL6Qg.png" /></figure><p>In this example, I have commented out the console.log(‘I hit the button’) as I want the function to carry out other tasks than just tell me that the event listener is working, but using console.log() was a crucial step for me in checking that my code is in working order.</p><p>The sources I used for this article and to learn more about console.log() are listed below :</p><ul><li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Console/log">console.log() - Web APIs | MDN</a></li><li><a href="https://www.w3schools.com/jsref/met_console_log.asp">JavaScript console.log() Method</a></li><li><a href="https://www.geeksforgeeks.org/javascript-console-log-with-examples/">JavaScript | console.log() with Examples - GeeksforGeeks</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6212b0922c15" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>