<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Federico Ramirez</title>
    <description>The latest articles on DEV Community by Federico Ramirez (@gosukiwi).</description>
    <link>https://dev.to/gosukiwi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1507%2F161972.jpeg</url>
      <title>DEV Community: Federico Ramirez</title>
      <link>https://dev.to/gosukiwi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gosukiwi"/>
    <language>en</language>
    <item>
      <title>Effective Agentic Development</title>
      <dc:creator>Federico Ramirez</dc:creator>
      <pubDate>Sun, 08 Nov 2026 22:13:33 +0000</pubDate>
      <link>https://dev.to/gosukiwi/effective-agentic-development-h84</link>
      <guid>https://dev.to/gosukiwi/effective-agentic-development-h84</guid>
      <description>&lt;p&gt;It's no secret that AI is booming right now. Both old-school senior developers and new developers alike need to learn the best way to use this new tool to get the job done.&lt;/p&gt;

&lt;p&gt;In this post I'll share my personal experience working with agents in my projects, as well as teaching people (both experienced and inexperienced developers) how to get the most out of your agents.&lt;/p&gt;

&lt;h1&gt;
  
  
  The Mental Model: Model, Harness, Agent
&lt;/h1&gt;

&lt;p&gt;Just so we are all on the same page, let's establish a clear mental model of how the pieces fit together. People often mix these terms up, but the distinctions matter.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Model (The Brain)
&lt;/h2&gt;

&lt;p&gt;A Large Language Model, often just called the "model." At their core, they are autocomplete machines. Given some input, they predict what comes next. There's a bunch of these models, and they are optimized for different things. In this post our main interest is using them for coding, but even within coding some LLMs are optimized for speed, others for deep reasoning, etc.&lt;/p&gt;

&lt;p&gt;At the time of this writing, the strongest models by far are the closed ones, in particular Google's Carbon, Anthropic's Opus 5.5, and OpenAI's GPT-6.1 Astra.&lt;/p&gt;

&lt;p&gt;That being said, most coding tasks don't really need all that power. Open models such as DeepSeek 4.1 flash and GLM 5.3 are also very popular choices, especially because they can be much cheaper than the closed options.&lt;/p&gt;

&lt;p&gt;The most popular way to compare models is using benchmarks, with &lt;a href="https://artificialanalysis.ai/models" rel="noopener noreferrer"&gt;Artificial Analysis&lt;/a&gt; being one of the best resources.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Harness (The Body &amp;amp; Hands)
&lt;/h2&gt;

&lt;p&gt;A harness is the application that manages an LLM. It gives the model "hands" by allowing it to call tools (such as reading or editing files, running terminal commands, or controlling a browser), manages context windows, and drives the main chat loop you see. Some popular ones are Claude Code, Codex, Cursor, and Antigravity, alongside open-source options like Pi and OpenCode designed to work with any model.&lt;/p&gt;

&lt;p&gt;Most AI providers with their own models will also offer their own harness, optimized for their models, and they might support third-party models via API keys (known as BYOK, bring-your-own-key). Personally, if I'm using a company's model, I'll try to use that company's harness because everything just works smoother that way. Also, most of the time they subsidize tokens inside their own harness versus the raw API key approach, meaning you can pay several times less for the same amount of tokens.&lt;/p&gt;

&lt;p&gt;A harness can run in the terminal, or it can be a desktop app. They offer very similar features, and it's up to you to pick whatever you feel most comfortable with. Most people prefer the desktop UI, which makes sense. In my case, because I've been using the terminal for coding since forever, it feels much more efficient to use the terminal version. It's just a matter of preference.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Agent (The System)
&lt;/h2&gt;

&lt;p&gt;An agent is a self-directed system capable of executing complex workflows by pairing an LLM (the "brain") with a harness (the "body").&lt;/p&gt;

&lt;p&gt;While a raw AI model is passive, responding only when prompted and stopping immediately after generating text, an agent operates within a continuous evaluation loop. It receives a specific goal, reasons through the steps, uses tools in your workspace to execute code, inspects the outcome of its actions, corrects its own errors, and adapts its strategy autonomously until the task is successfully completed.&lt;/p&gt;

&lt;h1&gt;
  
  
  Alignment: Decide Before You Code
&lt;/h1&gt;

&lt;p&gt;Just writing a quick prompt is rarely enough for an agent to build what you actually want. Most of the time you don't even realize how many decisions you left unmade.&lt;/p&gt;

&lt;p&gt;You might ask an agent to "create a feedback form", but you haven't made a decision on what color the submit and cancel buttons should be, or if it should even have a cancel button at all, or what layout the form will use. Should it be an inline form, or does each input get its own line?&lt;/p&gt;

&lt;p&gt;Many modern harnesses offer a dedicated "plan mode." In practice, with modern models, plan mode is mostly a guardrail that lets you talk to the AI and read files without letting it write or edit code. But the planning itself can be done just by prompting. You don't need a special mode to plan.&lt;/p&gt;

&lt;p&gt;The problem is, for complex features, casual back-and-forth is rarely enough. It leaves too many decisions unsettled, giving the AI room to guess and improvise during implementation. That is where rework comes from.&lt;/p&gt;

&lt;p&gt;That's why I really like the &lt;a href="https://github.com/mattpocock/skills/blob/main/skills/productivity/grilling/SKILL.md" rel="noopener noreferrer"&gt;grilling&lt;/a&gt; skill by Matt Pocock. Grilling is a strict planning loop that relentlessly asks you questions until there are no more open questions. After each round of answers, it re-computes its understanding and asks again if needed. It's a simple skill, but a brilliant idea.&lt;/p&gt;

&lt;p&gt;The result of grilling is essentially a concrete specification. This ties directly into Spec-Driven Development: settle all the decisions, edge cases, and constraints into a clear spec first, and then hand that spec to the implementer. When the agent has a solid spec, it can one-shot the work cleanly without guessing.&lt;/p&gt;

&lt;p&gt;Skip grilling for simple tasks, or when you actually want the AI to make design decisions for you. But for big and complex features where you want control over architecture and UX, it's great!&lt;/p&gt;

&lt;h1&gt;
  
  
  Context Hygiene &amp;amp; Execution Architecture
&lt;/h1&gt;

&lt;p&gt;The context window (most of the time simply called context) is the maximum amount of text and data, measured in tokens (units of words or subwords, roughly 1 token ≈ 0.75 words), that the model can process, read, and "remember" during a single interaction.&lt;/p&gt;

&lt;p&gt;Most modern models support up to 1 million tokens or more. That means they support long coding sessions where the model can read lots of files and keep a long history without "forgetting" things.&lt;/p&gt;

&lt;p&gt;That being said, the bigger the context gets, the more chances the model gets confused. This is known as &lt;strong&gt;Context rot&lt;/strong&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Context rot is the progressive decline in a large language model's (LLM) accuracy, recall, and reasoning quality as its input context grows longer.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Some models handle it better than others, and modern models do a good job preventing it for the most part, but you should still be mindful of context, not only because of context rot, but because stale context can easily steer the model the wrong way.&lt;/p&gt;

&lt;h2&gt;
  
  
  One Job = One Session
&lt;/h2&gt;

&lt;p&gt;Actually, one of the most common mistakes I see people make is just reusing the same session for everything. &lt;/p&gt;

&lt;p&gt;Treat sessions as disposable: &lt;strong&gt;One job = One session.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When context gets too big, harnesses will &lt;em&gt;compact&lt;/em&gt; it. Compaction is basically creating a summary of the context so the agent can continue to work. The problem is, no matter how good compaction is, it's always lossy. Every compaction drops details, and with every pass you risk degradation.&lt;/p&gt;

&lt;p&gt;Ideally, your sessions should finish the job sooner, and then for a new job, you just start a clean session. The only exception is when tasks are tightly related and benefit from the same exploration. Even then, when the context gets big (65%+), consider using an intentional handoff skill to capture decisions and start fresh rather than dragging stale context along.&lt;/p&gt;

&lt;h2&gt;
  
  
  Scope Work Into Bite-Sized Slices
&lt;/h2&gt;

&lt;p&gt;"One job = one session" only works if the job is actually sized for one session.&lt;/p&gt;

&lt;p&gt;If you ask an agent to &lt;em&gt;"Add Stripe subscriptions, team billing, webhook retries, and PDF invoices,"&lt;/em&gt; you're setting it up to fail.&lt;/p&gt;

&lt;p&gt;Giving an agent a massive scope causes three predictable problems:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Context burns up before coding starts.&lt;/strong&gt; Searching and reading dozens of files across multiple subsystems eats a big chunk of your context window before the agent writes a single line of code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Attention drops.&lt;/strong&gt; Juggling four unrelated goals dilutes reasoning. The model starts dropping earlier constraints, inventing non-existent APIs, and taking sloppy shortcuts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Verification falls apart.&lt;/strong&gt; When a giant change breaks five tests across three directories, the agent gets confused. It tries to fix unrelated failures at once, breaking code in one place while trying to patch another.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Instead, slice work down into small, independently verifiable steps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Session 1:&lt;/strong&gt; Add the database models, run migrations, and test the schema.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Session 2:&lt;/strong&gt; Build the payment service and test it with mock Stripe events.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Session 3:&lt;/strong&gt; Wire up the UI and verify it end-to-end in the browser.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each session starts clean, touches a handful of files, runs focused tests, and wraps up long before context degrades.&lt;/p&gt;

&lt;h2&gt;
  
  
  Implementing with Subagents
&lt;/h2&gt;

&lt;p&gt;A great way to save up on context is using another agent to do the implementation work.&lt;/p&gt;

&lt;p&gt;Let's say you start up a new session with your default model. You talk to the agent and together you brainstorm a new feature. At this point maybe you've used 10% to 15% of your context window, because the agent had to search files and do research.&lt;/p&gt;

&lt;p&gt;If you implement directly using that same agent, it will read files, edit files, write tests, run them, and just reason until the work is done. That's perfectly fine, but after that task, your context will easily grow to 30%, 50%, or more. If you need to iterate further, the context builds up fast with every change, and you risk context rot.&lt;/p&gt;

&lt;p&gt;What you can do instead is have your main agent act as an &lt;strong&gt;Orchestrator&lt;/strong&gt; that coordinates dedicated subagents.&lt;/p&gt;

