<?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 Guillermo Aguirre on Medium]]></title>
        <description><![CDATA[Stories by Guillermo Aguirre on Medium]]></description>
        <link>https://medium.com/@guillermoap?source=rss-945e5b425481------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*s6zO7lnn89HBfNihm99SXQ.png</url>
            <title>Stories by Guillermo Aguirre on Medium</title>
            <link>https://medium.com/@guillermoap?source=rss-945e5b425481------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 09:58:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@guillermoap/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[Defining Seniority in Tech]]></title>
            <link>https://guillermoap.medium.com/defining-seniority-in-tech-bd4b52628575?source=rss-945e5b425481------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd4b52628575</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[work-life-balance]]></category>
            <category><![CDATA[career-development]]></category>
            <category><![CDATA[personal-growth]]></category>
            <dc:creator><![CDATA[Guillermo Aguirre]]></dc:creator>
            <pubDate>Mon, 06 Oct 2025 12:32:06 GMT</pubDate>
            <atom:updated>2025-10-06T12:32:06.970Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uuYRVeRnC3RWd4JKSpnlVA.png" /><figcaption>Kamisaka Sekka</figcaption></figure><p>I feel like in tech there is this over eagerness to define clear boundaries for seniority, but what actually defines it? Experience? Skill? A mix of both? I feel seniority is primarily driven by experience, but the determining factor is having the skills to have learned the right things from one’s past experience, not just having years under your belt.</p><p>You might have faced the same issue several times in the past, but if you are unable to draw learnings from it so the next time you face a similar issue you feel comfortable while doing so, I would qualify your seniority in the lower end of the spectrum. If you still offload the complexity of resolving problems to whom you deem your more experienced peers, then your seniority is at least a level below in whatever scale you use to measure it. None of those are bad things, they are extremely common situations you must have in order to grow in your professional career.</p><p>Seniority is more related to the process you follow when working and how you carry yourself in the face of adversity than anything else. I would even dare to say, sometimes it is more of a gut feeling, rather than a heuristic you can measure. So, how do you grow into more senior positions over time?</p><p>Growth in Engineering, Design, or any creative problem-solving job is mandated by one’s ability to tackle a problem head on and focusing on the process more than the solution itself. It doesn’t matter if you have the help of a colleague or do it by yourself. It’s developing a kind of sixth sense for addressing problems.</p><p>In my experience, curiosity, handling anxiety and willingness to face the unknown is the key differentiating factor in a person’s growth. In five years’ time, a junior with those qualities will be far more of a ‘senior’ than a peer without it, while being in the same experience bracket.</p><p>This conflicts with the usual way of defining growth in companies. A career path can’t be ambiguous. It has to have certain measurable metrics so you can be unbiasedly judged against them. While that might be HR’s desired approach, I think there are some caveats with it.</p><p>Trying to pin down and define something inherently ambiguous will never reach a good and fair result, because you are starting from a false premise. The tangible objectives that compose a career path should be just one part of the seniority categorization. If I may quote my calculus textbooks from university, it’s a necessary, but not sufficient condition.</p><p>More telling metrics could be ‘How was working with this person in X project?’, ‘Did they take on challenges and solved them primarily on their own?’, ‘Did they contribute something else other than pure product work to the team? How valuable was it?’. Depending on your current seniority, these questions gain or lose weight. While making non-product contributions to the team is a worthwhile goal for a junior, I wouldn’t expect them to make such contributions, nor hold it against them if, in fact, they don’t. I would categorize those unexpected nice-to-haves as the hints that point towards special individuals, who will probably have non-linear growth in their careers.</p><p>You might be thinking that the examples above are actually measurable metrics, but to me they are feelings around completed work. They focus more on the how, rather than the actual end result. They focus more on the process which is the key telling sign of seniority and that, you can feel, not measure.</p><p>Nailing the seniority definition is extremely hard. I think a good system places the focus on both intrinsic qualities (initiative, independence, calm resolve in stressful situations, curiosity) and extrinsic metrics (years of experience, completed projects). As I mentioned before, you can’t have one without the other. The challenge is to strike the right balance between the two.</p><p>So next time you evaluate a worker, don’t assume everything based on the number of years they have professionally worked. Try and look at other aspects of that person’s work than just the common measurements for performance. You might be missing out on extremely talented folk who deserve a shot. Seniority isn’t just about the years, it’s about the journey and the learnings through them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd4b52628575" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making Tables Work with Turbo]]></title>
            <link>https://guillermoap.medium.com/making-tables-work-seamlessly-with-turbo-164be2c94a40?source=rss-945e5b425481------2</link>
            <guid isPermaLink="false">https://medium.com/p/164be2c94a40</guid>
            <category><![CDATA[educational]]></category>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[turbo]]></category>
            <category><![CDATA[datatables]]></category>
            <dc:creator><![CDATA[Guillermo Aguirre]]></dc:creator>
            <pubDate>Mon, 23 Jun 2025 11:31:54 GMT</pubDate>
            <atom:updated>2025-06-23T11:31:54.401Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PASaEyUBK_r4OSgwnlwecw.png" /><figcaption>Illustration by <a href="https://mixkit.co/@supriyabhonsle/">Supriya Bhonsle</a> on <a href="https://mixkit.co/free-stock-art/woman-falling-through-the-cracks-72/">Mixkit</a></figcaption></figure><p>Since Hotwire replaced jQuery as Rails’ default frontend tooling (you will not be missed), I’ve used it on plenty of projects. It fits Rails’ philosophy perfectly: hit the ground running, reach a working product quickly. But step outside the happy path, and you hit uncharted territory fast.</p><p>Last week I wanted to build a dynamic table with Turbo: add rows, edit in place, delete as needed. Simple functionality that should be straightforward with Turbo. And it is, mostly. But there are quirks that can eat up hours if you don’t know about them.</p><p>Here’s how to build Turbo tables that actually work, plus the gotchas I wish I’d known upfront.</p><h3>Hitting the wall</h3><p>You might be thinking: <em>What do you mean quirks? I’ve done this myself a thousand times and it works fine.</em> And you’d be right. This is such a common Turbo pattern that the <a href="https://turbo.hotwired.dev/handbook/frames">official handbook</a> uses a nearly identical example.</p><p>But here’s where things get interesting. Let’s start with the standard approach and see where the problems emerge.</p><p>We’ll build a simple article index with a table that updates automatically when you add new records. Adding an article should automatically update the table to show the newly created record as the first row. I’ll skip the Tailwind styling to focus on the functionality:</p><pre>class ArticlesController &lt; ApplicationController<br>  def index<br>    @articles = Article.all<br>  end<br><br>  def create<br>    @article = Article.new(params.expect(article: %w[name author]))<br>    if @article.save<br>      respond_to do |format|<br>        format.turbo_stream do<br>          render turbo_stream: turbo_stream.prepend(<br>           :articles_table, <br>           partial: &#39;article_row&#39;,<br>           locals: { article: @article }<br>         )<br>        end<br>      end<br>    else<br>      render :new, status: :unprocessable_entity<br>    end<br>  end<br>end</pre><pre>&lt;h1&gt;Articles&lt;/h1&gt;<br>&lt;%= turbo_frame_tag :new_article do %&gt;<br>  &lt;%= link_to &quot;New Article&quot;, new_article_path %&gt;<br>&lt;% end %&gt;<br><br>&lt;table&gt;<br>  &lt;thead&gt;<br>    &lt;tr&gt;<br>      &lt;th&gt;Name&lt;/th&gt;<br>      &lt;th&gt;Author&lt;/th&gt;<br>    &lt;/tr&gt;<br>  &lt;/thead&gt;<br>  &lt;tbody&gt;<br>    &lt;%= turbo_frame_tag :articles_table do %&gt;<br>      &lt;% @articles.each do |article| %&gt;<br>        &lt;%= render &quot;article_row&quot;, article: article %&gt;<br>      &lt;% end %&gt;<br>    &lt;% end %&gt;<br>  &lt;/tbody&gt;<br>&lt;/table&gt;</pre><pre>&lt;%= turbo_frame_tag :new_article do %&gt;<br> &lt;%= render &quot;form&quot;, article: @article %&gt;<br>&lt;% end %&gt;</pre><p>When we add a new article, we would expect it to get prepended to our articles_table frame, so the first row of the table. Instead it renders outside of it. Why?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RqJGMSqfiNPi7Q8MJ9VCKA.png" /></figure><p>The funny thing is turbo is technically working fine, since it finds the frame and prepends the row. The problem is the frame is rendered outside of the table structure. This happens because Turbo wraps the content inside a turbo frame with the turbo-frame tag, which makes the table render incorrectly.</p><pre>&lt;turbo-frame id=&quot;articles_table&quot;&gt;...&lt;/turbo-frame&gt;<br>&lt;table&gt;...&lt;/table&gt;</pre><p>If we refresh we can see that it renders correctly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*6ESnW12_CuqELvQCeEKIrg.png" /></figure><p>Let’s fix that shall we?</p><h3>Fixing our table</h3><p>In order for the table to render properly and for Turbo to know which item it has to modify we have to work with direct IDs and not the turbo-frame tags.</p><pre>&lt;h1&gt;Articles&lt;/h1&gt;<br>&lt;%= turbo_frame_tag :new_article do %&gt;<br>  &lt;%= link_to &quot;New Article&quot;, new_article_path %&gt;<br>&lt;% end %&gt;<br><br>&lt;table&gt;<br>  &lt;thead&gt;<br>    &lt;tr&gt;<br>      &lt;th&gt;Name&lt;/th&gt;<br>      &lt;th&gt;Author&lt;/th&gt;<br>    &lt;/tr&gt;<br>  &lt;/thead&gt;<br>  &lt;tbody id=&quot;articles_table&quot;&gt;<br>    &lt;% @articles.each do |article| %&gt;<br>      &lt;%= render &quot;article_row&quot;, article: article %&gt;<br>    &lt;% end %&gt;<br>  &lt;/tbody&gt;<br>&lt;/table&gt;</pre><p>So by removing the turbo frame and adding the articles_table id directly to the tbody tag it works properly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*PbWJDy2-kFGi5ZRILd5NJg.png" /></figure><h3>Editing in-place</h3><p>Editing the row in-place has the same problem with turbo frames. The solution is to use direct IDs the same way we did for the table, but for each row. To do that we will use the dom_id Rails helper which will autogenerate a unique ID for each row based on the record we pass it.</p><p>We want to replace the table row with the edit form, once we update the record, replace the row back to the normal table row. To achieve this we will modify the edit and update actions to handle the turbo stream requests.</p><pre>class ArticlesController &lt; ApplicationController<br>  def update<br>    article = Article.find(params[:id])<br>    if article.update(article_params)<br>      respond_to do |format|<br>        format.turbo_stream do<br>          render turbo_stream: turbo_stream.replace(<br>           article, <br>           partial: &#39;article_row&#39;, <br>           locals: { article: @article }<br>         )<br>        end<br>      end<br>    else<br>      redirect_to :index<br>    end<br>  end<br><br>  def edit<br>    article = Article.find(params[:id])<br>    respond_to do |format|<br>      format.html { render :edit }<br>      format.turbo_stream do<br>        render turbo_stream: turbo_stream.replace(<br>         article, <br>         partial: &#39;article_row_edit&#39;, <br>         locals: { article: }<br>       )<br>      end<br>    end<br>  end<br>end</pre><pre>&lt;tr id=&quot;&lt;%= dom_id(article) %&gt;&quot;&gt;<br>  &lt;td&gt;&lt;%= article.name %&gt;&lt;/td&gt;<br>  &lt;td&gt;&lt;%= article.author %&gt;&lt;/td&gt;<br>  &lt;td&gt;&lt;%= link_to &quot;Edit&quot;, edit_article_path(article, format: :turbo_stream) %&gt;&lt;/td&gt;<br>&lt;/tr&gt;</pre><pre>&lt;tr&gt;<br>  &lt;%= form_with model: article do |form| %&gt;<br>    &lt;td&gt;&lt;%= form.text_field :name, placeholder: &quot;Name&quot; %&gt;&lt;/td&gt;<br>    &lt;td&gt;&lt;%= form.text_field :author, placeholder: &quot;Author&quot; %&gt;&lt;/td&gt;<br>    &lt;td class=&quot;actions&quot;&gt;<br>      &lt;%= form.submit &quot;Save&quot; %&gt;<br>      &lt;%= link_to &quot;Cancel&quot;, articles_path %&gt;<br>    &lt;/td&gt;<br>  &lt;% end %&gt;<br>&lt;/tr&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*VaPQJndnJabs-AI_FgR5og.png" /></figure><p>Sadly this won’t work. When we click Save nothing happens because again the form gets rendered incorrectly. The form is not inside the row tag, so the submit action is not triggered</p><pre>&lt;form&gt;...&lt;/form&gt;<br>&lt;tr&gt;...&lt;/tr&gt;</pre><p>To fix this we have to use <a href="https://www.w3schools.com/html/html_form_attributes_form.asp">html5 remote form</a> capabilities, so we link the input fields outside the form to it.</p><pre>&lt;tr id=&quot;&lt;%= dom_id(article) %&gt;&quot;&gt;<br>  &lt;% form_id = &quot;#{dom_id(article)}_form&quot; %&gt;<br>  &lt;%= form_with model: article, local: false, html: { id: form_id } do |form| %&gt;<br>    &lt;%= hidden_field_tag :_method, :patch, form: form_id %&gt;<br>    &lt;td&gt;&lt;%= form.text_field :name, placeholder: &quot;Name&quot;, form: form_id %&gt;&lt;/td&gt;<br>    &lt;td&gt;&lt;%= form.text_field :author, placeholder: &quot;Author&quot;, form: form_id %&gt;&lt;/td&gt;<br>    &lt;td class=&quot;actions&quot;&gt;<br>      &lt;%= form.submit &quot;Save&quot;, form: form_id %&gt;<br>      &lt;%= link_to &quot;Cancel&quot;, articles_path, class: &quot;btn btn-sm&quot; %&gt;<br>    &lt;/td&gt;<br>  &lt;% end %&gt;<br>&lt;/tr&gt;</pre><p>Once we have the inputs mapped to the form directly, the submit works as expected and we have our in-place editing!</p><p>Here’s a full preview of the dynamic behavior we achieved on our table:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GPasvyqZHMWvy8ToczMZxw.gif" /></figure><p>These approaches should help you avoid the quirks I found when combining tables with Turbo. If you found this useful, you can find more articles <a href="https://www.guillermoaguirre.dev/articles">here!</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=164be2c94a40" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Turning Helix into an IDE with the help of Zellij]]></title>
            <link>https://guillermoap.medium.com/turning-helix-into-an-ide-with-the-help-of-zellij-03c4e52524da?source=rss-945e5b425481------2</link>
            <guid isPermaLink="false">https://medium.com/p/03c4e52524da</guid>
            <category><![CDATA[zellij]]></category>
            <category><![CDATA[helix]]></category>
            <category><![CDATA[cli]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[terminal]]></category>
            <dc:creator><![CDATA[Guillermo Aguirre]]></dc:creator>
            <pubDate>Mon, 16 Jun 2025 18:36:30 GMT</pubDate>
            <atom:updated>2025-06-16T18:36:30.600Z</atom:updated>
            <content:encoded><![CDATA[<p>A while ago I <a href="https://www.guillermoaguirre.dev/articles/taking-the-plunge-into-living-in-the-terminal">wrote about</a> how I switched to doing basically everything in the terminal. I kept that post pretty high-level since I didn’t want to get lost in the technical weeds. But now? Let’s dive into those config details.</p><p>For people that just want to get the config files, they are available <a href="https://github.com/guillermoap/public-dotfiles">here</a>.</p><h3>Helix</h3><p>The reason I choose helix was its default features. It has a very nice fuzzy search and sane and intuitive configs. One of those features is LSP support. To setup autocomplete and syntax highlighting you just need to setup your languages.toml file.</p><p>Just a disclaimer, the examples will revolve around ruby since it’s what I use the most when developing.</p><pre>[language-server.ruby-lsp]<br>command = &quot;ruby-lsp&quot;<br>config = { diagnostics = true, formatting = true }<br><br>[[language]]<br>name = &quot;ruby&quot;<br>language-servers = [&quot;ruby-lsp&quot;]<br>auto-format = true</pre><p>On top of easy LSP setup, the config for the editor itself is also very simple. Everything is done via a TOML file. My config file is less than 50 lines long and that includes some custom commands I will share down the line. My basic config just to set how I want the editor to behave is the following.</p><pre>[editor]<br>line-number = &quot;relative&quot;<br>mouse = true<br>end-of-line-diagnostics = &quot;hint&quot;<br><br>[editor.cursor-shape]<br>insert = &quot;bar&quot;<br>normal = &quot;block&quot;<br>select = &quot;underline&quot;<br><br>[editor.file-picker]<br>hidden = false<br><br>[editor.lsp]<br>display-inlay-hints = true<br>display-messages = true<br><br>[editor.inline-diagnostics]<br>cursor-line = &quot;error&quot;<br><br>[editor.soft-wrap]<br>enable = true</pre><p>Simple and readable right? If you have any doubts you can check the <a href="https://docs.helix-editor.com/editor.html">docs</a> which are very detailed.</p><p>Other than that, it comes with the usual bells and whistles of a terminal code editor, all except some major issues I have with it that I will explain.</p><p>It doesn’t support a plugin system, <a href="https://github.com/helix-editor/helix/discussions/3806">*yet</a>.* That means that if you want something that’s not yet implemented you have to either do it yourself, find a workaround with some of the things that I’m going to show next, or just learn to live without it.</p><p>Also doesn’t support external live code reloading. So if a linter or something modifies your code outside of helix, you will have to run the manual :reload command to see those changes in the buffer.</p><p>Although it has a very fast and incredible file-picker with fuzzy search, helix doesn’t support any type for file-tree with file system control. I miss the file tree specially with big projects, where exploring the codebase since you may not be familiar with it, is a must.</p><p>The final big missing feature I miss the most is global search &amp; replace. You can global search very efficiently and fast, but there is no way of modifying multiple files at the same time.</p><p>I will show my workarounds for the last two in the next part.</p><p>If you are interested and want to be involved in the development of helix, here’s a list of good features that have long standing open PRs/issues:</p><ul><li><a href="https://github.com/helix-editor/helix/pull/3958">https://github.com/helix-editor/helix/pull/3958</a></li><li><a href="https://github.com/helix-editor/helix/pull/9838">https://github.com/helix-editor/helix/pull/9838</a></li></ul><h3>Zellij</h3><p>Zellij in my setup journey is the successor of <a href="https://github.com/tmux/tmux">tmux</a>. It basically gives you a layer on top of any terminal app you use, to be able to configure and have some extra features.</p><p>Zellij in particular has very verbose and simple configs together with <a href="https://zellij.dev/news/floating-panes-tmux-mode/">floating panes and a tmux mode</a>. This meant I could very easily make the switch from tmux without the need of new commands or muscle memory. I just <a href="https://www.hostinger.com/tutorials/tmux-config#Change_the_Default_Prefix">prefix</a> my way in zellij the same way I did in tmux.</p><p>Zellij being highly customizable makes it the ideal partner to bridge the gap helix has, in order to have those key missing features.</p><h3>File picker with yazi</h3><p>The first workaround I’m going to explain is getting a floating pane to open yazi, and then be able to open a file within helix.</p><p>The main idea is to be able to explore the file structure of a project and open a specific file in helix. I just followed <a href="https://yazi-rs.github.io/docs/tips/#helix-with-zellij">yazi’s own docs</a> and it worked perfectly. My only change is that I wanted to have it under space + q instead of ctrl.</p><p>If you want to replicate it, my config is the following.</p><pre>[keys.normal.space.q]<br>q = &quot;:sh zellij run -c -f -x 10% -y 10% --width 80% --height 80% -- bash ~/.config/helix/yazi-picker.sh open&quot; # Open the file(s) in the current window<br>v = &quot;:sh zellij run -c -f -x 10% -y 10% --width 80% --height 80% -- bash ~/.config/helix/yazi-picker.sh vsplit&quot; # Open the file(s) in a horizontal pane<br>s = &quot;:sh zellij run -c -f -x 10% -y 10% --width 80% --height 80% -- bash ~/.config/helix/yazi-picker.sh hsplit&quot; # Open the file(s) in a vertical pane</pre><p>There’s currently an <a href="https://github.com/helix-editor/helix/pull/3958">open PR</a> to add custom labels to commands that would make the command prettier when appearing in the space modal, so when that gets merged we can stop worrying about appearances.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5TqIiHyLT7tJfToWAcx9Gw.gif" /></figure><h3>Global Search &amp; Replace with serpl</h3><p>After having configured the yazi floating pane I started to think what else could I do with this type of workaround. After some trial and error I implemented my own search &amp; replace using <a href="https://github.com/yassinebridi/serpl">serpl</a>.</p><p>This workaround actually works fine opening a floating pane manually and running serpl in it, but I wanted something a little more streamlined that also refreshed the buffers after the replacement.</p><p>Using the same concept as with yazi, I created a serpl-replace script in ~/.config/helix/serpl-replace.sh with the following code.</p><pre>#!/usr/bin/env bash<br><br>serpl<br>exit_code=$?<br><br>if [[ $exit_code -eq 0 ]]; then<br>    zellij action toggle-floating-panes<br>    zellij action write-chars &quot;:reload-all&quot;<br>    zellij action write 13 # send &lt;Enter&gt; key<br>fi</pre><p>The script itself is extremely simple but runs the reload-all command. This means that if you have unsaved changes you will lose them, so be careful with that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hbDXNKt_dPHUFAtQ_-pzhA.gif" /></figure><h3>Alternatives</h3><p>While writing this I found several projects that aim to fix the same issues I see in helix, a lot of them in a very similar way. I will try them out in the future to see if I make the switch.</p><p>Anyways, here’s the list of all the notable alternatives I could find:</p><ul><li><a href="https://github.com/luccahuguet/yazelix">yazelix</a></li><li><a href="https://github.com/josephschmitt/zide">zide</a></li><li><a href="https://github.com/quantonganh/helix-wezterm">helix-wezterm</a></li><li><a href="https://github.com/usagi-flow/evil-helix">evil-helix</a></li></ul><p>Be sure to check them out!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=03c4e52524da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Taking the Plunge Into Living in the Terminal]]></title>
            <link>https://guillermoap.medium.com/taking-the-plunge-into-living-in-the-terminal-0132b7a22c6f?source=rss-945e5b425481------2</link>
            <guid isPermaLink="false">https://medium.com/p/0132b7a22c6f</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[zellij]]></category>
            <category><![CDATA[setup]]></category>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[helix]]></category>
            <dc:creator><![CDATA[Guillermo Aguirre]]></dc:creator>
            <pubDate>Mon, 06 Jan 2025 17:44:14 GMT</pubDate>
            <atom:updated>2025-01-06T17:45:07.473Z</atom:updated>
            <content:encoded><![CDATA[<p>Ever since I started working professionally as a developer I’ve used the terminal and was always eager to learn and unlock its full potential. Over time I learned quite a bit of tricks and gradually moved a lot of my development setup to it. Everything felt good, comfortable and efficient; everything except the editor. Using vim or its cousins other than to edit commit messages always felt like a hassle, so I never fully picked it up, until now.</p><p>A little backstory would help paint the picture of what I feel is a very familiar scenario for some. I started my development journey using Eclipse, NetBeans and hated them with a passion. They felt clunky and like a very complicated Swiss army knife, when all I wanted to do was hammer a nail. I thought to myself that It should be a very fast and straightforward experience. That’s where Sublime Text 2 came into my life. Wow. I could just open the app and start writing code, and it looked beautiful! This is also the time when I fell in love with the Monokai theme and realized the world of customization that existed.</p><p>I paired Sublime with the Terminal app in macOS, and I was running my local development servers and postgres databases out of it with blazing speed and comfort. As I got more comfortable with git I ditched GitHub Desktop and added that to the mix. Before I knew it the only thing I wasn’t running in the terminal was the editor. After a while I started down the rabbit whole of terminal multiplexers and started running tmux as my daily driver.</p><p>Other than eventually migrating from Sublime to VSCode my setup remained practically the same until this year, which is the reason I’m writing this.</p><p>I’m very picky with my editor, I want to have files and nothing else bothering on the screen. I had configured VSCode to dim most of the bright colors, remapped most hotkeys that triggered functionalities I never used, cleanup the sidebar. I had it pretty barebones and I thought that moving to something like vim wouldn’t be that big of a change since I already was using the vim plugin for VSCode. So when I changed jobs and received a fresh laptop, I finally mustered the courage and ditched VSCode for <a href="https://github.com/helix-editor/helix">helix</a>.</p><p>I would describe helix as a vim-like editor that has a lot of useful and simple configs and functionalities out of the box. The main difference is that it follows Kakoune’s philosophy of selection ⇒ action instead of vim’s action ⇒ selection. For example, in helix to delete a word you can do wd contrasting that to vim where that is actually dw. If you’re coming from vim already, that would totally change how you code, but starting fresh I’ve gotten used to it, and actually prefer it now.</p><p>Something I greatly appreciated was language-servers support. To setup ruby with auto-formatting and the ruby-lsp I just had to add this to the languages.toml file. No Lua or any programming required.</p><pre>[[language]]<br>name = &quot;ruby&quot;<br>formatter = { command = &quot;rubocop&quot;, args = [&quot;--stdin&quot;, &quot;foo.rb&quot;, &quot;-A&quot;, &quot;--stderr&quot;, &quot;--fail-level&quot;, &quot;fatal&quot;, &quot;--server&quot;] }<br>language-servers = [&quot;ruby-lsp&quot;]<br>auto-format = true</pre><p>On top of helix I changed from tmux to <a href="https://github.com/zellij-org/zellij">zellij</a>. This change was prompted mainly because of how cryptic I always felt the tmux configuration was and the amazing feature of <a href="https://zellij.dev/tutorials/basic-functionality/#using-floating-panes">floating panes</a> which paired wonderfully with having helix as my editor. It also comes with a tmux mode, so I didn’t have to train my muscle memory and could keep my old tmux keybindings (I use ctrl+a as my prefix).</p><p>I never liked the integrated terminal being pinned at the bottom in every editor I used, so having it be in the middle and to be able to move it around and resize it, is an amazing improvement.</p><p>Lastly but not less important, I finally moved on from Monokai to <a href="https://rosepinetheme.com/">Rosè Pine</a> and was able to set it up both for helix and zellij, achieving a really homogeneous look.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*BdJ_2apYwYUsfBJVYThytg.gif" /><figcaption>Example of helix paired with zellij</figcaption></figure><p>Although I’m very happy with the final result, both in functionality and looks there’s some shortcomings, mainly from helix. It currently doesn’t support any type of file tree, nor global search and replace, so I’ve had to adapt those flows using other amazing tools such as <a href="https://github.com/sxyazi/yazi">yazi</a> and <a href="https://github.com/yassinebridi/serpl">serpl</a>.</p><p>If you like the setup, stay tuned as I’m currently working on a more detailed write up on my config and how to achieve a full IDE experience with helix and zellij.</p><p><em>For more articles checkout: </em><a href="https://www.guillermoaguirre.dev/articles">https://www.guillermoaguirre.dev/articles</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0132b7a22c6f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rethinking Company Loyalty: Balancing Personal Growth and Organizational Commitment]]></title>
            <link>https://guillermoap.medium.com/rethinking-company-loyalty-balancing-personal-growth-and-organizational-commitment-1057dbea6578?source=rss-945e5b425481------2</link>
            <guid isPermaLink="false">https://medium.com/p/1057dbea6578</guid>
            <category><![CDATA[wellness]]></category>
            <category><![CDATA[career-change]]></category>
            <category><![CDATA[work-life-balance]]></category>
            <dc:creator><![CDATA[Guillermo Aguirre]]></dc:creator>
            <pubDate>Mon, 03 Jul 2023 19:39:43 GMT</pubDate>
            <atom:updated>2023-07-03T19:39:43.703Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KFG1UnM2JgWbmiCFJGUDoQ.png" /><figcaption>Illustration by <a href="https://mixkit.co/@supriyabhonsle/">Supriya Bhonsle</a> on <a href="https://mixkit.co/free-stock-art/person-overwhelmed-by-a-mountain-of-paperwork-70/">Mixkit</a></figcaption></figure><p>In discussions about company loyalty, a topic that has frequently emerged among friends and colleagues, I’ve come to realize that being loyal to a company can be seen as a positive attribute, increasing the chances of promotions and opportunities. While this notion holds some truth, it begs the question: <strong>should unwavering loyalty be the sole acceptable behavior?</strong> I believe there’s more to consider.</p><h3>Exploring the Dynamics of a Capitalist Society</h3><p>In our capitalist society, companies and individuals engage in an exchange of goods and services, driven by a predetermined return – our salary. While I won’t delve into the merits of capitalism itself, applying this principle to companies and careers means we work for organizations and provide them with our skills in exchange for compensation. In turn, companies may convert our contributions into profits. Both parties understand the rules of this game.</p><p>However, what happens when the situation changes? Whether it’s a sudden influx of responsibilities, a shift in the nature of our work, or an altered professional environment, blindly adhering to the status quo without seeing a corresponding return seems questionable. Should we silently endure, hoping that our efforts, if we’re loyal and excel at our jobs, will eventually be recognized and rewarded? While occasional challenges are to be expected, enduring long periods without appropriate acknowledgment or compensation can be detrimental to the individual, benefiting only the company.</p><h3>Prioritizing Self and Career Aspirations</h3><p>In our professional journeys, we must prioritize ourselves. What do we truly value? It begins with considering our aspirations, motivations, and what we seek from our careers or professions. Balancing these personal drivers with the practical reality that we all have financial obligations helps us assess whether our current job aligns with our needs. If the answer is a resounding “no,” it’s perfectly acceptable to begin exploring other options. Shedding any guilt associated with seeking new opportunities is crucial; after all, taking care of ourselves enables us to better contribute to the organizations we join.</p><h3>Conclusion</h3><p>In reevaluating company loyalty, we find it essential to strike a balance between personal growth and organizational commitment. While loyalty has its merits, blindly clinging to an unsatisfying situation can hinder our professional and personal development. By prioritizing our own well-being, considering our aspirations, and unapologetically seeking fulfilling career paths, we can forge a path towards greater fulfillment and success. Remember, you are your best advocate, and there’s no need to feel guilty for pursuing new opportunities that better align with your goals and values.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1057dbea6578" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rails Multiple Databases Gotchas]]></title>
            <link>https://guillermoap.medium.com/rails-multiple-databases-gotchas-a9fddbd5f545?source=rss-945e5b425481------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9fddbd5f545</guid>
            <category><![CDATA[data-consistency]]></category>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[multiple-database]]></category>
            <dc:creator><![CDATA[Guillermo Aguirre]]></dc:creator>
            <pubDate>Mon, 12 Jun 2023 15:05:11 GMT</pubDate>
            <atom:updated>2023-06-12T15:05:11.453Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B0Rj458t9YCyMzaHgL2WpA.jpeg" /><figcaption>Image by <a href="https://www.freepik.com/free-vector/hand-drawn-flat-design-sql-illustration_22896758.htm#query=illustrations%20ruby%20on%20rails&amp;position=0&amp;from_view=search&amp;track=ais">Freepik</a></figcaption></figure><p>In Rails 6, we were introduced to the amazing feature of handling multiple databases, streamlining the process without requiring extensive work, just some configuration.</p><p>Recently, I attended a talk discussing a project where a Rails monolith easily connected to over 5 databases. After the talk, I had a conversation with some people who raised an interesting question about consistency and transactions.</p><blockquote>How do we handle transactions across databases? Does ActiveRecord automatically handle that for us, or do we need to tackle this task ourselves?</blockquote><p>The answer at the time was that using ActiveRecord transaction blocks was sufficient. But is it? This article aims not to teach you how to use multiple databases, but to shed light on potential issues that can be easily overlooked.</p><h3>Expected Behavior</h3><p>When using Rails, we consciously choose to let the framework handle a significant portion of the burden for us. This is one of Rails’ strong points, but sometimes we assume it will do everything automatically. If we use a transaction block with a single database connection, we know that any error within the block will rollback any changes made. However, what happens if we have multiple database connections?</p><p>Since Rails simplifies handling these connections, it would make sense for it to handle transactions in the same way, right? Let’s consider an example. Suppose we have an app with two models, each residing in its own database. On one side, we have a <em>User</em> model in the <em>users</em> database, and on the other side, we have a <em>Post</em> model in the <em>posts</em> database. We’ll use a simple example where we create a <em>User</em> and raise a rollback to see if it behaves as expected:</p><pre>User.count # =&gt; 0<br><br>User.transaction do<br> User.create(email: &#39;test@example.com&#39;)<br> raise ActiveRecord::Rollback<br>end<br><br>User.count # =&gt; 0</pre><p>This example successfully rolls back the created user. So, even with multiple database connections, as long as the transaction block handles only one connection, it behaves in the same way.</p><h3>What Can Go Wrong?</h3><p>The problems arise when multiple connections are involved in the transaction. If we need to modify models residing in different databases within the same transaction block, ActiveRecord doesn’t have the ability to infer rollbacks correctly. Let’s examine an example:</p><pre>User.count # =&gt; 0<br>Post.count # =&gt; 0<br><br>User.transaction do<br> User.create(email: &#39;test@example.com&#39;)<br> Post.create(title: &#39;Test&#39;)<br> raise ActiveRecord::Rollback<br>end<br><br>User.count # =&gt; 0<br>Post.count # =&gt; 1</pre><p>That doesn’t look right, does it?</p><p>Since the transaction is using the <strong>User</strong> model database connection it only rollbacks the changes for that connection, so we end up with an inconsistent state in the <strong><em>posts</em></strong> database.</p><h4>What if we used nested transactions?</h4><p>Great question! Lets test it.</p><pre>User.count # =&gt; 0<br>Post.count # =&gt; 0<br><br>User.transaction do<br> Post.transaction do<br>  Post.create(title: &#39;Test&#39;)<br>  raise ActiveRecord::Rollback<br> end<br> User.create(email: &#39;test@example.com&#39;)<br>end<br><br>User.count # =&gt; 0<br>Post.count # =&gt; 0</pre><p>Success! Well, not really. It may appear that we have a workaround to the issue but this doesn’t work if the one raising the error is the <em>User</em> creation.</p><pre>User.count # =&gt; 0<br>Post.count # =&gt; 0<br><br>User.transaction do<br> Post.transaction do<br>  Post.create(title: &#39;Test&#39;)<br> end<br> User.create(email: &#39;test@example.com&#39;)<br> raise ActiveRecord::Rollback<br>end<br><br>User.count # =&gt; 0<br>Post.count # =&gt; 1</pre><p>We can see that if the <em>Post </em>creation succeeds but the <em>User</em> one doesn’t we still end with an inconsistent state, even when using nested transactions.</p><h3>Solutions Exist</h3><p>There are a few potential approaches you can consider to achieve distributed transaction-like behavior in this scenario. If your database supports distributed transactions, such as with PostgreSQL’s two-phase commit (2PC), coordinating the transaction across multiple databases becomes possible. However, this approach requires both databases to support 2PC.</p><p>Another approach is to use the Saga pattern, a compensating transaction-based pattern that manages distributed transactions through explicit compensating actions. In this pattern, you would define and execute compensating actions to rollback or compensate for the changes made by each step of the distributed transaction. Usually, the Saga pattern is implemented with events.</p><p>I won’t delve into the implementation details of these solutions in this article, as it can become quite lengthy. But no worries, a follow-up article on Saga is already in the works, so stay tuned for that.</p><h3>Conclusions</h3><p>In conclusion, while Rails offers a convenient feature for handling multiple databases, it’s crucial to be aware of the potential challenges that can arise, particularly when it comes to transactions across databases. ActiveRecord’s default behavior may not guarantee consistent rollbacks when multiple connections are involved.</p><p>To ensure data integrity and consistency, it’s important to explore alternative solutions. If your database supports distributed transactions, such as two-phase commit (2PC), coordinating the transaction across multiple databases becomes possible. Alternatively, you can consider implementing the Saga pattern, a compensating transaction-based pattern that manages distributed transactions through explicit compensating actions.</p><p>It’s essential to thoroughly evaluate your application’s requirements and the capabilities of your databases when working with multiple databases in Rails. Stay informed about best practices, and consider following up with the upcoming Saga pattern article, which will delve deeper into resolving these issues.</p><p>Keep learning, exploring, and experimenting to enhance your database skills, and stay tuned for more insights on tackling these challenges.</p><h3>Resources</h3><ul><li><a href="https://microservices.io/patterns/data/saga.html">Saga</a></li><li><a href="https://martinfowler.com/articles/patterns-of-distributed-systems/two-phase-commit.html">2PC</a></li><li><a href="https://guides.rubyonrails.org/active_record_multiple_databases.html">Rails multi database support</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9fddbd5f545" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Deal With Burnout in Tech]]></title>
            <link>https://guillermoap.medium.com/how-to-deal-with-burnout-in-tech-fef18924ffee?source=rss-945e5b425481------2</link>
            <guid isPermaLink="false">https://medium.com/p/fef18924ffee</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[work]]></category>
            <category><![CDATA[mental-health]]></category>
            <dc:creator><![CDATA[Guillermo Aguirre]]></dc:creator>
            <pubDate>Mon, 22 May 2023 12:23:06 GMT</pubDate>
            <atom:updated>2023-05-22T12:23:06.145Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e6bppbPow8yJfzbVp7zGQg.png" /><figcaption>Illustration by <a href="https://mixkit.co/@supriyabhonsle/">Supriya Bhonsle</a> on <a href="https://mixkit.co/free-stock-art/exhausted-man-in-front-of-a-computer-with-his-head-69/">Mixkit</a></figcaption></figure><p>Tech is a rapidly growing industry with a lot of opportunities for growth and success. However, with long hours, tight deadlines, and high pressure, burnout is a common problem. According to a <a href="https://www.teamblind.com/blog/index.php/2020/12/15/2020-recap-part-2-remote-work-anxiety-and-burnout">survey by Blind</a> in 2020, around 57% of tech workers reported feeling burned out.</p><p>Burnout can lead to a decline in productivity, motivation, and mental health. You can take steps to prepare and try avoiding it but that doesn’t mean you won’t face it, since most of the causes are external and usually out of our control.</p><p>In this article, I will discuss three ways to deal with burnout in tech.</p><h4>Time Management 🕰️</h4><p>When we are feeling burnt out we are significantly less productive. Simple tasks take longer, feel harder and overall it feels like a drag to get anything done. A good way to address this is to time manage our workday.</p><p>Introduce different techniques like Pomodoro or Flowtime into you workflow to help you focus during smaller time periods. I personally like Pomodoro since I can control the length of the time blocks I deem will fit better with the task I have to perform.</p><p><em>Pomodoro</em> consists of breaking up your workday into blocks of time, usually 25 minutes long, followed by a short break. The idea is to work intensely during the 25-minute block and then take a short break to recharge before starting the next block.</p><p><em>Flowtime</em> consists of selecting a single task that you intend to focus on during a dedicated session. Once you have identified your task, note the time when you begin working on it, and continue until you sense the need for a break. Unlike adhering to a predetermined time frame or relying on a timer, your focus and thoughts serve as the indicators. As soon as you feel fatigued or distracted, record the end time and proceed to take a break.</p><p>Forcing yourself to focus during a finite time block helps with distractions, specially when we don’t feel like doing the work that needs to be done. The finite time block helps ease the feeling of drag and puts a finish line on the focus time, allowing you to take regular breaks, which are crucial to avoid overworking. Can’t emphasize taking short breaks enough, stepping away can lead to a fresh perspective on how to tackle following tasks.</p><p>Some apps to help with these workflows:</p><p><strong>Pomodoro</strong></p><ul><li><a href="https://pomofocus.io/">https://pomofocus.io/</a></li><li><a href="https://www.tomatotimers.com/">https://www.tomatotimers.com/</a></li></ul><p><strong>Flowtime</strong></p><ul><li><a href="https://chrome.google.com/webstore/detail/flowtime/ogaicamnmocpjcbcfpnaccmmhpfmogbb">https://chrome.google.com/webstore/detail/flowtime/ogaicamnmocpjcbcfpnaccmmhpfmogbb</a></li><li><a href="https://flowapp.info/">https://flowapp.info/</a></li></ul><h4>Keeping track of accomplishments 🗒️</h4><p>One of the most anxiety inducing factors of burnout is the feeling of not getting anything done. All tasks feel incredibly long and hard to accomplish, so what can we do to ease off the load of completing them?</p><p>Separate the task at hand into small increments and keep track of them. It feels simple but realizing you are making progress, and being able to share that with the team can help increase the motivation and focus.</p><p>This also helps when stepping out of work or continuing the next day, since we can clearly go back into work without much overheard, which promotes distractions and slow starts.</p><p>Visual tools are super useful to gain that sense of progress of completing tasks. Here’s a small recommendation of apps that could help in this process:</p><ul><li><a href="https://todoist.com/">https://todoist.com/</a></li><li><a href="https://ticktick.com/">https://ticktick.com/</a></li><li><a href="https://culturedcode.com/things/">https://culturedcode.com/things/</a></li></ul><h4>Setting Work Boundaries ⛔</h4><p>The tech industry is known for its demanding work hours. Burnout can move past work and start trickling into our personal life, specially if we are overworking ourselves.</p><p>Set work boundaries, strict boundaries if necessary. Plan your workday with a starting and finish time, don’t work past that defined time, get up and continue the next day. Working past the set time is unlikely to contribute significantly to your productivity while it can have a negative impact on your mental health.</p><p>Once you are done with work for the day, turn notifications off, don’t read emails, stop thinking about work, because thinking about it is still working and when the end of the day comes you’ll feel like you’ve been working all day even though the computer has been turned off for hours. Go out for a drink, exercise, meditate, play video games or read. Do anything that gets your mind off of the grind of work.</p><h3>Conclusion</h3><p>In conclusion, while burnout is a prevalent issue in the tech industry, it’s important to remember that there are strategies to mitigate its impact.</p><p>By implementing effective time management techniques such as Pomodoro or Flowtime, we can enhance our focus and productivity during designated work periods while allowing for rejuvenating breaks.</p><p>Separating tasks into smaller increments and keeping track of our progress not only provides a sense of accomplishment but also boosts motivation and facilitates smoother transitions between work sessions.</p><p>Additionally, establishing clear work boundaries and disconnecting from work-related activities outside of designated hours helps protect our mental well-being and prevent burnout from seeping into our personal lives.</p><p>By incorporating these approaches, we can effectively address burnout and reduce its adverse effects, fostering a healthier and more sustainable work-life balance in the tech industry. Remember, with dedication and conscious effort, you have the power to overcome burnout and thrive in your tech career.</p><p><strong>You’ve got this!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fef18924ffee" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>