<?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 Mark Wilkins on Medium]]></title>
        <description><![CDATA[Stories by Mark Wilkins on Medium]]></description>
        <link>https://medium.com/@markwilkins86?source=rss-a6b963b44177------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Wka8Hc4BbwDHzg9nprdsfw.jpeg</url>
            <title>Stories by Mark Wilkins on Medium</title>
            <link>https://medium.com/@markwilkins86?source=rss-a6b963b44177------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 12:07:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@markwilkins86/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[Routing in Rails and React]]></title>
            <link>https://medium.com/@markwilkins86/routing-in-rails-and-react-c27142b10688?source=rss-a6b963b44177------2</link>
            <guid isPermaLink="false">https://medium.com/p/c27142b10688</guid>
            <category><![CDATA[routing]]></category>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Mark Wilkins]]></dc:creator>
            <pubDate>Thu, 25 Aug 2022 15:38:34 GMT</pubDate>
            <atom:updated>2022-08-25T15:38:34.016Z</atom:updated>
            <content:encoded><![CDATA[<p>A couple of weeks ago I graduated with a software engineering certificate from Flatiron School. I learned so much throughout this program it is truly amazing how much one can learn in a short amount of time.</p><p>Part of the curriculum I learned going through the 15-week intensive boot camp was Ruby on Rails for backend development. A piece of Ruby on Rails that I found most interesting was Routing. With routing you are building and setting up the literal “routes” an application takes when a certain functionality happens.</p><p>These routes, both “normal” routes that are used throughout many applications as well as custom routes that allow unique functionalities to happen within the application you are building, make an application “act” the way it acts.</p><p>Below you can see examples of some of the routes I built into my capstone project at Flatiron School. The first route shown below renders the unique Users Home page when the application is logged into.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*l0ELb7MXXR-5EotJteBGGA.png" /></figure><p>In the case of my capstone project, my frontend was built on React and within the functionality, each of these routes is called with a fetch function that generally looks something like what is shown below. The below functionality is the code that allows a User to Login into the application. In the previous screenshot, you can see the route for this functionality as &lt;post “/login”, to: “sessions#create”&gt;. Then below the screenshot, you can see the React functionality that is calling this route and setting certain states within. It then verifies that the User information exists on the backend of the app by “following” the “/login” route. This function then takes it one step further. If you look closely at the end of the function, once it knows that the User that is logging in exists it routes <em>again</em> to that User’s specific Home page by following the “/home” route! Very cool!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*b3ZJXPiXBdgVJIzxlKZP9w.png" /></figure><p>The application I built for this capstone project is a reminders website — built with the intention of making an easy-to-use, easily viewable place to store reminders, important dates, etc. When I was building the application I wanted to experiment and learn a bit more about Custom Routes. So I built the two custom routes shown below in the first screenshot. Each of these routes is connected to a button on the frontend that orders the User’s reminders in either ascending or descending order. The second screenshot below shows the frontend functionality of the route for the descending order button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*BdL-lHhcMt1G5o532oLT9w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*kSVuygwb1pZUmbeiqSjA1g.png" /></figure><p>My custom routes for this project were just scratching the surface of what I am sure you can do here. The entire experience that I had working with routes and seeing what they can do and how they give the code and application a path to follow to communicate between the frontend and backend of the application I find incredibly fun and interesting.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c27142b10688" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[State in React]]></title>
            <link>https://medium.com/@markwilkins86/state-in-react-7b9fbf24acbb?source=rss-a6b963b44177------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b9fbf24acbb</guid>
            <dc:creator><![CDATA[Mark Wilkins]]></dc:creator>
            <pubDate>Tue, 02 Aug 2022 15:03:05 GMT</pubDate>
            <atom:updated>2022-08-02T15:03:05.584Z</atom:updated>
            <content:encoded><![CDATA[<p>At the time of writing this, I have just put the finishing touches on my capstone project for Flatiron School. The entire 15 weeks of this program have been so challenging, rewarding, interesting, and fun, and the last three weeks of capstone project work have just amplified these feelings. For our capstone projects we have to build a fully-functional website on our own- yes, we can ask for help from our colleagues and instructor/project manager, but ultimately it has to be done solo. As a result, I have learned so much!</p><p>I decided to make a user-friendly, easy-to-use Reminder App using a React frontend and a Rails backend. One of the most fascinating and often most challenging aspects of React is the use of State</p><p>A quote from Simplilearn.com sums up what State is very nicely:</p><p>“The state is a built-in React object that is used to contain data or information about the <a href="https://www.simplilearn.com/tutorials/reactjs-tutorial/reactjs-components">component.</a> A component’s state can change over time; whenever it changes, the component re-renders. The change in state can happen as a response to user action or system-generated events and these changes determine the behavior of the component and how it will render.”</p><p>In the below screenshot you can see several examples of State constants within some React code. Each of these is made of two parts within the square brackets: the State (reminders) itself and the Setter (setReminders) that Sets said State. Anytime the Setter <em>changes</em> within the use of the program/app being written it re-sets the state it is setting which in turn then re-renders said state. This oftentimes changes what the user sees on the screen though the changes happen within the code and the user doesn’t actually realize this is happening.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*bdkV-tE60rzGA26UBi3X7Q.png" /></figure><p>The setting, setup, and utilization of State can be tricky to use when writing React code. As you write React code you have to make sure you are calling state properly, then within your function writing you need to then correctly set the Setter to the right information so that it can then <em>reset</em> the specific State you are targeting for rerendering. Once you get a State rendered correctly a React app becomes highly responsive and exciting! As you code, and make changes to your code, you can actually <em>see</em> those changes happening within the DOM. Very cool!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b9fbf24acbb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React & Routing]]></title>
            <link>https://medium.com/@markwilkins86/react-routing-ab955414812b?source=rss-a6b963b44177------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab955414812b</guid>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Mark Wilkins]]></dc:creator>
            <pubDate>Fri, 03 Jun 2022 15:02:54 GMT</pubDate>
            <atom:updated>2022-06-03T15:02:54.080Z</atom:updated>
            <content:encoded><![CDATA[<p>Phase 2 has been a wild ride. React tricked me at first. Working through the initial labs on React my first thoughts were, “Wow, this doesn’t seem so bad. It’s just re-utilizing the JavaScript I already learned in Phase-1. Cool.” By the end of the first week, I was severely confused with a heavy case of impostor syndrome setting in.</p><p>Over the course of my second week working with React, I slowly but surely began to understand how the framework worked. As my learning progressed we started diving into React Routing and that’s where the whole thing got to be super interesting!</p><blockquote>According to <a href="https://www.geeksforgeeks.org/reactjs-router/">GeeksforGeeks</a>, <strong>React Router</strong> is a standard library for routing in React. It enables the navigation among views of various components in a React Application, allows changing the browser URL, and keeps the UI in sync with the URL.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*1svR4HG7kCJr6P6Q3SrlLA.png" /></figure><p>Each Component within your App is given a Route. These Routes then tell the UI what to display when the Component Path matches the current URL that the user has entered/visited. This functionality is what gives an App/Website that you are building the ability to easily switch between components by using JavaScript without having to fetch additional HTML documentation. Everything, fetching, routing and then displaying information is handled by the server within this setup.</p><p>When the page loads the initial Route (most often a Home Screen of some sort) is displayed. Each other Route is given it’s own tag within the code and when that Route is clicked or typed the computer then displays the Route with the matching Route URL. This makes for a seamless flow of pages within the application and allows the user to remain on the one-page to view other options instead of having to load other pages. Thus experiencing a Single-Page Application (SPA)!</p><p>This fluidity has been a super fun experience to learn and then execute. It feels like a very powerful aspect of React and I can’t wait to see what else it can do!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab955414812b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>