<?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: Rixio Barrios</title>
    <description>The latest articles on DEV Community by Rixio Barrios (@rixiobarrios).</description>
    <link>https://dev.to/rixiobarrios</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F937715%2Fbac30d02-a5e9-4925-bfbe-f97d38ef1418.jpeg</url>
      <title>DEV Community: Rixio Barrios</title>
      <link>https://dev.to/rixiobarrios</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rixiobarrios"/>
    <language>en</language>
    <item>
      <title>Unlocking Success: Why Teaching How to Handle Code Challenges is Vital</title>
      <dc:creator>Rixio Barrios</dc:creator>
      <pubDate>Thu, 14 Sep 2023 14:06:56 +0000</pubDate>
      <link>https://dev.to/rixiobarrios/unlocking-success-why-teaching-how-to-handle-code-challenges-is-vital-10l9</link>
      <guid>https://dev.to/rixiobarrios/unlocking-success-why-teaching-how-to-handle-code-challenges-is-vital-10l9</guid>
      <description>&lt;p&gt;In today's ever-evolving tech landscape, landing a software engineering role isn't just about having a degree or certifications; it's about demonstrating your skills in real-world scenarios. That's why I believe in preparing students not just to code but also to ace the code challenges that are increasingly becoming a standard part of tech job interviews. In this article, I'll explore why teaching code challenges is vital for empowering underserved communities through tech education.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Bridging the Skills Gap&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Many aspiring software engineers face a significant skills gap between their classroom knowledge and the practical requirements of the job market. Code challenges provide a bridge between theory and practice. They require students to apply what they've learned to solve real coding problems, preparing them for the challenges they'll encounter in the workplace.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Boosting Confidence&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Job interviews can be nerve-wracking, especially for those entering the job market for the first time. Teaching code challenges not only equips students with technical skills but also boosts their confidence. When they can tackle coding challenges successfully, they approach interviews with a sense of self-assuredness that can make all the difference.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Real-World Relevance&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Code challenges reflect the kind of work software engineers do on a daily basis. By teaching these challenges, we ensure that students are not just prepared for interviews but also for their future roles. They learn problem-solving, code optimization, and debugging skills that are invaluable in real-world scenarios.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Breaking Down Barriers&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For many students, particularly those from underserved communities, breaking into the tech industry can seem like an insurmountable challenge. Teaching code challenges helps break down this barrier. It demonstrates that with the right skills and training, anyone can excel in tech, regardless of their background.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Staying Competitive&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The tech industry is highly competitive, and employers are looking for candidates who stand out. Code challenges are a way for students to differentiate themselves in a crowded job market. By mastering these challenges, they showcase their abilities to potential employers.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Fostering a Growth Mindset**&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Code challenges aren't just about the right answers; they're about the process of getting there. They encourage a growth mindset, where students embrace challenges and view mistakes as opportunities to learn. This mindset is not only valuable in interviews but also throughout one's career.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Building a Supportive Community&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We shouldn't just teach code challenges; we should also create a community where students can learn from each other. Collaboration and peer learning are essential parts of their success. Students support and inspire each other, creating a network that extends beyond the classroom.&lt;/p&gt;

&lt;p&gt;Conclusion&lt;/p&gt;

&lt;p&gt;Teaching code challenges isn't just about preparing for interviews; it's about empowering students to excel in the tech industry. I recognize the importance of these challenges in bridging the skills gap, boosting confidence, and providing real-world relevance. By mastering code challenges, students are not only prepared for job interviews but also equipped for successful and fulfilling careers in tech.&lt;/p&gt;

&lt;p&gt;As a student myself, I recognize the importance of learning how to tackle code challenges and the immense obstacle that could represent now knowing how to approach them.&lt;br&gt;
Unfortunately a lot of organizations do not out time and effort into teaching how to manage and solve a code assessment.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Rails: Add a column to a table</title>
      <dc:creator>Rixio Barrios</dc:creator>
      <pubDate>Wed, 07 Dec 2022 15:20:37 +0000</pubDate>
      <link>https://dev.to/rixiobarrios/rails-add-a-column-to-a-table-47mn</link>
      <guid>https://dev.to/rixiobarrios/rails-add-a-column-to-a-table-47mn</guid>
      <description>&lt;p&gt;To add a column to an existing table on Ruby on Rails you would need to create a rails command to generate that migration. Also, there will be an opportunity to name your migration under the context of what you need.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;rails generate migration AddImageColumnToListings image:string
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This commands adds the image column to your listings table with the string content. A file would be added to your migrate folder.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class AddImageColumnToListings &amp;lt; ActiveRecord::Migration[6.1]
  def change
    add_column :listings, :image, :string
  end
