<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rafael Nazario</title>
    <description>The latest articles on DEV Community by Rafael Nazario (@rsnazario).</description>
    <link>https://dev.to/rsnazario</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F338443%2Faf686cbb-3ecf-45d6-b812-6272a17e80d2.jpeg</url>
      <title>DEV Community: Rafael Nazario</title>
      <link>https://dev.to/rsnazario</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rsnazario"/>
    <language>en</language>
    <item>
      <title>Building Solid Fundations on Rails Associations</title>
      <dc:creator>Rafael Nazario</dc:creator>
      <pubDate>Thu, 16 Jul 2020 18:13:29 +0000</pubDate>
      <link>https://dev.to/rsnazario/building-solid-fundations-on-rails-associations-1798</link>
      <guid>https://dev.to/rsnazario/building-solid-fundations-on-rails-associations-1798</guid>
      <description>&lt;h1&gt;
  
  
  First of All
&lt;/h1&gt;

&lt;p&gt;Hey new Devs, how are you doing?&lt;br&gt;
Please follow me on &lt;a href="https://twitter.com/rsnazario"&gt;twitter&lt;/a&gt; so we can interact more =D&lt;/p&gt;

&lt;h1&gt;
  
  
  Introduction
&lt;/h1&gt;

&lt;p&gt;Learning Ruby on Rails is an awesome experience. I have been overwhelmed for its potential at the &lt;a href="http://tutorials.jumpstartlab.com/projects/blogger.html"&gt;very first tutorial&lt;/a&gt; I took. It's amazing how with only a few commands and changes on files can result in your pages.&lt;/p&gt;

&lt;p&gt;The first steps of building your web application are creating and correctly connecting the database of its application, but most of the text that should help with a bit more advanced topics are confusing.&lt;/p&gt;

&lt;h1&gt;
  
  
  Migrations
&lt;/h1&gt;

&lt;p&gt;This is the very first step when building any Rails application. Creating the tables for your application is pretty easy. Just run on the terminal: &lt;br&gt;
&lt;code&gt;rails generate model modelName&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--k4ZpcXay--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.mathpix.com/snip/images/KaTK_GGv8wxgHi_KGSRu_HyNlUsOzCDS6gNy_1l48cc.original.fullsize.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--k4ZpcXay--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.mathpix.com/snip/images/KaTK_GGv8wxgHi_KGSRu_HyNlUsOzCDS6gNy_1l48cc.original.fullsize.png" alt="migrating-models"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Model
&lt;/h1&gt;

&lt;p&gt;At this point, is now time to connect each table as it has to be. For example, in this example, an Appointment must be a mutual agreement between Doctor and Patient. That is the diagram after the main connection we are creating.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Q6K6eI2d--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.mathpix.com/snip/images/BNVBa3XAyNmixCMzjiWbtz9bd4Hc4dLqhRAiqa27UBc.original.fullsize.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Q6K6eI2d--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.mathpix.com/snip/images/BNVBa3XAyNmixCMzjiWbtz9bd4Hc4dLqhRAiqa27UBc.original.fullsize.png" alt="ERD"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Simple Relations
&lt;/h3&gt;

&lt;p&gt;In order to create these associations, let's recall the fundament here. Creating a one-to-many association requires that the 'one' part of the relation &lt;code&gt;has_many&lt;/code&gt; relation; the 'many' part of the model needs the &lt;code&gt;belongs_to&lt;/code&gt; relation. In this example, a patient can attend to multiple appointments, but an appointment can have only one patient, so:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--jpGYG0L7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.mathpix.com/snip/images/BwjAXoi6vvaLoe9_aqITTNmMHoH_Nlx0EjWzjJCOPRE.original.fullsize.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--jpGYG0L7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.mathpix.com/snip/images/BwjAXoi6vvaLoe9_aqITTNmMHoH_Nlx0EjWzjJCOPRE.original.fullsize.png" alt="Patient-Appointment"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is the simplest relation that can be built on Rails. A &lt;code&gt;has_many&lt;/code&gt; requires a relation name and if the model-relation is the name of another class, it automatically refers to that class, requiring a 'class-name_id'. This association works fine because the &lt;code&gt;belongs_to&lt;/code&gt; creates a reference for the column that it exists (on this example, patient_id, created since the first migration).&lt;/p&gt;