&lt;p&gt;Think of the orchestrator as a project lead: its job isn't to grind through every file edit, terminal log, or test failure itself. Its job is to hold the big-picture plan, break work down, and dispatch worker subagents with clean contexts to tackle specific tasks.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;              ┌─────────────────────────────────────────┐
              │                   You                   │
              └────────────────────┬────────────────────┘
                                   │
                                   ▼
              ┌─────────────────────────────────────────┐
              │       Orchestrator (Main Session)       │
              │  • Holds the plan &amp;amp; big-picture goals   │
              │  • Context stays lean &amp;amp; responsive      │
              └───────────────┬─────────────────────────┘
                              │
               Dispatch tasks │ Receive concise
               with clean ctx │ summaries back
                              │
              ┌───────────────┴─────────────────────────┐
              ▼                                         ▼
┌───────────────────────────┐             ┌───────────────────────────┐
│   Subagent: Implementer   │             │    Subagent: Reviewer     │
│ • Explores codebase       │             │ • Fresh, unbiased eyes    │
│ • Edits files &amp;amp; runs tests│             │ • Inspects the final diff │
│ • Context discarded after │             │ • Context discarded after │
└───────────────────────────┘             └───────────────────────────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each subagent dives in, does the heavy lifting in an isolated context, and reports back a concise summary. Because all the messy file reads, compiler errors, and tool outputs stay contained inside the subagent's disposable window, your main orchestrator session stays lean, responsive, and rot-free.&lt;/p&gt;

&lt;p&gt;Just telling your agent something like:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Implement this feature in a subagent&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;is often all it takes!&lt;/p&gt;

&lt;h2&gt;
  
  
  Choosing the Right Model for the Role
&lt;/h2&gt;

&lt;p&gt;It's hard to give rigid advice on what model you should choose for a particular problem. At the end of the day it does take some experience and knowledge of the actual work.&lt;/p&gt;

&lt;p&gt;You can also let the AI decide for you, it will get it right most of the time :)&lt;/p&gt;

&lt;p&gt;This is the general rule of thumb:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Orchestrator&lt;/strong&gt;: A big, smart model that can delegate to subagents and track the overall plan.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Brainstorming &amp;amp; Planning&lt;/strong&gt;: A deep reasoning model that can look into all the details and spot edge cases.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Implementer&lt;/strong&gt;: Sized to the task. If it needs to make tricky architectural decisions, use a big model. If the work is very mechanical or well-specified, a smaller, faster model (like DeepSeek or a Flash tier) works great.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reviewer&lt;/strong&gt;: At least equal to or smarter than the implementer (more on this in a second).&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  Verification: Close the Loop
&lt;/h1&gt;

&lt;p&gt;"Human in the Loop" is a common term for when the AI needs to wait for a human to continue. Every time you catch yourself doing this workflow:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;AI does some work&lt;/li&gt;
&lt;li&gt;Human manually checks or runs something&lt;/li&gt;
&lt;li&gt;AI resumes work based on human feedback&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;it means you can optimize and take the human out of the loop.&lt;/p&gt;

&lt;p&gt;Here are three real-world examples of closing the loop:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Runtime app verification.&lt;/strong&gt; The trickiest version of this is when the agent edits a few frontend files and tells you it's done without ever booting the server. You open the browser, click the submit button, see an uncaught &lt;code&gt;TypeError: Cannot read properties of undefined&lt;/code&gt; in the DevTools console, copy the error, and paste it back into chat. You just became your agent's manual QA tester.&lt;br&gt;&lt;br&gt;
Instead, give the agent a browser tool (via a browser MCP or Playwright) or curl. It boots the local dev server, navigates to the page, clicks inputs, checks console logs and network calls, catches runtime crashes itself, and verifies the feature works before pinging you.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Database migrations and test data.&lt;/strong&gt; An agent adds a database model or column. It writes the migration file, stops, and asks: &lt;em&gt;"Please run &lt;code&gt;npx prisma migrate dev&lt;/code&gt; in your terminal."&lt;/em&gt; Or worse, it writes queries against empty tables, gets an empty array back, and assumes the API works because nothing threw an error.&lt;br&gt;&lt;br&gt;
Instead, let the agent run migrations against a local database and seed test records. It applies the schema change, populates realistic rows, hits the endpoint with curl, and confirms the database roundtrip works end-to-end.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Remote CI checks.&lt;/strong&gt; The agent opens a pull request and marks the task complete. Five minutes later, GitHub Actions turns red. You open GitHub, scroll through raw workflow logs, copy the stack trace, and paste it back into chat: &lt;em&gt;"CI failed on step X, fix it."&lt;/em&gt; You just became a human copy-paste bridge between two machines.&lt;br&gt;&lt;br&gt;
Instead, give the agent the GitHub CLI (&lt;code&gt;gh&lt;/code&gt;). It watches its own PR run with &lt;code&gt;gh run watch&lt;/code&gt;, pulls the failure log directly with &lt;code&gt;gh run view --log-failed&lt;/code&gt;, pushes a fix, and only notifies you once CI is green.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In the age of AI, people are complaining about unit tests, saying they are useless. In my experience, those people never understood what tests are for. To make sure your application is actually doing what it's supposed to be doing, you need proper verification. Unit tests, integration tests, and live browser automation aren't chores. They are the guardrails that give the AI a way to self-correct without needing a human to babysit it.&lt;/p&gt;

&lt;h1&gt;
  
  
  Independent Code Review: Clean Context Matters
&lt;/h1&gt;

&lt;p&gt;Implementing with subagents is a great optimization for cost, time, and context. For code review, though, I would not say it's optional: it's essential.&lt;/p&gt;

&lt;p&gt;The thing is, after your agent does the work, it will have a strong notion of what changed and how things &lt;em&gt;should&lt;/em&gt; work. If you ask that same agent to "do a code review", it will suffer from confirmation bias: it will "remember" the changes it intended to make instead of critically looking at what's actually in the diff. It will routinely overlook its own blind spots.&lt;/p&gt;

&lt;p&gt;To get an effective review:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Always use a fresh, clean context.&lt;/strong&gt; The reviewer should see only the diff, the project rules, and the requirements, completely unbiased by the back-and-forth implementation history.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use an equal or smarter model.&lt;/strong&gt; If you used Sonnet 5.5 for implementation, review with Opus 5.5. The same model will tend to overlook the same things in coding and review; a smarter model with a clean context will catch regressions and architectural slip-ups the authoring agent completely missed.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;While I arrived at this workflow through trial and error across my own projects, it's reassuring to see industry research converge on the exact same conclusion. Google created an open-source methodology for specification-driven development around this called the &lt;a href="https://github.com/google/elephant-goldfish-model" rel="noopener noreferrer"&gt;elephant-goldfish model&lt;/a&gt;: the "elephant" holds the long-horizon project memory and architectural intent to draft specifications without writing code, while disposable, zero-context "goldfish" agents review diffs and test implementations without inheriting the historical baggage of the main session. Managing context with subagents is simply putting that methodology into practice.&lt;/p&gt;

&lt;h1&gt;
  
  
  Skills &amp;amp; Workflows in Practice
&lt;/h1&gt;

&lt;p&gt;To make these patterns second nature, I use and build custom skills.&lt;/p&gt;

&lt;p&gt;A skill is usually just a Markdown file in a folder on your machine that the agent reads on demand. More advanced skills might include a helper script or reference docs, but the core is plain text: instructions that teach the agent how to execute a specific workflow.&lt;/p&gt;

