<?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 Jacinta Calixte on Medium]]></title>
        <description><![CDATA[Stories by Jacinta Calixte on Medium]]></description>
        <link>https://medium.com/@jacintacodes?source=rss-65c0d3086d7a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*tUsfF0jZupjT1teQpmEZKw.jpeg</url>
            <title>Stories by Jacinta Calixte on Medium</title>
            <link>https://medium.com/@jacintacodes?source=rss-65c0d3086d7a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 01:53:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jacintacodes/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Basics: Javascript VS Ruby]]></title>
            <link>https://jacintacodes.medium.com/the-basics-javascript-vs-ruby-ea3088e04258?source=rss-65c0d3086d7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea3088e04258</guid>
            <dc:creator><![CDATA[Jacinta Calixte]]></dc:creator>
            <pubDate>Fri, 05 Feb 2021 21:50:27 GMT</pubDate>
            <atom:updated>2021-02-08T18:45:26.322Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AWEWEmDF3Bj1GgJ0lgujBQ.png" /></figure><p>In this blog I will be breaking down some of the major differences between Javascript and Ruby. If your journey is similar to mine you learned Ruby first. If this is the case hopefully this helps you understand Javascript better. For those who learned Javascript first I hope you gain a better understanding of Ruby.</p><p><strong>Variable Declaration</strong></p><p>In Ruby you can simply take a variable and set it equal to the value you want to give it. Within saying that, you also want to make sure you have the proper syntax with what you are setting the variable to. With Javascript you have to set it using let, var or const. Here is an example below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*kwFa-A5IllghlZDBTTdrGg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*MLLjgqBw82Z6F6r6MKD5xg.png" /></figure><p><strong>What is the difference between let, const and var?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*XLBu80cYT6H7MdlLqnzV6g.png" /></figure><p>letand const are block scoped and Var is function scoped. Var is accessible in the function where it is defined. Var initially will return undefined and can bleed into other parts of your function so it is best to just stick to letor const. If you create a variable using let or const they are only accessible within the curly { } brackets. They are also only available within the block they are declared in.</p><p>There are also differences between let<em> </em>and const<em> </em>as well. Const is non-immutable, meaning the variable can only be assigned once, while let can be reassigned. Best practice when assigning variable is to use let or const because var is prone to cause a lot of bugs. It’s still important to know what var is because there are websites that were built before ES6 which is before the creation of let and const. To avoid issues with functionality, we as developers must learn about var and how its uses within the code. Here is an article going over the benefits are let and const : <a href="https://levelup.gitconnected.com/stop-using-var-to-declare-variables-in-javascript-6c0caec16f43">https://levelup.gitconnected.com/stop-using-var-to-declare-variables-in-javascript-6c0caec16f43</a></p><p><strong>Defining Functions</strong></p><p>Creating functions in Javascript and Ruby are different as well. In Javascript to create a function you use the keyword function and in Ruby you use the keyword def. Javascript also uses curly braces to show the contents that are within function, while ruby indicates the beginning with def and the end with the the end keyword.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MQQUWuBWQBmfrLaT_xhHyA.png" /><figcaption>Creating a function in Ruby</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cfo0vc65eRSlsXQv9pc4pA.png" /><figcaption>Creating a function in Javascript</figcaption></figure><p><strong>Implicit Returns</strong></p><p>In Ruby there are implicit returns while Javascript does not have implicit returns when we are creating functions. If you want your function to return something you will need to write the implicate word return.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bsbXkrFKC7Gs7129jmKWlQ.png" /><figcaption>Implicit returns in Javascript</figcaption></figure><p><strong>Programming Language</strong></p><p>I think it’s important to understand the uses of both languages. Ruby is a backend language while Javascript is a front-end language. When it comes to Javascript, it is a front-end language used for client side application, server-side , browser level interaction and changes. These are the origins of both languages however, they can cross paths.</p><p><strong>Falsey values</strong></p><p>We have to mention falsey values and the differences there. Nil and undefined in Ruby are false. In Javascript there are more falsey values. Examples of falsey values in JavaScript are 0, 0n, null, undefined, false, NaN, and the empty string &quot;&quot;.</p><p><strong>Data types</strong></p><p>Ruby and Javascript have a few data types in common. Those are : numbers, booleans, strings ands symbols. Data types in Ruby that are different from Javascript are arrays, hashes. Javascript data types that are different from Ruby are objects, null and undefined.</p><p><strong>Elsif vs Else if</strong></p><p>This one is my favorite. When making conditional statements and Javascript or Ruby, they both have the if conditional. The second conditional is what sets them apart. Javascript you use else if while Ruby uses elsif. Remember: there is no e in elsif ! I made that mistake before.</p><p>There are so many things you will learn as you continue to learn either language. I used to hate Javascript, I won&#39;t lie. But I have learned to love it because of all the great things I am able to do with it! I hope that this blog has brought you some clarity in your coding journey. Here are more references to blogs that talk about the differences :</p><p>I hope these references below and this blog help you better understand the differences between the two languages. Happy coding !</p><p><strong>Ruby vs JavaScript: Compared and Contrasted </strong><a href="https://careerkarma.com/blog/ruby-vs-javascript/#:~:text=In%20short%2C%20Ruby%20is%20an,one%20languages%20on%20the%20web">https://careerkarma.com/blog/ruby-vs-javascript/#:~:text=In%20short%2C%20Ruby%20is%20an,one%20languages%20on%20the%20web</a>.</p><p><strong>JavaScript vs Ruby — </strong><a href="https://www.educba.com/javascript-vs-ruby/">https://www.educba.com/javascript-vs-ruby/</a></p><p><strong>Ruby vs JavaScript as a first programming language </strong><a href="https://medium.com/constructorlabs/ruby-vs-javascript-as-a-first-programming-language-2f2c944629fe">https://medium.com/constructorlabs/ruby-vs-javascript-as-a-first-programming-language-2f2c944629fe</a></p><p>Here is also more blogs on javascript objects:</p><p><strong>JavaScript Objects Quickly Explained — </strong><a href="https://medium.com/front-end-weekly/javascript-objects-quickly-explained-b078f906254a">https://medium.com/front-end-weekly/javascript-objects-quickly-explained-b078f906254a</a></p><p><strong>Everything About Javascript Objects </strong><a href="https://towardsdatascience.com/everything-about-javascript-object-part-1-854025d71fea">https://towardsdatascience.com/everything-about-javascript-object-part-1-854025d71fea</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea3088e04258" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Social Media & Tech]]></title>
            <link>https://jacintacodes.medium.com/social-media-tech-5cf81049b13d?source=rss-65c0d3086d7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5cf81049b13d</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[codingbootcamp]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Jacinta Calixte]]></dc:creator>
            <pubDate>Mon, 14 Dec 2020 17:55:19 GMT</pubDate>
            <atom:updated>2021-01-02T02:26:39.640Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GQmBvYr4XVVVDnMdnojCjQ.png" /></figure><p>When I started my coding journey, one of the things that helped me was social media. I know, it sounds crazy, right? You are probably wondering how social media could help me in my journey to becoming a software engineer? Well, the same way it can help me in any other industry, it connected me with people who had similar experiences. So here are some social media platforms that can help you pre-bootcamp,post-bootcamp, an everything in between.</p><p>If you are at the beginning of your bootcamp journey and your a visual learner, youtube will be your best friend! But even beyond coding, youtube is a great resource for not only code but for learning about the different bootcamps. There are some youtubers that vlog their bootcamp experience, overall coding experience, different routes that can be taken to get into tech, and much more. Youtube is also great to use to learn how to make sure you are best representing yourself when applying for bootcamps. The last thing you want to do is apply for a bootcamp with only a few sentences describing yourself when you should’ve written paragraphs. Let Youtube be a resource that you use before you even apply to the bootcamp. If you are in the Post-bootcamp phase, there are videos to help you not only brush up on your tech skills but also learn how to land a job as a software engineer. Here are a few youtube channels you should check out:</p><p>Pre-bootcamp:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F_j4sFy9bhG8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D_j4sFy9bhG8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F_j4sFy9bhG8%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/abd20765e32eaba039084674fba430b9/href">https://medium.com/media/abd20765e32eaba039084674fba430b9/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FLN06tzw7mb0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DLN06tzw7mb0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FLN06tzw7mb0%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/9681c33db350b16f186e7f8c697a4f40/href">https://medium.com/media/9681c33db350b16f186e7f8c697a4f40/href</a></iframe><p>Post-bootcamp:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FiD3c82OkSUk%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DiD3c82OkSUk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FiD3c82OkSUk%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/c50eef3b1cfbd765a1326271d3c80ff9/href">https://medium.com/media/c50eef3b1cfbd765a1326271d3c80ff9/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FlPN1y8siVNE%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DlPN1y8siVNE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FlPN1y8siVNE%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/4ef7ce618ee6d6680ed532e72c3233e3/href">https://medium.com/media/4ef7ce618ee6d6680ed532e72c3233e3/href</a></iframe><p>The next social media platform I can’t stress enough is Twitter. Twitter is a gold mine for connecting with other developers. Ideally, I would say to create your Twitter for tech early in your tech journey but you can really start it at any point. Twitter is filled with all types of techies! Some of these software engineers may even be people who have attended the same bootcamp you’re interested in. It is also a great way to motivate you to dive into tech more by seeing others tweet about their projects or reading about different developments in technology. When it comes to visibility, especially when starting a Twitter account, the power is in the hashtags.If you’re posting about Ruby on Rails in a blog post then go ahead and hashtag #rubyonrails. You can also include things happening in the world and merge them with tech. Here’s an example of a tweet I made during bootcamp:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*5so0pDykzvyMNqloILWZLA.png" /></figure><p>Ideally, when posting on social media you want to stay away from certain topics but this is a very neutral post. It doesn’t get too deep into politics because I am not stating a heavy opinion on politics, but I am still able to use the hashtag in my post. My project used Javascript and React so I added those hashtags on there as well to help with visibility of my post. So when possible, use hashtags!</p><p>If you are reading this pre-bootcamp or during bootcamp, do yourself a favor and make a Linkedin profile. It’s easier to build your connections up while in the program versus trying to get these connections after graduating. During the bootcamp, I used Linkedin to be able to connect with engineers in the industry and ask them questions. It is also a great place to share details about your projects to potential employers. Linkedin is a great way connected with anyone you meet throughout your tech journey. For those reading this post-bootcamp, there are job recruiters on Linkedin and job postings on there as well. If you attend any networking event you can connect with anyone you have met on Linkedin to keep in touch.</p><p>Finally, a resource that may not have been so apparent is Facebook. Now, I haven’t use Facebook heavily for tech like I have with the other platforms I’ve mentioned but I will say it has helped me. Letting your network of friends and family know about your tech endeavours is great because you never know what your degrees of separation are to the next job you may get because of your network! I posted about graduating from Flatiron on Facebook and then a few friends I had on their reached out to tell me that they also are getting into tech. This is great because now I will have more people that I personally know added to my tech network. It’s also another platform to be able to share any projects, blogs, or anything tech related you have. Facebook also has networks of people in tech in Facebook groups. I joined the “Sista Circle: Black Women In Tech”. Here are a few others:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zp7rf5IF7cnfmb49UrnhoQ.png" /></figure><p>Coming from the world of music, social media was a huge part of networking and growing my network. I realize that tech is not too far off. It&#39;s not mandatory, but it will help you connect with more techies like yourself which will grow your network. If you don’t have a job in the tech industry yet, social media will come in handy. Let this be a sign to create a Twitter account if you haven’t done so, join a Facebook group or add your projects to you Linkedin .Make sure when you do that you are not only posting but also engaging with others too. Now go and build your network!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5cf81049b13d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Class VS. Function: Refactoring and their differences]]></title>
            <link>https://jacintacodes.medium.com/classes-vs-functions-refactoring-and-their-differences-31bb20eb5210?source=rss-65c0d3086d7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/31bb20eb5210</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[react-tips]]></category>
            <category><![CDATA[class]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[function]]></category>
            <dc:creator><![CDATA[Jacinta Calixte]]></dc:creator>
            <pubDate>Wed, 25 Nov 2020 23:16:17 GMT</pubDate>
            <atom:updated>2020-12-05T17:32:31.034Z</atom:updated>
            <content:encoded><![CDATA[<h3>Class VS. Function: Refactoring &amp; Their Differences</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kvNuqe-CStpTKIBCLIBWgA.gif" /></figure><p>There are two ways you can write components in React. You can either write a Class or Function component. The major difference between the two is that with the class component is stateful (can have state) and the functional component is not. As React State — W3Schools says, “the <strong>state</strong> object is where you store property values that belongs to the component.”Only class components have state. Also, in functional components you have a return function. Another, minor difference is that functional component doesn’t need to extend the React.Component .</p><p>Now that you understand the purposes of Functional and Class components, let’s refactor! Here is an example of a functional component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*mqMYbz_kA3EWU_WKTLd0mg.png" /></figure><p>The first thing you want to do to refactor a functional component into a Class component is to change the functional component to the Class of app that inherits from React.Component. You will also need a keyword called render.The renders job is to return the jsx that is to be rendered on the DOM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*3uMvM5uTPl70_8TPenFCYQ.png" /></figure><p>The next step is to add the state to the class component, if you need one. To save state to a Class Component you must put state in the top of the render function and set it to a plan javascript object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*aE_U9wiUXjj65-nOlPGLig.png" /></figure><p>Another major difference between Class component and Functional component is how they handle the keyword this. If you are trying to pass down the state prop, you must use the words this.state and then proceeding along with adding the prop. For example, if we had a container called ArtistContainer and we wanted to pass down the state of artists, we can do so by writing this.state.artists and setting the key to the same key that is in the state. Also, in doing this you want to make sure you are wrapping the prop you pass down in curly brackets {}. Here is a visual example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RVwYHox81ZUr-MfqY6tAqg.png" /></figure><p>If you are deeper in the tree of passing down a prop, you should use this.props. These examples are little more complex because they have more layers to them.Below, I have an ArtistLink component and it is pulling props from the artist that was in my state in the parent component. You can see here we are using this.props.artist to access the different properties in the artist.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8mvtmYrQpky2dGfqYns-2A.png" /></figure><p>As mentioned above, there is no state when dealing with functions so one of the major differences is not using state to pass down props. The second is not using the word this. The first thing is that you will be writing the props in as an argument. Second, to pass down a prop in a function, you would put this.props. or if your mapping over an array of POJO’s (Plain Javascript Objects), you will set props to the array of objects. Here is what I mean:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jtDNxDU-Bm6Cmwu60_9g1A.png" /></figure><p>Here we have an Artist container creating an array using the props.artists but not only is it using the props, it’s mapping over all the arrays to pull one object at a time to then return to the DOM.</p><p>Class and Function components both play very important roles. Instead of being scared to use one over the other, just use both! Use the one that best suits what your trying to do. If you are just passing down the object and you’re not changing the state of the object, function components are the way to go. If you are updating the state, it’s best to go with Class components.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31bb20eb5210" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ruby On Rails: ActiveRecord Associations]]></title>
            <link>https://jacintacodes.medium.com/ruby-on-rails-activerecord-associations-b44f1da05829?source=rss-65c0d3086d7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b44f1da05829</guid>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[activerecord]]></category>
            <dc:creator><![CDATA[Jacinta Calixte]]></dc:creator>
            <pubDate>Fri, 20 Nov 2020 22:51:20 GMT</pubDate>
            <atom:updated>2020-12-04T16:44:30.934Z</atom:updated>
            <content:encoded><![CDATA[<p>During my time at bootcamp, I had a hard time understanding ActiveRecord and associations. I would end up thinking of real live scenarios and then confusing myself with multiple possibilities of what those object relationships could be. But instead of looking at the overall model, the best way to go about understanding the relationships between each model is to look through the lense of the model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*HKP8U3djX1lsbC9ExgErIA.png" /></figure><p>I will be using Instagram to help explain ActiveRecord associations. I have three models: <em>User</em>, <em>Post</em> and <em>Comment. </em>Now, since this app is <strong>User-</strong>focused, let’s make that the center focus of how we build out the models. You might be wondering “well, what do you mean this is user focused?” Instagram is user-focused because you can’t post or comment without having an account. Therefore, nothing else exists without the <strong>User</strong>. The User model is the only one that can exist without depending on another model in this particular application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Z4iR0m0kXV4BMcC1gV79w.png" /></figure><p>The next model we will work with is the <strong>Post</strong> model. Let’s go back to the time when Instagram only allowed you to be signed into one account at a time. Now that our <strong>User</strong> Joyvincent is signed in, she can make as many posts as she wants. All these posts that she created belong to one User, Joyvincent. This is an example of a one to many relationship. The <strong>User</strong> is the <em>one</em> and the <strong>Posts</strong> are <em>the many</em>. Here is a visual representation of the relationship.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*j8QnQf95yrGpPg3JssdN8Q.png" /><figcaption>Example of a one to many relationship</figcaption></figure><p>As you see here, the <strong>User</strong> Joyvincent has many <strong>Posts</strong>. These <strong>Posts</strong> only exist because of Joyvincent. Therefore, if you were to get rid of the <strong>User</strong> who is the foundation of this relationship, there would be no more <strong>Posts</strong>.</p><p>Now you might be wondering, where exactly does the <strong>Comment </strong>model fit into this <strong>ERD</strong> (<strong>E</strong>ntity <strong>R</strong>elationship <strong>D</strong>iagram). On Instagram, a <strong>User</strong> can create comments under a Post. In this <strong>ERD </strong>below<strong>, </strong>I am zooming in on one<strong> Post.</strong> Under a single <strong>Post </strong>there<strong> </strong>can be multiple comments by the <strong>User</strong>. This is another example of a one to many relationship. You can see that in the entire model the user has many comments and a <strong>Comment</strong> as one <strong>User</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5H8FhHpFSiKOJgIMe18xGQ.png" /></figure><p>Now that we know what the models do, it’s important that I also cover <strong>foreign keys</strong>. The <strong>foreign keys</strong> live in the table of the model that has the “belongs to” relationship. Comments <em>belongs to</em> both the <strong>Posts</strong> and the <strong>User</strong>. <strong>Post</strong> <em>belongs to</em> a <strong>User</strong> therefore the user’s id will be in the Post table. When your writing this in, make sure you are putting user_id: integer in the generator.</p><p>Knowing the dependencies of each model will help in deciding what order to create them. In these models we have been working on, you would want to create the User first, Post second, Comments third. <strong>Note</strong>: If you want to create a project with these model names, feel free to do so! Just keep in mind that POST is also a verb in regards to routes.</p><p>Relationships can be hard, even in coding! Just like in our daily lives, understanding the many relationships we have can be overwhelming. With these ActiveRecord relationships, it’s a lot easier breaking it down to one or two models and then building from there.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b44f1da05829" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Basics: What is MVC?]]></title>
            <link>https://jacintacodes.medium.com/the-basics-what-is-mvc-2eaae2e6223b?source=rss-65c0d3086d7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/2eaae2e6223b</guid>
            <category><![CDATA[mvc]]></category>
            <category><![CDATA[what-is-mvc]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <dc:creator><![CDATA[Jacinta Calixte]]></dc:creator>
            <pubDate>Thu, 29 Oct 2020 17:10:40 GMT</pubDate>
            <atom:updated>2020-12-13T19:55:13.187Z</atom:updated>
            <content:encoded><![CDATA[<p>In the first part of this series we created a simple rails app. Now we will go over what <strong>MVC </strong>is. If you haven’t run into <strong>MVC</strong> prior to this blog, let be be the first to tell you what it stands for. Right before I do, let me explain another acronym that I tend to confuse with <strong>MVC</strong>, which is MVP. MVP stands for minimum viable product. The technical definition of MVP is “development technique in which a new product or website is developed with sufficient features to satisfy early adopters.” In layman&#39;s terms it&#39;s the basic functions of an application. Using Youtube as an example, the MVP would be that Youtube is app that allows the user to upload and share videos. Now that you know what MVP is, I hope you never confused the two like I did.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*hoAOy3b_Ltv6vQTHBBFDrw.png" /></figure><p>Let’s get into MVC!<strong> MVC </strong>stands for <strong>M</strong>odel, <strong>V</strong>iewer and <strong>C</strong>ontroller. Each part of this structure has a very important job. The <strong>Model’s </strong>job is to maintain the relationships between the database and the objects. The Model is where the logic behind the application lives. The <strong>Viewer </strong>is the data being displayed to the user. What is displayed to the user in the Viewer has no programing logic. Lastly, there is the <strong>Controller</strong>. The Controller&#39;s job is tell the data where to go. The controller takes the data that it receives from our stick figured user shown above, brings it to the model, and then retrieves and delivers data that is then shown in the <strong>Viewer</strong> to the user. The device the user is using displays what is in the viewer and the <strong>Controller</strong> brings the data to the <strong>Viewer.</strong></p><p>Since we are building a rails application (see <a href="https://medium.com/@jacinta246/the-basics-lets-make-a-rails-app-a4e83b26ef5f">The Basics: Let’s Make A Rails APP!</a> for the first blog of the series) You&#39;re probably wondering what code goes inside each part of the MVC structure. In rails you can run <em>rails g resource</em> to generate the models, associations,attributes and foreign keys. If you are using a string for the value of the column name there is no need to write the datatype. This is how you would write it if you have one model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cLFcY_KM6Y_m30p_nlRF5Q.png" /></figure><p>Here is an example where I have an <strong>Events</strong> model that belongs to an artist with the attribute of name and date. In my <strong>Events</strong> model, my date is a string. I could’ve also written the last part of this code as <em>artist:belongs_to</em> instead of <em>artist_id:integer</em>. Both versions of this code work the same in which they creates the association between events and a model I had previously create which was called Artist.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*TTeHlBUpmKKfJqn9cwPJKQ.png" /></figure><p>If you want to break down the <em>rails g resource</em> generator and to it seperate each task, you can by running the command rails generate to see which options you have for generators. Below I have a example of me running that code and showing you what generators exists. I believe that resource is the best, especially if your working on a new application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LxT2CMRdXqoktt-UZsnsiA.png" /></figure><p>Once you have fill in the generator with your models, data types and associations, it will generate the model file, the migration file, the controller file and view files and routes. That is way better than having to manually create those files using other generators. In the next blog we will be talking about Active record: Associations in Rails. Understanding Associations will help you build out relationships which you can be used with these generators.</p><p><em>Happy coding!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2eaae2e6223b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Coding bootcamp - Is it for me?]]></title>
            <link>https://jacintacodes.medium.com/coding-bootcamp-is-it-for-me-cb5da6c1c8fa?source=rss-65c0d3086d7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb5da6c1c8fa</guid>
            <dc:creator><![CDATA[Jacinta Calixte]]></dc:creator>
            <pubDate>Tue, 20 Oct 2020 17:37:17 GMT</pubDate>
            <atom:updated>2020-10-20T18:30:47.961Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JBXlUsmwik2jzXk28-xAPw.png" /></figure><p>There are a lot of different opinions on internet about software engineering bootcamps. Before I started bootcamp I heard people say how great they are and then I also heard the complete opposite. I was a little confused, so I did my research and now I can really give concrete reasons why getting into a coding bootcamp can be extremely beneficial.</p><ol><li>Before you attend a bootcamp you should get your hands dirty and start coding. Before I started attending a bootcamp I made sure to learn how to code in HTML because I wanted to make sure that I actually liked coding. What&#39;s the point of starting a new career if you’re going to hate it? It&#39;s <strong>extremely</strong> imperative that you start coding before you get into a bootcamp. If you are a tadpole in the coding game I would say the best place to start is with HTML code. I promise you knowing HTML code will come in handy, especially when dealing with anything front-end related. I used a online resource called <a href="https://www.coursera.org/">Coursera</a>. Prior to using <a href="https://www.coursera.org/">Coursera</a> I used <a href="https://www.freecodecamp.org/">freecodecamp</a> which is still a great resource, but it is not the most ideal for someone who only has exposure to some css code (it is me, I am that someone). Start with the basics and learn HTML and then get work your way from HTML to CSS. I took the course <a href="https://www.coursera.org/specializations/web-design"><strong>“Web Design for Everybody: Basics of Web Development &amp; Coding Specialization”</strong></a>and it was great. I really learned a lot and got really excited about learning more about web development by using it.</li></ol><p>2. Now that you have done some coding and realized that you love it so far we can start researching coding bootcamps. How I did that was by going on Youtube, asking the software engineers that I knew (especially if they were a bootcamp grad) and going on Twitter to ask people who had the schools in their bio. Another great resource is Linkedin. On Linkedin you can not only see what schools people went to, you can also see where they are currently working. I am not going to lie, It may feel odd at first but it&#39;s worth you speaking to someone who went through the process to get their opinion of not only the bootcamp that they went to, but to overall bootcamp experience. When I was researching schools I found this youtube video titled“How to Get into 7 Coding Bootcamps”. I learned alot about the process and the schools through this video.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7WPjzLj4uTs4yhsuMbCx5w.png" /><figcaption><a href="https://youtu.be/flolUuyVrEU">https://youtu.be/flolUuyVrEU</a></figcaption></figure><p>3. Now that you have figured out what bootcamp you want to go to, the next step is to see what language you need to be able to code in before getting into that bootcamp. I would suggest Javascript because it is the language of the internet. It’s safe to say that most if not all boot camps will be using javascript somewhere in their curriculum.</p><p>4. When you are in bootcamp, it can be and most likely will be life consuming. Working is not the most ideal because you will need all your free time for coding. Will you be able to be out of work for a few months ? I have spoken to people that went through with the bootcamp process and they ended up not completing it because they were working at the same time. Prior to bootcamp I was a brand ambassador and I also wrote songs for myself and other artists. Now I am a software engineering student with zero time for either one of those things. I would have done myself a disservice if I tried to do all three or even two of those things. Clearing out you live for a chunk of the year is tough but know that it will be worth it in the end.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*9V_cNM8vOgz3w5z9K8aSlw.jpeg" /></figure><p>5. Have you tried learning how to code and felt a lot of roadblocks in the process? That was what it was like for me because I was a tadpole in the world of code. I didn’t know much beyond basic CSS and HTML before ending up on <a href="https://www.coursera.org/">Coursera</a> trying to learn HTML. The benefit of a bootcamp is that all the information is centralized and you have coaches and instructors to help you learn these concepts. Don’t get me wrong, you still need online resources outside of bootcamp, but it is great to have the instructors and school curriculum as a starting point. I speak to a lot of people who learned how to code through the self taught route and the hardest thing for them was not having centralized information and deadlines. Those deadlines help a lot of people, including myself, stay on task. Having instructors is great because learning code is a tough process and having a team that can guide you makes the experience of learning better.</p><p>I am a bootcamp student and I will say that joining a bootcamp was the best decision for me. I am currently attending the Flatiron School and I love it. I am a person that loves school structure when it comes to learning and the self taught route I hit a lot of roadblocks. When I spoke to people and did my research I realized that learning to code in a bootcamp would be the most ideal and I am happy that I did it. Start with learning how to get “Hello World” on the screen then go from there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H8drUPqmI2OuVc1vibzoyg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb5da6c1c8fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Basics: Let’s Make A Rails APP!]]></title>
            <link>https://jacintacodes.medium.com/the-basics-lets-make-a-rails-app-a4e83b26ef5f?source=rss-65c0d3086d7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4e83b26ef5f</guid>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[starter-kit]]></category>
            <dc:creator><![CDATA[Jacinta Calixte]]></dc:creator>
            <pubDate>Thu, 17 Sep 2020 07:42:32 GMT</pubDate>
            <atom:updated>2020-09-17T19:51:56.383Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*CXsjTbCwPB4DqkuA" /></figure><p>Whenever I need to create a new rails app I tend to forget the first few steps on how to get it started. Even the experts forget the basics, which inspired me to create this series called “The Basics”. This basic starter guide is ideal for someone who has some basic ruby knowledge and is now ready to dive into the world of rails or someone who just needs a quick refresher. We are going to set things up to get you started. In the next blog we will dive into more to then get something displayed on the browser.</p><p>Step 1. Make sure you’re in the correct directory (which is another word for folder) you want to create this project in. You can do that by running the command <strong>cd</strong> (enter name of directory you want to be in) . If you need to create a new directory run the command <strong>mkdir name-of-folder</strong> in your computer&#39;s terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mlwKVyneDU6P1sNxOJnvVg.png" /></figure><p>Step 2. Once you are in the right directory. Next, run the command <strong>rails new </strong>[<strong>the-title-of-your-project</strong>]. If your project has more than one word in the title, put dashes in between the words. Once you run the rails new command you will see it creating all the files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*n7OxpGdQG4QJvnilPsJnEA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_4CGzGc4jR-g5xqbvoI2Bg.png" /></figure><p>Step 3. Next, cd into the new rails app you have created! Its empty right now but now we have created the folders that can be filled in using generators. At this point you can go ahead and run<strong> code . </strong>(Make sure there is a space between the e and the period.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*5iHay7tiSMFuFY26--f2rw.png" /></figure><p>Now you have the very baseline for this project, <strong>congratulations</strong>! Next step is to build up the MVC (Model, Viewer and Controller). You will also need to fill in routes so that the the controller and viewer are connected. We will continue this in the next blog in this rails series : The Basics.</p><blockquote>Happy Coding!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4e83b26ef5f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to survive coding bootcamp..]]></title>
            <link>https://jacintacodes.medium.com/how-to-survive-coding-bootcamp-c726991dfb72?source=rss-65c0d3086d7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c726991dfb72</guid>
            <category><![CDATA[codingbootcamp]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[preparing-for-bootcamp]]></category>
            <dc:creator><![CDATA[Jacinta Calixte]]></dc:creator>
            <pubDate>Thu, 20 Aug 2020 14:01:57 GMT</pubDate>
            <atom:updated>2020-08-21T15:05:38.030Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*z4Jsxi5c1nLqJGb9TAm_5w.jpeg" /><figcaption>© Can Stock Photo / ocusfocus</figcaption></figure><p>It’s your first day of boot camp, you’re so excited and also have no idea what you’ve just signed up for. But don’t worry, I can give you a few tips to make this process a lot easier.</p><p>First and foremost, right before you start bootcamp get yourself accustomed to an <strong>early morning schedule</strong>. I started bootcamp around the time of Covid-19 so I was at home everyday. I was waking up late in the afternoon and going to bed even later. Adjusting to bootcamp schedule was hard in the beginning and if I can go back in time I would definitely get accustomed to waking up early and going to bed earlier.</p><p>Now that you are waking up early the next thing is to make sure that you have a <strong>designated area for your studies</strong>. Avoid studying on your bed at all costs. If the bed is too comfortable, you will want to just sleep. Also, have your favorite snacks ready in this designated area to reward yourself for what I will be speaking of next; study break intervals also know as <strong>Pomodoro Technique</strong>.</p><p>Studying for long periods of time can be very daunting , which is how the <strong>Pomodoro Technique. </strong>How this technique works is you study for 25 minutes straight and once the 25 minutes are up you take a 5 minute break. You repeat this 3 times and once you reached the fourth round of breaks you gift yourself with a 30 minute break. This technique is great because it gives your brain time to process all the information you’re learning. These numbers are not concrete and can be adjusted to your liking.</p><p>Now let’s focus on the learning community you gain being in a bootcamp. You have now joined a cohort which means you now have a team with a common goal. Don’t distance yourself from people because of your own habits or past experiences. <strong>Lean on your colleagues</strong> when you’re stuck on a problem for more than 20 minutes. It can save your hours of going down the rabbit hole.</p><p><strong>Asking for helping</strong> during lectures can be very intimidating but don’t let it be. Start the boot camp process by getting accustomed to asking for help. It’s best to make this a habit sooner rather than later. Don’t let things like ego or shame stop you from asking for help. You would be surprised how many people have the same question as you but don’t ask because of the “fear of (insert fear)”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r7wM-HGBL4NFOQBKBKxfHA.jpeg" /><figcaption>“Learning Styles.” <a href="http://https//Www.hopehealth.com/One-Learning-Style-Doesnt-Fit-All-When-It-Comes-to-Workplace-Communications/"><em>Https://Www.hopehealth.com/One-Learning-Style-Doesnt-Fit-All-When-It-Comes-to-Workplace-Communications/</em>.</a></figcaption></figure><p><strong>Finding out your learning style</strong> will come in very handy. It can be either Visual, Auditory and Kinesthetic. Knowing your learning style is beneficial because once you apply it, you will be able to retain information better.</p><p>The last bit of advice I think is worth mentioning is in regards to your new availability. Bootcamp is more than time consuming, it’s life consuming. You will not be as available much during the week and sometimes on the weekends. Let your friends and family know that <strong>you are not going to be available due to the intensity of this bootcamp</strong>. Get noise canceling headphones if you are unable to remove yourself from the daily commotions of your living space. Communicating the boundaries to your family early on will make for a less stressful experience when working on any of the bootcamp materials from home.</p><p>I hope that these tips help you on this journey! You are capable of doing anything you set your mind to. Know that not everything will make sense at first but with practice things will start to “click”. <em>Happy coding!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c726991dfb72" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>