&lt;p&gt;But there are some moments in which this is not that simple. At some tutorials, this is the point that starts to be confusing, but it is still simple! It's shown on the relation for the Doctor model.&lt;/p&gt;

&lt;h3&gt;
  
  
  Nicknamed Relations
&lt;/h3&gt;

&lt;p&gt;This kind of association is way more used and readable on the code. The fundament here is that the programmer can create nicknames for its association that represents exactly its purpose, and the tags are pretty much the same.&lt;/p&gt;

&lt;p&gt;The change on the &lt;code&gt;has_many&lt;/code&gt; tag is that now it's required to point the relation to the correct class and foreign_key. &lt;br&gt;
In order to complete the relation, the &lt;code&gt;belongs_to&lt;/code&gt; tag that goes on the Appointment model refers to a doctor and points it to the Doctor ID (Primary Key). Since the column is not named directly to the class name, it must also point which column of the model is to refer to the Doctor table. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--EwtnwMYP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.mathpix.com/snip/images/FnJqsISYPwdX7lwo9b_QTxC5bFfWzSMh0apxJGrr6rQ.original.fullsize.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--EwtnwMYP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.mathpix.com/snip/images/FnJqsISYPwdX7lwo9b_QTxC5bFfWzSMh0apxJGrr6rQ.original.fullsize.png" alt="Doctor-to_attend"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Advanced Relation
&lt;/h1&gt;

&lt;p&gt;So far, the fundament of creating direct relations should be fully understood. What about the &lt;code&gt;SOURCE - THROUGH&lt;/code&gt; relations? Those are a bit tricker. &lt;/p&gt;

&lt;h3&gt;
  
  
  Source - Through Fundament
&lt;/h3&gt;

&lt;p&gt;Most of the topics I have read about this relation were really confusing (and actually, this is what inspired me to write this article). There are a lot of paragraphs that explain everything in a too much technical way, that means almost nothing to beginners, especially if your mother language is not English (like me). So, is it that confusing? &lt;br&gt;
spoiler-alert: NO.&lt;/p&gt;

&lt;p&gt;The best analogy for this association is to think about getting a car ride from your friends. The same way, the association &lt;code&gt;through-source&lt;/code&gt; works getting 'rides' on other associations. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--pIlcuvlm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.mathpix.com/snip/images/_mllf2D-u0mrEWRPRTjjOUFwAntjYxbNSFxXH2kTm2w.original.fullsize.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pIlcuvlm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.mathpix.com/snip/images/_mllf2D-u0mrEWRPRTjjOUFwAntjYxbNSFxXH2kTm2w.original.fullsize.png" alt="doctor-who_attend"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this example, the association &lt;code&gt;who_attend&lt;/code&gt; of the Doctor class gets a ride first on the association &lt;code&gt;Doctor--&amp;gt;Appointment&lt;/code&gt; THROUGH the &lt;strong&gt;to_attend&lt;/strong&gt; association (now, the pointer is at the Appointment Class). Next, it takes a ride on the association &lt;code&gt;Appointment--&amp;gt;Patient&lt;/code&gt; SOURCE the &lt;strong&gt;patient&lt;/strong&gt; association.&lt;/p&gt;

&lt;h1&gt;
  
  
  Wrapping up
&lt;/h1&gt;

&lt;p&gt;I encourage you to build the same application and test it in many different ways. First, finish this simple application building the association for the &lt;code&gt;Patient--&amp;gt;Doctor&lt;/code&gt; using the same concept.&lt;/p&gt;

&lt;p&gt;Also, don't stop there! Build as many different applications you can just to practice the fundament of the relations.&lt;/p&gt;

&lt;p&gt;Fundaments are important! Focus on it, buddy! &lt;/p&gt;

</description>
      <category>rails</category>
      <category>beginners</category>
      <category>ruby</category>
      <category>sql</category>
    </item>
    <item>
      <title>Bootstrap - A Quick Guide to Beginners Avoid Hating it.</title>
      <dc:creator>Rafael Nazario</dc:creator>
      <pubDate>Thu, 27 Feb 2020 17:18:42 +0000</pubDate>
      <link>https://dev.to/rsnazario/bootstrap-a-quick-guide-to-beginners-avoid-hating-it-7ok</link>
      <guid>https://dev.to/rsnazario/bootstrap-a-quick-guide-to-beginners-avoid-hating-it-7ok</guid>
      <description>&lt;h1&gt;
  
  
  First of All