&lt;p&gt;The way I use my skills, I like to define small, single-purpose skills and compose them into more complex workflows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Single-purpose&lt;/strong&gt;: Do one thing, and do it well (e.g. &lt;code&gt;implement&lt;/code&gt;, &lt;code&gt;correctness-review&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Workflow&lt;/strong&gt;: Compose multiple smaller skills into end-to-end automations (e.g. &lt;code&gt;address-issue&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here are a few skills I use in my day-to-day work:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/gosukiwi/skills/blob/main/skills/implement/SKILL.md" rel="noopener noreferrer"&gt;Implement&lt;/a&gt;: Breaks a scope into TDD tasks, selects the model size automatically if available, and implements with subagent review after each step.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/gosukiwi/skills/blob/main/skills/review-loop/SKILL.md" rel="noopener noreferrer"&gt;Review Loop&lt;/a&gt;: Runs two distinct review passes (one for correctness, another for refactoring) and fixes blockers and should-fix items in a loop.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/mattpocock/skills/blob/main/skills/productivity/grilling/SKILL.md" rel="noopener noreferrer"&gt;Grilling&lt;/a&gt;: Uncovers all open questions and locks down decisions before implementation starts.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/mattpocock/skills/blob/main/skills/productivity/handoff/SKILL.md" rel="noopener noreferrer"&gt;Handoff&lt;/a&gt;: Creates a structured Markdown summary of decisions and context so you can transition into a clean session without lossy compaction.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can find my personal skills on &lt;a href="https://github.com/gosukiwi/skills" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  An End-to-End Workflow in Action
&lt;/h2&gt;

&lt;p&gt;Let's say you want to create a new page for submitting feedback. Here is what a complete, closed-loop workflow looks like in practice:&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Alignment
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/grilling add a new form so a logged in user can submit feedback
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Grilling asks targeted questions about validations, auth states, button behaviors, and edge cases until all decisions are locked into a clear summary.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Implementation &amp;amp; Verification
&lt;/h3&gt;



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

&lt;/div&gt;



&lt;p&gt;Because the context already contains the agreed-upon specification from grilling, the agent immediately gets to work. We don't need to give it more prompt context. It breaks down the problem, writes tests, implements the code, and boots the app to verify functionality using available browser tools or test suites.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Clean Review Loop
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/review-loop
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This launches fresh review passes in an isolated context to evaluate the diff for bugs and code quality, automatically resolving issues until no blockers remain.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Ship
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Open a PR
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This opens a pull request with a clear description and verification summary, ready for final human review.&lt;/p&gt;

&lt;p&gt;Running each step manually helps when you only want a slice of the workflow. You might want to run &lt;code&gt;/grilling&lt;/code&gt; to think through an idea without writing code yet, or invoke &lt;code&gt;/review-loop&lt;/code&gt; on changes you wrote yourself. &lt;/p&gt;

&lt;p&gt;Once you trust the individual steps, having a human trigger each command one by one becomes another unnecessary bottleneck. That is where workflow skills come in. My &lt;a href="https://github.com/gosukiwi/skills/blob/main/skills/address-issue/SKILL.md" rel="noopener noreferrer"&gt;&lt;code&gt;address-issue&lt;/code&gt;&lt;/a&gt; skill composes all of these primitives into a single command. It takes an issue, runs it through grilling, delegates to implementers, verifies the running app, runs the review loop, and opens a formatted pull request without needing you to babysit the transitions.&lt;/p&gt;

&lt;h1&gt;
  
  
  Conclusion
&lt;/h1&gt;

&lt;p&gt;Agentic coding is a shift in how we work with software tools. If you treat an agent like an autocomplete box in an endless chat window, you will run into context rot, hallucinated APIs, and frustrating rework.&lt;/p&gt;

&lt;p&gt;The difference between a frustrating agent session and an autonomous one comes down to a few disciplined habits:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Decide upfront.&lt;/strong&gt; Use strict alignment like grilling to turn fuzzy requests into solid specs before code is written.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Protect your context.&lt;/strong&gt; Treat sessions as disposable. One job per session, and delegate heavy file operations to clean-context subagents.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Close the verification loop.&lt;/strong&gt; Give the agent tools to run your tests, start the dev server, click the UI, and check CI so it catches its own mistakes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Review with fresh eyes.&lt;/strong&gt; Never let an agent review its own code in the same session. Always review with a clean context and an equal or smarter model.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automate the pipeline with skills.&lt;/strong&gt; Start with small, focused playbooks, then compose them into hands-off workflows.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Start small. Try writing a single skill for a task you repeat every day, or enforce the one-job-per-session rule on your next ticket. Once you build the guardrails, you can step back and let your agents do the heavy lifting.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
    <item>
      <title>Muse Spark 1.3 - A Review</title>
      <dc:creator>Federico Ramirez</dc:creator>
      <pubDate>Fri, 04 Sep 2026 03:56:36 +0000</pubDate>
      <link>https://dev.to/gosukiwi/muse-spark-13-a-review-3h7</link>
      <guid>https://dev.to/gosukiwi/muse-spark-13-a-review-3h7</guid>
      <description>&lt;p&gt;In this post I'll talk about my brief experience with &lt;code&gt;muse&lt;/code&gt;, Meta's LLM harness for developers, as well as Muse Spark 1.3, their latest frontier-level model.&lt;/p&gt;

&lt;h1&gt;
  
  
  The Bad
&lt;/h1&gt;

&lt;p&gt;I'll start with the bad, just because I like to end with the positive :)&lt;/p&gt;

&lt;h2&gt;
  
  
  Skill Usage
&lt;/h2&gt;

&lt;p&gt;It's not that good following skills. If the skill has &lt;code&gt;disable-model-invocation&lt;/code&gt;, sometimes it refuses to launch it, even if you manually call it. I think it happens when you call the skill mid-sentence, but it's not consistent.&lt;/p&gt;

&lt;p&gt;It's also not as good as other models at following skill instructions. It seems to get confused more often. &lt;/p&gt;

&lt;p&gt;For example, I have one skill that will address an issue from GitHub to PR.&lt;/p&gt;

&lt;p&gt;In Claude (Opus 5) and Cursor (Grok 4.6) it works perfectly. The first step is &lt;a href="https://www.aihero.dev/skills-grill-me" rel="noopener noreferrer"&gt;grilling&lt;/a&gt; the issue, after that's finished, the next step is autonomous, plan, implement with TDD, review and open PR.&lt;/p&gt;

&lt;p&gt;With Muse Spark 1.3, sometimes the skill will not continue and I have to nudge it for the next step, just saying something like "continue" is enough, but surely is annoying.&lt;/p&gt;

&lt;h2&gt;
  
  
  Formatting
&lt;/h2&gt;

&lt;p&gt;The output is not great. Sometimes it will show me raw markdown, sometimes not. It's not consistent.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sandbox
&lt;/h2&gt;

&lt;p&gt;Having a sandbox is good, but in this case, it's a bit too restrictive. For example, I'm working with a Firebase project and I want to use the emulators.&lt;/p&gt;

&lt;p&gt;Well, too bad. The sandbox doesn't allow you to run files outside your workspace or use external ports.&lt;/p&gt;

&lt;p&gt;That would be great if I could add exceptions or some kind of configuration, but you can't. You are basically forced into &lt;code&gt;--yolo&lt;/code&gt; mode if you don't want to be prompted on repeat for the same things over and over.&lt;/p&gt;

&lt;p&gt;What's sad is that even if you want to give them access, the models will just get stuck asking for permissions for the same thing over and over again and eventually they will just be stuck doing nothing.&lt;/p&gt;

&lt;h1&gt;
  
  
  The Good
&lt;/h1&gt;

&lt;p&gt;Not everything is bad, of course. With a bit of effort I think it's actually quite usable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Price
&lt;/h2&gt;

&lt;p&gt;The main reason I decided to try the model. The subscription plan is relatively generous for it's price. With the $15 plan you can code non-stop for a couple hours, in my experience around 2 to 4 hours, before you reach the 5-hour limit.&lt;/p&gt;

&lt;p&gt;But of course, it depends on your usage. If you have a lot of concurrent sessions, it will last less.&lt;/p&gt;

&lt;p&gt;Also the weekly usage is a bit low, I'd say around 4-5 times the 5 hour limit (~25h).&lt;/p&gt;

&lt;p&gt;I think compared to other plans though it's probably one of the best values. For $50 you can get ~33% more usage, which should be enough for ~11.5hs of coding a day. Quite decent for that price tag.&lt;/p&gt;

&lt;h2&gt;
  
  
  Intelligence
&lt;/h2&gt;

&lt;p&gt;My biggest hurdles with the model have been in the actual development flow. When it comes to general intelligence and code, I think it's quite good. It feels around Opus 4.8 / Grok 4.6. Of course, that's totally subjective.&lt;/p&gt;

&lt;p&gt;I think the code it generates is very similar to most other frontier models. I don't think anyone can really tell what model generated what output nowadays anyway, they are all quite competent.&lt;/p&gt;

&lt;h2&gt;
  
  
  Output
&lt;/h2&gt;

&lt;p&gt;Unlike Claude which speaks a weird dialect of english, called &lt;em&gt;claudish&lt;/em&gt; by most devs, the output from this model seems to be much more readable in general.&lt;/p&gt;

&lt;p&gt;In my experience I rarely need to tell it to re-word what it just said.&lt;/p&gt;

&lt;h2&gt;
  
  
  Speed
&lt;/h2&gt;

&lt;p&gt;I think the model speed is quite good. I think the time to first token is average, but after that it feels pretty fast.&lt;/p&gt;

&lt;h1&gt;
  
  
  Conclusion
&lt;/h1&gt;

&lt;p&gt;Overall, I think this whole ecosystem is still a bit rough around the edges, but if you are willing to work around that, it's an usable model and harness.&lt;/p&gt;

&lt;p&gt;Probably it will be much better in a couple months. It's clear they are playing catch-up at this point. But they (Meta) seems to have the tools (model, data centers, engineers), so they have a real shot at creating a good product.&lt;/p&gt;

&lt;p&gt;I don't think there's a real reason to swap from, say, Codex, Claude or Cursor unless you want to try something new, or maybe are looking for a cheaper alternative.&lt;/p&gt;

&lt;p&gt;Let me know what you think in the comments, I'd love to hear other people's opinions about this model/harness!&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>development</category>
      <category>programming</category>
    </item>
    <item>
      <title>Vim Advanced Search and Replace</title>
      <dc:creator>Federico Ramirez</dc:creator>
      <pubDate>Sun, 01 Oct 2023 19:30:08 +0000</pubDate>
      <link>https://dev.to/gosukiwi/vim-advanced-search-and-replace-4akn</link>
      <guid>https://dev.to/gosukiwi/vim-advanced-search-and-replace-4akn</guid>
      <description>&lt;p&gt;I find search and replace to be a remarkably interesting topic, because it touches on so many Vim concepts.&lt;/p&gt;

&lt;p&gt;When I started using Vim, one of the first things I wanted to do was search for some text in my project and replace it with something else.&lt;/p&gt;

&lt;p&gt;Unfortunately for me, it was not as simple as I had initially thought :)&lt;/p&gt;

&lt;p&gt;In this post I will show how several different ways to search and replace text in Vim. From the obvious, beginner-friendly way, to the more advanced, &lt;em&gt;vimmish&lt;/em&gt; way.&lt;/p&gt;

&lt;h2&gt;
  
  
  Before we begin: Reading key sequences
&lt;/h2&gt;

&lt;p&gt;I will use Vim's format to describe sequences of keys. That means &lt;code&gt;&amp;lt;C-r&amp;gt;&lt;/code&gt; means press the &lt;code&gt;CONTROL&lt;/code&gt; key, and while holding it, press the &lt;code&gt;r&lt;/code&gt; key. &lt;code&gt;&amp;lt;CR&amp;gt;&lt;/code&gt; means &lt;code&gt;ENTER&lt;/code&gt; key, &lt;code&gt;&amp;lt;Esc&amp;gt;&lt;/code&gt; means &lt;code&gt;ESCAPE&lt;/code&gt;, &lt;code&gt;&amp;lt;Space&amp;gt;&lt;/code&gt; means &lt;code&gt;SPACEBAR&lt;/code&gt;, etc.&lt;/p&gt;

&lt;h2&gt;
  
  
  Searching in a single file
&lt;/h2&gt;

&lt;p&gt;Let's start with our most simple use-case: Searching for some text in a single file.&lt;/p&gt;

&lt;p&gt;This is quite a common need. In my regular Vimming, I think one of my most used (and favorite) keys is &lt;code&gt;*&lt;/code&gt;. In NORMAL mode, simply press &lt;code&gt;*&lt;/code&gt; on top of a word, and Vim will highlight all the instances of that word in your current buffer.&lt;br&gt;
If you want to go to the next instance, press &lt;code&gt;n&lt;/code&gt;, if you want to go back, press &lt;code&gt;N&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;I use that a lot for typos, if I want to make sure I didn't make a typo on some word, and I know that word is already defined somewhere in the same file, I quickly press &lt;code&gt;*&lt;/code&gt; to see if other words highlight.&lt;/p&gt;


&lt;div class="ltag_asciinema"&gt;
  
&lt;/div&gt;


&lt;p&gt;It's also useful to quickly navigate to all instances of that word, for example, navigate through all the usages of some variable in your current file.&lt;/p&gt;

&lt;h3&gt;
  
  
  Section Help
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;:help 03.8&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;:help *&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;:help n&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Replacing in a single file: One by one
&lt;/h2&gt;

&lt;p&gt;Another quite common need is to rename an identifier. This can be tricky when the variable exists in multiple files, but for local variables, it's amazingly easy.&lt;/p&gt;

&lt;p&gt;You can use the &lt;code&gt;.&lt;/code&gt; operator to &lt;em&gt;repeat the last thing I did in INSERT mode&lt;/em&gt;, together with &lt;code&gt;*&lt;/code&gt; and &lt;code&gt;n&lt;/code&gt; you can easily do fine-grained replacements.&lt;/p&gt;


&lt;div class="ltag_asciinema"&gt;
  
&lt;/div&gt;


&lt;p&gt;With this approach you can skip some matches, so it's great when you don't want to just replace all matches, and instead want to choose which ones you want to operate on.&lt;/p&gt;

&lt;h3&gt;
  
  
  Section Help
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;:help 04.3&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Replacing in a single file: Bulk
&lt;/h2&gt;

&lt;p&gt;Alternatively, you can replace all matches in the file in one go, with the &lt;code&gt;:substitute&lt;/code&gt; command, or just &lt;code&gt;:s&lt;/code&gt;, as it's normally used.&lt;/p&gt;

&lt;p&gt;Without flags, &lt;code&gt;:substitute&lt;/code&gt; will only replace one match per line. Most of the time, the &lt;code&gt;g&lt;/code&gt; flag is passed, to substitute all matches. You can also pass the &lt;code&gt;c&lt;/code&gt; flag so Vim asks for confirmation before doing each replacement.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight viml"&gt;&lt;code&gt;&lt;span class="p"&gt;:&lt;/span&gt;%s&lt;span class="sr"&gt;/this/&lt;/span&gt;that/gc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;If you already were searching for something using &lt;code&gt;/&lt;/code&gt; or &lt;code&gt;?&lt;/code&gt;, then Vim populates the search register for you. When using &lt;code&gt;:s&lt;/code&gt;, and the search string is empty, Vim will use the search register to perform the replacement.&lt;/p&gt;

&lt;p&gt;For example, you were searching for all instances of the word &lt;code&gt;this&lt;/code&gt; by typing &lt;code&gt;/this&lt;/code&gt;. You then notice you want to change them.&lt;/p&gt;

&lt;p&gt;You can now simply type &lt;code&gt;:%s//that/&lt;/code&gt; to run the replacement. Vim "remembers" our last search.&lt;/p&gt;

&lt;p&gt;You can also manually use the register by typing &lt;code&gt;&amp;lt;C-r&amp;gt;&lt;/code&gt; followed by the register you want to use, such as &lt;code&gt;"&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;:%s/&amp;lt;C-r&amp;gt;"/replacement/g
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  Section help
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;:help registers&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;:help 10.2&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;:help i_CTRL-R&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Searching in multiple files
&lt;/h2&gt;

&lt;p&gt;To search across multiple files, Vim provides the &lt;code&gt;:vimgrep&lt;/code&gt; command.&lt;/p&gt;

&lt;p&gt;It works out of the box. For example, you can run the following command to search for all instances of &lt;code&gt;SomeModelClass&lt;/code&gt; inside the &lt;code&gt;app/models&lt;/code&gt; directory:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;:vimgrep SomeModelClass app/models
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Nice! By default, Vim will populate the &lt;em&gt;quickfix&lt;/em&gt; list with the search results, but it won't display it. You can open the quickfix window with the &lt;code&gt;:copen&lt;/code&gt; command.&lt;/p&gt;

&lt;p&gt;While that works, it's not the best. You see &lt;code&gt;:vimgrep&lt;/code&gt; uses Vim's internal implementation of grep, which is totally compatible but terribly slow. Not really what you want to use for most modern software projects (&lt;em&gt;ahem&lt;/em&gt; &lt;code&gt;node_modules&lt;/code&gt; &lt;em&gt;ahem&lt;/em&gt;).&lt;/p&gt;

&lt;p&gt;Experienced Vim users will instead use something like &lt;a href="https://github.com/BurntSushi/ripgrep"&gt;ripgrep&lt;/a&gt; or &lt;a href="https://github.com/ggreer/the_silver_searcher"&gt;ag&lt;/a&gt; for searching across multiple files.&lt;/p&gt;

&lt;p&gt;Being the good first-class UNIX citizen that Vim is, it integrates nicely with external programs, so we can easily set this up:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight viml"&gt;&lt;code&gt;&lt;span class="k"&gt;set&lt;/span&gt; &lt;span class="nb"&gt;grepprg&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;rg\ &lt;span class="p"&gt;--&lt;/span&gt;&lt;span class="k"&gt;vimgrep&lt;/span&gt;\ &lt;span class="p"&gt;--&lt;/span&gt;smart&lt;span class="p"&gt;-&lt;/span&gt;case
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;We can now use the &lt;code&gt;:grep&lt;/code&gt; command to search in our files, using &lt;code&gt;ripgrep&lt;/code&gt;!&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight viml"&gt;&lt;code&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="k"&gt;grep&lt;/span&gt; myvariable app&lt;span class="sr"&gt;/models/&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  Section help
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;:help :vimgrep&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;:help :grep&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;:help grepprg&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;:help quickfix&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Replacing in multiple files
&lt;/h2&gt;

&lt;p&gt;Once you have performed your search, and have the quickfix list populated with all your matches, you can then run a replacement with:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;:cfdo %s/pattern/replacement/g
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The &lt;code&gt;:cfdo&lt;/code&gt; command will take each file in your quickfix list and apply a command to it. We use the &lt;code&gt;:substitute&lt;/code&gt; command (a.k.a &lt;code&gt;:s&lt;/code&gt;) to do the actual replacement.&lt;/p&gt;

&lt;p&gt;That's it! This approach might seem complicated to non-Vim users, but it is made of smaller pieces, composed together to create one big action.&lt;/p&gt;

&lt;p&gt;Being composable, I can replace commands here and there. For example, instead of replacing, I could actually delete all lines containing the match, with &lt;code&gt;:global&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;:cfdo %g/&amp;lt;my-grep-pattern&amp;gt;/d
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  Section help
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;:help :cfdo&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;:help :cdo&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;:help :global&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Filtering results
&lt;/h2&gt;

&lt;p&gt;What if you want to make a replacement, but only to &lt;strong&gt;some&lt;/strong&gt; of the files in your quickfix list? Do you run a second, more specific search?&lt;/p&gt;

&lt;p&gt;No need! Vim provides a plugin named &lt;code&gt;cfilter&lt;/code&gt;, which can helps us in this case. You can use it by adding this to your &lt;code&gt;.vimrc&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight viml"&gt;&lt;code&gt;&lt;span class="k"&gt;packadd&lt;/span&gt;&lt;span class="p"&gt;!&lt;/span&gt; cfilter
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Check it out with &lt;code&gt;:help cfilter&lt;/code&gt;. It gives you a nifty little command to filter the results of the quickfix list: &lt;code&gt;:Cfilter&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;:Cfilter app/models  # display only entries matching `app/models`
:Cfilter! .swp       # remove entries matching `.swp`
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;That's great, and most of the time, it's just enough. But sometimes, it might make sense to cherry-pick the entries you want to keep, by going one by one over them. For that, I have mapped &lt;code&gt;x&lt;/code&gt; to remove the entry under the cursor:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight viml"&gt;&lt;code&gt;&lt;span class="k"&gt;function&lt;/span&gt;&lt;span class="p"&gt;!&lt;/span&gt; &lt;span class="nv"&gt;s:QfRemoveAtCursor&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; abort
  &lt;span class="k"&gt;let&lt;/span&gt; currline &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;line&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'.'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="nb"&gt;items&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;getqflist&lt;/span&gt;&lt;span class="p"&gt;()-&amp;gt;&lt;/span&gt;&lt;span class="k"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="nb"&gt;index&lt;/span&gt; &lt;span class="p"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;index&lt;/span&gt; &lt;span class="p"&gt;+&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;!=&lt;/span&gt; currline &lt;span class="p"&gt;})&lt;/span&gt;
  &lt;span class="k"&gt;call&lt;/span&gt; &lt;span class="nb"&gt;setqflist&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;items&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'r'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="nb"&gt;execute&lt;/span&gt; &lt;span class="s1"&gt;'normal '&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt; currline &lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="s1"&gt;'G'&lt;/span&gt;
