theboreddev.com

Menu
  • Home
  • Career
  • Code Habits
  • Debugging
  • Side Projects
  • Tooling
  • About Us
  • Contact Us
  • Disclaimer
Menu
How to deploy a side project cheaply.

Running It for Five Pounds a Month

Posted on February 18, 2026 by Tomasz Wierzbicki

I once spent an entire weekend trying to architect a “perfectly scalable” Kubernetes cluster for a hobby project that had exactly four users—me and three friends. I was so obsessed with using the latest cloud-native tools that I didn’t realize I was burning through a hundred dollars a month just to keep the control plane breathing. Most tutorials online make it sound like you need a massive DevOps budget to get started, but they’re usually just selling you on the complexity. If you actually want to learn how to deploy a side project cheaply, you have to stop treating your weekend experiment like it’s the next Netflix.

I’m not here to sell you on a specific fancy provider or a complex orchestration layer. Instead, I want to share the boring, reliable setups I’ve actually used to keep my monthly bills under ten bucks while still sleeping through the night. I’ll walk you through the trade-offs of different VPS providers, why you should probably avoid managed services for now, and how to set up a basic pipeline that won’t break the moment you push a single line of code. This isn’t about hype; it’s about keeping your overhead low so your project actually survives long enough to be useful.

Table of Contents

  • Why Free Tier Cloud Providers Are Often a Trap
  • Minimizing Cloud Infrastructure Costs Before You Go Live
  • My rules for keeping the monthly bill from becoming a second job
  • The TL;DR for your wallet and your sleep schedule
  • The Bottom Line
  • Frequently Asked Questions

Why Free Tier Cloud Providers Are Often a Trap

Why Free Tier Cloud Providers Are Often a Trap

The temptation to chase the “forever free” badge is real, especially when you’re just trying to get a prototype off your laptop. I’ve fallen for it more than once. The problem is that free tier cloud providers are rarely actually free once you move beyond a single `hello-world` endpoint. They operate on a model of “limited generosity,” which is a polite way of saying they give you just enough rope to hang yourself. You’ll find yourself hitting arbitrary request limits or memory caps right when your project actually starts gaining traction, forcing you into a sudden, expensive upgrade path that wasn’t in your original budget.

Then there is the “hidden tax” of complexity. To stay within those tight constraints, you often end up over-engineering your entire stack—implementing complex caching layers or aggressive data pruning just to avoid a $5 overage fee. I once spent an entire weekend refactoring a simple service into a convoluted mess of functions just to stay under a specific execution limit. It’s a massive waste of engineering time. When you’re minimizing cloud infrastructure costs, you have to weigh the actual dollar savings against the mental overhead of babysitting a platform that is constantly trying to throttle you. Sometimes, paying ten bucks a month for a predictable VPS is much cheaper than the hours you’ll spend fighting a “free” provider.

Minimizing Cloud Infrastructure Costs Before You Go Live

Minimizing Cloud Infrastructure Costs Before You Go Live

Before you even touch a cloud console, you need to audit your architecture for “hidden” complexity. I’ve seen too many people jump straight into a complex serverless architecture for startups, thinking they’ll only pay for what they use, only to realize that managed services like managed databases or specialized API gateways have a floor price that eats a budget alive. If your project is essentially a frontend talking to a small API, look at static site hosting options like S3 or Cloudflare Pages first. Moving the heavy lifting to the client side isn’t just a performance win; it’s a massive reduction in your monthly bill because you aren’t paying for CPU cycles to serve HTML files.

The real trick to minimizing cloud infrastructure costs is to embrace the “boring” middle ground. Instead of a massive Kubernetes cluster or a high-end managed service, I usually opt for a single, small VPS. It’s predictable. You know exactly what the bill will be at the end of the month, which is a luxury when you’re just trying to keep a hobby alive. If you can fit your entire stack—database, cache, and app—onto one $5 instance using Docker, you’ve already won. It’s not the most “elegant” solution from a pure DevOps standpoint, but predictability is more valuable than perfect scalability when your primary goal is not going broke.

My rules for keeping the monthly bill from becoming a second job

  • Stop using managed databases for everything. I learned the hard way that a “managed” PostgreSQL instance on a major cloud provider is a luxury most side projects can’t afford. If you aren’t hitting high concurrency, just run Postgres in a Docker container on the same VPS as your app. It’s slightly more work to back up, but it’ll save you $30 a month right out of the gate.
  • Stick to a single region. I once saw a junior dev set up a multi-region deployment for a hobby project because they thought it looked “professional.” All it did was double the data transfer costs and add latency. Pick one data center, stay there, and keep your traffic local.
  • Use a single, predictable VPS instead of a cluster of microservices. Kubernetes is a fantastic tool for a team of fifty engineers, but for a solo dev, it’s just a way to spend your weekends debugging YAML instead of writing features. A single $5 or $10 DigitalOcean or Hetzner box is usually enough to run your API, your worker, and your cache.
  • Set up billing alerts that actually work. It sounds basic, but I’ve seen people wake up to a $500 AWS bill because they left a NAT gateway running or a stray load balancer active. Set a hard limit at $10. If you hit it, you want to know immediately, not when the credit card statement arrives.
  • Avoid “Serverless” if your workload is predictable. Lambda and its cousins are great for sporadic tasks, but if you have a steady stream of requests, the cost scales linearly and can quickly outpace a fixed-price server. I prefer knowing exactly what my overhead is at the start of the month.

The TL;DR for your wallet and your sleep schedule

Stop chasing “free” tiers that hide complexity behind proprietary magic; a $5 VPS with predictable billing is almost always cheaper in terms of your actual time than a “serverless” architecture that scales your bill to infinity because of one recursive function.

Automate your deployment early, but keep it simple—use something like a basic shell script or a minimal GitHub Action rather than a heavy, expensive CI/CD suite that you’ll spend more time configuring than actually writing code.

Set up billing alerts on day one, even if the budget is only ten bucks; I’ve learned the hard way that the most expensive mistake isn’t the monthly subscription, it’s the unmonitored resource that runs for a week because you forgot to turn it off.

The Bottom Line

The Bottom Line: keep architecture simple.

At the end of the day, keeping a side project cheap isn’t about finding a magic, zero-cost tier that won’t vanish next Tuesday. It’s about being intentional with your architecture. I’ve learned the hard way that if you try to mimic a massive enterprise setup with Kubernetes and managed databases for a project that only has ten users, you aren’t being “professional”—you’re just burning money and time you don’t have. Stick to the basics: simple VPS instances, containerize your services so they are portable, and keep your data footprint small. The goal is to reach a point where the infrastructure is so boring and predictable that it stops being a distraction from the actual code you’re trying to write.

Don’t let the fear of a potential $50 bill stop you from shipping. I’ve seen more side projects die in the “planning and architecture” phase than I have from unexpected cloud bills. If you build with the mindset of predictability over perfection, you can always scale up when you actually have the traffic to justify it. Just remember that the most expensive piece of infrastructure you will ever own is the one that stays broken while you’re trying to sleep. Get it live, get it stable, and keep moving forward.

Frequently Asked Questions

At what point does the time I spend "optimizing" my infra actually cost more than just paying for a managed service?

The math is simple: if you spend a Saturday afternoon wrestling with a Kubernetes config just to save $15 a month, you’ve already lost. I’ve been there, thinking I was being “efficient” while actually burning my own hourly rate. If the setup takes longer than the time it would take to pay for the service over six months, just pay the bill. Your time is better spent shipping features or, ideally, going for a ride.

Is it worth setting up a proper CI/CD pipeline for a project that might only have five users, or should I just `scp` my files and call it a day?

If it’s just five users, `scp` is tempting, but you’re not building a pipeline for the scale—you’re building it for your future self. I’ve spent way too many Sunday afternoons manually fixing a botched deployment because I forgot to update a single environment variable. Set up a basic GitHub Action. It takes an hour now to prevent a three-hour headache later when you actually want to sleep. Automate the boring stuff so you don’t have to.

How do I prevent a sudden spike in traffic (or a buggy loop in my code) from turning my $5 VPS into a $500 surprise at the end of the month?

I’ve learned the hard way that “auto-scaling” is just a fancy word for “unlimited credit card debt” if you don’t set boundaries. On a cheap VPS, you aren’t looking for scale; you’re looking for a circuit breaker. Set up hard billing alerts in your provider’s dashboard immediately, but more importantly, use something like UFW or an external firewall to rate-limit incoming requests. If a buggy loop starts hammering your API, I’d rather the service die than my bank account.

If I go the container route with Docker, am I just adding unnecessary complexity that I'll have to debug later?

It’s a fair question. If you’re just running a single script, Docker is overkill. But I’ve learned the hard way that “it works on my machine” is a lie that eventually breaks in production. I use containers not because I love the tooling, but because I want to know that the environment I tested is exactly what hits the server. It’s a small upfront tax on complexity to avoid a massive tax on debugging later.

How to ask good questions in an interview.

The Questions That Tell You Who They Are

Posted on February 17, 2026 by Tomasz Wierzbicki

I’ve sat through enough interviews to know that most “expert” advice on how to ask good questions in an interview is complete nonsense. You’ll find plenty of articles telling you to ask about “company culture” or “five-year growth plans,” as if those scripted answers actually tell you anything about the day-to-day reality of the job. I don’t care about their mission statement; I want to know if the team actually follows an on-call rotation or if they just hope nothing breaks on a Friday afternoon. If you spend your time rehearsing polite, superficial inquiries, you aren’t interviewing them—you’re just performing for them.

I’m not here to give you a list of clever parlor tricks to impress a recruiter. Instead, I want to share the specific, slightly unpolished questions I use to figure out if a team is actually competent or just lucky. We’re going to focus on the mechanics of how they work—the deployment failures, the technical debt, and the way they handle a production outage at 2:00 AM. My goal is to help you find out what the job actually is before you sign a contract you’ll regret.

Table of Contents

  • Moving Beyond Generic Behavioral Interview Techniques
  • Using Probing Questions for Hiring Managers to Find Truth
  • Five ways to stop interviewing for resumes and start interviewing for reality
  • The Bottom Line
  • The Bottom Line
  • Frequently Asked Questions