&lt;/h1&gt;

&lt;p&gt;If you are a beginner and you want some help with Bootstrap, follow me and ask for anything on &lt;a href="https://twitter.com/rsnazario" rel="noopener noreferrer"&gt;twitter&lt;/a&gt;.&lt;/p&gt;

&lt;h1&gt;
  
  
  Introduction
&lt;/h1&gt;

&lt;p&gt;Well, if you are here it is probably because you have heard of this important tool for styling in an easier way your pages. Maybe, because you have already tried it by yourself and started hating it and now it is wondering "Why the hell people say that it's way easier to apply bootstrap?"&lt;/p&gt;

&lt;p&gt;One thing I know for sure: Bootstrap IS amazing. &lt;br&gt;
But there are some stages that you go through before thinking this way, specially if you try learning it only by reading its documentation.&lt;/p&gt;

&lt;h1&gt;
  
  
  The Stages of Learning Bootstrap
&lt;/h1&gt;

&lt;p&gt;For my own experience, learning Bootstrap by yourself having only the help of the documentation provided is really difficult and you probably are going to face most of the following feelings:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You do not understand the main concept of it and think that it is not that powerful tool that you were expecting it to be;&lt;/li&gt;
&lt;li&gt;You try small tests and then you just do not like it;&lt;/li&gt;
&lt;li&gt;Everything is not working and then you start hating it;&lt;/li&gt;
&lt;li&gt;You remember how 'easier' it is with your css styling and then you totally hate it;&lt;/li&gt;
&lt;li&gt;You finally understand the main concepts and start enjoying it a little bit;&lt;/li&gt;
&lt;li&gt;You understand how to apply and connect everything and you finally love it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  Main Concepts You Must Know
&lt;/h1&gt;

&lt;h4&gt;
  
  
  - Bootstrap
&lt;/h4&gt;

&lt;p&gt;You may think of Bootstrap as a Lego pack of pieces. You have a lot of small pieces and with it is possible to build whatever you want, but only if you assemble it on the correct way. &lt;/p&gt;

&lt;p&gt;Bootstrap was developed as a way to avoid writing the most common css-code for every page we build. And that is all! So, if this is a stylesheet, all you have to do is go to the &lt;a href="https://getbootstrap.com/" rel="noopener noreferrer"&gt;Bootstrap Home Page&lt;/a&gt; and link to your header the stylesheet and the javascript functionalities (if you need).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.mathpix.com%2Fsnip%2Fimages%2FpQ68jvSFOMMCwhRhq_sk5d9HVvUjiFnkGvozzfuU2yY.original.fullsize.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.mathpix.com%2Fsnip%2Fimages%2FpQ68jvSFOMMCwhRhq_sk5d9HVvUjiFnkGvozzfuU2yY.original.fullsize.png" alt="Linking Bootstrap"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then, you start adding all the small classes that Bootstrap provides you and there is no need for any styling, it is already done! After understanding it, it is important to master the main classes and how its interaction happens.&lt;/p&gt;

&lt;p&gt;Following, you can read about the main classes that you probably will use.&lt;/p&gt;

&lt;h4&gt;
  
  
  - -fluid
&lt;/h4&gt;

&lt;p&gt;This class is used to apply some small responsiveness on the element. It basically sets the width of the component to stretch through width as 100% according the different views that your page will be seen.&lt;/p&gt;

&lt;h4&gt;
  
  
  - Grid
&lt;/h4&gt;

&lt;p&gt;In my opinion, this is the most useful resource of bootstrap, but it has its peculiarities. &lt;br&gt;
Once you want to trigger a grid use, you must &lt;em&gt;ALWAYS&lt;/em&gt; be using a &lt;code&gt;row&lt;/code&gt; class and nest the columns as its children.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; Every &lt;code&gt;row&lt;/code&gt; class creates 12 columns. Never forget about it. &lt;/p&gt;

