<?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 Stephanie Conde on Medium]]></title>
        <description><![CDATA[Stories by Stephanie Conde on Medium]]></description>
        <link>https://medium.com/@stephaniecondecareer?source=rss-68f7ad79195c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ygzLrCZxjHkXqMbdSmmuRA.png</url>
            <title>Stories by Stephanie Conde on Medium</title>
            <link>https://medium.com/@stephaniecondecareer?source=rss-68f7ad79195c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 23:41:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@stephaniecondecareer/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[Redux vs. useContext]]></title>
            <link>https://medium.com/@stephaniecondecareer/redux-vs-usecontext-61d1d9774e06?source=rss-68f7ad79195c------2</link>
            <guid isPermaLink="false">https://medium.com/p/61d1d9774e06</guid>
            <category><![CDATA[combinereducers]]></category>
            <category><![CDATA[usecontext]]></category>
            <category><![CDATA[brown-girls-in-tech]]></category>
            <category><![CDATA[redux]]></category>
            <category><![CDATA[girls-in-tech]]></category>
            <dc:creator><![CDATA[Stephanie Conde]]></dc:creator>
            <pubDate>Thu, 27 Jul 2023 18:28:19 GMT</pubDate>
            <atom:updated>2023-07-27T18:28:19.326Z</atom:updated>
            <content:encoded><![CDATA[<p>While a student at Flatiron I got to experience building a web app using both useContext and Redux to manage React.</p><p>In this blog, I will talk about some of the the key differences between Redux and useContext, their respective benefits, and when to choose one over the other.</p><h3>Redux</h3><p><strong>Understanding Redux<br></strong>Redux is a predictable state container for JavaScript applications, commonly used with React. It follows the principles of a single source of truth and a unidirectional data flow. Redux operates on three fundamental concepts: the store, actions, and reducers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XEVxovodur9doQW-GJ6MLA.gif" /></figure><p><strong>The Store<br></strong>The store is a single JavaScript object that holds the entire application state. It is immutable, meaning the state can only be modified by dispatching actions. I used the combineReducers helper function— the combineReducers helper function turns an object whose values are different reducing functions into a single reducing function you can pass to createStore.</p><pre>import { combineReducers } from &quot;redux&quot;;<br>import errorsReducer from &quot;./errorsReducer&quot;;<br>import usersReducer from &quot;./usersReducer&quot;;<br>import placesReducer from &quot;./placesReducer&quot;;<br>import businessesReducer from &quot;./businessesReducer&quot;;<br><br>export default combineReducers({<br>  errorsReducer,<br>  usersReducer,<br>  placesReducer,<br>  businessesReducer<br>})</pre><p><strong>Actions</strong><br>Actions are plain JavaScript objects that describe what happened in the application. They contain a “type” field and, optionally, a “payload” field to carry additional data.</p><pre>export const addPlace = (formData, navigate, setErrors) =&gt; {<br>  return dispatch =&gt; {<br>    fetch(&#39;/places&#39;, {<br>      method: &quot;POST&quot;,<br>      headers: {<br>        &quot;Accept&quot;: &quot;application/json&quot;,<br>        &quot;Content-Type&quot;: &quot;application/json&quot;<br>      },<br>      body: JSON.stringify(formData)<br>    })<br>      .then(r =&gt; r.json())<br>      .then(data =&gt; {<br>        console.log(&quot;new place data&quot;, data)<br>        if(data.errors){<br>          dispatch(setErrors(data.errors));<br>        } else {<br>          //dispatch to PlacesReducer for adding a place<br>          const action ={<br>            type: &quot;ADD_PLACE&quot;,<br>            payload: data<br>          }<br>          dispatch(action);<br>          navigate(&#39;/places&#39;);<br>        }<br>      })<br>    }<br>}</pre><p><strong>Reducers</strong><br>Reducers are pure functions that specify how the application’s state changes in response to actions. They take the current state and an action as input and return a new state.</p><h4>The Power of Redux</h4><p><strong>Predictable State Management<br></strong>Redux provides a clear and structured way to manage application state, ensuring a predictable flow of data. This predictability makes debugging and testing easier, as the state changes are traceable.</p><p><strong>Centralized State<br></strong>Having a single store simplifies state access across components, especially in larger applications. All components can access the required state from the store without the need to pass props down through multiple levels.</p><h3>useContext</h3><p><strong>Understanding useContext<br></strong>React’s useContext hook is a built-in feature that provides a mechanism for passing data through the component tree without prop drilling. It allows components to consume data from a context provider and subscribe to changes in that context.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*JiosVvE2vSGAPOVbVrO7Wg.png" /></figure><p><strong>Creating and Using Context<br></strong>To use useContext, developers first create a context using the createContext() function. This context can then be provided to a component tree using the Context.Provider component, making the data available to all nested components.</p><p><strong>Consuming Context<br></strong>To consume the data from the context, components use the useContext hook by passing the context object as an argument. The hook then returns the current context value, which can be used within the component.</p><h4><strong>The Power of useContext</strong></h4><p><strong>Eliminating Passing Props<br></strong>Components no longer need to pass props through intermediary components that do not use the data, which leads to cleaner code and a more maintainable codebase.</p><p><strong>Lightweight and Simplified<br></strong>Compared to Redux, useContext is relatively lightweight and simpler to implement. Developers don’t need to set up actions, reducers, or a centralized store, reducing the boilerplate code.</p><p><strong>Multiple Contexts for Different Data<br></strong>React allows multiple contexts to be used in an application, enabling components to subscribe to and consume different types of data without the risk of overcomplicating the application’s state.</p><h3>When to Use Redux:</h3><p><strong>Large Scale Applications<br></strong>Redux shines in large-scale applications with complex state management requirements. Its centralized store and unidirectional data flow make it easier to handle numerous interconnected components.</p><p><strong>Collaboration in Teams<br></strong>I’m new to Redux and have yet used in it a team, but according to my research Redux, Redux’s standardized structure and well-defined patterns make it a favorable choice when working in teams. It enforces a clear separation of concerns and improves collaboration among team members.</p><h3>When to Use useContext:</h3><p><strong>Small to Medium Scale Applications<br></strong>For smaller applications with simple state management needs, useContext offers a lightweight and straightforward solution without the overhead of Redux.</p><p><strong>Simple State Sharing<br></strong>When the state to be shared across components is minimal and straightforward, useContext can effectively serve the purpose without the need for a global store.</p><p><strong>Fast Prototyping and Smaller Projects<br></strong>For quick prototyping or small projects, useContext can accelerate development, as it requires less setup and configuration than Redux.</p><h3>Conclusion</h3><p>In summary, Redux and useContext are both valuable tools for managing state in React applications, but they serve different use cases. Redux is a powerful choice for large-scale applications with complex state management needs, while useContext shines in smaller projects and scenarios where prop drilling can be eliminated. The decision between the two ultimately depends on the specific requirements and complexity of your React application. By understanding the differences and strengths of Redux and useContext, developers can make informed choices to build scalable and efficient React applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61d1d9774e06" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An In-depth Guide to Authentication in a Ruby on Rails and React App]]></title>
            <link>https://medium.com/@stephaniecondecareer/an-in-depth-guide-to-authentication-in-a-ruby-on-rails-and-react-app-c78ac9936949?source=rss-68f7ad79195c------2</link>
            <guid isPermaLink="false">https://medium.com/p/c78ac9936949</guid>
            <category><![CDATA[women-of-color]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[authentication]]></category>
            <dc:creator><![CDATA[Stephanie Conde]]></dc:creator>
            <pubDate>Mon, 22 May 2023 20:22:10 GMT</pubDate>
            <atom:updated>2023-05-23T21:05:18.756Z</atom:updated>
            <content:encoded><![CDATA[<p>Building a secure and user-friendly web application requires implementing a strong authentication system. In this blog post, we will explore the authentication process for a Ruby on Rails and React app. We’ll delve into the key steps involved, from user registration and login to session management and authentication. By the end, I hope that you have a better understanding of how to build an authentication system that ensures the privacy and security of your application’s users.</p><p><strong>1 . User Registration <br></strong>The first step in the authentication process is allowing users to register for an account. You can achieve this by creating a “/signup” route where a form exists that takes in a users initial signup information. This form with create a fetch request to your some sort of users controller on your backend. You can customize the registration process to collect additional information from users, such as their name or profile picture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0DI41Sn5n9g0IB_WP1iJTw.png" /></figure><p><strong>2. User Login<br></strong>Once users have registered, they need a way to authenticate themselves and access the protected areas of your application. Implement a “/login” route that holds a form that prompts users for their credentials (typically email and password). JSON will send user credentials back and on the server side, you can utilize sessions to manage user sessions and handle the authentication process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3E1O4lXeIP61p1uqNtQrtA.png" /></figure><p><strong>3. Password Encryption <br></strong>To ensure the security of user passwords, it’s crucial to store them securely. Ruby on Rails offers built-in support for password encryption using algorithms like Bcrypt. By employing these encryption techniques, even if the database is compromised, the actual passwords remain protected. When users register or change their passwords, apply encryption to safeguard their sensitive information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qBuzMMXfB-upqdyIvdGYXA.png" /></figure><p><strong>4. Session Management<br></strong>Managing user sessions is vital to keep users logged in and maintain state across requests. Ruby on Rails provides session management capabilities out of the box. Sessions can store user information on the server-side, associating it with a unique session ID.</p><p><strong>5. Protecting Routes <br></strong>Certain routes or components in your React app should be accessible only to authenticated users. To enforce this, implement route guards that check the user’s authentication status. In React, you can leverage libraries like React Router to define protected routes and redirect unauthenticated users to the login page. On the server side, validate session information to ensure the user has the necessary permissions to access protected resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kAXdYnu3l2gtL1MaQA7D_Q.png" /></figure><p><strong>6. Authentication API </strong><br>To enable communication between your React app and the Ruby on Rails backend, expose an authentication API endpoint. This endpoint handles authentication requests, such as verifying user credentials, generating tokens, and returning them to the client for subsequent authenticated API requests. Ensure the API endpoint enforces secure communication protocols (HTTPS) to protect sensitive user data during transmission.</p><p><strong>7. Logout</strong> <br>Providing a logout functionality is essential to end a user’s session. On the client side, remove the token from local storage or clear the session information. Additionally, on the server side, invalidate the token or session associated with the user. By performing these actions, you ensure that the user’s session is terminated and they can no longer access protected resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uaLo-v0FRJuTbbIwt8k20g.png" /></figure><p><strong>Conclusion <br></strong>In this blog post, we have explored the authentication process for a Ruby on Rails and React app. By implementing user registration, login functionality, password encryption, session management, route protection, and token-based authentication, you can build a secure and user-friendly application. Remember to consider security best practices, stay updated with the latest authentication techniques, and always prioritize the protection of user data. With a solid authentication system in place, you can confidently build applications that provide a seamless and secure experience for your users.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c78ac9936949" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Model View Controller (MVC) Summary]]></title>
            <link>https://medium.com/@stephaniecondecareer/model-view-controller-mvc-summary-72c391c00137?source=rss-68f7ad79195c------2</link>
            <guid isPermaLink="false">https://medium.com/p/72c391c00137</guid>
            <category><![CDATA[sinatra]]></category>
            <category><![CDATA[mvc]]></category>
            <category><![CDATA[sinatra-project]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Stephanie Conde]]></dc:creator>
            <pubDate>Fri, 20 Jan 2023 08:19:19 GMT</pubDate>
            <atom:updated>2023-01-20T08:19:19.754Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s talk about the MVC architecture! Model, View, Controller! Apparently in software development, like in real life, it is common to want to separate concerns.That means that, similarly to real life, we want to give code its own separate responsibility and purpose–MVC is an architecture that follows that concept. Every single part of MVC has its own purpose and its own unique responsibilities, this helps prevent us from making repeat code and makes code easier to organize and easier to go through. As a software engineer student, I now know that this architecture and concepts will most likely follow me throughout your career, since most web applications follow the MVC pattern.</p><p>Amongst the things that I learned during the last twelve weeks was using Sinatra and then with my final, connecting Sinatra to React. This MVC model helped me understand how the both interact or connect. I learned MVC through the <em>“restaurant analogy”</em>. When we think of a “model, view, controller”, we think of it as something your users interact with. In the restaurant analogy, it is explained that if we were working in a restaurant, we can kind of think of a customer as your <strong><em>view</em></strong>– it is the person who interacts with your program, your program being the restaurant. Now a customer typically doesn’t go back to the kitchen to give a chef their food order and pick up their food, there’s normally a server that takes food orders and then brings out your food, the middle person between the customer and the kitchen. So in this case, the server in this example is represents our <strong><em>controller</em></strong>–a request from the <em>view</em>, just like a server takes a food-order from a customer and then takes up to the kitchen, the kitchen then processes that food-order and then send a response aka food back using the server who brings out the food to the customer. Ok, ok…to review:</p><p><em>A CUSTOMER </em>is the VIEW,</p><p>the SERVER is the CONTROLLER,</p><p>and the <em>KITCHEN</em> is our MODEL</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ADZGjMoPCQvkx8BUqQlMNg.png" /></figure><p>So, our kitchen ( model) is responsible for processing the request from our customer ( view) and sending out a response, often delicious food, through our server (controller) that is served back to our customer (view).</p><p>Now, the kitchen (model) does not communicate with the customer (view) directly, it goes to the server (controller), and then the server is to go between the customer(view) and the kitchen(model).</p><p>Let’s look at one thing at a time– our model is a way for us to view and modify data, it does not actually interact with the view, here I used Activerecord to control my models. Our model is where we put our relationship and also create the name for our models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QwTvRBHMfqiPh4Tb1dgI-w.png" /></figure><p>Model talks to the controller , now the controller is the go-between for the model and the view, remember it’s our server (at our restaurant). For Sinatra this is where we’re going to be defining our routes, this interacts with her model so it can actually send our response to the front end. During this part of my learning, my model and controller was controlled in Sinatra, which was my back end , our “M C” of MVC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TS8mjsSlfuoyGicEK4u4jA.png" /></figure><p>Finally, our view is going to be controlled by React in our frontend, remember our view as what our users see , it’s what they interact with. When they interact with our view, our view will go to our controller, which then will connect us to our model and then send a response back to our view, the view is the “V” in the MVC here. It acts as our client which sends requests to our server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_iz_N0RusDJTuH2xaPx9_w.png" /></figure><p>In conclusion, this is just an overall idea of what I understood about the MVC architecture, but it goes deeper than this. I think I will dive deeper into each one of these in another post. Really understanding <em>what</em> each does, <em>how</em> each works individually, and then how they all connect is ultimately what helped me understand my final project of connecting Sinatra to React. I hope this helps!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72c391c00137" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Teach to Tech]]></title>
            <link>https://medium.com/@stephaniecondecareer/teach-to-tech-2b4ae7fb06c6?source=rss-68f7ad79195c------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b4ae7fb06c6</guid>
            <category><![CDATA[switching-to-tech]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[career-change]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[teachers]]></category>
            <dc:creator><![CDATA[Stephanie Conde]]></dc:creator>
            <pubDate>Fri, 27 May 2022 23:44:13 GMT</pubDate>
            <atom:updated>2022-07-18T00:01:03.993Z</atom:updated>
            <content:encoded><![CDATA[<p>It is becoming more and more popular for people to switch their career over to one in tech.</p><p>Let’s talk about what “tech” is— according to Google, “tech” is:</p><p>Information technology (IT) is <strong>the use of any computers, storage, networking and other physical devices, infrastructure and processes to create, process, store, secure and exchange all forms of electronic data</strong>.</p><p>…and, of course, supporting roles: managers, admin, recruiters, etc. The truth is that working in “tech” is broad! There are so many roles to fill in at a tech company. When I heard of people transitioning to tech, I thought of: computers! I am a millennial, I grew up learning computers, I was one of thee FIRST generation of children to experience the beginning of tech!! I should know this! How hard can it be?!</p><p>*sad face* It is…onerous.</p><p>I have been a school teacher for the past 6 years. If you don’t know, the education system has tremendously changed post the Covid pandemic. The amount of work that school districts are demanding of teachers is outrageous. Due to such changes in education, I decided to be one of those people that I keep hearing about, a ‘tech transitioner’ (&lt; this is not a real word).</p><p>There are so many options out there for tech bootcamps and so many different fields! I am an artist (digital/visual). During the lockdown, I decided to sharpen my digital art skills by taking some classes on-line at a local community college. One of the classes that I took was an HTML/CSS Web Design class. I found it to be fun and easy! So, when deciding to officially switch out of teaching and into tech, I immediately thought…coding! I can do that! After much research, taking free courses on Coursera and other free coding classes online…I chose to go with the big guns: Software Engineering @<a href="https://flatironschool.com/">Flatiron School</a>. Now, remember, I AM a millennial…at this point in my life I have established responsibilities as an “adult” (a.k.a. I got bills, baby!). So, I couldn’t quit my job as a teacher! Luckily Flatiron has something called the “Flex Software Engineering Program” —it allows you to work at your own pace, as long as you get it done within a year of starting your program, otherwise it wouldn’t be a bootcamp school. Anyway, I am 3 months into this Flex Flatiron program and let me tell you, honey, this is not for the weak! Working full-time (plus grading at home, school events), taking care of yourself (gym, meal prepping, family/friends), AND learning various new computer languages at the same time, is difficult! BE PREPARED! I have had to sacrifice a lot of the normal things I loved to do prior to starting the program. However, I do know that anything that is great takes great sacrifice. I do know that if I want drastic results in my life, some type of drastic change needs to happen in my life. I also do know that I took a major loan out and need to finish this to get a better job and pay that sucker off! Overall, I don’t regret it. I pray that this whole experience/investment will pay off. I hope to look back at this blog post (that of course Flatiron made me do) in a few months and be proud of all of my hard work during this program! I hope that I can look back and I’m in a new position, making bank 🤑!! At least more than I make now as an art teacher.</p><p>Thanks for reading my rant of a first post! If you are thinking of making that switch, ‘tech transitioner’ (again, not a real word), hit me up!</p><p>Peace and Blessings!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b4ae7fb06c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>