Moving Beyond Generic Behavioral Interview Techniques

Moving Beyond Generic Behavioral Interview Techniques.

Most companies rely on the same tired behavioral interview techniques: “Tell me about a time you had a conflict with a coworker” or “Where do you see yourself in five years?” I’ve sat through dozens of these, and frankly, they’re useless. They invite rehearsed, polished stories that tell you nothing about how a person actually thinks when the pressure is on. If you want to move past the script, you have to stop looking for the “correct” answer and start looking for the logic behind the decision.

Instead of asking for a sanitized version of a past success, try using more aggressive probing questions for hiring managers to dig into the messy middle of a project. Ask them to walk you through a time they made a technical decision that turned out to be completely wrong. I’m not looking for them to admit a mistake; I’m looking to see if they can explain why it was wrong and what the specific trade-offs were. This is how you actually start identifying red flags in interviews—not by catching them in a lie, but by seeing if they lack the self-awareness to recognize a bad architectural choice when it’s staring them in the face.

Using Probing Questions for Hiring Managers to Find Truth

Using Probing Questions for Hiring Managers to Find Truth.

When you’re the one sitting on the other side of the table, the interview isn’t just about vetting the candidate; it’s about vetting the reality of the role they’re walking into. Most standard candidate assessment strategies fail because they focus on the “what” instead of the “how.” If a candidate asks, “What is the tech stack?” and you answer, “We use Go and Kubernetes,” you haven’t actually told them anything about their future quality of life. To find the truth, you need to use probing questions for hiring managers—or rather, you need to be prepared for the candidates to turn the mirror back on you.

I’ve learned that the most telling moments happen when a candidate pushes past the polished company slide deck. If they ask, “When was the last time a deployment failed, and how did the team react during the post-mortem?” they aren’t just being difficult; they are looking for the scars. If you can’t give a concrete answer, you aren’t measuring cultural fit, you’re just performing a scripted dance. A good candidate wants to know if you actually have a process for when things go sideways, or if “on-call” just means “unsupervised chaos.” Don’t take offense at the depth of their questions; take it as a sign that they actually care about the systems they’ll be building.

Five ways to stop interviewing for resumes and start interviewing for reality

  • Ask for the “post-mortem” version of their projects. Instead of “Tell me about a time you succeeded,” try “Tell me about the last time a deployment went sideways and you were the one on call.” If they can’t walk you through the messy middle of a failure, they probably weren’t actually the ones driving the change.
  • Test for the “why,” not just the “how.” When they describe a stack or a pattern, push past the syntax. If they say they used Kafka, ask why they didn’t just use a simple pub/sub or a database queue. I’ve seen too many engineers who can implement a pattern but can’t justify the overhead it adds to the system.
  • Look for the “unspoken trade-offs.” Every technical decision is a compromise. If a candidate presents a solution as a perfect, silver-bullet architecture with no downsides, they are either lying or haven’t thought deeply enough. A good engineer should be able to tell you exactly what they gave up to get what they wanted.
  • Use the “System Drift” probe. Ask them how they ensure the code they write today stays maintainable two years from now. It’s easy to write clever code; it’s much harder to write code that a tired engineer can understand during a production incident at 3:00 AM. You want the person who values legibility over cleverness.
  • Watch how they handle being wrong in the room. Throw a slightly incorrect technical premise their way—not to trick them, but to see their reaction. Do they blindly agree to be polite, or do they have the backbone to say, “Actually, I think that’s a misconception”? I’d rather hire someone who corrects me than someone who lets a bug slide into my codebase just to avoid an awkward moment.

The Bottom Line

The Bottom Line on effective interviewing.

Stop looking for “correct” answers; look for how they handle being wrong. The best engineers I’ve worked with are the ones who can walk you through a failure without trying to polish it into a success story.

If a candidate can’t explain the trade-offs of their favorite tool, they probably don’t understand the tool. I’d much rather hire someone who knows why a specific database is a bad idea for a certain scale than someone who just knows the syntax.

Use your questions to find the gap between what’s on their CV and what happens when the pager goes off. You aren’t hiring a textbook; you’re hiring a person who has to navigate the mess we all inevitably create.

The Bottom Line

At the end of the day, interviewing isn’t about checking boxes on a rubric or seeing if someone can recite the definition of a microservice. It’s about peeling back the layers of a polished answer to see how a person actually thinks when the pressure is on. By ditching the scripted behavioral questions and focusing on real-world friction—the messy, unscripted moments where things actually go wrong—you get a much clearer picture of who is joining your team. You aren’t just looking for technical proficiency; you are looking for the ability to navigate ambiguity without panicking when the dashboard turns red.

I’ve spent enough years in production to know that the best engineers aren’t the ones who claim to never make mistakes, but the ones who can explain exactly why they made them and how they fixed the underlying system. When you change your interview style to prioritize this kind of honesty, you stop hiring “performers” and start hiring problem solvers. It makes the hiring process feel less like an interrogation and more like a conversation between two people who both care about building things that actually work. If you get this right, you won’t just be filling a headcount; you’ll be building a team that can survive the 2:00 AM calls.

Frequently Asked Questions

How do I tell the difference between a candidate who is actually experienced and one who has just memorized the right buzzwords to pass the screen?

Buzzwords are cheap; scars are expensive. If a candidate says they “optimized a microservices architecture,” don’t stop there. Ask them what the bottleneck actually was. Was it a connection pool exhaustion, or just a poorly tuned garbage collector? Someone who’s actually lived through a production outage will talk about the trade-offs, the specific metrics they watched, and the things they regret doing. The person who memorized the textbook will just give you the “correct” theoretical answer.

What do I do if a candidate gives me a perfect, textbook answer that feels suspiciously rehearsed and lacks any real-world grit?

If they give you the textbook answer, stop following the script. They’ve clearly practiced the “STAR” method in a mirror. I usually pivot by stripping away the theory. I’ll say, “That sounds like the right way to do it on paper, but tell me about a time the theory failed you.” I want to hear about the mess, the workaround, or the mistake. If they can’t describe a moment of friction, they haven’t actually been in the trenches.

How much technical depth should I actually push for during a first interview before I risk running out of time for the cultural stuff?

I used to try and cover everything, only to realize I’d spent forty minutes on a database schema and zero minutes finding out if the candidate actually likes working in a team.

If I'm interviewing someone more senior than me, how do I ask probing questions without looking like I don't know what I'm doing?

Don’t try to out-tech them; you’ll just look like you’re reading a Wikipedia page. Instead, pivot from “how it works” to “why it failed.” If they suggest an architecture, don’t ask how it scales—ask what the breaking point is. Ask about the trade-offs they hated making. You aren’t testing their knowledge of syntax; you’re testing their judgment. A senior engineer’s value isn’t knowing the right answer, it’s knowing when the “right” answer is actually a trap.

Learning how to use a terminal multiplexer.

Sessions That Survive a Lost Connection

Posted on February 17, 2026 by Tomasz Wierzbicki

I still remember the feeling of my stomach dropping during a production incident at the logistics startup—the kind of incident where the database is locking up and your SSH connection is hanging by a thread. I was halfway through a critical rollback when my local Wi-Fi flickered, the session died, and I spent the next ten minutes in a cold sweat trying to re-authenticate just to see if the command had actually finished. That was the night I realized that knowing how to use a terminal multiplexer isn’t some niche power-user flex; it’s a basic requirement for anyone who doesn’t want to lose their mind when the network gets shaky.

I’m not here to sell you on some complex, over-engineered workflow that requires a PhD to navigate. I’ve spent enough time in the trenches to know that tools like tmux should serve you, not the other way around. In this note, I’m going to show you the practical, no-nonsense basics of how to use a terminal multiplexer so you can detach sessions, split your panes, and—most importantly—ensure that a dropped connection never kills your progress again.

Table of Contents

  • The Panic of Losing Terminal Session Persistence
  • How Remote Server Session Management Saves Your Sanity
  • Five things I wish I’d known before my first production outage
  • The Bottom Line
  • The Long View on Terminal Persistence
  • Frequently Asked Questions

The Panic of Losing Terminal Session Persistence

The Panic of Losing Terminal Session Persistence.

I remember being halfway through a complex database migration on a remote server when my home Wi-Fi decided to hiccup. The SSH connection dropped instantly. There was no “reconnecting” spinner, no graceful exit—just a frozen cursor and the sudden, sickening realization that I had no idea if the migration script was still running or if it had died mid-transaction. That specific brand of panic, where you’re staring at a blank screen wondering if you just corrupted a production table, is exactly why I stopped relying on raw SSH sessions.

Without terminal session persistence, you are essentially building on sand. If your local machine sleeps, your VPN flinches, or your cat walks across your keyboard, you lose the entire context of what you were doing. I used to spend twenty minutes every time a connection dropped just trying to reconstruct my mental model: which directory was I in? Which logs was I tailing? Which grep command was I about to run?

Now, I treat the remote environment as the source of truth, not my local terminal. By using a multiplexer, the processes live on the server itself. If the connection breaks, the work doesn’t stop; it just waits for me to come back. It turns a potential two-hour recovery nightmare into a simple matter of re-attaching to the session and picking up exactly where I left off.

How Remote Server Session Management Saves Your Sanity

How Remote Server Session Management Saves Your Sanity

When I’m SSH’d into a production box, my mental model shifts. I stop thinking about my laptop and start thinking about the remote environment as a workspace that needs to exist independently of my local machine. This is where remote server session management becomes less about “efficiency” and more about basic risk mitigation. If I’m running a heavy database migration or a long-running cleanup script, I don’t want that process tied to the stability of my home Wi-Fi. By using a multiplexer, I’m essentially decoupling my work from my connection. If my laptop dies or the coffee shop router decides to reset, the process on the server keeps humming along, completely unaware that I’ve even vanished.

It also changes how I actually interact with the machine. Instead of opening five different SSH windows and losing track of which one is running the logs versus which one is running the shell, I use split terminal panes to see everything at once. I can have my tailing logs on the left and my interactive shell on the right. It’s a much more cohesive way to work. I’ve found that once you get used to this layout, jumping back into a session feels less like “reconnecting” and more like simply stepping back into a room where the lights were already left on.