&lt;span class="k"&gt;endfunction&lt;/span&gt;

augroup quickfix
  autocmd&lt;span class="p"&gt;!&lt;/span&gt;
  autocmd &lt;span class="nb"&gt;FileType&lt;/span&gt; qf nnoremap &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;buffer&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;silent&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;x&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="k"&gt;call&lt;/span&gt; &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;SID&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;QfRemoveAtCursor&lt;span class="p"&gt;()&amp;lt;&lt;/span&gt;CR&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
augroup END
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Now whenever I press &lt;code&gt;x&lt;/code&gt; on top of an entry in the quickfix list window, it gets deleted.&lt;/p&gt;

&lt;p&gt;Trimming the quickfix list like this is useful, not only to find what you are looking for, but to perform batch operations on all matches with &lt;code&gt;:cdo&lt;/code&gt; and &lt;code&gt;:cfdo&lt;/code&gt;!&lt;/p&gt;
&lt;h3&gt;
  
  
  Section help
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;:help usr_40.txt&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;:help usr_41.txt&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  :Grep
&lt;/h2&gt;

&lt;p&gt;Remember we had to manually run &lt;code&gt;:copen&lt;/code&gt; to see the quickfix list after every&lt;br&gt;
&lt;code&gt;:grep&lt;/code&gt;? Let's make that automatic by creating a custom &lt;code&gt;:Grep&lt;/code&gt; command to&lt;br&gt;
open the quickfix list for us:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight viml"&gt;&lt;code&gt;&lt;span class="k"&gt;function&lt;/span&gt;&lt;span class="p"&gt;!&lt;/span&gt; &lt;span class="nv"&gt;s:Grep&lt;/span&gt;&lt;span class="p"&gt;(...)&lt;/span&gt; abort
  &lt;span class="k"&gt;let&lt;/span&gt; pattern &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;a&lt;/span&gt;&lt;span class="p"&gt;:,&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; pattern &lt;span class="p"&gt;==&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt; &lt;span class="k"&gt;endif&lt;/span&gt;

  &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="nb"&gt;path&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;a&lt;/span&gt;&lt;span class="p"&gt;:,&lt;/span&gt; &lt;span class="m"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'.'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="nb"&gt;execute&lt;/span&gt; &lt;span class="s1"&gt;'silent! grep! "'&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nb"&gt;escape&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;pattern&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'"-'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="s1"&gt;'" '&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nb"&gt;path&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="s1"&gt;' | redraw! | copen'&lt;/span&gt;