end
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;At this point you can make any changes to the files before running&lt;br&gt;
&lt;br&gt;
 &lt;code&gt;rails db:migrate&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Replace 7 CRUD Routes on Rails with one Line of Code</title>
      <dc:creator>Rixio Barrios</dc:creator>
      <pubDate>Thu, 17 Nov 2022 02:59:25 +0000</pubDate>
      <link>https://dev.to/rixiobarrios/replace-7-crud-routes-on-rails-with-one-line-of-code-2jp4</link>
      <guid>https://dev.to/rixiobarrios/replace-7-crud-routes-on-rails-with-one-line-of-code-2jp4</guid>
      <description>&lt;p&gt;Nope, this is not click bate!. It's the syntax that resolves having to type all the 7 &lt;strong&gt;standard&lt;/strong&gt; routes that a &lt;strong&gt;CRUD&lt;/strong&gt; Rails app contains. Here is a quick glance at the routes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;get 'cars', to: 'cars#index'
get 'cars/new', to: 'cars#new'
post 'cars', to: 'cars#create'
get 'cars/:id', to: 'cars#show'
get 'cars/:id/edit', to: 'cars#edit'
patch 'cars/:id', to: 'cars#update'
delete 'cars/:id', to: 'cars#destroy'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here is the keyword that contains the same standard routes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;resources :cars
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The command creates each route with prefixes. Here is the equivalent of &lt;strong&gt;resources :cars&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;get 'cars', to: 'cars#index'
post 'cars', to: 'cars#create'
get 'cars/new', to: 'cars#new', as: :new_car
get 'cars/:id/edit', to: 'cars#edit', as: :edit_car
get 'cars/:id', to: 'cars#show', as: :car
put 'cars/:id', to: 'cars#update'
patch 'cars/:id', to: 'cars#update'
delete 'cars/:id', to: 'cars#destroy'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Turning your Rails App into an API</title>
      <dc:creator>Rixio Barrios</dc:creator>
      <pubDate>Wed, 16 Nov 2022 19:49:02 +0000</pubDate>
      <link>https://dev.to/rixiobarrios/turning-your-rails-app-into-an-api-5234</link>
      <guid>https://dev.to/rixiobarrios/turning-your-rails-app-into-an-api-5234</guid>
      <description>&lt;p&gt;When you generate a scaffold in Rails you'll get the method &lt;br&gt;
&lt;strong&gt;respond_to&lt;/strong&gt;, this method would let you render data in other formats including &lt;strong&gt;JSON&lt;/strong&gt;. To service the same data you are rendering on HTML as an end-point, you could make the following change under your controller using your own variables:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;def index
# Using an @task model
respond_to do |format|
  format.json do
    render json: @task
  end
end
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Alternatively, you could do this to render more formats and also use a shorter syntax:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;def index
  @tasks = Task.all
  respond_to :html, :json, :xml
end

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>"Time in Words" Helper for Ruby on Rails</title>
      <dc:creator>Rixio Barrios</dc:creator>
      <pubDate>Mon, 14 Nov 2022 15:04:30 +0000</pubDate>
      <link>https://dev.to/rixiobarrios/time-in-words-helper-for-ruby-on-rails-ain</link>
      <guid>https://dev.to/rixiobarrios/time-in-words-helper-for-ruby-on-rails-ain</guid>
      <description>&lt;p&gt;One clever way to format time using Ruby is by using a Rails method called "time_ago_in_words". This method translates the &lt;strong&gt;hard to read&lt;/strong&gt; default format for a date and time, making it more human friendly. Here is a quick example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;time_ago_in_words(Time.now)  # =&amp;gt; less than a minute
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here is how to use it in a controller:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class UsersController
  def index
    helpers.time_ago_in_words(Time.now)
  end
end
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>My Madlibs Game on C#</title>
      <dc:creator>Rixio Barrios</dc:creator>
      <pubDate>Fri, 04 Nov 2022 18:56:34 +0000</pubDate>
      <link>https://dev.to/rixiobarrios/my-madlibs-game-on-c-43np</link>
      <guid>https://dev.to/rixiobarrios/my-madlibs-game-on-c-43np</guid>
      <description>&lt;p&gt;I had a lot of fun coding a very simple game of Madlibs during a training I had on .Net, SQL and C# once upon a time. Here is the entire game. Enjoy!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;using System;