Five things I wish I’d known before my first production outage

  • Stop using the mouse to switch windows. If you’re still clicking around to find that one log stream, you’re losing momentum. Learn the keyboard shortcuts for switching panes immediately; it feels clunky for the first hour, but once it’s muscle memory, you stop thinking about the interface and start thinking about the code.
  • Name your windows. A multiplexer with ten windows all named “bash” or “zsh” is just a different way to get lost. I started naming my windows by function—”logs”, “db-shell”, “api-server”—so when I detach and reattach, I actually know where I am.
  • Use the ‘detach’ command as a safety net, not a way to close the program. If you’re about to run a migration that takes ten minutes, detach the session and walk away to get coffee. It’s the only way to be sure that a momentary Wi-Fi hiccup won’t leave your database in an indeterminate state.
  • Configure your status bar to show something useful. The default settings are usually too sparse. I added the hostname and the current time to my status bar because, frankly, when you’re deep in a debugging rabbit hole, it’s easy to lose track of whether you’re on your local machine or the staging server.
  • Don’t try to learn every single feature at once. Most people only need three things: splitting the screen, creating a new window, and detaching. Master those three, and you’ve already solved 90% of the problems that usually lead to a 2 AM panic.

The Bottom Line

Don’t rely on your local connection staying stable; if you’re running anything more complex than a `git status`, you should be inside a multiplexer.

Treat your session like a persistent environment, not a temporary window—if the process is important, it needs to live independently of your SSH client.

The time you spend learning the basic keybindings is significantly less than the time you’ll waste trying to figure out why a long-running migration died halfway through because your Wi-Fi flickered.

The Long View on Terminal Persistence

The Long View on Terminal Persistence.

At the end of the day, a multiplexer like tmux or screen isn’t about being a “power user” or showing off complex keyboard shortcuts. It is about building a safety net for your future self. We’ve talked about how these tools prevent a single dropped SSH connection from nuking a long-running migration and how they allow you to manage multiple contexts without losing your mind. It’s a small investment in your workflow that pays off the moment your Wi-Fi hiccups or your laptop decides to go into sleep mode during a critical deployment. If you aren’t using one yet, you aren’t just working harder; you are leaving your uptime to chance.

I know it feels like one more thing to learn when you’re already drowning in documentation and Jira tickets, but the learning curve is shallow compared to the cost of a production incident. My advice is to pick one, learn how to detach and reattach, and then just leave it running. You don’t need to master every single niche feature to see the benefit. Eventually, you’ll find yourself in a situation where a session survives a crash or a reconnection, and you’ll realize that the real productivity gain isn’t the speed of your typing, but the peace of mind that comes from knowing your work is actually staying where you left it.

Frequently Asked Questions

If I'm already using a terminal multiplexer, does it actually matter if my local SSH client crashes or if my laptop just goes to sleep?

It matters, but not for the reasons you’d think. If your local SSH client crashes or your laptop lid closes, the connection to the server drops—that’s a given. However, because the multiplexer is running on the remote side, your processes keep humming along undisturbed. You aren’t “saving” the connection; you’re just ensuring that when you reconnect, you’re stepping back into a room where the lights are still on and the work is still happening.

Is there a significant performance overhead to running a multiplexer on a remote server, or is it negligible?

I’ve checked the numbers on a few different boxes, and honestly, the overhead is negligible. We’re talking about a few megabytes of RAM and a tiny sliver of CPU cycles to manage the session state. If you’re worried about a multiplexer slowing down your production database or a heavy build process, don’t be. The trade-off is a microscopic hit to performance in exchange for not losing your mind when a connection drops.

How do I handle the learning curve of all those keyboard shortcuts without losing my flow during a deployment?

Don’t try to memorize the whole manual in one sitting. It’s a recipe for mistakes during a high-stakes deployment. I usually keep a physical cheat sheet taped to my desk or a simple text file open on a second monitor. Start by only learning the essentials: splitting panes and detaching. If you try to master complex window management while a production database is migrating, you’ll just end up fighting your tools instead of the bug.

Should I be looking at tmux, or is there some other tool that's actually better for managing long-running background processes?

Look, if you just want to run a script and walk away, `tmux` is the standard for a reason. It’s reliable and it’s everywhere. But if your goal is strictly managing background processes without the overhead of a full terminal session, you might actually want `systemd` user services or even just `nohup`. I usually stick to `tmux` because I want to reattach and actually see the logs when things inevitably go sideways.

How to use a debugger instead of guessing.

Stop Guessing and Look at the Values

Posted on February 13, 2026October 31, 2026 by Tomasz Wierzbicki

It was 3:14 AM, my eyes were burning from the blue light, and I was currently staring at a log file that told me absolutely nothing useful. I had spent the last forty minutes adding `print(“here”)` and `print(f”value is: {x}”)` statements like some kind of frantic detective, convinced that if I just added one more log line, the truth would finally reveal itself. This is the trap we all fall into: the desperate, inefficient cycle of adding more noise to the system instead of actually looking at the state of the machine. I’ve wasted hundreds of hours this way, and I’ve learned the hard way that if you want to stop the bleeding, you need to learn how to use a debugger instead of guessing based on what you think should be happening.

I’m not here to give you a tutorial on which buttons to click in IntelliJ or VS Code. I’ve already read the manuals; I’m more interested in the mental model required to actually solve a problem. In this post, I’m going to share the practical, battle-tested techniques I use to stop chasing ghosts in my code. We’ll talk about how to set meaningful breakpoints and how to interrogate your variables without losing your mind, so you can spend less time staring at logs and more time actually getting back to sleep.

Table of Contents

  • Eliminating Print Statement Debugging Once and for All
  • The Real Cost of Making Assumptions in Production
  • Five ways to stop playing detective and start using the tools
  • What I’ve Learned the Hard Way
  • The Bottom Line
  • Frequently Asked Questions

Eliminating Print Statement Debugging Once and for All

Eliminating Print Statement Debugging Once and for All

I’ve spent a significant portion of my career doing the “print statement dance.” You know the one: you sprinkle `console.log` or `print()` calls throughout a function, recompile, run, check the logs, realize you missed the one variable that actually matters, and then repeat the whole cycle for the fifth time. It’s a slow, manual way to build a mental model of your system, and it’s incredibly easy to miss the moment where things actually go sideways. The problem with this approach is that it’s reactive; you’re only seeing the snapshots you thought to take, rather than the actual reality of the execution.

If you want to actually improve your debugging workflow efficiency, you have to stop treating the code like a black box that only talks when you poke it. Instead of guessing which values are wrong, you should be using a debugger to perform real-time variable state inspection. By setting a breakpoint at the entry point of your suspicious logic, you can pause time and look at every single piece of data currently in memory. This shifts you from a state of “I hope this is the value” to “I know this is the value,” which is a much better place to be when you’re trying to solve a problem under pressure.

The Real Cost of Making Assumptions in Production

The Real Cost of Making Assumptions in Production

The problem with guessing is that it feels productive while it’s actually just burning time. I’ve spent too many hours in my career staring at a terminal, adding a `log.info` here and a `print` there, convinced that the next line of output would finally reveal the truth. But what you’re actually doing is building a mental model of the system that is almost certainly wrong. You aren’t seeing the reality of the machine; you’re seeing a highly filtered, static snapshot of what you thought might be happening. When you rely on logs, you are essentially trying to reconstruct a crime scene from a few blurry photos taken after the event has already concluded.

The real cost shows up when you think you’ve found the culprit, push a “fix,” and realize you’ve actually just masked a symptom. This is where call stack analysis becomes non-negotiable. Without it, you’re just playing whack-a-mole with side effects. A proper debugger allows for real-time variable state inspection, which lets you see exactly where a value deviates from your expectations. It’s the difference between guessing why a bridge collapsed and actually being able to inspect the structural integrity of every single bolt in real-time. If you don’t verify the state at the exact moment of failure, you aren’t fixing the bug—you’re just moving it.

Five ways to stop playing detective and start using the tools

  • Stop treating breakpoints like a last resort. If you find yourself adding a `print` statement, you’ve already lost the rhythm. Set a breakpoint at the entry point of the suspected logic and step through it. It feels slower at first, but you’ll spend less time re-compiling and more time actually seeing the state change.
  • Watch your variables, not just your logic. Most of my production incidents weren’t caused by bad algorithms, but by a variable being `null` or an empty list when I swore it wouldn’t be. Use the “Watch” window to pin down the specific values that are driving your conditional branches.
  • Learn to use conditional breakpoints so you don’t go insane. If you’re debugging a loop that runs ten thousand times, don’t click “Continue” nine thousand nine hundred and ninety-nine times. Set a condition so the debugger only pauses when `i == 9999` or when `user_id == ‘target_id’`.
  • Step into vs. Step over is the most important distinction you’ll ever learn. Don’t blindly “Step Into” every library function or getter; you’ll end up lost in the guts of a framework you didn’t write. Only step into the code you actually own.
  • Use the call stack to reconstruct the crime scene. When the debugger hits, don’t just look at the current line. Look at the stack trace to see exactly how you got there. Often, the bug isn’t in the function that crashed, but in the function three levels up that passed in the wrong piece of state.

What I’ve Learned the Hard Way

Stop treating print statements like a magic wand; they only show you what you already assume is happening, whereas a debugger shows you what is actually happening.

The goal of debugging isn’t just to fix the bug, but to find the specific moment your mental model of the system diverged from the reality of the execution.

If you find yourself guessing what a variable contains, you’ve already lost the battle—stop typing and start inspecting.

The Bottom Line

The Bottom Line: Use real debuggers.

At the end of the day, moving from print statements to a real debugger isn’t about being a “better” engineer; it’s about being a more efficient one. We’ve talked about how print debugging creates a false sense of security and how those tiny, unverified assumptions are exactly what lead to the kind of outages that wake you up at 2 AM. By using breakpoints, inspecting the actual state of the heap, and stepping through the logic line by line, you stop fighting the symptoms and start addressing the actual cause. It takes a little more setup upfront, but it saves you the hours of mental gymnastics required to reconstruct a failure from a pile of log files.