&lt;span class="k"&gt;endfunction&lt;/span&gt;

command&lt;span class="p"&gt;!&lt;/span&gt; &lt;span class="p"&gt;-&lt;/span&gt;nargs&lt;span class="p"&gt;=+&lt;/span&gt; &lt;span class="p"&gt;-&lt;/span&gt;&lt;span class="nb"&gt;complete&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="k"&gt;file&lt;/span&gt; Grep &lt;span class="k"&gt;silent&lt;/span&gt;&lt;span class="p"&gt;!&lt;/span&gt; &lt;span class="k"&gt;call&lt;/span&gt; &lt;span class="nv"&gt;s:Grep&lt;/span&gt;&lt;span class="p"&gt;(&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;f&lt;/span&gt;&lt;span class="p"&gt;-&lt;/span&gt;&lt;span class="k"&gt;args&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Neat! Now all we have to do is use &lt;code&gt;:Grep&lt;/code&gt; instead of &lt;code&gt;:grep&lt;/code&gt;! We even get file autocompletion for grep's optional second parameter.&lt;/p&gt;
&lt;h3&gt;
  
  
  Section help
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;:help usr_40.txt&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;:help key-mapping&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;:help mapleader&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;:help i_CTRL-R&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  :Replace
&lt;/h2&gt;

&lt;p&gt;Following on &lt;code&gt;:Grep&lt;/code&gt;, let's implement a &lt;code&gt;:Replace&lt;/code&gt; command, so our whole search and replace quest can be reduced to just running two easy to remember commands.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight viml"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;!&lt;/span&gt;&lt;span class="nb"&gt;exists&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'s:latest_greps'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="nv"&gt;s:latest_greps&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;
&lt;span class="k"&gt;endif&lt;/span&gt;

&lt;span class="k"&gt;function&lt;/span&gt;&lt;span class="p"&gt;!&lt;/span&gt; &lt;span class="nv"&gt;s:Grep&lt;/span&gt;&lt;span class="p"&gt;(...)&lt;/span&gt; abort
  &lt;span class="k"&gt;let&lt;/span&gt; pattern &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;a&lt;/span&gt;&lt;span class="p"&gt;:,&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; pattern &lt;span class="p"&gt;==&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt; &lt;span class="k"&gt;endif&lt;/span&gt;

  &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="nv"&gt;s:latest_greps&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;pattern&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;
  &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="nb"&gt;path&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;a&lt;/span&gt;&lt;span class="p"&gt;:,&lt;/span&gt; &lt;span class="m"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'.'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="nb"&gt;execute&lt;/span&gt; &lt;span class="s1"&gt;'silent! grep! "'&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nb"&gt;escape&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;pattern&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'"-'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="s1"&gt;'" '&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nb"&gt;path&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="s1"&gt;' | redraw! | copen'&lt;/span&gt;
&lt;span class="k"&gt;endfunction&lt;/span&gt;

&lt;span class="k"&gt;function&lt;/span&gt;&lt;span class="p"&gt;!&lt;/span&gt; &lt;span class="nv"&gt;s:Replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;original&lt;span class="p"&gt;,&lt;/span&gt; replacement&lt;span class="p"&gt;)&lt;/span&gt; abort
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nv"&gt;a:original&lt;/span&gt; &lt;span class="p"&gt;==&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt; &lt;span class="p"&gt;||&lt;/span&gt; &lt;span class="nv"&gt;a:replacement&lt;/span&gt; &lt;span class="p"&gt;==&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt; &lt;span class="k"&gt;endif&lt;/span&gt;

  &lt;span class="nb"&gt;execute&lt;/span&gt; &lt;span class="s1"&gt;'cfdo %s/'&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nb"&gt;escape&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;a:original&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'/'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="s1"&gt;'/'&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nv"&gt;a:replacement&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="s1"&gt;'/ge'&lt;/span&gt;
&lt;span class="k"&gt;endfunction&lt;/span&gt;

