<?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: Jason Charnes</title>
    <description>The latest articles on DEV Community by Jason Charnes (@jasoncharnes).</description>
    <link>https://dev.to/jasoncharnes</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%2F310984%2Fe2eec7d0-5fe3-488b-ae22-87f5d2e2fea4.jpeg</url>
      <title>DEV Community: Jason Charnes</title>
      <link>https://dev.to/jasoncharnes</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jasoncharnes"/>
    <language>en</language>
    <item>
      <title>Why I'm Excited About Rails Bytes</title>
      <dc:creator>Jason Charnes</dc:creator>
      <pubDate>Mon, 18 May 2020 15:04:59 +0000</pubDate>
      <link>https://dev.to/jasoncharnes/why-i-m-excited-about-rails-bytes-5ekd</link>
      <guid>https://dev.to/jasoncharnes/why-i-m-excited-about-rails-bytes-5ekd</guid>
      <description>&lt;p&gt;When &lt;a href="https://twitter.com/excid3"&gt;Chris&lt;/a&gt; and &lt;a href="https://twitter.com/andrewfomera"&gt;Andrew&lt;/a&gt; first told me about &lt;a href="https://railsbytes.com"&gt;Rails Bytes&lt;/a&gt; I thought to myself, "sure Rails can frustrate me sometimes, but it doesn't suck..." 👀&lt;/p&gt;

&lt;p&gt;Once I learned that it didn't mean "Rails bites," I stopped what I had set out to work on that raining Sunday and shifted all my attention to Rails Bytes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Rails Bytes is a repository of hosted Ruby on Rails templates.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Ruby on Rails is &lt;a href="https://rubyonrails.org/doctrine/#omakase"&gt;omakase&lt;/a&gt;, and I like a lot of the decisions made for us. However, there are certain &lt;a href="https://rubyonrails.org/doctrine/#no-one-paradigm"&gt;tweaks to the default stack&lt;/a&gt; that I often make in Rails applications. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Sometimes I swap out Minitest for RSpec; sometimes, I don't.&lt;/li&gt;
&lt;li&gt;Sometimes I use Devise; sometimes, I don't.&lt;/li&gt;
&lt;li&gt;Sometimes I use Draper; sometimes, I don't.&lt;/li&gt;
&lt;li&gt;Sometimes I take payments with Pay; sometimes, I don't.&lt;/li&gt;
&lt;li&gt;I (mostly) always use Factory Bot and Pry.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'm grateful for how easy it is to make these additions/changes in Ruby and Rails. However, it still takes time to find a library, look for the gem name (underscore or dash?), add it to my Gemfile, bundle install, and then go through all the library-specific setup instructions.&lt;/p&gt;

&lt;p&gt;Chris and I started hacking on the &lt;a href="https://github.com/excid3/jumpstart"&gt;free Jumpstart template&lt;/a&gt; in 2017 to make some of these decisions when starting a new Rails app. When I fizzled out, Chris open-sourced it and championed it into a fantastic resource for bootstrapping a new Rails application. Many developers have given back to Jumpstart, and it's a solid template.&lt;/p&gt;

&lt;p&gt;The problem I've run into over the last couple of years, though, is that I often don't know what libraries I want to use until I've started &lt;em&gt;building&lt;/em&gt; the application.&lt;/p&gt;

&lt;p&gt;Rails Bytes shines, here.&lt;/p&gt;

&lt;p&gt;I can use (or create!) pre-built Rails templates that do one thing, and they do it well.&lt;/p&gt;

&lt;p&gt;If I want to &lt;a href="https://railsbytes.com/public/templates/X8Bsjx"&gt;add Devise&lt;/a&gt; to my &lt;strong&gt;existing&lt;/strong&gt; application, I can run &lt;code&gt;rails app:template LOCATION='https://railsbytes.com/script/X8Bsjx'&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;If I want to &lt;a href="https://railsbytes.com/public/templates/z0gsLX"&gt;swap out Minitest for Rspec&lt;/a&gt; I can run &lt;code&gt;rails app:template LOCATION='https://railsbytes.com/script/z0gsLX'&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;If I want to &lt;a href="https://railsbytes.com/public/templates/z5OsqV"&gt;add TailwindCSS&lt;/a&gt; I can run &lt;code&gt;rails app:template LOCATION='https://railsbytes.com/script/z5OsqV'&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;These templates don't just install a gem and run the &lt;code&gt;rails g&lt;/code&gt; command. Many of them also prompt you for extra configuration options and do the work required to get the libraries up and running. 🙌&lt;/p&gt;

&lt;p&gt;In the case of &lt;a href="https://railsbytes.com/public/templates/XnJsbX"&gt;Factory Bot&lt;/a&gt; and &lt;a href="https://railsbytes.com/public/templates/V1bsq4"&gt;Draper&lt;/a&gt;, the templates ask you if you want to generate a Factory or Decorator for all your existing models. 🏄‍♂️&lt;/p&gt;

&lt;p&gt;The benefit to tiny, single-focused templates is that they're composable! 😱 I watched Andrew &lt;a href="https://railsbytes.com/public/templates/V4YsyX"&gt;wire up RSpec, Factory Bot, and Standard&lt;/a&gt; into a single template.&lt;/p&gt;

&lt;p&gt;It's still early, but I'm excited about the future of Rails Bytes. I can't wait to see what templates my fellow Rubyists (you!) build to make our lives easier.&lt;/p&gt;

&lt;p&gt;I host a podcast with Chris and work with Andrew at Podia, so I may be biased. However, I'm incredibly excited about this project. So much so that I can't stop thinking about it and I'm learning how to write a DEV.to article about it!&lt;/p&gt;

&lt;p&gt;XOXO&lt;br&gt;
Gossip Girl&lt;/p&gt;

</description>
      <category>ruby</category>
      <category>rails</category>
    </item>
  </channel>
</rss>