I know the temptation to just “tweak and deploy” is strong, especially when you’re under pressure. But I’ve spent enough time in production to know that guessing is a debt you eventually have to pay back with interest, usually in the form of a frantic rollback. Treat your debugger like a tool for truth rather than a chore to be avoided. If you take the time to actually see how the machine is behaving, you’ll find that the bugs aren’t nearly as mysterious as they seem. You’ll stop being a victim of your own assumptions and start understanding your system for what it actually is, not what you hope it to be.

Frequently Asked Questions

When is a bug actually too complex for a debugger and worth going back to logs?

If you’ve spent an hour stepping through code and you’re still just watching variables change without understanding why they’re changing, you’re stuck. Debuggers are great for local logic, but they fail when the bug is a ghost in the machine—race conditions, memory leaks, or issues that only trigger under specific distributed loads. If the bug requires a specific timing or a massive dataset to reproduce, stop fighting the debugger. Go back to the logs; they don’t care about your breakpoints.

How do I handle debugging a race condition that only shows up when the system is under heavy load?

Race conditions under load are the worst because your local machine is too polite to trigger them. Stop trying to replicate the exact timing with more print statements; you’ll just change the execution flow and hide the bug. Instead, I start by looking at the telemetry. I look for where locks are held too long or where shared state is being mutated without clear ownership. If I have to reproduce it, I use a stress tool to hammer the specific endpoint until the state diverges.

Is there a way to use a debugger effectively in a remote environment without blowing up the whole staging cluster?

You don’t want to attach a debugger to a live process in a shared staging cluster; you’ll freeze the thread, kill the heartbeat, and get a frantic Slack from DevOps. Instead, use remote debugging with a specific target—ideally a single, isolated pod or a dedicated dev instance. If you can’t spin up a private clone, use “conditional breakpoints.” It prevents the debugger from halting every single request, letting you catch the specific edge case without stalling the entire pipeline.

At what point does setting too many breakpoints become its own kind of distraction?

It becomes a distraction the moment you start debugging the debugger. If you’ve set twenty breakpoints and you’re just clicking “step over” like you’re playing a rhythm game, you’ve lost the thread. You aren’t investigating a bug anymore; you’re just following a breadcrumb trail you laid yourself. When the state changes feel disconnected from the actual logic, stop. Clear the breakpoints, reset, and find the one specific point where your mental model actually diverges from reality.

Learn how to delete code without fear.

The Code Is in Git, Delete It

Posted on February 12, 2026November 7, 2026 by Tomasz Wierzbicki

I once spent three days tracing a memory leak in a legacy logistics service, only to realize the culprit was a “safety net” function written by a developer who left the company in 2019. We were all too terrified to touch it because nobody actually knew what it did, so we just let it sit there, bloating the heap and slowing down every transaction. Most people will tell you that you need massive, expensive test suites or complex static analysis tools to solve this, but they’re missing the point. Learning how to delete code without fear isn’t about buying more tooling; it’s about building a culture where context is treated as a first-class citizen and knowing exactly which ghosts you’re exorcising.

I’m not here to sell you on some shiny new testing framework or a theoretical way of organizing your repositories. I want to talk about the practical, slightly messy reality of pruning a codebase that has grown too large for its own good. I’ll share the specific, boring-but-effective habits I’ve picked up from years of production incidents—the kind of stuff that actually helps you rip out a dead service on a Tuesday afternoon without needing to stay up until 2:00 AM fixing the fallout.

Table of Contents

  • Identifying Unused Functions Before They Break Everything
  • Automated Code Analysis Tools to Stop the Guesswork
  • Five ways to stop sweating every pull request
  • The Post-Mortem Checklist for Deleting Code
  • The Art of Letting Go
  • Frequently Asked Questions

Identifying Unused Functions Before They Break Everything

Identifying Unused Functions Before They Break Everything

The problem with most automated code analysis tools is that they are too optimistic. They’ll tell you a function is unused because there’s no direct reference to it in your current repository, but they won’t tell you that a legacy cron job or a forgotten internal dashboard relies on that specific endpoint to keep the billing cycle running. I’ve spent enough time in production to know that “unused” is often a matter of perspective. Before you reach for the delete key, you have to look beyond the immediate call stack.

My approach is to treat identifying unused functions as a forensic investigation rather than a cleanup task. I start by checking the logs—real, live production logs—to see if that specific logic has actually been executed in the last thirty days. If the telemetry is silent, I’m more confident, but I still don’t trust it blindly. I usually run a grep across the entire infrastructure, including our deployment scripts and configuration files, because code often lives in the gaps between services.

Once I’m reasonably sure the code is dead, I don’t just vanish it. I use a staged approach to refactoring legacy code safely. I’ll first wrap the function in a heavy layer of logging or a feature flag. If I can toggle it off and nothing screams in Slack, then—and only then—do I actually commit the deletion. It’s slower, but it beats the alternative.

Automated Code Analysis Tools to Stop the Guesswork

Automated Code Analysis Tools to Stop the Guesswork

You can’t rely on your memory alone, especially when you’re staring at a monolith that’s been accumulating cruft since the Obama administration. I used to think I could just “eyeball” a module and know what was safe to prune, but that’s how you end up with a production incident involving a dependency that was only called by a single, obscure cron job. Using automated code analysis tools isn’t about being lazy; it’s about building a safety net so you aren’t playing a guessing game with the production environment.

I usually start with something basic like `unused` or specialized linters that catch dead code paths, but the real value comes when you integrate these into your CI pipeline. If you want to succeed at refactoring legacy code safely, you need to move beyond simple syntax checks. I’ve found that combining static analysis with runtime coverage reports is the only way to truly see which branches are actually being executed. It’s not a silver bullet, but it shifts the conversation from “I think this is dead” to “the telemetry proves this hasn’t been touched in six months.” It turns a terrifying deletion into a calculated technical decision.

Five ways to stop sweating every pull request

  • Don’t trust the grep. I’ve spent too many hours chasing a string that looked unused only to realize it was being called via a dynamic reflection trick in a library we haven’t touched in three years. If you can’t trace the call stack through the entire lifecycle, leave it alone for now.
  • Write the test before you delete the code. If you’re removing a logic block, write a test that specifically asserts the behavior that code was supposed to handle. If the test passes without that code, you’ve actually proven it’s dead; if it fails, you just saved yourself a 3 AM rollback.
  • Check the telemetry, not just the source. Sometimes code is “unused” in the repository but is actually a fallback mechanism triggered only when a specific third-party API returns a 503. If your error rates stay flat after the deletion, you’re probably safe.
  • Use feature flags as a safety net. For the really scary stuff—the core logic that everyone is afraid to touch—wrap the removal in a toggle. It’s better to have the overhead of a flag than the adrenaline spike of a production outage.
  • Leave a breadcrumb trail. When I delete something, I leave a comment or a link to the Jira ticket explaining why it was safe to remove. Six months from now, when someone else looks at that empty space and wonders if they should put it back, they’ll have the context they need to stay calm.

The Post-Mortem Checklist for Deleting Code

Don’t trust your intuition; trust the telemetry. If you can’t trace a function’s usage through logs or distributed tracing, it isn’t “unused,” it’s just “silent,” and silent code is the kind that wakes you up at 2 AM.

Always write the “why” in your commit message before you touch the logic. If you’re deleting a block of code that looks redundant but was actually a workaround for a weird edge case in a legacy payment gateway, you need that context recorded so you don’t accidentally resurrect the bug six months from now.

Treat deletion as a deployment, not a housekeeping chore. Small, incremental purges followed by a period of observation are much safer than a massive “spring cleaning” PR that introduces a dozen regressions you didn’t see coming.

The Art of Letting Go

The Art of Letting Go: Deleting code.

At the end of the day, deleting code isn’t a housekeeping chore; it’s a defensive maneuver. We’ve covered how to move from blind guessing to using actual data, whether that’s through static analysis or tracing runtime dependencies to ensure you aren’t cutting a branch that’s still holding up the tree. The goal isn’t to have the shortest file in the repository, but to have a codebase where every line has a clear, documented reason for existing. When you combine automated tooling with a healthy dose of skepticism about “just in case” logic, you stop being a developer who is afraid of the delete key and start being one who manages complexity instead of just accumulating it.

I still occasionally feel that slight hesitation before hitting enter on a large PR that removes several hundred lines of logic. That instinct is actually useful—it keeps you from being reckless. But don’t let that hesitation turn into paralysis. The most stable systems I’ve ever worked on weren’t the ones with the most features; they were the ones where the engineers had the discipline to prune the dead wood regularly. Clean code is a moving target, and you’ll never truly finish the job, but if you approach every deletion as a way to reduce your future cognitive load, you’ll find that the fear eventually disappears.

Frequently Asked Questions

How do I handle code that isn't called by our services but is still used by some obscure, undocumented cron job or a manual script?

This is the “ghost in the machine” problem. I’ve spent way too many hours chasing a “dead” function only to find some developer’s bespoke script from 2019 running it once a month. Don’t trust your IDE’s call hierarchy alone. I’ve started treating the infrastructure as part of the codebase. If you can’t find the caller in the repo, check the crontabs, the CI pipelines, and the logs. If it’s being called, there’s a trace. Find the trace, or don’t touch it.

What’s the safest way to roll back if I delete a "dead" dependency and realize it was actually a critical part of a legacy edge case?

The only real safety net is a clean git state and a deployment pipeline that doesn’t take forty minutes to run. Before you touch the dependency, make sure your current branch is a clean slate. If the “dead” code turns out to be a vital piece of legacy logic, you don’t debug—you revert. I’ve learned that trying to “fix” a broken rollback in a panic is how you turn a minor incident into a full-blown outage.

How do I convince a product manager that spending a sprint cleaning up old logic is more important than shipping a new feature?

Stop talking about “technical debt”—it sounds like a vague tax to a PM. Instead, frame it as a velocity problem. I tell them that every line of dead logic we leave behind is a tax on every new feature we ship. If we don’t clear the brush now, the next “simple” feature will take three weeks because we’re tripping over old, half-broken logic. It’s not about tidiness; it’s about maintaining our ability to ship.

At what point does "cleaning up" turn into "refactoring for the sake of it," and how do I know when I've gone too far?