&lt;p&gt;So, since we have 12 columns inside each row, time to assemble your columns. For the main example, we are assembling 3 columns. Even though it would be possible to just add 3 &lt;code&gt;col&lt;/code&gt; classes, for best practices, that is how it should be coded:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.mathpix.com%2Fsnip%2Fimages%2Fk2kuVzpbLp0es9lsZFKTWqvDyio4usFMqL3KBB_rMhg.original.fullsize.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.mathpix.com%2Fsnip%2Fimages%2Fk2kuVzpbLp0es9lsZFKTWqvDyio4usFMqL3KBB_rMhg.original.fullsize.png" alt="Bootstrap-Grid-Code"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.mathpix.com%2Fsnip%2Fimages%2FajgN3uAHi7Y_crfkhRP35bpjBtl4UKpGCgXgPArgv5U.original.fullsize.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.mathpix.com%2Fsnip%2Fimages%2FajgN3uAHi7Y_crfkhRP35bpjBtl4UKpGCgXgPArgv5U.original.fullsize.png" alt="Bootstrap-Grid"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; By only adding &lt;code&gt;col&lt;/code&gt; classes without the index of how many rows the component should take will divide the content for the number of classes that have no index. This is helpful in a few cases, but it is not the best practice.&lt;/p&gt;

&lt;p&gt;So, what to do when you need to access and split up these columns? You &lt;strong&gt;have&lt;/strong&gt; to nest another row - which is going to be divided in 12 columns as well. How intuitive is that, eh?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.mathpix.com%2Fsnip%2Fimages%2F761R2zz430uVaKJwkMts10hXA5DJz21cdAJS1dj69S4.original.fullsize.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.mathpix.com%2Fsnip%2Fimages%2F761R2zz430uVaKJwkMts10hXA5DJz21cdAJS1dj69S4.original.fullsize.png" alt="Bootstrap-SubGrid-Code"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.mathpix.com%2Fsnip%2Fimages%2F6QSajPACVgpISFqQ418Fp1Pse_eDcfMtfUlIHmkepME.original.fullsize.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.mathpix.com%2Fsnip%2Fimages%2F6QSajPACVgpISFqQ418Fp1Pse_eDcfMtfUlIHmkepME.original.fullsize.png" alt="Bootstrap-SubGrid"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  - Responsiveness with Grid
&lt;/h4&gt;

&lt;p&gt;This characteristic is what makes grid the most important tool of Bootstrap.&lt;/p&gt;

&lt;p&gt;In order to correctly understand it, take a look at this viewport description from the Bootstrap official documentation that shows all its breakpoints.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.mathpix.com%2Fsnip%2Fimages%2FyH9Ly3vHYx0OuoN2UZbFDjKU84gfmgWF_-wWn0pTeNI.original.fullsize.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.mathpix.com%2Fsnip%2Fimages%2FyH9Ly3vHYx0OuoN2UZbFDjKU84gfmgWF_-wWn0pTeNI.original.fullsize.png" alt="Bootstrap-Breakpoints"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As you can see, the order of the viewports go from extra-small (xs) to extra-large screens (xl). Then, any application that you do for a viewport, if there is no other higher viewport defined, it is going to apply to all above. Pretty logical, right?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How can you get responsiveness then?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It is simple! You are free to add multiple classes!&lt;/p&gt;