&lt;span class="k"&gt;function&lt;/span&gt;&lt;span class="p"&gt;!&lt;/span&gt; LatestGreps&lt;span class="p"&gt;(&lt;/span&gt;ArgLead&lt;span class="p"&gt;,&lt;/span&gt; CmdLine&lt;span class="p"&gt;,&lt;/span&gt; CursorPos&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;keys&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;s:latest_greps&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;endfunction&lt;/span&gt;

command&lt;span class="p"&gt;!&lt;/span&gt; &lt;span class="p"&gt;-&lt;/span&gt;nargs&lt;span class="p"&gt;=+&lt;/span&gt; &lt;span class="p"&gt;-&lt;/span&gt;&lt;span class="nb"&gt;complete&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="k"&gt;file&lt;/span&gt; Grep &lt;span class="k"&gt;silent&lt;/span&gt;&lt;span class="p"&gt;!&lt;/span&gt; &lt;span class="k"&gt;call&lt;/span&gt; &lt;span class="nv"&gt;s:Grep&lt;/span&gt;&lt;span class="p"&gt;(&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;f&lt;/span&gt;&lt;span class="p"&gt;-&lt;/span&gt;&lt;span class="k"&gt;args&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;)&lt;/span&gt;
command&lt;span class="p"&gt;!&lt;/span&gt; &lt;span class="p"&gt;-&lt;/span&gt;nargs&lt;span class="p"&gt;=+&lt;/span&gt; &lt;span class="p"&gt;-&lt;/span&gt;&lt;span class="nb"&gt;complete&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;customlist&lt;span class="p"&gt;,&lt;/span&gt;LatestGreps Replace &lt;span class="k"&gt;silent&lt;/span&gt;&lt;span class="p"&gt;!&lt;/span&gt; &lt;span class="k"&gt;call&lt;/span&gt; &lt;span class="nv"&gt;s:Replace&lt;/span&gt;&lt;span class="p"&gt;(&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;f&lt;/span&gt;&lt;span class="p"&gt;-&lt;/span&gt;&lt;span class="k"&gt;args&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;)&lt;/span&gt;

nnoremap &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;Leader&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;&lt;span class="k"&gt;g&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;Grep&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;Space&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
nnoremap &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;silent&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;Leader&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;&lt;span class="k"&gt;r&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="k"&gt;call&lt;/span&gt; &lt;span class="nb"&gt;feedkeys&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;':Replace&amp;lt;Space&amp;gt;&amp;lt;Tab&amp;gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'t'&lt;/span&gt;&lt;span class="p"&gt;)&amp;lt;&lt;/span&gt;CR&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Our &lt;code&gt;:Grep&lt;/code&gt; now stores a list of previous searches, so it can then be used as autocompletion for &lt;code&gt;:Replace&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;:Replace&lt;/code&gt; itself simply runs &lt;code&gt;:cfdo&lt;/code&gt; with a &lt;code&gt;:substitute&lt;/code&gt; command. It takes two arguments: a search string, and a replacement string. The search string is autocompleted, so we don't have to worry about it.&lt;/p&gt;

&lt;p&gt;Finally we map &lt;code&gt;&amp;lt;Leader&amp;gt;g&lt;/code&gt; to the &lt;code&gt;:Grep&lt;/code&gt; command, and &lt;code&gt;&amp;lt;Leader&amp;gt;r&lt;/code&gt; to the &lt;code&gt;:Replace&lt;/code&gt; command.&lt;/p&gt;

&lt;p&gt;When searching, all we need to do now is press &lt;code&gt;&amp;lt;Leader&amp;gt;g&lt;/code&gt;, and type what we want. For replacing, we simply press &lt;code&gt;&amp;lt;Leader&amp;gt;r&lt;/code&gt; and type our replacement.&lt;/p&gt;


&lt;div class="ltag_asciinema"&gt;
  
&lt;/div&gt;



&lt;p&gt;Now we're talking! We can even filter the quickfix list in any way we want before doing our replacement. Or we could make the replacement confirm on each match, if we wanted to, using the &lt;code&gt;c&lt;/code&gt; flag of the &lt;code&gt;:substitute&lt;/code&gt; command.&lt;/p&gt;

&lt;p&gt;You can also run all the search and replace machinery in a single file if you want, too. Simply do &lt;code&gt;:Grep my-pattern %&lt;/code&gt; to search in the current buffer.&lt;/p&gt;

&lt;h3&gt;
  
  
  Section help
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;:help usr_40.txt&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;:help usr_41.txt&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;In this post I showed several ways to search and replace text in Vim.&lt;/p&gt;

&lt;p&gt;It might be more complex than in regular editors, but that complexity has several advantages. Composability being one of the big ones.&lt;/p&gt;

&lt;p&gt;Composability is the way of Vim. It allows you to compose several small atoms together, through a "Vim language", into something bigger and more complex. It gives Vim users a lot of power, and it's incredibly fun to learn :)&lt;/p&gt;

&lt;p&gt;Every new thing you learn in Vim adds a lot to your final user experience, because you can compose it with all the other tools you know.&lt;/p&gt;

&lt;p&gt;Let me know of any feedback you might have - I'm still learning Vim :) - and I hope you find this useful!&lt;/p&gt;

</description>
      <category>vim</category>
      <category>coding</category>
      <category>productivity</category>
      <category>webdev</category>
    </item>
    <item>
      <title>The Best Way to Deploy Your Own Apps</title>
      <dc:creator>Federico Ramirez</dc:creator>
      <pubDate>Thu, 13 Jul 2023 19:58:00 +0000</pubDate>
      <link>https://dev.to/gosukiwi/the-best-way-to-deploy-your-own-apps-k79</link>
      <guid>https://dev.to/gosukiwi/the-best-way-to-deploy-your-own-apps-k79</guid>
      <description>&lt;p&gt;I've used &lt;a href="https://www.heroku.com/"&gt;Heroku&lt;/a&gt; in the past for a few hobby projects, but their pricing always kept me from considering it for serious projects.&lt;/p&gt;

&lt;p&gt;For tiny projects I know for certain they won't scale, Heroku was great, but for serious projects, its &lt;strong&gt;way&lt;/strong&gt; cheaper to just get your own VPS and do everything yourself, although of course, it's much more work!&lt;/p&gt;

&lt;p&gt;With services like Heroku you end up paying for management, which is a perfectly fine approach sometimes. I'm no stranger to configuring my own server, but still, I'd rather avoid it if I can.&lt;/p&gt;

&lt;p&gt;Since Heroku removed their free tier, I've been migrating my little Discord bot from server to server. My latest server was &lt;a href="https://railway.app/"&gt;Railway&lt;/a&gt;, but given they were also removing their free tier, and I couldn't find anything I liked, I just bit the bullet and set up my own VPS.&lt;/p&gt;

&lt;p&gt;I ended up deciding on &lt;a href="https://hostinger.com?REFERRALCODE=1FEDEKILLER02"&gt;Hostinger&lt;/a&gt;, because not only they give me more bang for my buck (2 vCPUs, 8GB RAM and 100GB SSD for $6.99 a month is not bad at all) but also they provide built-in weekly backups, unlike most other services that you must pay separately for that feature. They also have been in the hosting business since forever so it's a solid choice.&lt;/p&gt;

&lt;p&gt;With a VPS in place, I could certainly just manually set up everything I need, but that's just what I wanted to avoid by using services like Heroku and Railway. Then, I remembered &lt;a href="https://dokku.com/"&gt;Dokku&lt;/a&gt; and decided to &lt;a href="https://dokku.com/docs/getting-started/install/vagrant/"&gt;give it a shot&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I used &lt;a href="https://developer.hashicorp.com/vagrant/downloads"&gt;Vagrant&lt;/a&gt; to try it locally, and I was surprised just how easy it was to set everything up! Just two commands and it's up:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;wget &lt;span class="nt"&gt;-NP&lt;/span&gt; &lt;span class="nb"&gt;.&lt;/span&gt; https://dokku.com/install/v0.30.9/bootstrap.sh
&lt;span class="nb"&gt;sudo &lt;/span&gt;&lt;span class="nv"&gt;DOKKU_TAG&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;v0.30.9 bash bootstrap.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It uses Docker under the hood, so you can deploy your Dockerized apps very easily, and if your app doesn't use Docker, no worries! Dokku is great at just guessing your app's Buildpack. It "just works" for most languages, such as Node.js, Ruby, Python and PHP.&lt;/p&gt;

&lt;p&gt;Setting up Dokku in my VPS only took a couple of minutes following their documentation. Getting my bot up there was as easy as just setting up the environment variables with &lt;code&gt;dokku config:set&lt;/code&gt; and doing a &lt;code&gt;git push&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;What's so great about Dokku is that you can host several apps on the same server if you want. That's great for hobby projects. Create databases and apps on the fly, remove them, play with them, and don't worry about pricing. It's all included in the fixed price you pay for your VPS.&lt;/p&gt;

&lt;p&gt;If you ever need more power you can always move that app outside to either it's own Dokku server with more resources, or something like AWS to take full advantage of horizontal scaling. You can even use a mixed solution by having a few workers for your web server and a managed database on AWS with unlimited scaling. The good thing is that, by then, you'll know for certain how much resources your app consumes and what you'll need, so you can take a better informed decision.&lt;/p&gt;

&lt;p&gt;I was just blown away by how easy it was to set everything up! You can even limit resources for some of your apps, limiting things like CPU and RAM.&lt;/p&gt;

&lt;p&gt;All in all, I really recommend trying out &lt;a href="https://dokku.com/"&gt;Dokku&lt;/a&gt; if you are a developer interested in hosting your own projects. It makes it super easy to get everything you need to get up and running without having to worry about the specifics. And the price is impossible to beat!&lt;/p&gt;

&lt;p&gt;Give it a shot locally! It's so easy it feels like cheating.&lt;/p&gt;

</description>
      <category>deployment</category>
      <category>dokku</category>
      <category>vps</category>
      <category>docker</category>
    </item>
    <item>
      <title>Vim Tips: Snippets without plugins</title>
      <dc:creator>Federico Ramirez</dc:creator>
      <pubDate>Mon, 21 Mar 2022 16:08:21 +0000</pubDate>
      <link>https://dev.to/gosukiwi/vim-tips-snippets-without-plugins-18c2</link>
      <guid>https://dev.to/gosukiwi/vim-tips-snippets-without-plugins-18c2</guid>
      <description>&lt;p&gt;There are many Vim plugins to create code snippets. But did you know Vim already supports this functionality?&lt;/p&gt;

&lt;p&gt;I like relying on &lt;em&gt;vanilla&lt;/em&gt; Vim as much as possible, and keep plugins to a minimum. For that reason, I ended up using &lt;code&gt;:help abbreviations&lt;/code&gt; to make a simple snippet engine. &lt;/p&gt;

&lt;p&gt;It works so well, I'd like to share it! Below is an example of my current setup:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight viml"&gt;&lt;code&gt;augroup haml
  autocmd&lt;span class="p"&gt;!&lt;/span&gt;
  autocmd &lt;span class="nb"&gt;FileType&lt;/span&gt; haml inorea &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;buffer&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt; 
&lt;span class="se"&gt;        \&lt;/span&gt; table %table&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;CR&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;%thead&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;CR&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;%&lt;span class="k"&gt;tr&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;CR&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;%&lt;span class="k"&gt;th&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;%header row%&lt;span class="p"&gt;}&amp;lt;&lt;/span&gt;CR&lt;span class="p"&gt;&amp;gt;&amp;lt;&lt;/span&gt;BS&lt;span class="p"&gt;&amp;gt;&amp;lt;&lt;/span&gt;BS&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;%tbody&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;CR&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;%&lt;span class="k"&gt;tr&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;CR&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;%td &lt;span class="p"&gt;{&lt;/span&gt;%body row%&lt;span class="p"&gt;}&lt;/span&gt;
augroup END
nnoremap &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;Plug&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;GoToNextPlaceholder &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="k"&gt;call&lt;/span&gt; &lt;span class="nb"&gt;search&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'{%[^%]*%}'&lt;/span&gt;&lt;span class="p"&gt;)&amp;lt;&lt;/span&gt;CR&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;va&lt;span class="p"&gt;{&lt;/span&gt;
imap &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;silent&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;C&lt;span class="p"&gt;-&lt;/span&gt;&lt;span class="k"&gt;q&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&amp;lt;&lt;/span&gt;C&lt;span class="p"&gt;-&lt;/span&gt;&lt;span class="k"&gt;e&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;C&lt;span class="p"&gt;-&lt;/span&gt;&lt;span class="k"&gt;v&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&amp;lt;&lt;/span&gt;C&lt;span class="p"&gt;-&lt;/span&gt;&lt;span class="k"&gt;a&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&amp;lt;&lt;/span&gt;C&lt;span class="p"&gt;-]&amp;gt;&amp;lt;&lt;/span&gt;Esc&lt;span class="p"&gt;&amp;gt;&amp;lt;&lt;/span&gt;Plug&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;GoToNextPlaceholder
nmap &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;silent&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;C&lt;span class="p"&gt;-&lt;/span&gt;&lt;span class="k"&gt;q&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&amp;lt;&lt;/span&gt;C&lt;span class="p"&gt;-&lt;/span&gt;&lt;span class="k"&gt;q&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;Plug&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;GoToNextPlaceholder
imap &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;silent&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;C&lt;span class="p"&gt;-&lt;/span&gt;&lt;span class="k"&gt;q&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&amp;lt;&lt;/span&gt;C&lt;span class="p"&gt;-&lt;/span&gt;&lt;span class="k"&gt;q&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;Esc&lt;span class="p"&gt;&amp;gt;&amp;lt;&lt;/span&gt;Plug&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;GoToNextPlaceholder
vmap &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;silent&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;C&lt;span class="p"&gt;-&lt;/span&gt;&lt;span class="k"&gt;q&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&amp;lt;&lt;/span&gt;C&lt;span class="p"&gt;-&lt;/span&gt;&lt;span class="k"&gt;q&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;Esc&lt;span class="p"&gt;&amp;gt;&amp;lt;&lt;/span&gt;Plug&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;GoToNextPlaceholder
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The mappings I use are &lt;code&gt;&amp;lt;C-q&amp;gt;&amp;lt;C-e&amp;gt;&lt;/code&gt; to expand, and &lt;code&gt;&amp;lt;C-q&amp;gt;&amp;lt;C-q&amp;gt;&lt;/code&gt; to go to next placeholder, but feel free to change this to whatever you like.&lt;/p&gt;

&lt;p&gt;I define snippets inside an &lt;code&gt;augroup&lt;/code&gt;, in this case, all HAML snippets are there. Each snippet ends with &lt;code&gt;ctrl-a&lt;/code&gt;, that's just so snippets don't get automatically triggered all the time, we want to manually trigger them.&lt;/p&gt;

&lt;p&gt;You can input the &lt;code&gt;&amp;lt;ctrl-a&amp;gt;&lt;/code&gt; character while typing by pressing &lt;code&gt;&amp;lt;ctrl-v&amp;gt;&amp;lt;ctrl-a&amp;gt;&lt;/code&gt; in insert mode.&lt;/p&gt;