I know I’ve gone too far when I’m changing logic that isn’t actually broken. If I can’t point to a specific bug, a performance bottleneck, or a piece of dead weight, I’m just rearranging deck chairs. Refactoring should be a response to a problem, not a way to cure boredom. If my pull request doesn’t include a “why” that relates to stability or clarity, I’m probably just playing with the code.

How to choose boring technology on purpose.

Spend Your Novelty Budget Somewhere Else

Posted on February 10, 2026 by Tomasz Wierzbicki

I remember sitting in a dark apartment at 3:14 AM, staring at a terminal window while a “revolutionary” distributed database I’d insisted on using three months prior systematically ate our entire production dataset. There was no Stack Overflow thread for this specific failure, no seasoned engineer to call, just me and the realization that I had traded sleep for a shiny new feature set we didn’t even need. People talk about innovation like it’s a moral imperative, but in a production environment, innovation is often just a fancy word for unvetted edge cases. Learning how to choose boring technology on purpose isn’t about being a Luddite; it’s about realizing that every new dependency is just a future outage waiting for its moment to shine.

I’m not here to sell you on a specific stack or argue about which framework is more “performant” in a synthetic benchmark. What I want to do is show you how to build a toolkit based on predictability and documentation rather than hype cycles. I’ll walk through my personal mental model for vetting tools, focusing on why the “boring” stuff is actually the most powerful thing you can bring to a platform team.

Table of Contents

  • Why I Prioritize Operational Reliability vs Innovation
  • Minimizing Architectural Complexity Before It Breaks Everything
  • A few rules of thumb for when you're actually picking the stack
  • The Bottom Line
  • The Trade-off is the Point
  • Frequently Asked Questions

Why I Prioritize Operational Reliability vs Innovation

Why I Prioritize Operational Reliability vs Innovation

The tension between operational reliability vs innovation is usually where the most expensive mistakes happen. In my experience, innovation isn’t just about using a new language or a bleeding-edge database; it’s about the features you ship to your users. If I spend my entire sprint wrestling with a distributed database that has no documentation and a community of three people, I haven’t actually innovated anything. I’ve just traded my engineering time for a massive amount of unplanned maintenance. I’ve learned the hard way that every new, shiny dependency is a potential liability that someone—usually me—will have to debug when the logs start screaming at midnight.

I tend to favor proven software stacks because they come with something a new framework can’t provide: scars. When you use a mature technology ecosystem, the edge cases have already been discovered, documented, and solved by thousands of other engineers. You aren’t the one finding the memory leak in the connection pool; someone else already did that three years ago. By choosing tools that offer predictable system performance, I’m not being “lazy” or “old-fashioned.” I’m intentionally minimizing architectural complexity so that when the system eventually does break, I can spend my time fixing the business logic instead of fighting the infrastructure.

Minimizing Architectural Complexity Before It Breaks Everything

Minimizing Architectural Complexity Before It Breaks Everything

Complexity is a silent killer. I’ve seen teams spend six months building a sophisticated, distributed event-driven architecture for a service that essentially just moves a few rows of data from a database to a cache. They thought they were being “future-proof,” but they were actually just building a labyrinth that no one could debug when the first race condition inevitably hit. To me, minimizing architectural complexity isn’t about being lazy or lacking ambition; it’s about acknowledging that every new moving part is a new way for the system to fail in a way you haven’t anticipated yet.

When I look at a new project, I try to ask: “What is the simplest way to achieve this that won’t require a specialized degree to maintain?” I prefer leaning on mature technology ecosystems where the edge cases have already been discovered, documented, and patched by thousands of other engineers. If I can solve a problem with a standard relational database and a well-structured monolith, I’m going to do that every single time. It might not look impressive on a resume, but it ensures predictable system performance and, more importantly, it means I won’t be staring at a distributed trace at 3:00 AM trying to figure out why a message vanished into the ether.

A few rules of thumb for when you're actually picking the stack

  • Look for the “boring” problems. If you’re choosing a database, don’t ask how fast it is in a benchmark; ask how many people have already written a blog post about how to recover it after a corrupted write. I’d rather use a tool with a thousand mediocre StackOverflow answers than one with ten brilliant ones.
  • Prioritize “Day 2” operations. It’s easy to get a new tool running in a local Docker container in twenty minutes. It’s much harder to figure out how to rotate its secrets, back up its state, or observe its internal metrics when it’s running in a production cluster at scale. If the tooling for maintenance is thin, the technology is too expensive.
  • Avoid the “New Version” trap. There is a massive difference between a technology that is mature and one that is currently in a state of constant, breaking API changes. I don’t mind using something older, but I hate being forced to rewrite my integration logic every three months because the maintainers decided to rename a core package.
  • Check the ecosystem, not just the syntax. A language is only as good as its library support for the things you actually do, like connecting to a specific message queue or handling weird character encodings in a legacy CSV. If you have to write your own drivers for basic infrastructure, you aren’t building a product; you’re building a toolkit.
  • Evaluate the “bus factor” of the community. If the entire success of a library depends on one guy in a specific time zone who hasn’t pushed a commit in six months, walk away. I want tools that are so widely used that if our lead engineer leaves, we can find someone else who already knows where the bodies are buried.

The Bottom Line

Choose tools based on how many people have already broken them in production, not how many stars they have on GitHub.

If a new technology doesn’t solve a problem you are currently losing sleep over, it’s just a distraction with a high maintenance cost.

Your goal isn’t to build the most sophisticated system; it’s to build the one that is easiest to debug when things inevitably go sideways at 2:00 AM.

The Trade-off is the Point

The Trade-off is the Point in tech.

At the end of the day, choosing boring technology isn’t about being a luddite or fearing progress; it’s about managing your cognitive load. We’ve talked about prioritizing operational reliability over the hype cycle, keeping our architecture simple enough to actually reason about, and avoiding the trap of complexity for complexity’s sake. When I look at a stack, I’m not asking “how cool is this?”, I’m asking “how many StackOverflow threads exist for this error message?” and “how many people can actually fix this at 3:00 AM?”. If the answer to those questions is “none,” then the tech is too expensive, no matter how low the licensing cost is. It’s a calculated trade-off between the thrill of the new and the stability of the known.

I’ve spent enough years chasing the “perfect” cutting-edge solution only to spend the next six months debugging the very tools that were supposed to save me time. My goal now is to build systems that are predictable. I want to write code that works, deploy it, and then actually get some sleep—or maybe go for a long bike ride without checking my phone every twenty minutes. Don’t feel guilty about picking the tool that everyone already knows how to use. In a world of constant technical churn, there is a profound, quiet power in building things that just stay working.

Frequently Asked Questions

How do you draw the line between "boring" and just being stuck in the past with tech that's actually dead?

There’s a difference between “boring” and “obsolete.” Boring is a tool that has a massive community, predictable failure modes, and a decade of Stack Overflow answers. It’s tech that stays out of your way. Obsolete is tech that no one maintains, where a single security patch takes three months to arrive. I don’t mind using an old version of Postgres; I mind using a library that hasn’t seen a commit since the Obama administration.

Won't choosing old tech make it harder to hire good engineers who want to work with modern tools?

I get this question a lot. The fear is that we’ll become a museum for legacy code and nobody will want to join the team. But I’ve found the opposite is true. Good engineers—the ones who actually solve problems—don’t care about the shiny new syntax; they care about building things that work. They want to solve interesting business problems, not spend their weekends debugging a framework that changes its API every six months.

Is there a specific way to test if a "boring" tool is actually stable enough for our specific scale?

I don’t rely on marketing benchmarks or “scale” whitepapers. I look for the edge cases. I usually run a stress test that mimics our specific traffic patterns—not just a generic load, but the weird, bursty, uneven reality of our actual production. If the tool chokes or, worse, fails silently when the connections spike, it’s not boring; it’s just untested. I’d rather find the breaking point in a controlled environment than during a Tuesday morning deployment.

How do you convince a product manager that spending time on a stable stack is better than shipping a new feature faster?

I don’t try to win this with architectural purity arguments; that’s a losing battle. Instead, I talk about the “tax.” I explain that every new, unproven tool comes with a hidden interest rate paid in debugging time and on-call rotations. If we ship this feature on a shaky stack, we aren’t actually moving faster—we’re just borrowing time from next month’s sprint to pay for today’s deployment. I show them the math on downtime.

How to write a comment that earns its place.

Comment the Why, the Code Says the What

Posted on February 10, 2026 by Tomasz Wierzbicki

I was staring at a screen at 3:14 AM, trying to figure out why a legacy payment service was dropping every tenth transaction, when I found it: a comment that simply said `// logic for handling edge cases`. That wasn’t a comment; it was a lie. It told me absolutely nothing about the specific, fragile race condition that was currently melting our database. Most people treat documentation like a chore or a compliance checkbox, but if you want to know how to write a comment that earns its place, you have to stop treating code like a textbook and start treating it like a crime scene investigation.

I’m not here to teach you the “correct” academic way to document a function or how to follow some arbitrary style guide. I’ve spent fifteen years breaking things in production, and I’ve learned that the only comments worth the disk space are the ones that explain the why behind the weirdness. I’m going to show you how to write notes that actually save your future self from a mental breakdown, focusing on the trade-offs and the “gotchas” that the compiler is too polite to mention.

Table of Contents

  • The High Cost of Avoiding Redundant Comments
  • Why Meaningful Code Documentation Saves Your Sanity
  • Five rules for comments that don't suck
  • The Rule of Thumb for My Future Self
  • The Bottom Line
  • Frequently Asked Questions

The High Cost of Avoiding Redundant Comments

The High Cost of Avoiding Redundant Comments.

We’ve all been there: staring at a block of code that looks perfectly logical on the surface, only to realize it’s a minefield of implicit assumptions. The problem is that when we try to avoid redundant comments by leaning entirely on “self-documenting code,” we often end up with something that is technically readable but contextually hollow. You can name a variable `retryCount`, but that doesn’t tell me why we’re using an exponential backoff instead of a simple loop, or why we specifically chose three retries before failing hard.

The real cost isn’t just the extra lines in the PR; it’s the cognitive load imposed on whoever has to fix this when the service starts throwing 500s. When we skip explaining the why in code, we are essentially forcing the next engineer to perform a forensic investigation just to understand a single logic gate. I’ve spent far too many hours tracing back through git blames just to find the original intent of a “clever” one-liner.