namespace MadLibs
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Title = "Super MadLibs";
            Console.WriteLine("Welcome to Super MadLibs!");
            Console.ForegroundColor = ConsoleColor.Cyan;
            Console.WriteLine("Press Enter To Start");
            Console.ReadLine();
            Console.Clear();

            Console.Write("Enter a Name: ");
            string name = Console.ReadLine();
            Console.Clear();

            Console.Write("Enter a Place: ");
            string place = Console.ReadLine();
            Console.Clear();

            Console.Write("Enter a Verb: ");
            string verb1 = Console.ReadLine();
            Console.Clear();

            Console.Write("Enter a Adverb: ");
            string adverb1 = Console.ReadLine();
            Console.Clear();

            Console.Write("Enter anoder Verb: ");
            string verb2 = Console.ReadLine();
            Console.Clear();

            Console.Write("Enter another Adverb: ");
            string adverb2 = Console.ReadLine();
            Console.Clear();

            Console.BackgroundColor = ConsoleColor.White;
            Console.ForegroundColor = ConsoleColor.Black;
            Console.Clear();

            Console.ForegroundColor = ConsoleColor.Black;
            Console.Write("Once upon a time I saw ");

            Console.ForegroundColor = ConsoleColor.Red;
            Console.Write(name);

            Console.ForegroundColor = ConsoleColor.Black;
            Console.Write(" at a ");

            Console.ForegroundColor = ConsoleColor.Red;
            Console.Write(place);

            Console.ForegroundColor = ConsoleColor.Black;
            Console.Write(". They had a super power that made them ");

            Console.ForegroundColor = ConsoleColor.Red;
            Console.Write(verb1);

            Console.ForegroundColor = ConsoleColor.Black;
            Console.Write(" really ");

            Console.ForegroundColor = ConsoleColor.Red;
            Console.Write(adverb1);

            Console.ForegroundColor = ConsoleColor.Black;
            Console.Write(". I wanted a super power too. So I drank a special posion. Now I can ");

            Console.ForegroundColor = ConsoleColor.Red;
            Console.Write(verb2);

            Console.ForegroundColor = ConsoleColor.Black;
            Console.Write(" really ");

            Console.ForegroundColor = ConsoleColor.Red;
            Console.Write(adverb2);

            Console.ForegroundColor = ConsoleColor.Black;
            Console.Write(". And everyone live happily ever after");
            Console.ReadLine();

        }
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>How to Humanize a Boolean on Ruby</title>
      <dc:creator>Rixio Barrios</dc:creator>
      <pubDate>Mon, 31 Oct 2022 15:22:55 +0000</pubDate>
      <link>https://dev.to/rixiobarrios/how-to-humanize-a-boolean-on-ruby-3ik5</link>
      <guid>https://dev.to/rixiobarrios/how-to-humanize-a-boolean-on-ruby-3ik5</guid>
      <description>&lt;p&gt;Having a true or false output is fine when it comes to code no human is ever going to read but, when it comes to the human eye; We want to communicate our answer in the best way UX can handle. There is a simple way to handle this so you can make your method global.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;module ApplicationHelper

  def humanize_boolean(value)
    case value
    when true
      "Yes"
    when false
      "No"
    when nil
      "Undefined"
    else
      "Invalid"
    end
  end

end
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add this handy method to your application_helper.rb and use anywhere on your "views" files.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;%= humanize_boolean(post.published) %&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Gitpod is amazing!</title>
      <dc:creator>Rixio Barrios</dc:creator>
      <pubDate>Fri, 14 Oct 2022 15:03:31 +0000</pubDate>
      <link>https://dev.to/rixiobarrios/gitpod-is-amazing-p39</link>
      <guid>https://dev.to/rixiobarrios/gitpod-is-amazing-p39</guid>
      <description>&lt;p&gt;Technology waits for no one. This is very true when it comes to web development. While in a new learning journey my instructor introduced us to Gitpod.io. This tool; as I understand it, is a virtual developing environment for everything. This possibly means the end of local files being stored in your computer while engineering software. Wow!&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Experienced Jr. Web Developer?</title>
      <dc:creator>Rixio Barrios</dc:creator>
      <pubDate>Wed, 12 Oct 2022 18:20:32 +0000</pubDate>
      <link>https://dev.to/rixiobarrios/experienced-jr-web-developer-12n0</link>
      <guid>https://dev.to/rixiobarrios/experienced-jr-web-developer-12n0</guid>
      <description>&lt;p&gt;Employers seem to be "Dazed and Confused" when it comes to requirements in the Tech Industry. Especially in the case of Jr. Web Developers; the norm is to either have you take an impossible code challenge, know 3 coding languages, 3 frameworks, 4 libraries or simply ask you for at least 3 years in industry experience. I thought Jr. Web Developers where people who just started in the industry. Is safe to say that expectations among employers are above reality and below market demands.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Constants in Ruby</title>
      <dc:creator>Rixio Barrios</dc:creator>
      <pubDate>Wed, 05 Oct 2022 17:26:34 +0000</pubDate>
      <link>https://dev.to/rixiobarrios/constants-in-ruby-5ej</link>
      <guid>https://dev.to/rixiobarrios/constants-in-ruby-5ej</guid>
      <description>&lt;p&gt;For somebody who knows a little bit of Javascript; I am not stranger to constants. Constants in Ruby however, are represented in all caps. Who knew!?&lt;/p&gt;

&lt;p&gt;Constants in Javascript:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const valueDoesNotChange = myValue
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Constants in Ruby&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;VALUE_DOES_NOT_CHANGE = myValue
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
  </channel>
</rss>
