<?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 Brandyn Britton on Medium]]></title>
        <description><![CDATA[Stories by Brandyn Britton on Medium]]></description>
        <link>https://medium.com/@brandynbb96?source=rss-fd6065afcbf7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*rK3mRZkJzW3w5qwyNYWepg@2x.jpeg</url>
            <title>Stories by Brandyn Britton on Medium</title>
            <link>https://medium.com/@brandynbb96?source=rss-fd6065afcbf7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 04:24:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@brandynbb96/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[PostGIS Fundamentals: Spatial Superpowers for Your Postgres Database]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">This is Part 2 of a series on using GIS to build location-aware applications.</p><p class="medium-feed-link"><a href="https://medium.com/@brandynbb96/postgis-fundamentals-spatial-superpowers-for-your-postgres-database-6754927cedcd?source=rss-fd6065afcbf7------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@brandynbb96/postgis-fundamentals-spatial-superpowers-for-your-postgres-database-6754927cedcd?source=rss-fd6065afcbf7------2</link>
            <guid isPermaLink="false">https://medium.com/p/6754927cedcd</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[geography]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Brandyn Britton]]></dc:creator>
            <pubDate>Thu, 02 Apr 2026 11:06:34 GMT</pubDate>
            <atom:updated>2026-04-02T11:07:43.686Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[What Is GIS? A Plain-English Explanation for Developers]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@brandynbb96/what-is-gis-a-plain-english-explanation-for-developers-5ed8720c1aeb?source=rss-fd6065afcbf7------2"><img src="https://cdn-images-1.medium.com/max/1062/1*AT-PYo5gr8pjSVyvFUD8hw.jpeg" width="1062"></a></p><p class="medium-feed-snippet">This is Part 1 of a series on using GIS to build location-aware applications, specifically a birding app. Future posts will cover PostGIS&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@brandynbb96/what-is-gis-a-plain-english-explanation-for-developers-5ed8720c1aeb?source=rss-fd6065afcbf7------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@brandynbb96/what-is-gis-a-plain-english-explanation-for-developers-5ed8720c1aeb?source=rss-fd6065afcbf7------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ed8720c1aeb</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[gis]]></category>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Brandyn Britton]]></dc:creator>
            <pubDate>Mon, 30 Mar 2026 06:12:07 GMT</pubDate>
            <atom:updated>2026-03-30T06:12:26.225Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[The State of Authentication in Rails in 2026 - A comparison between Laravel, Django and Next.js]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@brandynbb96/the-state-of-authentication-in-rails-in-2026-a-comparison-between-laravel-django-and-next-js-a3c52c085961?source=rss-fd6065afcbf7------2"><img src="https://cdn-images-1.medium.com/max/1408/1*WUox0HYuMJr8gUJmyNNwZQ.jpeg" width="1408"></a></p><p class="medium-feed-snippet">The state of Ruby on Rails Authentication, comparing the auth generator with other frameworks like Laravel, Django and Next.js</p><p class="medium-feed-link"><a href="https://medium.com/@brandynbb96/the-state-of-authentication-in-rails-in-2026-a-comparison-between-laravel-django-and-next-js-a3c52c085961?source=rss-fd6065afcbf7------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@brandynbb96/the-state-of-authentication-in-rails-in-2026-a-comparison-between-laravel-django-and-next-js-a3c52c085961?source=rss-fd6065afcbf7------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3c52c085961</guid>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[framework]]></category>
            <dc:creator><![CDATA[Brandyn Britton]]></dc:creator>
            <pubDate>Mon, 09 Mar 2026 11:33:59 GMT</pubDate>
            <atom:updated>2026-03-09T11:33:59.769Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Zero-Downtime Rails 8 Deployments on AWS with Kamal: A Complete Guide]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@brandynbb96/zero-downtime-rails-8-deployments-on-aws-with-kamal-a-complete-guide-c1f0e17e2777?source=rss-fd6065afcbf7------2"><img src="https://cdn-images-1.medium.com/max/2600/1*gedK_uV39TY2Jc4ZkzYlow.jpeg" width="2816"></a></p><p class="medium-feed-snippet">If you&#x2019;ve ever deployed a Next.js app to Vercel, you know the magic of &#x201C;git push and you&#x2019;re live.&#x201D; But if you&#x2019;re a Rails developer? You&#x2019;re&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@brandynbb96/zero-downtime-rails-8-deployments-on-aws-with-kamal-a-complete-guide-c1f0e17e2777?source=rss-fd6065afcbf7------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@brandynbb96/zero-downtime-rails-8-deployments-on-aws-with-kamal-a-complete-guide-c1f0e17e2777?source=rss-fd6065afcbf7------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1f0e17e2777</guid>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[kamal]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Brandyn Britton]]></dc:creator>
            <pubDate>Mon, 08 Dec 2025 15:10:09 GMT</pubDate>
            <atom:updated>2025-12-08T15:10:09.246Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Git Worktrees: Working on Multiple Branches Without the Headache]]></title>
            <link>https://medium.com/@brandynbb96/git-worktrees-working-on-multiple-branches-without-the-headache-de174609e98a?source=rss-fd6065afcbf7------2</link>
            <guid isPermaLink="false">https://medium.com/p/de174609e98a</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[gitkraken]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Brandyn Britton]]></dc:creator>
            <pubDate>Thu, 10 Jul 2025 09:48:03 GMT</pubDate>
            <atom:updated>2025-07-15T23:11:12.163Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nuXmFHXCOc2BQ_WYiB52XQ.png" /></figure><p>I was neck-deep in refactoring our authentication system when Slack started going crazy. A bunch of notifications start popping off. Production was down.</p><p>A payment bug was blocking invoices from processing, and every minute meant lost revenue (not really, just a few annoyed customers). My working directory looked like a bomb went off with half-written code across a dozen files, experimental changes I wasn’t ready to commit, a bunch of migrations and that one function where I’d been testing something risky or over engineering a simple feature.</p><p>Before I discovered worktrees, this scenario meant a frantic scramble with git stash, hoping nothing would conflict when I popped it later. Now? I just open a new terminal tab and fix the problem while my feature work sits untouched.</p><h3>Understanding Git Worktrees</h3><p>Git worktrees let you check out multiple branches of the same repository into different folders. Instead of constantly switching branches in one directory, you maintain several directories, each on its own branch, all sharing the same Git data.</p><pre>/projects/myapp              # Feature branch work<br>/projects/myapp-hotfix       # Emergency fixes<br>/projects/myapp-review       # Code review</pre><p>Each directory has its own working files, staged changes, and local state, but they all point to the same .git repository.</p><h3>Why Worktrees Matter</h3><p>Traditional Git workflows force you to abandon your current context whenever you need to switch branches. You stash changes, switch branches, do the work, switch back, pop the stash, and hope for the best. It’s disruptive and error-prone.</p><p>With worktrees, you keep everything exactly where it is. Your uncommitted changes, your running dev server, your mental context, all stay intact while you handle other tasks in a separate directory.</p><p>Here’s a real example from last week:</p><pre># From my feature directory<br>git worktree add ../myapp-hotfix main<br>cd ../myapp-hotfix</pre><pre>git checkout -b hotfix/payment-validation<br># Fixed the bug, tested it properly<br>git commit -m &quot;Fix payment validation edge case&quot;<br>git push origin hotfix/payment-validation</pre><pre># Back to feature work, nothing to restore<br>cd ../myapp</pre><p>No having to compile assets or rebuild the project entirely and then losing your previous context. You can just switch back to your previous work without this annoying step.</p><h3>Practical Use Cases</h3><p><strong>Production Emergencies</strong></p><p>When bugs hit production, create a worktree from main and fix it there. Your feature branch stays exactly as you left it, uncommitted changes and all.</p><p><strong>Code Reviews</strong></p><p>Stop contaminating your working directory with other people’s code. Check out pull requests in a dedicated worktree, run their tests, start their dev server, all without touching your current work.</p><pre>git worktree add ../myapp-review<br>cd ../myapp-review<br>git fetch origin pull/234/head:pr-234<br>git checkout pr-234<br>npm install &amp;&amp; npm test</pre><p><strong>Experiments</strong></p><p>Want to try a radically different approach? Create a worktree from your current branch and go wild. If it doesn’t work out, just delete the directory.</p><p><strong>Parallel Features</strong></p><p>Working on features that need different configurations or long-running processes? Keep them in separate worktrees with their own dependencies and servers.</p><h3>Setting Up Worktrees</h3><p>The commands are simple:</p><pre># Add a worktree<br>git worktree add &lt;path&gt; &lt;branch&gt;</pre><pre># See what you have<br>git worktree list</pre><pre># Remove when done<br>git worktree remove &lt;path&gt;</pre><pre># Clean up references<br>git worktree prune</pre><p>I organize mine like this:</p><pre>myproject/<br>├── main/         # Primary working directory<br>├── feature/      # Current feature work<br>├── hotfix/       # Emergency fixes<br>└── review/       # PR reviews</pre><h3>Things to Consider</h3><p><strong>Disk Space</strong></p><p>Each worktree is a full working directory. Projects with massive dependencies will eat disk space quickly. Monitor usage if you create many worktrees.</p><p><strong>Branch Limitations</strong></p><p>You can’t check out the same branch in multiple worktrees. Git prevents this to avoid conflicts. Plan accordingly.</p><p><strong>Shared State</strong></p><p>All worktrees share the same repository data. Branches, remotes, tags, and stashes are visible everywhere. Keep this in mind when managing your repository.</p><p><strong>Tool Compatibility</strong></p><p>Modern development tools handle multiple directories well. VS Code workspaces work great with worktrees. Some older tools might need tweaking. I’ve found GitKraken (and Gitlens) a useful paid tool for handling worktrees.</p><p><strong>Ignored Files</strong></p><p>You’ll need to create a method for handling your ignored files as these will be reset for each worktree. A good strategy for this is to create a script to symlink these files to your worktree when required. When I am working on a project with a .env file, I’ll often set this up in the core folder, and have a script that does something like:</p><pre>ln -s ../&lt;base&gt;/.env .env</pre><h3>When to Skip Worktrees</h3><p>Quick fixes like typos don’t need worktrees. Regular branch switching works fine for small changes. Worktrees excel when you need to preserve state or work on multiple things simultaneously.</p><p>Projects with unusual build systems or hardcoded paths might struggle with worktrees. Test first before committing to this workflow.</p><h3>Daily Workflow Example</h3><p>My typical day with worktrees looks like this:</p><p>Morning standup reveals an urgent bug. Instead of postponing it until after my feature work, I create a hotfix worktree and address it immediately.</p><p>Colleague needs a PR review. I pull it into my review worktree, run it locally, test thoroughly, and provide feedback while my feature tests continue running.</p><p>I want to compare two implementation approaches. Temporary worktree, alternative implementation, benchmark both solutions side by side.</p><p>End of day cleanup: remove temporary worktrees, run git worktree prune to clean up any dangling references.</p><h3>Getting Started</h3><p>Try worktrees on your next multitasking challenge:</p><pre>git worktree add ../project-fix main<br>cd ../project-fix<br># Handle the urgent task<br>cd -<br>git worktree remove ../project-fix</pre><p>Start small. Get comfortable with the basics before developing complex workflows.</p><h3>Wrapping Up</h3><p>Git worktrees solve a specific problem elegantly: managing multiple branches without losing context. They reduce the mental overhead of task switching and make handling interruptions less painful.</p><p>The best part? There’s no need for complex third party tooling or setup. It’s all a part of git. If worktrees don’t fit your workflow, you simply don’t use them. But if you regularly juggle multiple branches, they’re worth exploring.</p><p>One last tip: git worktree prune is your friend. Run it occasionally to clean up references to deleted worktree directories. Git doesn&#39;t do this automatically.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de174609e98a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Fun Web Projects with React: Creating Fun Applications for My Partner]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@brandynbb96/building-fun-web-projects-with-react-creating-fun-applications-for-my-partner-63d5688543ba?source=rss-fd6065afcbf7------2"><img src="https://cdn-images-1.medium.com/max/2600/1*UqFHsZ_F-LeaXMUKB4TW-A.png" width="2798"></a></p><p class="medium-feed-snippet">The Joy of Personal Projects</p><p class="medium-feed-link"><a href="https://medium.com/@brandynbb96/building-fun-web-projects-with-react-creating-fun-applications-for-my-partner-63d5688543ba?source=rss-fd6065afcbf7------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@brandynbb96/building-fun-web-projects-with-react-creating-fun-applications-for-my-partner-63d5688543ba?source=rss-fd6065afcbf7------2</link>
            <guid isPermaLink="false">https://medium.com/p/63d5688543ba</guid>
            <category><![CDATA[programming-ideas]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Brandyn Britton]]></dc:creator>
            <pubDate>Mon, 12 Aug 2024 08:02:51 GMT</pubDate>
            <atom:updated>2024-08-12T08:02:51.000Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[HTML to PDF in Ruby on Rails]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@brandynbb96/html-to-pdf-in-ruby-on-rails-90af4add0ce9?source=rss-fd6065afcbf7------2"><img src="https://cdn-images-1.medium.com/max/1024/1*Lt5ueMRktWs2QEHYDL8hJA.png" width="1024"></a></p><p class="medium-feed-snippet">Converting HTML to PDF has long been a staple in web development, particularly for applications that need to generate invoices, reports&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@brandynbb96/html-to-pdf-in-ruby-on-rails-90af4add0ce9?source=rss-fd6065afcbf7------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@brandynbb96/html-to-pdf-in-ruby-on-rails-90af4add0ce9?source=rss-fd6065afcbf7------2</link>
            <guid isPermaLink="false">https://medium.com/p/90af4add0ce9</guid>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[ruby-on-rails-development]]></category>
            <category><![CDATA[pdf]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[wkhtmltopdf]]></category>
            <dc:creator><![CDATA[Brandyn Britton]]></dc:creator>
            <pubDate>Mon, 24 Jun 2024 05:40:26 GMT</pubDate>
            <atom:updated>2026-07-10T11:55:39.727Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[My 2024 Personal Development Tool/Services Stack: Building Better with Jetbrains, Copilot, and…]]></title>
            <link>https://medium.com/@brandynbb96/my-2024-personal-development-tool-services-stack-building-better-with-jetbrains-copilot-and-f1df60e1c37c?source=rss-fd6065afcbf7------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1df60e1c37c</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[development-tools]]></category>
            <category><![CDATA[editor]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Brandyn Britton]]></dc:creator>
            <pubDate>Tue, 16 Jan 2024 00:29:35 GMT</pubDate>
            <atom:updated>2025-12-09T04:58:13.891Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="My persoanl development setup 2024" src="https://cdn-images-1.medium.com/max/1024/1*PZfwwCoMFmgzG3HxPInMsg.png" /></figure><h3>My 2024 Personal Development Tool/Services Stack: Building Better with Jetbrains, Copilot, and Beyond</h3><p>Today, I want to take you on a tour of my chosen stack, a carefully curated selection that empowers me to build better applications, learn faster, and push the boundaries of my skill-set.</p><p>I want to point it out here, I experiment a lot with different technologies as they pop up on my radar or I meet a new requirement that requires me to explore alternative solutions. This means that I will probably experiment with 100 more different tools and libraries this year, but this will be my “trusty” stack that I can rely on if I need to quickly prototype an MVP.</p><h3><strong>JetBrains — All the tooling I need</strong></h3><p>Throughout university, I was the kid who would whip up VIM for most of my projects. It was that or pay/pirate Sublime Text Editor. I got comfortable with VIM and eventually went down the rabbit hole of <a href="https://neovim.io/">Neovim</a> and <a href="https://www.reddit.com/r/unixporn">r/unixporn</a> and had people actually using my configs. It was great and it worked for my first three years of University where I was creating relatively simply applications.</p><p>Move on to my final year where I also begin work as a junior Android developer. It was my first taste with a proper IDE (outside of Eclipse) and I got good at being efficient in it. Around that time, the<a href="https://education.github.com/pack"> Github education pack</a> also came out, so I now had access to their entire product suite for free (although it was basically just IntelliJ IDEA at the time).</p><p>I now find myself using it for everything. I use WebStorm for my web/node projects, Rider for C#, Datagrip for my SQL management tool. I have taken breaks and made myself learn other tools such as Visual Studio Community, Visual Studio Code, XCode etc. but I find that after a couple months using them, I am nowhere near where I want to be and find myself getting quite frustrated at small things that I’ve become used to.</p><p>My favorite features are:</p><ul><li>Find in Files — Really nice interface for searching via text/reject an entire project</li><li>Search Everywhere — Search the entire project for key components (class names, function names etc.)</li><li>First Class Plugins* — I say first class because most plugins do actually support JetBrains but most of my typical plugin usage in say, VSCode, is already handled by JetBrains.</li><li>Nice Font — I will forever change all my editors to use <a href="https://www.jetbrains.com/lp/mono/">JetBrains Mono</a></li><li>Fast — Besides VSCode, I notice a significant delay when executing actions in a lot of other IDEs.</li><li>Cross Platform with sync — I switch between MacOS and Windows quite often so having that syncing ability is nice</li></ul><h3>Github Copilot — The AI Wingman</h3><p>The first plugin I install is <a href="https://github.com/features/copilot?ef_id=_k_Cj0KCQiAwP6sBhDAARIsAPfK_wbI5piCaZLPLPRk3DNBURbv9RUBNuK46Y9YkvVWbOHXQSj2PdaovCwaAqFaEALw_wcB_k_&amp;OCID=AIDcmm7mj0sudh_SEM__k_Cj0KCQiAwP6sBhDAARIsAPfK_wbI5piCaZLPLPRk3DNBURbv9RUBNuK46Y9YkvVWbOHXQSj2PdaovCwaAqFaEALw_wcB_k_&amp;gad_source=1&amp;gclid=Cj0KCQiAwP6sBhDAARIsAPfK_wbI5piCaZLPLPRk3DNBURbv9RUBNuK46Y9YkvVWbOHXQSj2PdaovCwaAqFaEALw_wcB">Github Copilot</a>. I first found it quite intrusive as I was coding but as time has gone on, it’s saved me so much time. The suggestions are nice for small, common tasks and that’s all I really need it for right now.</p><p>I was a big user of <a href="https://www.tabnine.com/">Tabnine</a> until Copilot was announced and they had a pricing change. I’ve also been attempting to use the <a href="https://www.jetbrains.com/ai/">JetBrains AI Assistant</a> but nothing is really catching my eye more than Copilot. Sure, it’s not perfect, and sometimes its quirky suggestions leave me chuckling, but its ability to jumpstart my coding process and spark new ideas is undeniable.</p><h3>Vercel — From Localhost to Lightspeed</h3><p>Gone are the days of fumbling with server configurations and praying to the deployment gods. Vercel has become my one-stop shop for launching projects and MVPs with minimal effort.</p><p>I use this quite often for my open source projects. It allows me to focus on writing code and not managing infrastructure. I spend countless hours on infrastructure during my day job so not having to worry about this on my personal projects is amazing.</p><p>The integration with most git providers is also great because I can bundle it with any pipeline and just have the latest change deployed when I deploy to main</p><p>My favourite features are:</p><ul><li>Pipeline integration — Deploying with no configuration after a branch push is nice.</li><li>Free for open source projects — Nice if I want to quickly deploy an MVP</li></ul><h3>Firebase — My Guilty Pleasure</h3><p>My Firebase journey began back when I was an Android developer, leveraging their real-time database. After Google acquired it, we seamlessly integrated a growing range of their functionalities into our projects. Implementing an authentication system using any front-end library and connecting it to Firebase Admin has become second nature for me.</p><p>Professionally, I also use Amazon Cognito, which has seen continuous enhancements. However, when it comes to user-friendliness and continuous improvements, Firebase clearly emerges as the winner for me. While some developers might have different preferences, for me, Firebase’s intuitive design and seamless integration into various development stacks make it an invaluable tool.</p><p>My favorite features are:</p><ul><li>Authentication — It’s super convenient to not have to think about the authentication process to hard as Firebase pretty much covers all bases</li><li>Firebase Functions — Running scheduled tasks and events is really simple to setup</li><li>Cloud Messaging — This is by far the simplest implementation to get notifications out to Android and iOS</li><li>Ease of use — It basically hand holds you when setting up a project</li><li>Free in most cases — Sometimes I don’t want to commit to a project and just want to prototype it. Firebase offers a nice free subscirption tier</li></ul><h3>GitKraken — Version Control with a nice interface</h3><p>In my early days, the terminal was my domain. University and my first job saw me building a fortress of knowledge around command-line tools, version control, and the like. Nowadays, however, I largely find myself in an amicable truce with the command line, opting for the controlled environment of GUIs for 99% of my daily operations and system interactions. Of course, the terminal remains a trusty backup for that occasional 1% where it proves irreplaceable.</p><p>While I usually hesitate to recommend GUIs without ensuring some understanding of the underlying processes, there’s one exception: <a href="https://www.gitkraken.com/">GitKraken</a>. For anyone primarily focused on the essentials of branching, merging, committing, and pushing, GitKraken shines. It’s not limited to these basics, though. Every git command I’ve encountered — and thankfully, those are rare — has been effortlessly handled within GitKraken’s intuitive interface. For a fantastic free alternative, consider SourceTree.</p><p>My favourite features are:</p><ul><li>Merge Tool — Haven’t been able to find anything that competes</li><li>Beautiful Interface — It was very easy for me to jump in and understand the basics. I haven’t found anyone who’s really struggled with it either but this may be due to a strong git cli background</li><li>Change view — I can view the file changes side by side and uncommit lines I don’t need</li><li>Integrations — Integrates nicely with GitHub, Azure Devops etc. Saves me using a credential manager via CLI.</li><li>Commands on right click — Everything I need is just there on a right click. I can cherry pick a certain commit, roll back changes, create a pull request simply by right clicking a commit.</li></ul><h3>Summary</h3><p>These tools are my daily allies in building better software, from code editors that boost my productivity to automation magic that simplifies complex tasks. If you have any recommendations for fellow developers, from hidden gems to time-saving alternatives, I’m all ears! I’d be happy to share my experiences with your suggestions too.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1df60e1c37c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Encouraging code policies using Git hooks]]></title>
            <link>https://medium.com/@brandynbb96/encouraging-code-policies-using-git-hooks-dd55976b6903?source=rss-fd6065afcbf7------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd55976b6903</guid>
            <category><![CDATA[i18next]]></category>
            <category><![CDATA[git-hooks]]></category>
            <category><![CDATA[translation]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Brandyn Britton]]></dc:creator>
            <pubDate>Thu, 04 Jan 2024 10:08:49 GMT</pubDate>
            <atom:updated>2024-01-29T05:10:26.589Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-xaKOqURXGzUffkVHLDMgg.png" /></figure><p>I’ve been working on a project that has uses<a href="https://react.i18next.com/"> react-i18next</a> to translate my project to different languages. I’d run into an issue where some of the keys in my English translation file weren’t matching those in the other translation files.</p><p>Now there are multiple solutions available but because this is a hobby project where I am exploring new things, I wanted to explore a bit more of <a href="https://git-scm.com/">Git</a> beyond what I would use in my general day-to-day. This mis-match of keys gave me the opportunity to finally explore Git Hooks and implement a pre-commit hook that would let me know that I’ve messed up my translations.</p><h3>Project Structure and Problem</h3><p>As stated before, I have a react project that utilizes react-i18next to handle the translations. My translation files are small json files and only contain key text to translate. These files are located in thesrc/__translations__ directory.</p><p>For the purpose of this example, I have:</p><ul><li>English translation json — en.json</li><li>Spanish translation json — es.json</li><li>Initialization script — initTranslation.ts</li></ul><p>en.json</p><pre>{<br>  &quot;translation&quot;: {<br>    &quot;Home&quot;: &quot;Home&quot;,<br>    &quot;Loading&quot;: &quot;Loading&quot;<br>  }<br>}</pre><p>es.json:</p><pre>{<br>  &quot;translation&quot;: {<br>    &quot;Home&quot;: &quot;Casa&quot;,<br>    &quot;Loading&quot;: &quot;Espera&quot;<br>  }<br>}</pre><p>initTranslation.ts</p><pre>import i18n from &quot;i18next&quot;;<br>import {initReactI18next} from &quot;react-i18next&quot;;<br><br>import * as en from &quot;./en.json&quot;;<br>import * as es from &quot;./es.json&quot;;<br><br>type translation = {<br>    translation: {<br>        [key: string]: string<br>    }<br>}<br><br>export const initializeTranslation = () =&gt; {<br><br>    i18n<br>        .use(initReactI18next) // passes i18n down to react-i18next<br>        .init({<br>            // the translations<br>            // (tip move them in a JSON file and import them,<br>            // or even better, manage them via a UI: https://react.i18next.com/guides/multiple-translation-files#manage-your-translations-with-a-management-gui)<br>            resources: {<br>                en: en as translation,<br>                es: es as translation,<br>            },<br>            fallbackLng: &quot;en&quot;,<br><br>            interpolation: {<br>                escapeValue: false // react already safes from xss =&gt; https://www.i18next.com/translation-function/interpolation#unescape<br>            }<br>        });<br>}</pre><p>Most of this is just boiler plate from the react-i18next documentation for getting started.</p><p>In my App.tsx file, I call the initializeTranslation and I can run the following to change the language during runtime</p><pre><br>initializeTranslation();<br>const App = () =&gt; {<br><br><br>    const {i18n} = useTranslation();<br><br>    useEffect(() =&gt; {<br>        i18n.changeLanguage(&quot;es&quot;); // Change to &quot;en&quot; for English<br>    }, []);<br>...<br>}</pre><h3>Python Script to Check for Missing Keys</h3><p>Now if I add a key to the en.json and forget it in the es.json , it’s not a big deal. The translation will fallback to English and it will still render correctly, just in the incorrect language.</p><p>Translation is always something I’ve seen as something that I don’t want to have to do later down the track and if I have the appropriate framework in place, it’s a lot easier to fix those small mistakes then implement it entirely and ensure I’m covering it in all the appropriate places. It’s not something I’d do by myself usually but I’m also learning languages and this is a good way to assist in that and pick up some slang for webpages that I wouldn’t cover in DuoLingo.</p><p>If I miss a key, it’s not the end of the world basically. I just want to stay on top of it.</p><p>Let’s say I add a key for Sign In to my en.json and forget to add it. I have tests to cover this but I also want to make sure I have something pre-commit just to say “Hey, you forgot a key in one of the language files”.</p><p>Before we explore hooks, I want to write a Python script that does this.</p><pre>#!/usr/bin/env python3<br><br>import os<br>import json<br><br>def check_translation_files(directory):<br><br>    translation_files = []<br>    for root, dirs, files in os.walk(directory):<br>        for file in files:<br><br>            if file.endswith(&quot;.json&quot;):<br>                translation_files.append(os.path.join(root, file))<br><br>    translations = []<br>    for file in translation_files:<br>        with open(file) as f:<br>            data = json.load(f)<br>            translations.append(data.get(&quot;translation&quot;, {}))<br><br>    is_match = True<br>    not_matching = []<br>    for i in range(len(translations) - 1):<br>        if translations[i].keys() != translations[i + 1].keys():<br>            # Output what keys don&#39;t match<br>            not_matching = list(<br>                set(translations[i].keys()) - set(translations[i + 1].keys()))<br>            is_match = False<br><br>    if (is_match):<br>        print(&quot;✅ All translation files have matching keys&quot;)<br>    else:<br>        print(&quot;❌ WARNING: Translation files do not have matching keys. Missing keys:&quot;,<br>              str(not_matching))<br><br><br>check_translation_files(&quot;src/__translations__&quot;)</pre><p>All this does is open the __translations__ directory, picking up all the .json files. It will compare the english one to the other and then output:</p><ul><li>✅ All translation files have matching keys — <strong>If all keys are present</strong></li><li>❌ WARNING: Translation files do not have matching keys. Missing: […{list of missing keys}] — <strong>If keys do not match</strong></li></ul><p>If I run this now, with the above files, it will output that all the keys are present.</p><p>It’s important to note that the directory that it searches in will be the root directory of the project.</p><h3>Adding a pre-commit hook</h3><p>Now that I have a working script, I’m going to copy the code to a file named pre-commit and store it under the .git/hooks/ directory. This file will have no extension.</p><p>That’s all there is too it. It will know it’s a Python script from the shebang at the top of the file and every time I run git commit ... it will let me know if I have the same keys in all my translation files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*8PHK0XP4si7rHxm5mYnDpg.png" /><figcaption>Correct translations</figcaption></figure><h3>Problems</h3><ul><li>This works fine for me as a solo developer but working on a team would mean I have to have the developer run some pre-configuration before they start. I don’t see this as a bad thing as you could just add a script and some addition to the project README</li><li>It doesn’t enforce any code conventions and just says “Hey, you missed something that might not be too crucial”</li></ul><p>Overall, it was a fun, quick exploration into using Git hooks for the first time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd55976b6903" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Trying out Ruby on Rails in 2023]]></title>
            <link>https://medium.com/@brandynbb96/trying-out-ruby-on-rails-in-2023-bf6e5302fa6d?source=rss-fd6065afcbf7------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf6e5302fa6d</guid>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[framework]]></category>
            <dc:creator><![CDATA[Brandyn Britton]]></dc:creator>
            <pubDate>Tue, 19 Dec 2023 08:34:53 GMT</pubDate>
            <atom:updated>2024-01-16T01:53:07.245Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F2f96QY6XTadKa4LvxuRsQ.jpeg" /></figure><h3>Creating an Application in Ruby on Rails in 2023</h3><p>As an experienced developer with a solid background in many languages and frameworks, I decided to finally embark on the Ruby on Rails journey. Not for any specific reason other than to explore what was once one of the most recommended frameworks to me.</p><p>Here’s my experience setting up an authentication system according to varying tutorials.</p><h3>Beginning the Ruby on Rails Journey</h3><p>For guidance, I followed <a href="https://guides.rubyonrails.org/getting_started.html">this Ruby on Rails tutorial</a>, replacing SQLite with Postgres, which was more in line with my previous experiences.</p><h4>Side Note</h4><p>This isn’t intended to be a tutorial and was written from my notes during my development experience. This is just me exploring a new framework and reflecting on what I had done as it helps me retain information down the track.</p><p>I am sure I’ve missed commands and code and there are bits during my development process where I ventured off into unknown directions only to reset and try again.</p><h4>Initial Setup</h4><p>Embarking on this new path, the first task was to set up Ruby on my mac. Interestingly, macOS comes with an older version of Ruby installed. To update to the latest version, I used Homebrew:</p><pre>brew install ruby</pre><h4>Tackling Ruby Versioning</h4><p>I knew I already had an issue if the OS was using one version of Ruby that was quite outdated. I didn’t want to run into issues where I was running commands from one version, expecting them to work with my project but it was actually using a completely different version of rubyl.</p><p>A quick google told me I could use <a href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=&amp;ved=2ahUKEwjpidTT3ZiDAxVezTgGHZRiBuAQFnoECAoQAQ&amp;url=https%3A%2F%2Fgithub.com%2Frbenv%2Frbenv&amp;usg=AOvVaw0XbF1Kv8dbDoHSebAdCeHL&amp;opi=89978449">rbenv</a> to manage my apps Ruby environment. I again, used Homebrew to install this and set the latest version to 3.2.2 which is the latest version of Ruby as of writing this.</p><pre>brew install rbenv<br>rbenv install 3.2.2</pre><h4>Integrating PostgreSQL with Docker</h4><p>Before creating my project, I noticed that rails requires a database to connect to. I know I’m going to need this at a later date but I want to explore how I modify the database later in the project.</p><p>For now, I will create the database and have it ready to connect to but I won’t immediately set postgresql as the database.</p><pre>docker run --name ruby-tutorial -e POSTGRES_PASSWORD=&lt;password&gt; -d -p 5432:5432 postgres</pre><p>Then, I installed PostgreSQL on my machine using Homebrew:</p><pre>brew install postgresql</pre><p>Next, I created two databases: one for development and another for testing (as required by rails).</p><h4>Rails Project Setup</h4><p>I now wanted to create my first project. My go to prototype project for a new language is a client management project where I can:</p><ul><li>Authenticate access to certain pages</li><li>Add new clients</li><li>Edit clients</li><li>Send messages to clients</li></ul><p>While I won’t be tackling everything in this article, I do want to focus on the authentication side.</p><p>To setup my project, I run the following:</p><pre>rbenv local 3.2.2<br>rails new client-management<br>cd client-management<br>rbenv local 3.2.2<br>bundle install</pre><p>We can break this down into the following steps</p><ol><li>rbenv local 3.2.2 sets the local ruby version to 3.2.2 . I want to do this when creating a ruby project and working in my projects directory</li><li>rails new client-management creates my project. I won’t add the database argument now as I want to explore how to modify this.,</li></ol><h4>Installing Tailwind</h4><p>I wanted to use Tailwind for my styling. Tailwind has a guide already on how to add it to an existing project <a href="https://tailwindcss.com/docs/guides/ruby-on-rails">here</a>.</p><p>I ran the following to install it</p><pre>/bin/bundle add tailwindcss-rails<br>/bin/rails tailwindcss:install</pre><p>On the documentation, I wasn’t able to run the following</p><pre>/bin/dev</pre><p>as it kept throwing the following</p><pre>./bin/dev<br>./bin/dev: line 8: exec: foreman: not found</pre><p>No matter what I did to try and install foreman, nothing seemed to work. I did noticed however, that if I ran the tailwind watch command, everything seems to be working fine. I’m sure I’ll regret not looking into this further but I had already wasted a lot of time trying to get it to work.</p><p>To run the tailwind watch, I ran the following:</p><pre>/bin/rails tailwindcss:watch</pre><h3>Implementing Authentication</h3><p>As I said before, my approach to authentication is to rely on Firebase or Cognito . It’s been many many years since I’ve taken on the responsibility of managing user passwords.</p><p>Rails is a very opinionated system and seems to have all the standard stuff laid out very well so I opted to work with that.</p><p>I followed a few tutorials for this but the one I kept coming back to was <a href="https://dev.to/kevinluo201/building-a-simple-authentication-in-rails-7-from-scratch-2dhb">this one</a> by<a href="https://dev.to/kevinluo201"> kevinluo201</a></p><h4>Building the User Model</h4><p>The process began with generating a User model, reminiscent of model creation in other languages:</p><pre>/bin/rails g model user email password_digest password_confirmation first_name last_name<br>/bin/rails db:migrate</pre><p>I added password_confirmation for a possible future registration feature.</p><p>You’ll noticed that rather than managing the password and password hashing myself, we add the column name password_digest . This, with the has_secure_password attribute in the generated model will ensure that any password input when generating the model will be hashed and salted. We’ll see this in action in a little while when I generate the main user.</p><p>For this to work, I had to add bcrypt as a gem.</p><p>After the model was generated, I added the following to the user model to ensure it was validated correctly when I was adding a user</p><pre># /app/models/user.rb<br>class User &lt; ApplicationRecord<br>  has_secure_password :password, validations: true<br>  validates :email, presence: true, uniqueness: true<br>  validates :first_name, presence: true, uniqueness: false<br>  validates :last_name, presence: true, uniqueness: false<br>end</pre><p>I have the email set to be unique within the database and the first_name and last_name set to be present (required).</p><h4>Generating a User</h4><p>To create a user, I turned to the Rails console. I didn’t want to create a registration form for this application.</p><pre>bin/rails console</pre><pre>newUser = User(email: &quot;&lt;email&gt;&quot;, password: &quot;&lt;password&gt;&quot;, first_name: &quot;&lt;first_name&gt;&quot;, last_name: &quot;&lt;last_name&gt;&quot;)<br>newUser.save()</pre><p>You’ll noticed that the password field is being added as raw text as opposed to adding to the password_digest field that we added in the model. With the previously discussed has_secure_password method, any password we add to the password field when generating a new user will automatically be hashed and salted. This should be taken into consideration if generating a registration page.</p><h4>Routes and Controllers for Authentication</h4><p>Next, I set up the authentication routes and controllers, exploring Ruby’s routing capabilities.</p><p>The first step is to generate the user_sessions controller for both the login and the endpoint to store the users session</p><pre>/bin/rails g controller user_sessions new create destroy</pre><ul><li>new will be the login page</li><li>create will be the endpoint to store the session</li><li>destroy will be the logout</li></ul><pre># app/controllers/user_sessions_controller.rb<br>class UserSessionsController &lt; ApplicationController<br><br>  def new<br>    @user = User.new<br>  end<br><br>  def create<br><br>    # Find the user and check if we can create a session<br>    user = User.find_by(email: params[:user][:email])<br>    if user &amp;&amp; user.authenticate(params[:user][:password])<br>      session[:user_id] = user.id<br>      redirect_to clients_path<br>    else<br>      flash[:alert] = &quot;Invalid username or password&quot;<br>      redirect_to auth_login_url<br>    end<br><br>  end<br><br>  def destroy<br>    session[:user_id] = nil<br>    redirect_to auth_login_url<br>  end<br><br>end</pre><p>There’s three things going on here:</p><ol><li>new is creating the user object to be used in the view</li><li>create is finding the user object by the provided email address and password (from the login form we’ll be creating) and verifying that it’s valid If valid, we store the user ID in the session. It’s also important to note the flash[:alert] on fail. This will be used to show the error message to the user on redirecting back to the login page.<br>Also</li><li>destroy is removing the user session variable and returning to the login page.</li></ol><p>I then modified my routes.rb file to match the process I had setup just before.</p><pre># config/routes.rb<br>Rails.application.routes.draw do<br>  get &#39;auth/login&#39;, to: &quot;user_sessions#new&quot;<br>  post &#39;auth/create&#39;, to: &quot;user_sessions#create&quot;<br>  get &#39;auth/logout&#39;, to: &quot;user_sessions#destroy&quot;<br>  # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html<br><br>  # Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.<br>  # Can be used by load balancers and uptime monitors to verify that the app is live.<br>  get &quot;up&quot; =&gt; &quot;rails/health#show&quot;, as: :rails_health_check<br><br>end</pre><p>This creates my end points. I also wanted to explore modifying the routes so I mapped the user_sessions to point to auth instead.</p><h4>Crafting the Authentication View</h4><p>The next step was to create the login page. This was very basic and was just an ugly old centre form.</p><pre><br># app/views/user_sessions/new.html.erb<br>&lt;%  <br>  input_classes = &quot;block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-inset focus:ring-indigo-600  sm:text-sm sm:leading-6&quot;  <br>%&gt;  <br>  <br>&lt;div class=&quot;mx-auto w-screen h-screen p-0 bg-slate-600 flex items-center justify-center&quot;&gt;  <br>  &lt;div class=&quot;p-10 w-4/6 sm:w-2/6 bg-white rounded-md shadow-lg&quot;&gt;  <br>    &lt;div class=&quot;flex flex-col items-center justify-center&quot;&gt;  <br>      &lt;h1 class=&quot;text-2xl&quot;&gt;Client Management&lt;/h1&gt;  <br>      &lt;h2 class=&quot;mt-2&quot;&gt;Sign In&lt;/h2&gt;  <br>    &lt;/div&gt;  <br>    &lt;% flash.each do |type, msg| %&gt;  <br>      &lt;div class=&quot;bg-red-300 text-red-800 rounded-md p-4 mt-3&quot;&gt;  <br>        &lt;%= msg %&gt;  <br>      &lt;/div&gt;  <br>    &lt;% end %&gt;  <br>  <br>    &lt;%= form_with model: @user, url: auth_create_path do |form| %&gt;  <br>  <br>      &lt;div class=&quot;mt-4 grid grid-cols-1 gap-x-6 gap-6-8 sm:grid-cols-1 &quot;&gt;  <br>  <br>        &lt;!-- Email Address --&gt;  <br>        &lt;div class=&quot;flex flex-col w-full&quot;&gt;  <br>          &lt;%= form.label :email %&gt;  <br>          &lt;%= form.email_field :email, :class =&gt; input_classes %&gt;  <br>        &lt;/div&gt;  <br>  <br>        &lt;!-- Password --&gt;  <br>          &lt;div class=&quot;flex flex-col mt-2&quot;&gt;  <br>            &lt;%= form.label :password %&gt;  <br>            &lt;%= form.password_field :password, :class =&gt; input_classes %&gt;  <br>          &lt;/div&gt;  <br>  <br>          &lt;!-- Login Button --&gt;  <br>          &lt;div class=&quot;w-full mt-2&quot;&gt;  <br>            &lt;button class=&quot;p-3 w-full text-white bg-purple-400 hover:bg-purple-300 rounded-md transition-colors&quot;&gt;  <br>              &lt;%= form.submit &#39;Login&#39; %&gt;  <br>            &lt;/button&gt;  <br>          &lt;/div&gt;  <br>        &lt;/div&gt;  <br>    &lt;% end %&gt;  <br>    &lt;/div&gt;  <br>  &lt;/div&gt;<br><br></pre><p>The formatting and syntax of the page will be something to get used to but from creating this page:</p><ul><li>&lt;%= .. &gt; renders the ruby code</li><li>&lt;% .. &gt; executes the ruby code</li><li>Any variables set in the controller are accessible by the view (no more Model or ViewBag )</li><li>There’s a lot of weird behind the scenes things that make things easier if you know what they are and how to use them (i.e. form_with ). I’m sure I’ve missed 10 in this example alone that could be used.</li><li>The use of end is very annoying but I’m glad my IDE handle it</li></ul><h4>Authenticated Landing Page</h4><p>Now that I have built my login flow, it’s time to build the page I land on when authenticated. For me, that will be my clients view. As I did before, I want to generate the clients_controller</p><pre>/bin/rails g controller clients </pre><p>Looking at the controller code, I wanted to make sure that my user was logged in before they were able to access the page. I had set the user session variable so I know I needed to check that.</p><p>What I didn’t want to do was write the same logic for every page. I modified the ApplicationController to have a function that checks if we have a current user.</p><pre>class ApplicationController &lt; ActionController::Base<br><br>  helper_method :current_user<br><br>  def current_user<br>    @current_user ||= session[:user_id] &amp;&amp; User.find_by(id: session[:user_id])<br>  end<br><br>end</pre><p>Any controller extending from this controller will now have access to this method. I can now modify my clients_controller to use this.</p><pre># app/controllers/clients_controller.rb<br>class ClientsController &lt; ApplicationController<br>  def index<br>    if current_user.blank?<br>      redirect_to auth_login_path<br>    end<br>  end<br>end</pre><p>I now want to modify my route to point the root of the application to the clients controller. If that’s not authenticated, I should be redirected to the login page. Otherwise, I flow to the generated index file.</p><pre>Rails.application.routes.draw do<br>  get &#39;auth/login&#39;, to: &quot;user_sessions#new&quot;<br>  post &#39;auth/create&#39;, to: &quot;user_sessions#create&quot;<br>  get &#39;auth/logout&#39;, to: &quot;user_sessions#destroy&quot;<br>  # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html<br><br>  # Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.<br>  # Can be used by load balancers and uptime monitors to verify that the app is live.<br>  get &quot;up&quot; =&gt; &quot;rails/health#show&quot;, as: :rails_health_check<br><br>  # Defines the root path route (&quot;/&quot;)<br>  root &quot;clients#index&quot;<br><br>end</pre><h3>Reflecting on the Journey</h3><p>Stepping into Ruby on Rails has been a fascinating experience. The transition, while filled with unique challenges, has been enriched by the skills and knowledge from my background in other programming languages. This exploration into Ruby on Rails is just the beginning of a broader journey in software development.</p><p>While I will struggle with the syntax a lot as it’s quite different from the languages I’m used to, I think the heavy opinions on how things are done will allow me to rapidly create an application that I know will work out of the box everytime.</p><p>I’m also hoping it makes me a better engineer as I understand what makes Ruby good and what its drawbacks are compared to my standard approach of whipping up an Express or .NETAPI server with a React frontend and creating MVPs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf6e5302fa6d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>