Ultimately, the goal of writing clean code comments isn’t to narrate the syntax—the compiler already knows what the syntax is doing. The goal is to capture the context that the code itself cannot express. If a comment doesn’t provide a piece of information that is impossible to derive from the code alone, it’s just noise that will eventually rot and lie to you.

Why Meaningful Code Documentation Saves Your Sanity

Why Meaningful Code Documentation Saves Your Sanity

I’ve spent enough time staring at a screen at 3:00 AM, trying to decipher why a specific conditional branch exists, to know that the debate of commenting vs self-documenting code is often a distraction. You can write the cleanest, most elegant functions in the world, but elegance doesn’t explain why you had to bypass a standard library function to avoid a race condition that only appears under heavy load. When I’m debugging a legacy service, I don’t need a comment that tells me `i++` increments a variable; I need the context that explains the weird edge case we encountered during the last Black Friday surge.

Ultimately, explaining the why in code is an act of empathy for your future self. We like to pretend we’ll remember the nuances of a specific architectural compromise, but memory is a leaky abstraction. If I spend ten minutes writing a concise note about a non-obvious workaround, I am essentially buying back an hour of my life for the next time this system breaks. It isn’t about following a handbook of best practices; it’s about reducing the cognitive load required to keep the lights on when things inevitably go sideways.

Five rules for comments that don't suck

  • Document the “Why,” not the “What.” I can look at a `for` loop and tell you it’s iterating over an array; I can’t tell you why we’re skipping every third element to avoid a race condition in the legacy payment gateway. Tell me the intent, not the syntax.
  • Explain the trade-offs you made. If you chose a slightly slower algorithm because it’s easier to reason about during an on-call rotation, write that down. It prevents the next engineer from “optimizing” it into a disaster because they didn’t understand the context.
  • Warn about the “Landmines.” If a specific block of code only works because of a weird quirk in a third-party API or a specific database configuration, flag it. A comment that says “Do not touch this without checking the connection pool settings” is worth more than a thousand lines of clean code.
  • Keep them close to the reality. If you’re writing a comment about a function, put it where the function lives. Don’t make me hunt through a separate `docs/` folder to find out why a specific edge case is being handled in the middle of a service layer.
  • Delete them when they become lies. There is nothing more dangerous than a comment that describes how the code used to work three versions ago. If you refactor the logic, you are legally obligated (in my book) to update or kill the comment. A wrong comment is worse than no comment at all.

The Rule of Thumb for My Future Self

If the comment explains what the code is doing (e.g., `i++ // increment i`), delete it immediately; if it explains why we chose this specific, non-obvious approach to avoid a race condition, keep it.

Treat comments as a way to document the “dead ends”—the logic we didn’t use because it caused a memory leak in staging—so the next person doesn’t waste three days rediscovering the same mistake.

Aim for high signal, low noise; a single sentence explaining a weird edge case is worth more than a paragraph of polite filler that obscures the actual logic.

The Bottom Line

The Bottom Line: Prioritize meaningful code comments.

At the end of the day, effective commenting isn’t about following a style guide or satisfying a linter; it’s about reducing cognitive load for the person who has to fix this when everything is on fire. We’ve talked about why redundant comments are just noise that obscures the actual logic, and why the “why” is infinitely more valuable than the “what.” If your comment just restates the function name, delete it. If it explains the specific, weird edge case that caused a database deadlock last Tuesday, keep it. Your goal is to provide the context that the code itself cannot express—the intent and the trade-offs that led to your specific implementation.

I still keep a notebook of these little lessons, mostly because I know my future self is going to be tired, caffeinated, and prone to making the same mistakes. Writing good comments is an act of empathy for your future self and your teammates. It’s a way of saying, “I’ve been in this hole before, and here is how you get out.” Don’t aim for perfection or exhaustive documentation; aim for clarity under pressure. If you write comments that actually earn their place, you aren’t just documenting code—you’re building a safety net for the next person standing in the trenches.

Frequently Asked Questions

How do I know when a piece of logic is "obvious" enough to skip a comment versus when it’s actually a hidden trap?

If the code describes the what, it’s probably obvious. If it describes the how, it’s likely self-explanatory. You skip the comment when the logic follows the natural flow of the domain.

Is there a middle ground between writing nothing and writing a paragraph that no one will read in six months?

There is, and it’s usually just a single sentence about the “why” instead of the “how.” If the code tells me what is happening, the comment should tell me what the developer was thinking when they chose this specific, weird approach. I call it the “contextual anchor.” Don’t explain the syntax; explain the edge case or the weird business rule that makes this logic necessary. If it doesn’t explain a decision, it’s just noise.

How much should I focus on documenting the "why" versus the "how" when the implementation is particularly non-standard?

If the implementation is non-standard, the “how” is usually obvious once you’re looking at the code, but the “why” is a mystery. I don’t care that you used a bitwise operation instead of a standard library function; I care that the library function has a memory leak in our specific kernel version. Focus 90% of your energy on the rationale. Explain the constraints that forced you into this weird corner. The “how” is the code; the “why” is the context.

At what point does a comment become technical debt itself, especially when the code inevitably changes?

A comment becomes technical debt the moment it starts describing what the code is doing rather than why. If you change a logic gate and forget to update the comment, you’ve just planted a landmine for the next person. I treat comments like a high-interest loan: they provide immediate clarity, but if they aren’t maintained alongside the implementation, the “interest” paid in confusion during a midnight outage is massive. If the code explains the how, the comment should only exist to explain the intent.

How to learn your editor properly guide.

A Week Learning Your Editor Pays for a Decade

Posted on February 9, 2026 by Tomasz Wierzbicki

I spent three weeks of my life once trying to build the “perfect” Neovim setup, chasing every obscure plugin and Lua snippet I saw on a subreddit. I thought I was becoming a power user, but in reality, I was just a guy sitting in a chair, staring at a terminal, unable to actually write code because I was too busy debugging my own configuration. Most people approach this by trying to memorize a massive catalog of commands, but that’s a waste of time. If you want to know how to learn your editor properly, you have to stop treating it like a hobby and start treating it like a tool for survival.

I’m not here to give you a curated list of “must-have” extensions or a roadmap to becoming a keyboard wizard. Instead, I want to talk about building muscle memory that actually holds up when you’re tired, caffeinated, and staring at a failing deployment. I’ll show you how to focus on the specific, boring movements that actually reduce cognitive load during a crisis. This isn’t about aesthetics or being “fast”; it’s about making sure your editor stays out of your way when things start breaking.

Table of Contents

  • The High Cost of Slow Workflow Optimization Techniques
  • Why Your Current Setup Increases Cognitive Load
  • How to Actually Build Muscle Memory Without Losing Your Mind
  • The Reality of a Productive Setup
  • The Long Game
  • Frequently Asked Questions

The High Cost of Slow Workflow Optimization Techniques

The High Cost of Slow Workflow Optimization Techniques.

Most people approach workflow optimization techniques like they’re training for a marathon, but they treat it like a hobby rather than a survival skill. I see it all the time: developers spending three straight weekends customizing editor environments to achieve some theoretical “perfect setup” that they’ll never actually use. They spend forty hours tweaking their color themes and font kerning, thinking they’re improving coding speed, when in reality they’re just procrastinating on the actual logic. It’s a form of productive-looking stagnation.

The real cost isn’t just the time wasted; it’s the mental tax. When your tools aren’t intuitive, you aren’t just typing slower—you’re increasing your cognitive load every time you have to stop and hunt for a command. I learned this the hard way during a migration at the insurance firm. I was so busy trying to find the “right” way to refactor a massive block of legacy code that I lost the thread of the actual business logic. By the time I found the right command, I had forgotten why I was even making the change. True keyboard shortcut mastery isn’t about being a typing wizard; it’s about making the editor disappear so you can actually focus on the problem that’s currently breaking in production.

Why Your Current Setup Increases Cognitive Load

Why Your Current Setup Increases Cognitive Load

Most people think cognitive load is about the complexity of the algorithm they are writing. It isn’t. It’s about the friction between the idea in your head and the characters appearing on the screen. Every time you have to stop your train of thought to reach for the mouse, hunt through a nested menu for a refactoring tool, or struggle with a misconfigured linter, you are leaking mental energy. You aren’t just losing seconds; you are breaking your concentration. By the time you’ve navigated the UI, you’ve often forgotten the subtle edge case you were trying to account for in that logic block.

This is where poor plugin and extension management becomes a silent killer. I’ve seen engineers spend hours installing every “cool” tool they find on GitHub, only to end up with an IDE that feels like it’s fighting them. A bloated environment creates a subtle, constant tax on your focus. When your editor is sluggish or the auto-complete is constantly suggesting garbage, you stop trusting the tool. You end up manually verifying things the editor should have handled, which is a massive waste of the limited brainpower you have available for actual problem-solving.

How to Actually Build Muscle Memory Without Losing Your Mind

  • Stop trying to learn the whole manual at once. Pick exactly three shortcuts that solve the specific things that annoy you today—like jumping to a definition or splitting a pane—and force yourself to use only those for a week. If you haven’t automated a repetitive motion by Friday, you’re just collecting trivia.
  • Treat your configuration files like production code. I’ve learned the hard way that a “quick hack” in your `.vimrc` or `settings.json` that works today will become a mystery to you in six months. Commit your config changes with a note explaining why you changed a specific setting, not just what you changed.
  • Learn the navigation, not just the typing. If you are still using the arrow keys or reaching for the mouse to move the cursor three lines up, you’re leaking cognitive energy. The goal isn’t to be a speed demon; it’s to make the movement between lines so boring that your brain can focus entirely on the logic of the bug you’re hunting.
  • Use a “sandbox” file for experimentation. When you want to try a new plugin or a complex macro, don’t do it in the middle of a critical pull request. Open a dummy `.txt` file, break things, see how the editor reacts, and then move back to your actual work once you know the tool isn’t going to hang on you.
  • Embrace the friction of being slow. There will be a period—usually a frustrating one—where you are significantly slower than you were with your mouse. Don’t revert to your old ways just because it’s easier in the moment. That friction is actually the feeling of your brain remapping its motor skills; if it feels easy, you aren’t actually learning anything new.