&lt;p&gt;The snippet itself looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight viml"&gt;&lt;code&gt;autocmd &lt;span class="nb"&gt;FileType&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt;my&lt;span class="p"&gt;-&lt;/span&gt;&lt;span class="k"&gt;filetype&lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt; inorea &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;buffer&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt;my&lt;span class="p"&gt;-&lt;/span&gt;sippet&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;c&lt;/span&gt;&lt;span class="p"&gt;-&lt;/span&gt;&lt;span class="k"&gt;a&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;|&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt;my&lt;span class="p"&gt;-&lt;/span&gt;expansion&lt;span class="p"&gt;|&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can use &lt;code&gt;{%placeholders%}&lt;/code&gt; in the expansion, to be navigated with &lt;code&gt;&amp;lt;C-q&amp;gt;&amp;lt;C-q&amp;gt;&lt;/code&gt;. A HAML table snippet looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight viml"&gt;&lt;code&gt;autocmd &lt;span class="nb"&gt;FileType&lt;/span&gt; haml inorea &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;buffer&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt; 
&lt;span class="se"&gt;        \&lt;/span&gt; table %table&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;CR&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;%thead&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;CR&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;%&lt;span class="k"&gt;tr&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;CR&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;%&lt;span class="k"&gt;th&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;%header row%&lt;span class="p"&gt;}&amp;lt;&lt;/span&gt;CR&lt;span class="p"&gt;&amp;gt;&amp;lt;&lt;/span&gt;BS&lt;span class="p"&gt;&amp;gt;&amp;lt;&lt;/span&gt;BS&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;%tbody&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;CR&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;%&lt;span class="k"&gt;tr&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;CR&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;%td &lt;span class="p"&gt;{&lt;/span&gt;%body row%&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Hope you find it useful!&lt;/p&gt;

&lt;p&gt;EDIT: If you like this approach, I created an actual plugin &lt;a href="https://github.com/gosukiwi/vim-zensnippets"&gt;here&lt;/a&gt; :) It's less than 100 lines of Vimscript, so if you are into minimal, no-dependency plugins, you'll feel right at home.&lt;/p&gt;

</description>
      <category>vim</category>
      <category>snippets</category>
    </item>
    <item>
      <title>Software Design: Deep Modules</title>
      <dc:creator>Federico Ramirez</dc:creator>
      <pubDate>Fri, 02 Jul 2021 00:24:55 +0000</pubDate>
      <link>https://dev.to/gosukiwi/software-design-deep-modules-2on9</link>
      <guid>https://dev.to/gosukiwi/software-design-deep-modules-2on9</guid>
      <description>&lt;p&gt;I'm reading &lt;a href="https://www.amazon.com/Philosophy-Software-Design-John-Ousterhout/dp/1732102201"&gt;A Philosophy of Software Design&lt;/a&gt;, by John K. Ousterhout, a professor of computer science at Stanford University and the creator of the &lt;a href="https://www.tcl.tk/about/"&gt;Tcl&lt;/a&gt; programming language. &lt;/p&gt;

&lt;p&gt;According to &lt;a href="https://johz.bearblog.dev/book-review-philosophy-software-design/"&gt;this other review&lt;/a&gt; he has almost two decades of real world software experience, so he seems to know a thing or two about software design.&lt;/p&gt;

&lt;p&gt;I love software design, and I love reading different takes on it. I admit I haven't finished the book yet, but so far I love his simple yet complete approach.&lt;/p&gt;

&lt;p&gt;So far, I'd recommend it, even though I both agree and disagree on what he calls &lt;em&gt;Classitis&lt;/em&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Classitis
&lt;/h2&gt;

&lt;p&gt;I don't want to spoil or copy too much from his book but to make things short, let's say classes are a type of module, and he encourages modules to be deep, instead of shallow.&lt;/p&gt;

&lt;p&gt;A shallow module is module is one with a big public interface, compared to it's implementation. A deep module, is one with a small public interface, compared to it's implementation.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   DEEP MODULE
  ┌────────────┐
  │            ├─────► Interface
  ├────────────┤
  │            │
  │            │
  │            ├─────► Implementation
  │            │
  │            │
  │            │
  └────────────┘

  SHALLOW MODULE
  ┌────────────┐
  │            ├─────► Interface
  │            │
  │            │
  │            │
  ├────────────┤
  │            │
  │            ├─────► Implementation
  │            │
  └────────────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;His argument is that shallow modules don't help to manage complexity, because the benefit they provide (hiding implementation) is dwarfed by the cost of having to learn a big, complicated public interface. Thus, they must be avoided when possible.&lt;/p&gt;

&lt;p&gt;I think he makes a great point. The example he gives (a perfect one, I must add) is the Java File API:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="nc"&gt;FileInputStream&lt;/span&gt; &lt;span class="n"&gt;fileStream&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;FileInputStream&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fileName&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="nc"&gt;BufferedInputStream&lt;/span&gt; &lt;span class="n"&gt;bufferedStream&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;BufferedInputStream&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fileStream&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="nc"&gt;ObjectInputStream&lt;/span&gt; &lt;span class="n"&gt;objectStream&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;ObjectInputStream&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bufferedStream&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The complexity of the &lt;code&gt;ObjectInputStream&lt;/code&gt; interface is huge. You need to know a lot of things in order to use that class. And that unknown, is complexity.&lt;/p&gt;

&lt;p&gt;Sure, the class is very flexible, but the API is not great. He calls having several small classes like this &lt;strong&gt;Classitis&lt;/strong&gt;, and says it must be avoided.&lt;/p&gt;

&lt;h2&gt;
  
  
  But... Small classes are good, right?
&lt;/h2&gt;

&lt;p&gt;Small classes are a staple of OOP languages like Smalltalk, and to some extent, Ruby inherited that.&lt;/p&gt;

&lt;p&gt;Authors like &lt;a href="https://sandimetz.com/"&gt;Sandi Metz&lt;/a&gt;, a Ruby consultant with 30+ years of experience, and a Smalltalk background, strongly &lt;a href="https://thoughtbot.com/blog/sandi-metz-rules-for-developers"&gt;advises for small classes and small methods&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Small objects seem to make following the &lt;a href="https://en.wikipedia.org/wiki/SOLID"&gt;Object Oriented Design Principles&lt;/a&gt; easier.&lt;/p&gt;

&lt;p&gt;So, how can two well-respected authors have polar opposite opinions? Well, for one, because software is hard, but also, because writing good, maintainable software is more an art than a mathematical formula you can blindly apply.&lt;/p&gt;

&lt;p&gt;Different people with different backgrounds and different experience reach the goal in different ways. Shocker right? 😉&lt;/p&gt;

&lt;h2&gt;
  
  
  A case for small objects
&lt;/h2&gt;

&lt;p&gt;I am biased. Being a Ruby developer, and sharing Sandi's philosophy, I love small objects with tiny interfaces. But I know sometimes, they can make things more complex.&lt;/p&gt;

&lt;p&gt;Something Sandi and John have in common is that they both care a lot about abstractions. Abstractions are very important, and they require constant refactor, in order to accommodate them to the software we are writing.&lt;/p&gt;

&lt;p&gt;Sandi says "it's better to have duplication, than the wrong abstraction". And in this sense, we can see that it's not enough to blindly follow some rules. And &lt;strong&gt;that&lt;/strong&gt; is the trick to it.&lt;/p&gt;

&lt;p&gt;Whether you approach it from the right or from the left, whether you prefer small objects or deep modules, you need a critical eye, and always be watching the design of your software.&lt;/p&gt;

&lt;p&gt;Take time to refactor, accommodate the abstractions, think about different solutions, and sometimes, recognize that you just can't come up with a good solution, in which case, it's better to leave it as it is for now, until you have more code. The more repetition you have, the easier it is to notice the pattern, and abstract it away.&lt;/p&gt;

&lt;h2&gt;
  
  
  Back to the Java example
&lt;/h2&gt;

&lt;p&gt;Remember this?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="nc"&gt;FileInputStream&lt;/span&gt; &lt;span class="n"&gt;fileStream&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;FileInputStream&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fileName&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="nc"&gt;BufferedInputStream&lt;/span&gt; &lt;span class="n"&gt;bufferedStream&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;BufferedInputStream&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fileStream&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="nc"&gt;ObjectInputStream&lt;/span&gt; &lt;span class="n"&gt;objectStream&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;ObjectInputStream&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bufferedStream&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Ugly right? One could look at it and blame the small classes. But you could also look at it, and realize you are looking at an implementation, not an interface.&lt;/p&gt;

&lt;p&gt;What if you used a &lt;a href="https://en.wikipedia.org/wiki/Builder_pattern"&gt;builder object&lt;/a&gt; to abstract it away? I don't know much about the Java API, but in Ruby-land, it could look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ruby"&gt;&lt;code&gt;&lt;span class="n"&gt;stream&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;StreamBuilder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;build&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="ss"&gt;buffered: &lt;/span&gt;&lt;span class="kp"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Knowing the name of the classes and what it takes to instantiate them is a dependency. You can abstract those away, think of them as implementation details. The consumers of &lt;code&gt;StreamBuilder&lt;/code&gt; don't even need to know they exist.&lt;/p&gt;

&lt;p&gt;We now exposed a small interface -- only a constructor -- and hide the implementation details, which is the name of classes and how to arrange them all together.&lt;/p&gt;

&lt;p&gt;You will still need to know the name of the builder class, and what it expects in the constructor, but that can be easily documented.&lt;/p&gt;

&lt;h2&gt;
  
  
  Complexity
&lt;/h2&gt;

&lt;p&gt;It is true small classes have issues. A class will always be more complex than just a function, and debugging OOP code can feel like following Alice through the rabbit hole. You look at one object which uses another which uses another.&lt;/p&gt;

&lt;p&gt;But they also have advantages. For example, you don't have to hold several objects in your head at once, but you might need to hold a lot of state if you are debugging one big method.&lt;/p&gt;

&lt;p&gt;Also, small classes force you to separate the algorithm into smaller parts. A fundamental part of your problem could easily be intermingled and hidden away, you might not even know it exist, if it was just one big method or massive class.&lt;/p&gt;

&lt;p&gt;Yet another advantage is that the average complexity of your code will be smaller. It might not be perfect, but it will be &lt;strong&gt;consistent&lt;/strong&gt;. It will allow your software to not be consumed by it's own inevitable complexity.&lt;/p&gt;