&lt;p&gt;For the next example, we will be applying the following specifications: The content should take the whole screen on mobiles (1 column only), 2 columns once it is a tablet portview and finally, 4 columns once it is being seen on a laptop and up. In order to do it, you just have to add the viewport before the index. Here is the solution for this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.mathpix.com%2Fsnip%2Fimages%2F8Cz-IKkuhF9mer7XFXDG9AUVMUu0PtYEbwnNhz5h0oA.original.fullsize.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.mathpix.com%2Fsnip%2Fimages%2F8Cz-IKkuhF9mer7XFXDG9AUVMUu0PtYEbwnNhz5h0oA.original.fullsize.png" alt="Bootstrap-Responsive-Grid"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For computers: &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.mathpix.com%2Fsnip%2Fimages%2FclNQZ5WHf53pq5X0U_eZiZpYFEjl5vrwuUNokj6AAdg.original.fullsize.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.mathpix.com%2Fsnip%2Fimages%2FclNQZ5WHf53pq5X0U_eZiZpYFEjl5vrwuUNokj6AAdg.original.fullsize.png" alt="Bootstrap-Laptop-View"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For Tablets:&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.mathpix.com%2Fsnip%2Fimages%2FNOeqr2j9HMbIaBggas3vVFi_QKIz2Xph0j8BcdoQIBE.original.fullsize.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.mathpix.com%2Fsnip%2Fimages%2FNOeqr2j9HMbIaBggas3vVFi_QKIz2Xph0j8BcdoQIBE.original.fullsize.png" alt="Bootstrap-Tablets-View"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For Mobiles:&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.mathpix.com%2Fsnip%2Fimages%2FXjWeUGX8UBoplen70_vsdUssvuACrsi5hsoy2CEovSU.original.fullsize.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.mathpix.com%2Fsnip%2Fimages%2FXjWeUGX8UBoplen70_vsdUssvuACrsi5hsoy2CEovSU.original.fullsize.png" alt="Bootstrap-Mobiles-View"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Flex Display
&lt;/h4&gt;

&lt;p&gt;One of the most important tool for displaying content in CSS is Flex-box, and it would not be different in Bootstrap. &lt;/p&gt;

&lt;p&gt;Displaying flex in Bootstrap is usually a move to fit the content inside the container or even inside the grid column. Just like the original tool, the most important functionality is to justify or align the content according to the main direction chosen to be the reference. &lt;/p&gt;

&lt;p&gt;Using it is pretty simple, and also justifying and aligning the content. The next example covers its main utility.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.mathpix.com%2Fsnip%2Fimages%2FUJLBnH3GqGBjD3Lz25Jq9_ENzcFsJgUYuSQXudNCOEw.original.fullsize.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.mathpix.com%2Fsnip%2Fimages%2FUJLBnH3GqGBjD3Lz25Jq9_ENzcFsJgUYuSQXudNCOEw.original.fullsize.png" alt="Bootstrap-Flex-Code"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.mathpix.com%2Fsnip%2Fimages%2FBV-8U8xNGNX43YHPVUsCLNKksg8-luT7FxWExzCpIHk.original.fullsize.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.mathpix.com%2Fsnip%2Fimages%2FBV-8U8xNGNX43YHPVUsCLNKksg8-luT7FxWExzCpIHk.original.fullsize.png" alt="Bootstrap-Flex"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  - Margins and Paddings
&lt;/h4&gt;

&lt;p&gt;I am pretty sure that this styling was the most recurring coding of your CSS until this point, right? Well, not anymore!&lt;/p&gt;

&lt;p&gt;Bootstrap works with margins and paddings using &lt;code&gt;rem&lt;/code&gt; units that goes from index 0 to 5. You can also choose each side individually and you can even apply the negative margins concept. &lt;/p&gt;

&lt;p&gt;I am not creating any example for this section! These are classes that you have to use multiple times and get used to how much it "moves" the component from its original placement, after understanding the documentation.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.mathpix.com%2Fsnip%2Fimages%2F-ooXQ-wIguRnvoUevM-Dd9ljri-ChvR8aeuMV_CIq7s.original.fullsize.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.mathpix.com%2Fsnip%2Fimages%2F-ooXQ-wIguRnvoUevM-Dd9ljri-ChvR8aeuMV_CIq7s.original.fullsize.png" alt="Bootstrap-Documentation-Spacing"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Personal Insights of Bootstrap
&lt;/h1&gt;

&lt;p&gt;Learning and practicing the use of Bootstrap through your projects will not only help you on the page that you are using the tool, but for your entire coding for CSS as well.&lt;/p&gt;

&lt;p&gt;The main result that I achieved by applying myself through all these stages, with a lot of research, try and error, resetting my entire project and finally understanding it is that now I think clear of the whole result naturally. &lt;/p&gt;

&lt;p&gt;After understanding Bootstrap, it is easier to plan your page and create small classes for yourself that will fit n-components instead of only the components that are exactly the same through your page, resulting in a cleaner and way more compact code, which in my opinion, is quite elegant. &lt;/p&gt;

</description>
      <category>beginners</category>
      <category>bootstrap</category>
      <category>css</category>
      <category>microverse</category>
    </item>
  </channel>
</rss>