The Reality of a Productive Setup

Stop chasing “perfect” configurations; your goal isn’t to have the prettiest theme, it’s to reduce the number of times you have to take your hands off the keyboard to find a single file.

If you find yourself searching for a command in a menu more than twice a week, you haven’t mastered the tool—you’ve just accepted a bottleneck in your own workflow.

Treat your editor config like production code: document the “why” behind your custom keybindings, because six months from now, you won’t remember why you mapped a specific sequence to a specific action.

The Long Game

Mastering coding workflows with The Long Game.

At the end of the day, mastering your editor isn’t about collecting a massive library of obscure plugins or memorizing every single keyboard shortcut in the manual. It’s about reducing the friction between your thought and the code. We’ve looked at how a bloated setup increases your cognitive load and why chasing every new “productivity hack” is often just a way to avoid the actual work. The goal is to build a setup that feels like an extension of your hands, something that stays out of your way when you’re deep in a complex logic flow and doesn’t force you to hunt for a menu when a build fails at 2 AM. Focus on the high-leverage movements—the ones that actually save you minutes every hour—and ignore the rest of the noise.

I’ve spent enough years in production to know that no amount of tooling will fix a fundamentally broken architecture or a lack of testing. However, a well-tuned environment ensures that when things inevitably go sideways, you aren’t fighting your tools while you’re trying to fight the bug. Treat your editor configuration like a piece of production code: it deserves documentation, it deserves iteration, and it should be designed to prevent future versions of you from suffering. Stop treating your setup as a static tool and start treating it as a living part of your workflow. It takes time, but the version of you that exists six months from now will definitely thank you for it.

Frequently Asked Questions

At what point does spending time on complex keybindings stop being an investment and start becoming a distraction from actual engineering?

It stops being an investment the moment you’re spending more time tweaking your `.vimrc` or VS Code JSON than actually shipping code. If you’re hunting for the “perfect” keybinding for a niche refactor, you’re just procrastinating. I follow a simple rule: if a shortcut doesn’t save me at least ten seconds of repetitive motion every single day, it’s not a tool; it’s a hobby. Stick to the basics and save the tinkering for your side projects.

How do I build a personalized configuration without falling into the trap of constantly tweaking my setup instead of writing code?

The trick is to treat your config like production code: it needs a specification, not just a whim. I stopped tweaking every time a new plugin hit GitHub and started using a “rule of three.” If I have to manually perform a repetitive task three times, I automate it. If I find myself hunting for a setting for more than five minutes, I document the fix. Build for utility, not for the dopamine hit of a fresh setup.

Is it actually worth learning the deep internals of a specific editor if I might switch to a different one in a year?

I’ve switched editors three times in ten years, and I still don’t regret the time spent digging into the internals. You aren’t learning a specific tool; you’re learning how to manipulate text and manage state without touching a mouse. Once you understand how buffers, registers, or LSP-driven completions actually work, that mental model transfers. If you move from Vim to VS Code, the “why” stays the same. The “how” just changes syntax.

How much of my workflow should be automated via macros versus just getting faster at manual navigation?

Don’t automate a bad habit. If you can’t navigate a file efficiently with just your keyboard, a macro is just a way to perform a mistake faster. I follow a simple rule: if I find myself repeating the same three or four keystrokes every single time I touch a piece of code, I’ll consider a macro or a snippet. Otherwise, keep it manual. You want muscle memory, not a brittle script that breaks when the syntax changes.

How to answer a system design question.

Start With the Constraints, Not the Boxes

Posted on February 8, 2026 by Tomasz Wierzbicki

I spent three years at a logistics startup where we thought we were geniuses because we could draw a perfectly symmetrical distributed system on a whiteboard. Then, a single misconfigured load balancer took down our entire fulfillment pipeline on a Tuesday afternoon, and all those pretty diagrams meant absolutely nothing. Most of the advice you find online about how to answer a system design question feels like it was written by someone who has never actually had to debug a race condition while their pager is screaming at them. They want you to memorize a checklist of buzzwords—sharding, caching, replication—as if those are magic spells that prevent failure.

I’m not going to give you a list of components to memorize or a template to regurgitate. Instead, I want to show you how to approach these problems by thinking about where things actually break. We’re going to focus on the trade-offs that matter: why you’d choose consistency over availability when the stakes are high, and how to defend your decisions when an interviewer pushes back. My goal is to help you stop performing and start designing for reality, so you can walk into that room with a perspective built on production experience rather than just textbook theory.

Table of Contents

  • Stop Memorizing Patterns and Start Identifying Real Constraints
  • Why Your System Design Interview Framework Is Failing You
  • Five ways to actually pass the interview without sounding like a textbook
  • The TL;DR for the tired engineer
  • The Reality Check
  • Frequently Asked Questions

Stop Memorizing Patterns and Start Identifying Real Constraints

Stop Memorizing Patterns and Start Identifying Real Constraints

I’ve sat through enough interviews to see the same mistake repeated like a broken loop: a candidate walks in, hears “design Twitter,” and immediately starts drawing boxes for a distributed cache and a load balancer. They’ve memorized the standard system design interview framework from a YouTube video, but they’re treating it like a ritual rather than an engineering problem. They are looking for the “right” answer, when in reality, there is no right answer—only a series of choices that you have to defend.

If you want to actually sound like an engineer, you have to stop looking for the template and start looking for the pressure points. When someone asks you to design a system, they aren’t testing your ability to recall microservices architecture patterns; they are testing whether you understand how a system behaves when things go wrong. I don’t care if you know where the database sits; I care if you know what happens to the user experience when that database becomes a bottleneck.

Instead of rushing to draw every possible component, I start by asking about the why. Is the bottleneck the write throughput or the read latency? Are we optimizing for eventual consistency or do we need absolute accuracy for a financial transaction? Once you identify the actual constraints, the design starts to emerge naturally from the necessity of the problem, rather than from a mental checklist.

Why Your System Design Interview Framework Is Failing You

Why Your System Design Interview Framework Is Failing You

The problem with most advice on how to approach these interviews is that it treats the process like a checklist. You sit down, you draw a load balancer, you add a cache, you stick a database at the end, and you move on to the next box. It feels productive, but it’s actually just a performance. When you rely solely on a rigid system design interview framework, you stop actually engineering and start just playing “connect the dots.” You end up proposing a complex microservices architecture patterns suite for a problem that could have been solved with a single, well-tuned monolith and a decent message queue.

In a real production environment, nobody cares if you can draw a diagram of a distributed system; they care if you understand the consequences of your choices. Most candidates can list scalability and availability tradeoffs from memory, but they stumble when asked what happens to the data consistency when the network partition actually occurs. If your only tool is a memorized template, you’ll miss the subtle ways a system actually fails. You aren’t there to show that you know what a cache is; you’re there to prove you won’t build a house of cards that collapses the moment a single dependency goes sideways.

Five ways to actually pass the interview without sounding like a textbook

  • Stop jumping to the “magic” solution. If you start an interview by drawing a Kafka cluster or a Redis cache before you’ve even defined the scale of the data, you’ve already lost. I’ve seen people try to solve a simple CRUD app with a global distributed lock, and it’s a massive red flag. Figure out if you’re dealing with ten users or ten million before you pick your tools.
  • Treat the interviewer like a teammate, not a judge. The worst thing you can do is go silent for ten minutes while you mentally construct a perfect architecture. I’d much rather hear you say, “I’m leaning towards a relational database here because we need ACID compliance for these payments, but I’m worried about the write throughput—what do you think?” It shows you actually understand the trade-offs.
  • Define your failure modes early. Anyone can design a system that works when everything is perfect. The real question is: what happens when the network partitions? What happens when the primary database node goes offline? If you don’t proactively mention how your design handles a component dying, I’m going to assume you haven’t thought about it.
  • Don’t let the “shiny object” syndrome win. Just because a technology is popular on Hacker News doesn’t mean it belongs in your design. If a simple load balancer and a few stateless application servers solve the problem, use them. I’ve spent way too many hours debugging complex microservices that were overkill for a problem that could have been solved with a single monolith.
  • Back your claims with math, even if it’s rough. When you say “this won’t scale,” you need to explain why. Is it because the connection pool will exhaust? Is it because the latency will spike due to disk I/O? I don’t need a perfect calculation, but I do need to see that you’re thinking about the physical limits of the hardware and the network.

The TL;DR for the tired engineer

Stop trying to draw the “perfect” architecture from memory; instead, spend your time asking questions that uncover where the system is actually going to break.

A design isn’t a collection of pretty diagrams, it’s a series of trade-offs where you explicitly state what you are giving up to get what you need.

If your design doesn’t account for a single component failing or a sudden spike in traffic, you haven’t designed a system—you’ve designed a hope.

The Reality Check

System design trade-offs: The Reality Check.

At the end of the day, a successful system design isn’t about how many icons you can draw on a digital whiteboard or how many buzzwords you can fit into a single sentence. It’s about the trade-offs. If you can’t tell me why you chose a NoSQL database over a relational one, or exactly what happens to the user experience when your message queue starts lagging, you haven’t actually designed a system—you’ve just drawn a picture. Focus on the constraints, identify the single points of failure, and stop treating every component as if it’s infinitely scalable and perfectly reliable. Because in the real world, things break, latency spikes, and nodes die.

If you walk into your next interview with the mindset of a builder rather than a student, you’re already ahead of 90% of the candidates. Don’t try to give the “correct” textbook answer; instead, try to give the honest one. Show them that you understand that every architectural decision is a compromise. I’ve spent far too many nights debugging systems that looked perfect on a diagram but lacked a fundamental understanding of their own limits. Aim to design systems that are boring, predictable, and resilient. That’s the kind of engineering that lets you sleep through the night.

Frequently Asked Questions

What do I do when the interviewer gives me a vague prompt like "design WhatsApp" without any specific constraints?

When they drop a vague prompt like “design WhatsApp,” they aren’t testing your ability to draw boxes; they’re testing whether you’ll start building a skyscraper before checking if the ground is solid. Don’t just start sketching. Stop, look them in the eye, and start narrowing the scope. Ask about scale: are we talking ten users or ten billion? Ask about the priority: is it real-time delivery or guaranteed message persistence? Pick a lane and drive.