&lt;p&gt;There's a great talk by Sandi called &lt;a href="https://www.youtube.com/watch?v=8bZh5LMaSmE"&gt;All the Little Things&lt;/a&gt; which explains this in detail.&lt;/p&gt;

&lt;p&gt;So, what's better? It depends. We know that both extremes are wrong, so it's up to you to come with a happy middle! What do &lt;strong&gt;you&lt;/strong&gt; prefer?&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>oop</category>
      <category>ruby</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Am I Senior Yet?</title>
      <dc:creator>Federico Ramirez</dc:creator>
      <pubDate>Mon, 07 Sep 2020 20:47:23 +0000</pubDate>
      <link>https://dev.to/gosukiwi/am-i-senior-yet-2bgm</link>
      <guid>https://dev.to/gosukiwi/am-i-senior-yet-2bgm</guid>
      <description>&lt;p&gt;There's been some fuss at &lt;a href="https://www.reddit.com/r/programming/"&gt;/r/programming&lt;/a&gt; about a post by a developer with 2 years of experience claiming to be a senior, and evangelizing others on what they need to do to be like him.&lt;/p&gt;

&lt;p&gt;Needless to say, the post blew up, and mods had to delete it.&lt;/p&gt;

&lt;p&gt;Now I don't mean to bash the original author, he has all the right in the world to do/think whatever he wants with his title. But it does fire up an interesting topic I've been wanting to write for some time now.&lt;/p&gt;

&lt;h1&gt;
  
  
  What do I need to learn?
&lt;/h1&gt;

&lt;p&gt;That seems to be the most common question new developers ask when they want to reach &lt;em&gt;senior status&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;The answer is... it's not that simple. Not only the things you need to know are many and vary from place to place, but quality also matters.&lt;/p&gt;

&lt;h1&gt;
  
  
  An analogy: Martial Arts
&lt;/h1&gt;

&lt;p&gt;Let's take martial arts as an example. As you might know, many different martial arts give you different colored belts as you progress in their system.&lt;/p&gt;

&lt;p&gt;For the sake of analogy, let's say black belt is considered Senior.&lt;/p&gt;

&lt;p&gt;Now, different systems have different ways of grading. Just like different companies have different ways of giving titles around.&lt;/p&gt;

&lt;p&gt;Some places give the student an exam every fixed amount of time, like 3 months. If they pass, they advance one step. Others have longer periods of time. And others don't even have a fixed amount of time, when the instructor thinks you are ready, he gives you the belt.&lt;/p&gt;

&lt;p&gt;The gist of it is, it's totally &lt;strong&gt;subjective&lt;/strong&gt;, it depends on the context. &lt;/p&gt;

&lt;p&gt;Some systems just want to earn money — they are called &lt;a href="https://www.urbandictionary.com/define.php?term=McDojo"&gt;McDojos&lt;/a&gt;. In those systems, it makes total sense to have frequent exams, where you pass as long as you pay.&lt;/p&gt;

&lt;p&gt;Other systems, like Brazilian Jiu-Jitsu, are more informal. At most of those places, the instructor just gives you the belt when he thinks you are ready. Maybe after competing, or maybe he just decides to test you that day.&lt;/p&gt;

&lt;p&gt;BJJ cares about the quality and transmission of their art. So it makes sense that it takes lots of years to get the black belt. Sometimes it takes 6, sometimes 10, sometimes it never comes. It depends on the person.&lt;/p&gt;

&lt;p&gt;Just like that, some companies will give you a title and keep you happy. It works for them, they want you to be happy, and to continue working for them. Evangelize about how great they are, etc. It also gives you a feeling of growth. And you surely did grow! But what some places consider black belt, others might consider white. It totally depends on the particular company.&lt;/p&gt;

&lt;h1&gt;
  
  
  The belt is so your pants dont fall
&lt;/h1&gt;

&lt;p&gt;At the end of the day, it's just a title. There's the infamous case of &lt;a href="https://en.wikipedia.org/wiki/Eddie_Bravo"&gt;Eddie Bravo&lt;/a&gt;. Being a brown belt, he submitted and won in a competition against Royler Gracie, a black belt, and not just any black belt, a direct relative of the founders of the art (needless to say he got the black belt after that match).&lt;/p&gt;

&lt;p&gt;Words associate a sound, or group of letters, to a particular meaning. But sometimes we miss the word for the actual thing.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;What's in a name? That which we call a rose&lt;br&gt;
By any other name would smell as sweet&lt;br&gt;
— William Shakespeare&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Don't get too stuck up in names. What someone means by senior others might now as architect, semi-senior, or whatever funny name companies can come up with.&lt;/p&gt;

&lt;h1&gt;
  
  
  Yeah that's all nice but...
&lt;/h1&gt;

&lt;p&gt;I know. Senior jobs pay more than junior jobs. Also, you have more chance at being hired if you are senior. So you want that title.&lt;/p&gt;

&lt;p&gt;In my opinion, everyone that has had worked on a tech job for a few years can already submit their CV to other companies as Senior. It's up to the other company to really know where you are at.&lt;/p&gt;

&lt;p&gt;If they have competent people, no matter what your title is, they will know where you are at, and whether or not you are a good fit for their team, technically speaking.&lt;/p&gt;

&lt;p&gt;If they don't have competent people, well... the hiring process gets more random. They might hire you because they like your face, or your gender, or some project you did/participated on. &lt;/p&gt;

&lt;h1&gt;
  
  
  Senior is whatever it needs to be
&lt;/h1&gt;

&lt;p&gt;Some people like being a jack of all trades, and they certainly have their place. Others, prefer specialization, and they surely have a place too. Someone good at what they do, whatever it is, will always be precious to any team.&lt;/p&gt;

&lt;p&gt;This might be a controversial opinion, but let me tell you this: Someone who does something because they enjoy it, will always be much better at what they do that someone who does it just for the money.&lt;/p&gt;

&lt;p&gt;Now, you can do both, of course. Who doesn't like money, right? But if you don't have passion for what you do, you are doing something wrong. You only have one life, better spend it doing something you like!&lt;/p&gt;

&lt;p&gt;The good news is, if you enjoy what you do, you don't have to worry about anything! All knowledge will come on it's own. With time, with your own inspiration and desire to know and learn.&lt;/p&gt;

&lt;p&gt;That's why I hate those "X THINGS YOU NEED TO KNOW TO BECOME SENIOR" posts. Besides being clickbaity, they totally miss the point.&lt;/p&gt;

&lt;p&gt;I think a more realistic definition would be: A senior developer is not someone who knows everything, but someone who can solve any problem they throw at them.&lt;/p&gt;

&lt;p&gt;But again, remember those are just words :) What do &lt;strong&gt;you&lt;/strong&gt; think is a good definition?&lt;/p&gt;

</description>
      <category>senior</category>
      <category>junior</category>
      <category>hierarchy</category>
      <category>bureaucracy</category>
    </item>
    <item>
      <title>On Adding Types to Ruby</title>
      <dc:creator>Federico Ramirez</dc:creator>
      <pubDate>Thu, 30 Jul 2020 01:22:23 +0000</pubDate>
      <link>https://dev.to/gosukiwi/on-adding-types-to-ruby-4n6c</link>
      <guid>https://dev.to/gosukiwi/on-adding-types-to-ruby-4n6c</guid>
      <description>&lt;p&gt;This post started out as a reply on Reddit about &lt;a href="https://developer.squareup.com/blog/the-state-of-ruby-3-typing"&gt;this blog post&lt;/a&gt;, but it ended up being so long, I think a blog post would make more sense.&lt;/p&gt;

&lt;p&gt;Basically, the blog post talks about how Ruby 3 will implement type checks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Static typing vs Dynamic typing
&lt;/h2&gt;

&lt;p&gt;I've always had mixed feelings when it comes to dynamic vs static typing. One one side, it's great to have a strict type system where you can easily apply enterprise design patterns, like &lt;a href="https://java-design-patterns.com/blog/build-maintainable-systems-with-hexagonal-architecture/"&gt;Hexagonal Architecture&lt;/a&gt; and whatnot. It makes it much easier to work with big systems, with lots of developers.&lt;/p&gt;

&lt;p&gt;On the other side, Ruby (and particularly Rails) was born from the opposite point of view: "We don't need all this crap to build our little app". So I can see why many Ruby devs dislike adding types to the language.&lt;/p&gt;

&lt;p&gt;There's also the argument that for small teams of senior devs, a dynamic language like Ruby can make you more productive. Just good design and strict good practices is enough to have maintainable software.&lt;/p&gt;

&lt;p&gt;The problem is not everyone is on the same page where it comes to code, and when working with junior devs, or external libraries, it's easy to end up mixing everything up.&lt;/p&gt;

&lt;p&gt;I used to believe conventions and "good code" was enough, but after having to work with junior devs, particularly when you cant just write everything yourself and need to delegate stuff, limitations end up being a good thing.&lt;/p&gt;

&lt;p&gt;Otherwise, you are stuck in an endless cycle or reviewing code and nobody is happy. The junior dev is frustrated because you bounce their code over and over again, and you are frustrated you have to review it many times, and end up looking like a strict asshole. What's worse, you might end up lowering the bar and just allowing for bad code in order to "get things done", which is one of the worst things that can happen to software.&lt;/p&gt;

&lt;p&gt;A common mistake junior devs do is not caring about inconsistency in their return types. Sometimes they return an object, other times nil. A type system can easily catch this, and force them to make a decision. No need for you to point it out, the compiler/checker can do it. Many common mistakes like that can be fixed just by having a stricter language/ecosystem.&lt;/p&gt;

&lt;p&gt;I love Ruby. It's by far my favorite language, and I feel very productive with it. But Ruby gives you too much power, after years of using it, sometimes I just want a simpler, redundant, less powerful solution with less possible headaches.&lt;/p&gt;

&lt;p&gt;That being said though, I can't help but think: "Yeah but if you really want types, why use Ruby at all?" Sometimes, you are just stuck with a big codebase, and there's no way around it. But for new projects, it feels like the wrong language if you worry about that. And that's okay. Ruby doesn't &lt;strong&gt;have&lt;/strong&gt; to do everything.&lt;/p&gt;

</description>
      <category>ruby</category>
      <category>statictyping</category>
      <category>dynamictyping</category>
      <category>proglang</category>
    </item>
  </channel>
</rss>