How do I know when to stop drilling down into the details and move on to the next part of the system?

It’s a trap. I’ve spent entire interviews stuck in the weeds of a single database indexing strategy while the rest of the architecture sat unaddressed. Here’s my rule: once you’ve identified the bottleneck and proposed a way to mitigate it, move on. You don’t need to write the schema; you just need to prove you know where the pressure points are. If you’re debating specific library configurations, you’ve already lost the signal for the noise.

Should I actually bother drawing the database schema, or is that a waste of precious interview time?

Don’t waste fifteen minutes drawing every single foreign key relationship, but don’t skip it entirely either. If you just say “I’ll use a relational database,” you’re hiding. I want to see the core entities and how they relate. Sketching the high-level schema—the primary keys and the one or two most important relationships—proves you’ve actually thought about the data’s shape and the bottlenecks it’ll create when the load hits.

How do I handle it when I realize halfway through my design that my chosen architecture won't actually scale?

Don’t panic and don’t try to hide it. If you realize your architecture is hitting a wall, call it out immediately. Say, “Actually, I just realized this single leader approach creates a bottleneck at X scale; let’s pivot to a partitioned model.” This is better than doubling down on a flawed design. In a real job, the most expensive mistake isn’t choosing the wrong tool—it’s realizing you’re wrong and pretending everything is fine.

How to debug with print statements well.

Print Debugging Is Not Beneath You

Posted on February 6, 2026 by Tomasz Wierzbicki

I’ve lost count of how many times I’ve sat through a “senior engineer” seminar where someone spent forty minutes explaining the intricacies of distributed tracing and sophisticated observability stacks, only to watch that same person struggle when a simple race condition hits. There is this pervasive, almost religious belief that if you aren’t using a heavy-duty debugger or a complex telemetry suite, you aren’t actually engineering. It’s nonsense. Most of the time, when the service starts throwing 500s and the logs are a mess, you just need to know how to debug with print statements well to see the actual state of your variables before the thread dies.

I’m not here to sell you on a new tool or a fancy framework. What I want to do is share the specific, unpolished patterns I’ve picked up from a decade of fixing broken things in production. I’ll show you how to structure your output so you aren’t just drowning in a sea of `console.log(“here”)`, and how to use them to actually isolate a bug instead of just adding noise. No hype, no academic fluff—just the practical mechanics of making print statements work for you when you’re staring at a screen at 2 AM.

Table of Contents

  • Tracing Program Execution With Prints Instead of Guessing
  • Effective Print Debugging Strategies for When Production Breaks
  • Five rules I follow so I don't drown in my own logs
  • The Post-Mortem Checklist
  • The Long View on Print Debugging
  • Frequently Asked Questions

Tracing Program Execution With Prints Instead of Guessing

Tracing Program Execution With Prints Instead of Guessing

The problem with most people’s approach is that they treat print statements like a scattergun. They pepper the code with `print(“here”)` or `print(“step 2”)`, hoping something sticks. This is a recipe for madness. If you want to actually succeed at tracing program execution with prints, you need to stop guessing where the code might be and start proving where it is. I’ve learned that if you don’t have a specific hypothesis before you hit “save,” you aren’t debugging; you’re just adding noise to your terminal.

A more structured print debugging workflow involves treating your output like a breadcrumb trail. Instead of vague messages, I print the specific state of the variables that I suspect are drifting. If I’m looking at a failed payment calculation, I don’t just print “calculating”; I print the exact decimal value of the tax rate and the integer value of the total. This turns the process from a game of “hide and seek” into a simple matter of verifying facts. It’s about building a mental model of the execution flow and using the console to confirm or deny it, rather than just hoping the crash happens exactly where you put your marker.

Effective Print Debugging Strategies for When Production Breaks

Effective Print Debugging Strategies for When Production Breaks

When things go sideways in production, your first instinct is usually to spray `print(“here”)` everywhere like you’re feeding pigeons in a park. I used to do that. It works for about thirty seconds until you realize you’ve created a wall of text that tells you absolutely nothing about the actual state of the system. To actually make progress, you need a structured print debugging workflow. Instead of just marking where you are, you need to print the context. If a function fails, don’t just print “error”; print the ID of the object that caused it, the current loop index, and the timestamp. If you aren’t printing the specific inputs that lead to the crash, you aren’t debugging—you’re just watching a slow-motion car wreck.

The other trap is the mess you leave behind. I’ve seen pull requests rejected because someone forgot to clean up their “temporary” debug statements, which is a great way to clutter the logs for the next person on call. Developing some debugging discipline for developers means treating your prints as transient tools. I’ve started making it a habit to write my print statements as if they were a temporary diagnostic layer. If you find yourself needing more than five or six different print locations to understand a single flow, you’ve probably moved past simple debugging and into the territory where you actually need a proper logger. But for that quick fix at midnight? Just make sure your prints actually carry weight.

Five rules I follow so I don't drown in my own logs

  • Print the context, not just the value. Seeing `x = 10` in a sea of logs tells me nothing. I’ve learned to always include a label and, if possible, the function name: `[UserService.validate] user_id: 452, status: PENDING`. It saves me from having to cross-reference the line number in the source code while I’m half-asleep.
  • Use delimiters to find the “needle in the haystack.” When a loop runs a thousand times, a single print statement becomes invisible. I start wrapping my important debug prints in something loud, like `>>> DEBUG: <<<`. It makes it much easier to scan the terminal output when everything else is just standard noise.
  • Don’t just print what you expect; print what you’re afraid of. If I’m working on a complex conditional, I don’t just print the result. I print the state of every variable involved in that decision. If the logic fails, I want to see the exact combination of inputs that led to the wrong branch being taken.
  • Clean up your mess before you commit. There is nothing more embarrassing than a colleague seeing `print(“HERE”)` or `print(“PLEASE WORK”)` in a pull request. I make it a habit to do a quick `grep` for “print” before I even think about staging my changes. If I’m using them for long-term visibility, I use a proper logger; if they’re for debugging, they don’t leave my machine.
  • Watch out for the “Heisenbug” effect. Sometimes, adding a print statement changes the timing of the system just enough that the bug disappears. If I’m debugging a race condition or a high-concurrency issue, I try to keep my prints minimal and avoid heavy string formatting, because the act of logging can sometimes mask the very problem I’m trying to catch.

The Post-Mortem Checklist

Stop treating print statements as temporary clutter and start treating them as data points; if you aren’t logging the actual state of the variables right before the crash, you’re just guessing in the dark.

Always include context in your output—a raw number like `404` is useless, but `[UserAuth] Failed to fetch profile for ID 8829: 404` tells me exactly where to start looking.

Use the “cleanup” phase as a mental check; if you find yourself leaving a trail of print statements in the codebase, it’s a sign that your actual error handling or logging strategy is failing you.

The Long View on Print Debugging

The Long View on Print Debugging.

At the end of the day, print debugging isn’t about being “unprofessional” or lacking a fancy debugger; it is about reducing the cognitive load when everything is on fire. I’ve learned that if you stop guessing and start printing the actual state of your variables—especially the edge cases like nulls or empty collections—you stop spinning your wheels. By focusing on the flow of data and the exact moment a state becomes invalid, you turn a frantic search into a systematic investigation. It’s the difference between poking a dark room with a stick and actually turning on the lights.

I still have plenty of side projects sitting in a folder, half-finished because I hit a wall I couldn’t climb. But when I do sit down to fix them, I don’t reach for the most complex tool first; I reach for the simplest one that works. Don’t let the pursuit of “perfect” tooling get in the way of actually solving the problem. Write your prints, see the truth of what the machine is doing, and then get some sleep. The goal isn’t to write the most sophisticated debugging session in history; the goal is to fix the bug and get back to building things that actually work.

Frequently Asked Questions

When does a series of print statements become so messy that I should just stop and actually fire up a proper debugger?

If you’ve reached the point where you’re scrolling through five hundred lines of logs just to find one variable change, you’ve lost. When your “debug prints” start requiring their own documentation just to understand the output, or if you’re trying to track a state change across ten different function calls, stop. That’s when the mental overhead of managing the logs exceeds the effort of setting a breakpoint. Fire up the debugger; your future self will thank you.

How do I avoid accidentally committing these debug prints to the main branch and polluting the production logs?

I’ve definitely pushed a `print(“HERE 1”)` to production during a frantic hotfix, and let me tell you, it’s a special kind of hell when your logs turn into a wall of useless noise.

Is there a way to use structured logging instead of just raw strings so I'm not staring at a wall of unreadable text when things go wrong?

I’ve spent enough hours staring at a scrolling wall of text to know that raw strings are a trap. Once you move past simple scripts, you need to treat your prints like data, not just prose. I started using simple JSON-formatted prints—basically manual structured logging—when my local logs got too noisy. It’s a bit more friction upfront, but being able to grep for a specific `user_id` or `request_id` instead of parsing a sentence is worth the extra keystrokes.

How much overhead should I actually expect these prints to add to the system's performance while I'm trying to catch a race condition?

The short answer is: enough to change the outcome. If you’re hunting a race condition, your prints are essentially a form of synchronization. Every time you write to stdout, you’re introducing a tiny, unpredictable delay that can mask the very timing issue you’re looking for. It’s the “Heisenbug” problem. Don’t expect significant CPU overhead, but expect the I/O latency to shift your thread scheduling. If the bug disappears when you add prints, you’ve found your culprit.

  • Previous
  • 1
  • …
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • Next

Recent Posts

  • The Signs You Will Ignore Until You Cannot
  • Crash Early Rather Than Corrupt Quietly
  • A Deadline Needs a Witness
  • Where the Evenings Actually Went
  • Teaching Yourself Without a Syllabus
  • Read Both Sides Before You Pick One

Categories

  • Career (44)
  • Code Habits (45)
  • Debugging (43)
  • Side Projects (45)
  • Tooling (43)

Archives

  • November 2026
  • October 2026
  • September 2026
  • August 2026
  • July 2026
  • June 2026
  • May 2026
  • April 2026
  • March 2026
  • February 2026
  • January 2026
© 2026 theboreddev.com | Powered by Minimalist Blog WordPress Theme