theboreddev.com

Menu
  • Home
  • Career
  • Code Habits
  • Debugging
  • Side Projects
  • Tooling
  • About Us
  • Contact Us
  • Disclaimer
Menu

Month: October 2026

How to debug a bug reported by one user.

One Person Can Be Right

Posted on October 30, 2026 by Tomasz Wierzbicki

I remember sitting in a dark apartment three years ago, staring at a single, cryptic Slack message from a client while my coffee went cold. There were no error spikes in Datadog, no cascading failures in the logs, and certainly no “systemic issue” to point to—just one person, one specific workflow, and a complete lack of context. Most people will tell you that you need more advanced observability tools or a massive distributed tracing setup to solve this, but that’s usually a lie. When you are trying to figure out how to debug a bug reported by one user, the problem isn’t your telemetry; it’s usually that you’re looking for a pattern when you should be looking for a person.

I’m not going to give you a lecture on theoretical debugging methodologies or suggest you buy more expensive SaaS licenses. Instead, I want to walk through the messy, manual process of reconstructing a single user’s reality from the wreckage of our logs. I’ll share the specific, unglamorous steps I use to bridge the gap between a vague complaint and a reproducible local environment. My goal is to give you a practical toolkit for those moments when the dashboard says everything is fine, but the customer says everything is broken.

Table of Contents

  • Requesting Detailed Bug Report Metadata Before It Vanishes
  • Analyzing Client Side Error Logs to Find the Ghost
  • Five ways to stop chasing ghosts and start finding the cause
  • The Lessons Learned (When the Pager Stops Screaming)
  • The Long Road to a Fix
  • Frequently Asked Questions

Requesting Detailed Bug Report Metadata Before It Vanishes

Requesting Detailed Bug Report Metadata Before It Vanishes

The biggest mistake I made early in my career was assuming the user was describing the problem accurately. They aren’t. They are describing their perception of the problem, which is often missing the technical context that actually matters. If you wait until you’ve already started digging to ask for details, you’ve already lost the trail. You need to be proactive about requesting detailed bug report metadata before the user closes their browser tab or forgets the specific sequence of clicks that led to the crash.

I’ve learned that “it doesn’t work” is useless, but “it fails when I click ‘submit’ while the loading spinner is still active” is gold. You need to push for more than just a screenshot. I want the specific browser version, the OS, and if possible, any local state that might be skewing the results. A huge part of isolating user-specific environment variables is realizing that the bug might not be in our code at all, but in the weird way their specific setup interacts with our API. If you don’t capture these details immediately, you’re just playing a guessing game in the dark.

Analyzing Client Side Error Logs to Find the Ghost

Analyzing Client Side Error Logs to Find the Ghost

Once you’ve gathered the metadata, you usually hit a wall where the user says, “It just didn’t work,” which is about as helpful as a broken compass in a storm. This is where analyzing client-side error logs becomes your only real lifeline. I’ve learned the hard way that the server logs are often blissfully silent when a crash happens entirely within the user’s browser or a specific mobile client. You need to look for those swallowed exceptions—the ones that don’t trigger a 500 error on your backend but leave the frontend in a state of total paralysis. If you aren’t using a tool like Sentry or LogRocket to capture the state of the application at the exact moment of failure, you’re basically just guessing in the dark.

The real trick is isolating user-specific environment variables that might be poisoning their specific session. I once spent an entire afternoon chasing a phantom bug that turned out to be a weird interaction between a specific browser extension and our state management. You have to look for the patterns in the noise: Is it a specific version of Chrome? A weird timezone offset? A localized character encoding issue? Don’t just look at the error message; look at the context surrounding it. If you can’t see the breadcrumbs of what they clicked right before the crash, you aren’t debugging; you’re just performing digital archaeology.

Five ways to stop chasing ghosts and start finding the cause

  • Stop trying to reproduce it on your machine immediately. If it’s only happening to one person, your local environment is a lie. Instead, spend that time looking for the delta between their state and yours—the weird browser extension, the specific latency spike, or the one database shard that’s behaving badly.
  • Look for the “silent” failures. A user reporting “it doesn’t work” usually means a button clicked and nothing happened. That’s almost always a swallowed promise or a failed network request that didn’t trigger a UI error state. If your error boundaries are too quiet, you’re flying blind.
  • Check the surrounding telemetry, not just the error log. If the user says the checkout failed, don’t just look for a 500 error. Look at the service latency and connection pool saturation at that exact timestamp. Sometimes the bug isn’t a code error; it’s a resource starvation issue that only hits specific traffic patterns.
  • Verify the data integrity of that specific user’s account. I’ve spent hours debugging logic that turned out to be perfectly fine, only to realize the user had a legacy flag in their profile from a migration three years ago that no one else had. The code is fine; the state is poisoned.
  • Trace the request through the entire stack, even the parts you didn’t write. If you’re on a platform team, the bug might not be in your service, but in how the ingress controller is handling a specific header that this one user happens to be sending. Don’t assume the boundary of the problem is the boundary of your repository.

The Lessons Learned (When the Pager Stops Screaming)

Don’t trust a user’s “it’s broken” description; trust the telemetry. If you can’t see the trace, the bug effectively doesn’t exist.

Speed is the enemy of accuracy. I’ve learned that rushing to a “fix” without seeing the specific client-side state is how you end up breaking something else at 3:00 AM.

Documentation is your future self’s only friend. Once you find the pattern, write down the specific failure mode so you aren’t debugging the same ghost six months from now.

The Long Road to a Fix

The Long Road to a Fix.

At the end of the day, chasing a single user’s bug is less about being a detective and more about being a disciplined investigator. You can’t rely on luck or “it works on my machine” logic when the problem is living in someone else’s specific, messy environment. By the time you’ve gathered the right metadata, scoured the client-side logs, and mapped out the request lifecycle, you aren’t just looking for a needle in a haystack—you’re building a map of the haystack itself. The goal isn’t just to patch the leak; it’s to understand the structural weakness that allowed the leak to exist in the first place.

I’ve spent enough nights staring at logs to know that these edge cases are actually the most honest teachers we have. They expose the gaps in our assumptions and the places where our abstractions fail under real-world pressure. Don’t view a single-user bug as an annoyance or a distraction from your “real” feature work. View it as a free lesson in how your system actually behaves when nobody is watching. If you document what you find and fix the root cause, you aren’t just closing a ticket; you’re making sure the next person on call doesn’t have to re-learn the same hard lesson that you just did.

Frequently Asked Questions

What do I do when the user says "it just doesn't work" and refuses to provide any more details?

When a user hits you with “it just doesn’t work” and shuts down, you have to stop asking them for help and start acting like a detective. If they won’t give you the “what,” you have to hunt for the “who” and “when.” I start by looking at our telemetry for that specific user ID. I’m looking for spikes in 500s, latency jumps, or weirdly shaped payloads around the time they claim things broke. If the logs are silent, the bug is likely hiding in the gap between our expected input and their actual behavior.

How do I distinguish between a genuine edge case and a user who is simply misusing the application?

I usually start by looking for the “impossible” state. If the logs show the system behaving exactly as coded, but the user’s outcome is wrong, they’re likely misusing the tool. But if I see a state transition that shouldn’t exist—like a completed order with a null payment ID—that’s an edge case. I don’t care about being right; I care about whether the code allowed a sequence of events that the business logic says is impossible.

At what point do I stop chasing this single outlier and decide it's just "noise" we can live with?

You stop when the cost of the investigation exceeds the cost of the failure. If it’s a single user experiencing a UI glitch that doesn’t corrupt data, let it go. But if that “noise” is a single edge case in a payment flow or a race condition in a database write, it’s not noise—it’s a landmine. If you can’t reproduce it, document the impossibility, set a threshold for recurrence, and move on.

If I can't reproduce the error in my local environment, how do I know if I'm actually fixing the right thing?

This is the classic “works on my machine” trap. If you can’t reproduce it locally, you aren’t fixing a bug; you’re guessing at a theory. Instead of blindly committing code, I lean on observability. I look for the specific delta between the user’s environment and mine—a specific header, a race condition, or a weird database state. If I can’t recreate the failure, I don’t ship the fix until I’ve added enough telemetry to prove the new code actually handles that specific edge case.

How to keep a template for new projects.

A Starter You Actually Maintain

Posted on October 27, 2026 by Tomasz Wierzbicki

I spent three weeks at a logistics startup trying to build the “perfect” automated scaffolding engine, complete with custom CLI tools and complex CI/CD abstractions. It was a massive waste of time. I thought I was being efficient, but all I actually did was create a high-maintenance monster that broke every time a dependency updated. Most people approach the question of how to keep a template for new projects by trying to automate away all the human thought, when they should really be focused on reducing the cognitive load of the repetitive stuff.

I’m not here to sell you on some shiny, over-engineered generator or a complex suite of internal developer platforms. I’ve learned the hard way that if a template is too rigid, it becomes a tomb for old decisions, and if it’s too loose, it’s just a pile of boilerplate. I want to show you how I manage my own project starters: by keeping them boringly predictable and easy to strip down. I’ll share the specific, low-overhead ways I document my setup so that when I start something new, I’m actually writing code instead of debugging my own scaffolding.

Table of Contents

  • Standardizing Project Structures Before the First Bug Hits
  • Efficiency in Project Setup When Everything Is on Fire
  • Five things that actually matter when you're building a template
  • What I actually learned from the wreckage
  • The Long Game of Maintenance
  • Frequently Asked Questions

Standardizing Project Structures Before the First Bug Hits

Standardizing Project Structures Before the First Bug Hits

When I started out, I thought a “project” began when I ran `git init`. I was wrong. A project actually begins with the decisions you make before a single line of business logic is written. If you don’t start with standardizing project structures, you aren’t actually building a system; you’re just accumulating a collection of slightly different ways to misconfigure a database connection. I’ve spent too many afternoons migrating service logic from one repo to another only to realize the folder hierarchy was so idiosyncratic that I had to spend three hours just finding the entry point.

I eventually moved away from manual setup and started using basic project scaffolding tools to enforce a baseline. It’s not about being a pedant; it’s about reducing the cognitive load. If every microservice I spin up has the same `/cmd`, `/internal`, and `/pkg` layout, I don’t have to think about where the logs go or how the middleware is injected. I can just focus on the actual problem. The goal is to reach a state of efficiency in project setup where the boilerplate is invisible, leaving you with nothing to do but solve the problem you actually got paid to fix.

Efficiency in Project Setup When Everything Is on Fire

Efficiency in Project Setup When Everything Is on Fire

There is a specific kind of panic that sets in when a stakeholder demands a new service be live by Monday, but you haven’t even finished configuring the CI/CD pipeline for the last one. In those moments, you realize that manual setup isn’t just slow; it’s a liability. I’ve spent too many hours manually copying `docker-compose` files and tweaking environment variables, only to realize I missed a single line in the `.gitignore`. This is where project scaffolding tools actually earn their keep. They aren’t about being fancy; they are about ensuring that the baseline—the boring, repetitive stuff like logging configurations and health check endpoints—is identical every single time.

When things are moving fast, your brain tends to skip the “small” details, like how the service handles graceful shutdowns or how it exports metrics. By leaning on workflow automation for developers, you offload that cognitive load. I don’t want to think about how my project structure should look when I’m trying to solve a logic error; I just want the scaffolding to be there, solid and predictable. If the foundation is automated, you can spend your energy on the actual business logic instead of fighting with your own boilerplate.

Five things that actually matter when you're building a template

  • Don’t template the business logic. I’ve seen people try to bake specific domain rules into their base repos, and it’s a nightmare when the next project needs to do something slightly different. Keep the template focused on the plumbing—the CI/CD pipelines, the logging setup, and the folder structure—not the actual product.
  • Include a “How to destroy this” section in your README. Every template should come with a clear explanation of the architectural trade-offs you made. If I chose a specific database driver because it handles connection pooling better for our scale, I need that written down so the next person doesn’t swap it out for a “shinier” one without realizing why it was there in the first place.
  • Automate the boring stuff, but don’t hide it. Your template should come with a basic Makefile or a set of shell scripts to spin up the local environment. If a new developer has to spend four hours manually configuring their local Postgres instance just to see a “Hello World,” the template has already failed.
  • Treat your template as its own project, not a static file. I keep my project templates in their own repository with their own lifecycle. When I find a better way to handle secret rotation or a more efficient way to run our linting suite, I update the template repo. If you treat it like a “set it and forget it” document, it’ll be obsolete within six months.
  • Ship with a working, empty test suite. There is nothing worse than starting a new service and realizing you haven’t even decided how to mock the external APIs yet. I always include a few basic integration test examples in my templates. It sets the expectation from minute one that if it isn’t tested, it doesn’t exist.

What I actually learned from the wreckage

A template isn’t a rigid set of rules; it’s a baseline of “known good” configurations that prevents you from making the same configuration mistake for the third time this year.

If your template takes more than ten minutes to get a “Hello World” running in a staging environment, it’s too heavy and you’ll eventually stop using it.

Treat your template like code, not documentation—if you find yourself manually fixing a dependency or a build script during a new setup, update the template immediately or you’re just building technical debt into your next project.

The Long Game of Maintenance

The Long Game of Maintenance in coding.

At the end of the day, a project template isn’t about being a perfectionist or following some arbitrary industry standard. It’s about reducing the cognitive load when you’re already dealing with a heavy feature load or a looming deadline. By standardizing your directory structures, automating your CI pipelines, and documenting your configuration choices early, you aren’t just saving a few minutes of typing; you are building a safety net for your future self. I’ve learned the hard way that if you don’t codify these decisions into a template, you’ll inevitably end up reinventing a slightly broken version of the same wheel six months from now.

Don’t aim for a “perfect” template that tries to solve every possible edge case—that’s a rabbit hole that leads to nothing but maintenance headaches. Instead, aim for something useful and predictable. A template is a living document, a piece of code that evolves as you encounter new production failures and realize what you missed the last time. Treat it like a tool in your kit rather than a monument to your current expertise. If it makes your next deployment slightly less stressful, it’s doing its job.

Frequently Asked Questions

How much of the template should actually be code versus just documentation and configuration?

I’ve learned the hard way that if you over-template the code, you end up fighting your own scaffolding. If the template includes too much business logic, every new project becomes a struggle to strip out what you don’t need. Keep the code limited to the “boring” stuff—CI pipelines, linting, and container configs. The rest should be documentation. I’d rather have a README that explains why we use a specific database than a codebase that tries to do it for me.

At what point does a template become "too heavy" and start slowing down the very people it's supposed to help?

A template becomes too heavy when you start fighting it just to write a simple “Hello World.” If I’m spending more time stripping out boilerplate, unlinking unused CI/CD pipelines, or deleting pre-configured microservices I don’t need, the template has failed. A good template is a head start, not a straitjacket. If the setup process feels like an obstacle course instead of a shortcut, you’ve over-engineered the solution and created a new kind of technical debt.

How do you handle the inevitable drift when a project evolves away from the original template?

The drift is inevitable. Eventually, someone adds a new dependency or tweaks a build script, and suddenly your “standard” template is a lie. I used to fight this by trying to force everything back into the mold, which just annoyed my teammates. Now, I treat the template as a living document. If a project evolves a better way of doing things, I don’t fight it; I backport that change to the template. The goal isn’t perfect uniformity, it’s preventing the same mistakes from repeating.

Should these templates live in their own repository, or are they better off as a CLI tool?

I’ve gone back and forth on this. A standalone repo is easier to start—you just clone it and change the names. But I’ve learned that “cloning and renaming” is how configuration drift starts. I eventually moved toward a simple CLI tool. It feels like more work upfront, but being able to run `new-project –service-type=api` and having it inject the right linting rules and CI pipelines automatically saves me from those inevitable “oops, I forgot the observability boilerplate” moments.

How to document a command so it gets used.

An Undocumented Command Does Not Exist

Posted on October 23, 2026October 31, 2026 by Tomasz Wierzbicki

I once spent three hours on a Sunday morning trying to debug a deployment script, only to realize I’d forgotten the specific flag needed to bypass a stale cache. I stared at a README that was essentially a wall of text describing the philosophy of the tool, but it didn’t tell me a single thing about how to actually run the damn thing. We’ve been sold this lie that documentation needs to be a sprawling, beautiful wiki, but that’s just overhead. If you want to learn how to document a command so it gets used, you have to stop writing for the auditors and start writing for the person who is exhausted, caffeinated, and slightly panicked because something just broke in production.

I’m not here to give you a lecture on technical writing standards or how to use Confluence. Instead, I want to share the practical, often messy patterns I’ve learned from fifteen years of making mistakes. I’ll show you how to structure your examples so they are immediately copy-pasteable and how to highlight the side effects that actually matter. My goal is to help you write notes that are useful enough that the next person—which might as well be you in six months—doesn’t have to rediscover the wheel every single time.

Table of Contents

  • Why Cli Usability Principles Save Your Sleep
  • Writing Clear Technical Documentation for the Exhausted Engineer
  • Five things I actually look for when I'm too tired to read a manual
  • The TL;DR of not making things harder for your future self
  • The Long Game of Good Docs
  • Frequently Asked Questions

Why Cli Usability Principles Save Your Sleep

Why Cli Usability Principles Save Your Sleep

Most people treat CLI design like a chore—something you do because the ticket says so. But if you treat it as a way of improving developer experience, you realize that a poorly designed tool is just a future incident report waiting to happen. I’ve spent too many nights squinting at a terminal, trying to guess if a flag like `–force` actually means “retry” or “delete everything in the database.” When you ignore basic CLI usability principles, you aren’t just being lazy; you are actively creating cognitive load for whoever has to run that command under pressure.

The reality is that if a tool isn’t intuitive, people won’t use it correctly; they will find a workaround or, worse, they will script it blindly. I learned this the hard way at the insurance firm. We had a deployment script that was technically functional, but because the help text was useless, a junior dev passed the wrong argument and wiped a staging environment. It wasn’t a failure of the code, it was a failure of command line interface discoverability. If I can’t find the right flag in five seconds, the tool is broken, regardless of how elegant the underlying logic is. Documenting the intent is just as important as the execution.

Writing Clear Technical Documentation for the Exhausted Engineer

Writing Clear Technical Documentation for the Exhausted Engineer

When you’re deep in a debugging session, your brain isn’t in a state to parse a wall of text or interpret vague, academic descriptions. You need to find the right flag, see what it does, and move on. This is where improving developer experience actually matters. If your help text requires a second trip to Confluence or a Slack message to a teammate, you haven’t documented the command; you’ve just created a scavenger hunt. I’ve learned the hard way that brevity is a functional requirement, not a stylistic choice.

Effective documentation for a CLI should follow a predictable pattern: what it does, what the flags change, and—crucially—an example of it actually working. I always try to include effective help text examples that show the command in a real-world context. Don’t just tell me `–force` bypasses safety checks; show me `my-tool deploy –force –env staging`. It’s about reducing the cognitive load. If I can copy, paste, and tweak a command without having to mentally reconstruct the syntax, you’ve done your job. At that point, the tool becomes an extension of my workflow rather than another obstacle to overcome.

Five things I actually look for when I'm too tired to read a manual

  • Put the most common use case first. I don’t care about the edge cases or the esoteric flags when I’m trying to fix a deployment. Give me the one line of code that works 90% of the time, right at the top, before you start explaining the theoretical architecture.
  • Show, don’t just tell, the output. A good command description should include an example of what the terminal is actually going to spit back at me. If I can’t predict what the output looks like, I’m not running the command; I’m just gambling with the production state.
  • Name your flags for humans, not for your personal preference. If a flag is `–force-delete-everything-and-i-mean-it`, I know exactly what I’m doing. If it’s just `-f`, I’m going to spend three minutes checking the man page to make sure I’m not about to nuked a database.
  • Document the side effects, not just the primary function. If running a cleanup script also triggers a cache invalidation that spikes latency, tell me that. The “what it does” is easy; the “what else it breaks” is what actually matters when things go sideways.
  • Link to the context, not just the syntax. A command doesn’t exist in a vacuum. If this CLI tool is part of a larger migration process, give me a link to the design doc or the incident report that explains why this tool was even built in the first place.

The TL;DR of not making things harder for your future self

Write the “happy path” command first. Don’t bury the most common use case under five layers of flags and nested help menus; if I have to read a paragraph to figure out how to run a simple migration, I’m going to type it wrong.

Assume the reader is tired, slightly annoyed, and has zero context. If a flag has a side effect—like deleting a temporary directory or hitting a production database—state it explicitly in the description rather than hiding it in a footnote.

Test your documentation by actually running the commands. I’ve lost count of how many times I’ve followed a “copy-paste” example from a README only to realize a dependency or a path was assumed rather than stated.

The Long Game of Good Docs

The Long Game of Good Docs.

At the end of the day, documenting a command isn’t about checking a box for a sprint review or satisfying some arbitrary style guide. It’s about reducing the cognitive load for the person—which might be you, six months from now—who is trying to run a migration while the on-call rotation is screaming. If you focus on providing clear examples, documenting the side effects, and making the flags intuitive, you aren’t just writing text; you are building a safety net for your future self. It’s the difference between a smooth deployment and a frantic scramble to find the right syntax while the database is locking up.

I’ve spent enough time in production to know that tools are only as good as their ability to be used correctly under pressure. You can build the most elegant, performant CLI in the world, but if the documentation is a mystery, it’s just a liability waiting to happen. So, treat your documentation like your code: write it with the assumption that someone will eventually break something using it. If you do that, you aren’t just a developer; you’re an engineer who actually cares about the stability of the system long after the PR is merged.

Frequently Asked Questions

How do I decide which edge cases are actually worth documenting versus what belongs in a troubleshooting guide?

I use a simple rule: if an edge case changes the expected outcome of the command, document it in the README. If it just explains why the command failed, put it in the troubleshooting guide. I don’t want my CLI help text cluttered with “if you see error X, do Y.” Keep the documentation for the what and the how; save the why it broke for the post-mortem or the troubleshooting section.

If I'm documenting a legacy script that has no clear structure, where do I even start without rewriting the whole thing?

Don’t touch the code. That’s a trap that leads to a rewrite you don’t have time for. Instead, treat it like a black box. Run it, watch what it touches, and document the inputs and outputs. I call this “observational documentation.” Map out what the script expects, what it actually spits out, and—most importantly—what side effects it leaves behind in the database or filesystem. Document the behavior, not the logic.

At what point does adding more detail to a help menu stop being useful and start becoming a nuisance for the person actually trying to run the command?

It stops being useful the moment the engineer has to scroll to find the actual flags. If I’m staring at a wall of text trying to remember if it’s `–force` or `–overwrite`, you’ve failed. Use a “summary first” approach: show the most common use case and the primary flags immediately. Put the edge cases and the long-winded explanations in a `–help-all` flag or a separate man page. Respect the user’s cognitive load.

How do I keep the documentation from rotting the second the underlying CLI logic changes?

The trick is to stop treating documentation as a separate chore and start treating it as part of the build. If you’re writing a CLI, the help text should be generated from the code itself, not copied into a README. I’ve learned the hard way: if the documentation isn’t sitting in the same pull request as the logic change, it’s already dead. Make the test suite fail if the help output doesn’t match the expected schema.

How to rebase without losing work guide.

Rebase With a Backup Branch

Posted on October 23, 2026 by Tomasz Wierzbicki

I still remember the exact feeling of my stomach dropping in a dimly lit office back at the logistics startup—that cold, hollow sensation when you realize the terminal prompt is staring back at you, but your code is just gone. I had tried to clean up my history before a big merge, and instead of a tidy commit graph, I had managed to delete three days of logic. Most tutorials on how to rebase without losing work focus on the “correct” way to use the command, but they never talk about the panic that sets in when the reflog feels like a foreign language.

I’m not here to give you a lecture on Git theory or explain why rebasing is “cleaner” than merging. I’ve already spent enough hours in production incidents to know that “clean” doesn’t matter if your progress is nuked. Instead, I want to show you the practical, slightly paranoid workflows I use to ensure that even if I mess up the command, I can always get my stuff back. This is about building a safety net so you can move fast without the fear of a 2:00 AM recovery mission.

Table of Contents

  • Why I Always Git Stash Before Rebasing Now
  • Preventing Data Loss in Git Before the Panic Sets in
  • Five ways to keep your sanity (and your code) during a rebase
  • The TL;DR for when you're too tired to read the full post
  • The Bottom Line
  • Frequently Asked Questions

Why I Always Git Stash Before Rebasing Now

Why I Always Git Stash Before Rebasing Now

It used to be that I thought I was too experienced to mess up a standard rebase. I’d jump straight in, confident that I could navigate the conflict markers without breaking a sweat. Then came the Tuesday night when a particularly messy series of conflicts left my working directory in a state that looked less like code and more like a crime scene. I tried to back out, but I had already staged some changes, and suddenly the line between my current work and the upstream history was blurred. I ended up having to rely on the git reflog for recovering commits just to find the version of my files that actually made sense.

Now, my workflow is much more boring, which is exactly how I like it. Before I even touch the rebase command, I run a `git stash`. It’s a simple, five-second habit, but it provides a clean slate. By using git stash before rebasing, I ensure that my uncommitted experimental changes are tucked away safely in a separate pile. If the rebase goes sideways—and let’s be honest, if you’re dealing with a long-lived feature branch, it eventually will—I don’t have to worry about losing the work I hadn’t even committed yet. I can just use the `git rebase –abort` command, clear the air, and pop my stash back when the dust settles. It’s not the most elegant way to work, but it’s the way that lets me sleep.

Preventing Data Loss in Git Before the Panic Sets in

Preventing Data Loss in Git Before the Panic Sets in

The most effective way to stop a disaster is to ensure you have a way out before you even start. I’ve learned the hard way that if you’re feeling a sense of dread while resolving merge conflicts during rebase, you are already in the danger zone. My personal rule is to never start an interactive session on a “dirty” working directory. If you have uncommitted changes, just move them out of the way. Whether you use a temporary branch or a simple `git stash before rebasing`, the goal is the same: create a clean state where your only responsibility is managing the history, not worrying about losing half-finished logic from a different task.

If things do go sideways—and they will—don’t start frantically deleting files. Most people panic and try to manually fix the mess, which is how you actually lose data. Instead, get comfortable with the git rebase –abort command. It is your “undo” button for the entire operation. If you’ve gone even deeper into the woods and the abort command isn’t enough, remember that `git reflog` is your best friend. It tracks every time your `HEAD` moves, meaning even if a commit seems to have vanished into the ether, it’s usually still sitting there in the reflog, just waiting to be pointed at again.

Five ways to keep your sanity (and your code) during a rebase

  • Use `git reflog` as your emergency brake. When you inevitably realize you’ve rebased onto the wrong branch or somehow deleted a commit that actually worked, don’t panic. The reflog is a recording of everywhere your HEAD has been; it’s the closest thing Git has to a time machine, and it’s how I’ve recovered most of my “lost” work.
  • Create a “safety branch” before you start. If the rebase looks even slightly hairy, just run `git branch backup-before-rebase`. It’s a zero-cost way to have a pointer sitting exactly where you are right now. If the rebase goes sideways, you don’t have to perform surgery on your current branch; you just delete the mess and go back to the backup.
  • Learn to love `git rebase –abort`. I used to try and “fix” a messy rebase mid-conflict, thinking I could power through. That’s how you end up with a Frankenstein state where half your changes are applied and the other half are missing. If the conflicts look like a nightmare, just abort and start fresh from a clean state.
  • Check your status frequently. It sounds basic, but during a complex rebase, it’s easy to lose track of whether you’re actually in the middle of a conflict resolution or if you’ve already finished. Run `git status` more often than you think you need to. It’s the only way to be sure what the current state of the world actually is.
  • Don’t rebase shared history. This is the golden rule I learned the hard way at the logistics startup. If you’ve already pushed a branch to the remote and others are building on top of it, rebasing that branch is an invitation to a production incident. Rebase your local work to clean it up, but once it’s public, leave the history alone.

The TL;DR for when you're too tired to read the full post

Treat your local state like it’s volatile; if it isn’t committed or stashed, it doesn’t exist once the rebase starts.

Use `git reflog` as your emergency exit; it’s the only way to find your way back once you’ve realized you’ve nuked a branch.

Don’t rebase shared branches; if someone else has already pulled your work, you’re just inviting a synchronization nightmare for the rest of the team.

The Bottom Line

The Bottom Line: Git rebase tips.

At the end of the day, rebasing isn’t a dark art; it’s just a series of state changes that you need to manage with intention. If you remember nothing else from this, remember to stash your local changes first, verify your branch state with `git status`, and for the love of sanity, create a temporary backup branch before you start the process. I’ve learned the hard way that the five seconds it takes to run `git branch backup-before-rebase` is the difference between a minor hiccup and a two-hour recovery mission involving `git reflog` and a lot of self-loathing.

We all want to be the engineer who can manipulate the git tree with surgical precision, but the real skill is knowing when to slow down. There is no prize for being the fastest person to break the build or the person who loses three hours of work because they were too impatient to follow a simple workflow. Don’t let the tools intimidate you, but don’t let your own ego make you skip the safety checks. Build your habits around preventing the disaster, not just fixing it after the damage is done. That’s how you actually get to sleep through the night.

Frequently Asked Questions

What do I do if I realize I've already botched the rebase and the reflog isn't helping?

If the reflog looks like a mess and you can’t find your commit hash, stop typing. Every new command potentially overwrites the very pointers you’re looking for. My move is to go find the raw objects. Use `git fsck –lost-found`. It’s ugly, and it’ll dump a bunch of dangling commits into your `.git/lost-found/commit` directory, but it’s the nuclear option for when the high-level history has completely betrayed you. It’s tedious, but it works.

Is there a point where a rebase becomes too complex and I should just switch to a merge to save my sanity?

Yes. There is absolutely a point where you stop being “clean” and start being “reckless.” If you find yourself resolving the same conflict five times because your branch has drifted too far, or if the commit history is becoming a labyrinth of “fixup” messages just to keep the rebase alive, stop. Just merge. A messy merge commit is a small price to pay for preserving your sanity and actually getting home for sleep.

How do I handle conflicts in a large rebase without losing my mind (or my place in the commit history)?

I’ve learned the hard way that trying to resolve fifty conflicts in one go is a recipe for madness. My rule is simple: break it down. If the rebase is massive, I stop trying to be a hero and use `git rebase –abort` to reset. Instead, I’ll rebase smaller chunks of commits or use `git rerere` to automate repetitive conflict resolution. It’s slower, but it keeps the history clean and my blood pressure down.

When is it actually safer to use `git rebase –onto` instead of a standard rebase?

I usually stick to a standard rebase for simple feature branches, but `git rebase –onto` is my go-to when the history gets messy—specifically when you’re trying to transplant a slice of a branch onto a new base. If you’ve branched `feature-B` off `feature-A`, and you want to move `feature-B` directly to `main` without dragging all of `feature-A`’s commits along for the ride, `–onto` is the only way to do it cleanly.

How to learn a language you will actually use.

A Language Sticks When You Ship Something

Posted on October 23, 2026 by Tomasz Wierzbicki

I spent three years in a high-end language institute thinking I was making progress because I could conjugate irregular verbs in a vacuum. It felt productive, like refactoring a piece of code that isn’t even running in production. But the moment I actually landed in a small town in southern Italy, all that textbook theory evaporated. I stood in a grocery store, staring at a shelf of pasta, and realized I couldn’t even ask where the salt was without my brain completely seizing up. That’s when I realized the massive gap between academic fluency and knowing how to learn a language you will actually use when the stakes are real and you’re feeling slightly embarrassed.

I’m not here to sell you on a subscription to some gamified app that rewards you with digital stickers for doing repetitive drills. I don’t care about your streak. Instead, I want to talk about the messy, inefficient, and often frustrating process of building a functional toolkit. I’ve spent a lot of time figuring out how to strip away the academic fluff and focus on the high-leverage patterns that actually allow you to navigate a conversation. This is about building a system that works in the real world, not just on a final exam.

Table of Contents

  • Stop Memorizing Syntax and Start Learning Languages Through Implementation
  • Why Project Based Learning Techniques Beat Every Grammar Course
  • Five ways to stop studying and start actually using the thing
  • The TL;DR for when you're too busy to read the whole thing
  • The Post-Mortem
  • Frequently Asked Questions

Stop Memorizing Syntax and Start Learning Languages Through Implementation

Stop Memorizing Syntax and Start Learning Languages Through Implementation.

I spent way too many months in my early twenties treating programming languages like a biology textbook. I’d sit there, highlighting syntax rules and memorizing the nuances of memory management, thinking I was “learning.” But when I actually sat down to build something, I’d stare at a blank IDE like it was a foreign language I’d never even seen. It turns out, knowing how a hammer works doesn’t mean you can build a house; you only learn when you realize you’re missing a specific type of nail.

The shift for me happened when I stopped treating study sessions as passive reading and started treating them as learning languages through implementation. Instead of running “Hello World” for the tenth time, I started trying to solve a specific, annoying problem—like a script to automate my bike maintenance logs. You quickly realize that syntax is just a tool, and the real meat is in the logic. This is where skill retention through practice actually happens. You don’t remember the syntax because you read it; you remember it because you spent forty-five minutes debugging a type error at midnight and finally felt the dopamine hit when the code actually ran.

Why Project Based Learning Techniques Beat Every Grammar Course

Why Project Based Learning Techniques Beat Every Grammar Course.

I’ve spent enough time in lecture halls and structured bootcamps to know that there is a massive gap between knowing a rule and knowing how to use it when the pressure is on. A grammar course is like reading a manual on how an engine works without ever getting grease under your fingernails. You can memorize every conjugation or syntax rule in the book, but the moment you have to actually communicate in a high-stakes environment, your brain tends to freeze. This is why I lean so heavily on project-based learning techniques; they force you to bridge that gap by moving from theoretical knowledge to functional utility immediately.

When I’m building something, I’m not just “studying”—I’m solving problems. If I’m trying to build a small CLI tool or a scrapable web page, I don’t care about the nuances of a specific library until I hit a wall that requires it. That’s where the real magic happens. This approach mirrors how we develop practical coding skills for developers: you don’t learn to handle concurrency by reading a whitepaper; you learn it when your service crashes because you didn’t account for a race condition. By focusing on the output rather than the instruction, you ensure that what you’re learning actually sticks because it has a reason to exist.

Five ways to stop studying and start actually using the thing

  • Build a “Minimum Viable Vocabulary.” Don’t waste time learning the names of exotic animals or colors you’ll never need. Figure out the 500 words that actually appear in the documentation or conversations you care about, and ignore the rest until they become a blocker.
  • Embrace the “Broken Code” phase. You’re going to sound like a toddler for a while. That’s fine. In production, we don’t wait for a perfect deployment; we ship, we see the errors, and we patch. Treat your speech the same way—get the meaning across, let the grammar be messy, and fix the bugs later.
  • Context is your debugger. Learning a word in isolation is a waste of memory. If you’re learning a phrase, learn it inside a sentence that you actually might say. If you can’t visualize yourself using it in a real-world scenario, it’s just dead weight in your brain.
  • Stop using translation apps as a crutch. When I’m stuck on a bug, I don’t just copy-paste a solution from StackOverflow; I try to understand why it works. When learning, stop translating every word back to English. Try to map the new word directly to the object or the concept. It’s slower at first, but it prevents that mental lag when you’re actually talking.
  • Set up a feedback loop that actually matters. A textbook telling you “you are wrong” is useless. You need high-fidelity feedback. Whether it’s a language exchange partner or a specialized AI tool, you need to know exactly where the communication broke down so you can iterate on your approach.

The TL;DR for when you're too busy to read the whole thing

Stop treating language learning like a textbook to be mastered; treat it like a codebase you need to deploy. If you can’t use the words to actually accomplish a task, you haven’t learned them yet.

Prioritize high-frequency utility over theoretical perfection. I don’t care if your conjugation is technically incorrect if you successfully ordered a coffee and didn’t cause a scene; focus on the vocabulary that prevents “production outages” in real-world conversations.

Build a feedback loop through immediate application. The gap between “knowing” a rule and “using” a rule is where most people fail. Close that gap by forcing yourself into situations where the language is a tool for a specific outcome, not just a subject of study.

The Post-Mortem

Analyzing errors during The Post-Mortem.

At the end of the day, learning a language is a lot like managing a distributed system: you can study the documentation all you want, but you won’t truly understand how it behaves until you see it fail under load. We’ve talked about why memorizing conjugation tables is a poor substitute for building something real, and why implementation-driven learning is the only way to bridge the gap between theory and utility. If you spend your time chasing perfect grammar, you’ll end up with a textbook-perfect understanding that breaks the moment you actually try to use it in a conversation. Focus on the projects, embrace the errors, and treat every linguistic mistake as a bug report that tells you exactly where your mental model is lacking.

I’ve spent far too many hours debugging code that worked perfectly in my local environment but crashed the moment it touched production. Language learning is the same. You can simulate fluency in a classroom, but the real test happens when you’re forced to navigate a real-world situation where the stakes are actually high. Don’t wait until you feel “ready” to start building or speaking; that feeling is a myth. Just start shipping your broken sentences and let the friction of real interaction teach you what the textbooks won’t. It’s messy, it’s inefficient, and it’s the only way to build something that actually lasts.

Frequently Asked Questions

How do I actually pick a project that isn't so massive that I just give up after three days?

The mistake is thinking you need to build a house when you just need to fix a leaky faucet. I call this “scope creep of the soul.” If your project requires a database, an auth provider, and a frontend framework just to say “hello,” you’ve already lost. Pick something that solves one specific, annoying problem. If it takes less than a week to reach a “working” state, you’re in the sweet spot. Anything bigger is just a way to procrastinate.

What do I do when I hit a wall and realize I don't even have the vocabulary to search for the solution?

This is where most people quit, and it’s a frustrating spot to be in. When you hit that wall, stop trying to translate your thoughts and start using “bridge languages.” Use English to find the technical concepts, then use those concepts to find the target language. If you can’t find the word for “asynchronous loop,” search for the logic itself. Build a small, crude glossary of the specific terms that keep failing you. It’s tedious, but it’s better than staring at a blank screen.

Is there a way to balance this "learning by doing" approach without leaving massive, gaping holes in my fundamental understanding?

It’s a fair concern. If you only learn what you need to finish a specific task, you end up with “knowledge silos”—you can build a web scraper but have no idea how memory management works.

How much "fake" implementation is too much—at what point am I just playing around instead of actually building something functional?

If you’re just building “Hello World” variations or tweaking CSS colors for three hours, you’re procrastinating, not learning. I call this “sandbox rot.” You know you’ve crossed the line when you aren’t encountering errors that actually frustrate you. Real learning happens when you hit a wall—a bug that makes you want to close your laptop. If there’s no friction, there’s no growth. Stop polishing the tools and start trying to build something that actually breaks.

How to debug a login that works for some users.

It Works for Everyone Except Four People

Posted on October 22, 2026 by Tomasz Wierzbicki

I remember sitting in a dark office three years ago, staring at a dashboard that looked perfectly green, while a Slack channel was absolutely melting down with reports of login failures. The weirdest part wasn’t the error itself, but the inconsistency; half the users were fine, and the other half were stuck in a loop. Most people will tell you that you need a more expensive observability suite or a fancy AI-driven log analyzer to figure out how to debug a login that works for some users, but that’s usually just expensive noise. In reality, these intermittent ghosts are rarely about the code being “broken” in a general sense—they are almost always about unseen environmental variables or edge cases in the data that we were too lazy to account for during design.

I’m not going to give you a lecture on theoretical distributed systems or suggest you buy a new SaaS tool. Instead, I want to walk through the actual mental model I use when I’m staring at a broken authentication flow that refuses to fail predictably. I’ll share the specific, boring checks—from session cookie attributes to subtle differences in database shards—that actually move the needle. My goal is to give you a practical checklist so that the next time you’re stuck, you don’t have to rediscover the solution from scratch.

Table of Contents

  • Hunting Through Authentication Logs for the Silent Killers
  • Why Debugging Intermittent Login Issues Is Never Simple
  • Five things I've learned from chasing ghosts in the auth flow
  • What I learned from the wreckage
  • Lessons from the Trenches
  • Frequently Asked Questions

Hunting Through Authentication Logs for the Silent Killers

Hunting Through Authentication Logs for the Silent Killers

When I first started analyzing authentication logs during these kinds of outages, I used to look for the big, screaming errors—the 500s or the obvious stack traces. But when a login issue is selective, the logs are usually polite. They don’t crash; they just return a 401 or a 403 as if everything is perfectly normal. This is where the real headache begins. You have to stop looking for what broke and start looking for the subtle deviations in the request metadata. I’ve found that the culprit is rarely a total system failure and almost always a specific combination of a stale cookie, a weirdly formatted header, or a timestamp mismatch that only triggers under specific conditions.

The trick to debugging intermittent login issues is to stop treating the log stream as a monolith. If you just grep for “error,” you’ll find nothing. You need to pivot your search around the specific identifiers of the users who are complaining. I started grouping my log queries by user agent and session ID to see if a pattern emerged. Often, you’ll find that the “silent killers” are hiding in the noise of successful requests. It’s usually something like a slight database consistency lag where the session record hasn’t propagated to the read replica by the time the next request hits, or a specific browser version mishandling a cookie attribute. You aren’t looking for a broken gear; you’re looking for a grain of sand.

Why Debugging Intermittent Login Issues Is Never Simple

Why Debugging Intermittent Login Issues Is Never Simple

The problem with intermittent issues is that they are rarely a total system failure. If the auth service goes down, everyone screams. If it only fails for 2% of the population, it’s much harder to build a case for a fix. You end up in this frustrating loop of debugging intermittent login issues where the telemetry says everything is green, but the support tickets say otherwise. It’s usually not a crash; it’s a subtle deviation in state that only triggers under specific, messy conditions.

Most of the time, I’ve found that the culprit isn’t the code itself, but the environment surrounding the request. You might be looking for a logic error when the real problem is database consistency in authentication—perhaps a replica lag is serving a stale session record to a user who just updated their credentials. Or, it’s something as mundane as a specific browser version handling a cookie attribute slightly differently than your staging environment. You aren’t just looking for a broken line of code; you are trying to reconstruct a specific, fleeting moment in time where the user’s state, the network, and your infrastructure all decided to disagree.

Five things I've learned from chasing ghosts in the auth flow

  • Stop looking at the code and start looking at the environment. If it works for User A but fails for User B, the problem usually isn’t your logic; it’s something external like a specific load balancer configuration, a regional CDN edge case, or a weirdly aggressive firewall rule that only triggers on certain IP ranges.
  • Check the clock. I’ve lost entire weekends to NTP drift issues where a single server in a cluster had a clock offset of just a few seconds. If your tokens rely on strict timestamps, that tiny discrepancy will make logins work perfectly on one node and fail silently on another.
  • Look for the “invisible” payload differences. Sometimes a user’s metadata—like an unusually long surname or a specific character in their email address—hits a database column limit or a regex constraint that you didn’t account for. It’s not a “login bug,” it’s a data validation edge case that only shows up when the data is messy.
  • Trace the session lifecycle, not just the initial hit. A login might “work,” but if the subsequent session cookie is being flagged as `SameSite=Lax` when it needs to be `None` for a specific browser or redirect flow, the user will be stuck in a loop that looks like a failed login attempt.
  • Don’t ignore the client-side state. I once spent hours debugging a backend issue that turned out to be a stale piece of local storage from a previous version of the frontend. If the client is sending an old, malformed header because it hasn’t cleared its cache, your backend logs will show a failure, but the culprit is actually sitting in the user’s browser.

What I learned from the wreckage

Stop looking for a single “broken” line of code; intermittent login failures are almost always a collision of two things working correctly in isolation, like a race condition between a session refresh and a database replica lag.

If your logs are silent during a failure, you don’t have a debugging problem, you have a visibility problem—you can’t fix what you haven’t instrumented to report.

Always check the environmental variables of the specific user session, because “it works on my machine” usually means you’re testing in a clean environment while the user is hitting a specific, misconfigured edge case in a stale cache or a specific regional cluster.

Lessons from the Trenches

Debugging authentication: Lessons from the Trenches.

At the end of the day, debugging these “ghost” login issues isn’t about finding a magic tool; it’s about being methodical when everything feels chaotic. We’ve looked at how to sift through the noise of authentication logs, why distributed systems make intermittent failures so much harder to pin down, and why you can’t just trust your local environment. Whether it’s a race condition in a session store, a misconfigured load balancer, or an edge case in a specific user’s metadata, the answer is always hiding in the delta between what you expect to happen and what the logs actually show. If you don’t document the specific conditions that caused the failure, you’re just waiting to solve the same problem again in another eighteen months.

I’ve spent more hours than I care to admit chasing bugs that felt like they were mocking me, but that’s usually where the real learning happens. These incidents are frustrating, sure, but they are also the most effective way to build a resilient system and a more disciplined engineering mindset. Don’t get discouraged when the fix isn’t obvious right away. Just keep digging, keep writing things down, and remember that every production incident is just a very expensive, very loud lesson in how your software actually behaves when nobody is watching.

Frequently Asked Questions

How do I tell if the issue is actually in my code or if it's just some weird interaction with a specific browser's cookie policy?

I usually start by isolating the environment. If I can reproduce it in a headless browser or a clean Chrome incognito window, it’s likely my logic. But if it only happens on Safari or certain mobile browsers, I start looking at the `Set-Cookie` headers. I’ve lost hours to `SameSite` attribute mismatches and the way modern browsers handle third-party context. If the cookie isn’t even hitting the client, it’s a policy issue, not a code bug.

Is there a way to reproduce these "intermittent" failures in a staging environment without waiting for a real user to complain?

The short answer is: rarely, not without a lot of pain. If the bug is tied to specific user state or a weird race condition in the production database, your clean staging environment won’t show it. I’ve tried synthetic load testing to trigger these, but it usually just breaks the staging DB instead of mimicking the real issue. My rule of thumb: if you can’t reproduce it, stop trying to “fix” it and start instrumenting it better.

At what point do I stop looking at the application logs and start blaming the load balancer or the network layer?

I usually make the jump when I see a pattern of “connection reset by peer” or 502/504 errors that don’t leave a trace in the application’s own logs. If my code thinks it never received the request, but the client says they sent it, the problem isn’t in my logic—it’s in the plumbing. I stop looking at the code once I realize the request is dying in the gaps between services.

If the logs aren't showing any obvious errors, how do I track down a silent failure that's happening on the client side?

If the server logs are clean, the failure is happening in the gap between the user clicking “login” and the request actually hitting our infrastructure. I usually start by looking at the browser’s network tab—if the request never even leaves the client, it’s likely a client-side validation error or a malformed interceptor in their frontend code. I’ve also seen cases where a stale service worker intercepts the fetch and returns a cached, failed response without ever touching the network.

How to write a makefile people use.

Make Is a Menu for Your Project

Posted on October 20, 2026 by Tomasz Wierzbicki

I once spent an entire Saturday at a logistics startup trying to figure out why our CI pipeline was failing, only to realize the “sophisticated” build script was just a 400-line shell script masquerading as a build tool. It was brittle, undocumented, and frankly, a nightmare for anyone trying to onboard. Most people think the answer is to reach for a heavy-duty task runner or a complex CI configuration, but if you want to know how to write a makefile people use, you have to stop trying to be clever. A Makefile shouldn’t be a black box that requires a PhD to debug; it should be the simplest possible interface between a developer and the codebase.

I’m not going to give you a lecture on the theoretical elegance of dependency graphs. Instead, I’m going to show you how I structure them to survive real-world chaos. I’ll share the specific patterns I use to keep commands predictable, how to avoid the dreaded “it works on my machine” trap, and why explicit is always better than clever. This isn’t about following a textbook; it’s about writing something that won’t make your teammates want to quit when they have to run a build at midnight.

Table of Contents

  • Why Common Makefile Targets and Commands Save Your Sanity
  • Implementing Maintainable Build Automation Before Everything Explodes
  • Five ways to stop making your teammates hate your build scripts
  • The things I actually learned the hard way
  • The Bottom Line
  • Frequently Asked Questions

Why Common Makefile Targets and Commands Save Your Sanity

Why Common Makefile Targets and Commands Save Your Sanity

The reason I push for certain patterns isn’t because I’m a purist; it’s because I’ve been the person staring at a terminal at 2 AM, trying to figure out if `make build` actually compiles the binary or just runs a bunch of linter checks. When you stick to standard makefile conventions, you’re essentially providing a map for whoever touches the code next—which, given my track record, is usually me six months later. If I use `make help` to list what’s possible, I don’t have to go hunting through a hundred lines of shell scripts to find the one command that actually runs the integration tests.

By focusing on improving build system discoverability, you turn the Makefile from a cryptic script into a piece of documentation. I like to treat my targets as a predictable API. If `make test` runs the suite and `make clean` actually wipes the slate, people will actually use the tool instead of writing their own bespoke bash aliases. It’s about maintainable build automation that doesn’t require a mental manual to operate. When the targets are intuitive, the friction of jumping into a new repo drops to near zero, and that’s when a build system actually starts doing its job.

Implementing Maintainable Build Automation Before Everything Explodes

Implementing Maintainable Build Automation Before Everything Explodes.

The problem with most build scripts I’ve encountered isn’t that they don’t work; it’s that they are opaque. I once joined a team where the only way to run the test suite was to ask a senior dev which specific, undocumented flag needed to be passed to a custom script. That is the opposite of maintainable build automation. If a new engineer can’t figure out how to build the project within ten minutes of cloning the repo, you haven’t built a tool; you’ve built a gatekeeping mechanism.

To avoid this, I lean heavily on standard makefile conventions. I treat the Makefile as the primary interface for the entire repository. This means using `make help` as a mandatory target. By implementing self-documenting makefiles—where each command prints a brief description of what it actually does—you stop the cycle of “trial and error” debugging that eats up everyone’s afternoon.

I also make it a rule to keep the logic thin. If a command requires more than a few lines of shell script, I move that logic into a dedicated script file in a `scripts/` directory and just call it from the Makefile. This keeps the build system readable and ensures that when a build fails, you aren’t squinting at a massive, unreadable blob of escaped characters and nested loops.

Five ways to stop making your teammates hate your build scripts

  • Stop using magic strings. If your build depends on a specific version of a tool or a weirdly named directory, define it as a variable at the top of the file. I’ve wasted too many afternoons hunting through a hundred lines of code just to find where a path was hardcoded.
  • Always include a `help` target. If a new engineer joins the team and has to run `make –help` or, worse, grep the file just to figure out how to run the tests, you’ve failed. A simple, clean help command that lists available targets is the difference between a helpful tool and a mystery box.
  • Use `.PHONY` for everything that isn’t an actual file. I once spent an hour debugging a “build” command that wouldn’t run because there happened to be a folder named `build` in the root directory. If it’s a command and not a file being generated, mark it phony.
  • Keep your commands short and delegate the heavy lifting. Don’t cram a twenty-line bash script into a single Makefile target. It’s unreadable and impossible to debug. If a step is complex, move it into a separate script and have the Makefile just call that script.
  • Make sure `make clean` actually cleans. A “clean” target that leaves behind stale binaries or hidden configuration files is a trap. I’ve seen entire production deployments fail because a developer thought they were starting from a blank slate, but they were actually building on top of artifacts from three weeks ago.

The things I actually learned the hard way

Stop reinventing the wheel with custom command names; if a new dev has to ask what `make build-stuff-final-v2` does, you’ve already lost.

A Makefile isn’t a script for your eyes only—it’s a contract that needs to work identically on a local MacBook and a stripped-down CI runner.

Always use `.PHONY` for your targets, because nothing ruins a Friday afternoon faster than a build failing because someone happened to name a folder `build`.

The Bottom Line

The Bottom Line: predictable Makefile patterns.

At the end of the day, a Makefile isn’t a piece of academic computer science; it is a piece of operational infrastructure. If you follow the patterns we discussed—standardizing your targets, avoiding hardcoded paths, and making sure your `make clean` actually cleans everything—you are essentially writing a manual for your future self. I’ve spent far too many nights staring at a terminal, trying to remember if the build required a specific environment variable or a hidden flag, only to realize that a well-documented, predictable Makefile would have solved the problem in ten seconds. Don’t build a black box; build a predictable interface.

I know it feels like extra work to sit down and structure these commands properly when you could just be writing the actual feature code. But I’ve learned the hard way that technical debt in your tooling is often more expensive than the debt in your application logic. A good Makefile is a quiet teammate; it does its job, it doesn’t surprise you, and it stays out of the way until you need it. Write your Makefiles with the assumption that the person using them is tired, stressed, and just wants to get the build running so they can go home. If you do that, you’ve already won.

Frequently Asked Questions

How do I handle environment-specific variables without making the Makefile a mess of if-else statements?

I used to try and handle environment logic with nested shell scripts inside my Makefiles. It was a nightmare to debug. Now, I treat the Makefile as a pure runner. I keep all the environment-specific mess in `.env` files or a `config/` directory. The Makefile just loads the right file based on a single `ENV` variable. It keeps the logic flat, predictable, and—most importantly—easy to audit when a deployment fails.

When does a Makefile become too complex, and at what point should I just move to something like Bazel or Task?

You’ve crossed the line when you start writing shell scripts inside your Makefile targets just to handle basic logic. If I’m looking at a rule and thinking, “Wait, I need to parse a JSON file just to figure out the build path,” the Makefile has failed. If you’re fighting the syntax more than you’re building the project, move to Task for simplicity or Bazel if you actually need a hermetic, distributed build system.

How do I prevent people from accidentally running destructive commands like `make clean` in a production environment?

I once watched a junior dev accidentally wipe a staging database because `make clean` was aliased to a script that didn’t check its environment. Now, I never trust a command. I add a guard clause to destructive targets that checks an `ENV` variable. If `ENV` isn’t explicitly set to `development` or `local`, the command exits with an error. It’s a small friction point, but it’s better than a 3 AM recovery effort.

What’s the best way to document these targets so a new dev doesn't have to grep the whole file just to run the tests?

I’ve learned the hard way that if a new hire has to `grep` your Makefile to find out how to run the linter, you’ve already failed them. I usually just add a `help` target at the very top. It’s a simple loop that parses comments starting with `##` next to each command. It’s not fancy, but it means `make help` gives them a clean menu of everything they actually need to know.

How to choose what technology to learn next.

Learn the Thing Your Next Job Uses

Posted on October 18, 2026 by Tomasz Wierzbicki

I spent most of last Tuesday staring at a half-finished Rust project and a pile of “Roadmap 2024” bookmarks, wondering why I felt so behind. We’ve been conditioned to treat our careers like a frantic game of Whac-A-Mole, where the moment you master one tool, three more “game-changers” appear on your Twitter feed. Most of the advice out there regarding how to choose what technology to learn next is just noise designed to sell you a bootcamp or a subscription. They tell you to follow the hype or chase the highest salary, but they never mention that learning the wrong thing is exactly how you end up stuck maintaining a legacy codebase that no one actually wants to touch.

I’m not here to give you a curated list of trending languages or a way to optimize your LinkedIn profile. Instead, I want to talk about building a toolkit that actually survives a production outage. I’ll share the mental framework I use to filter through the chaos, focusing on durability and utility rather than what’s currently trending on Hacker News. My goal is to help you pick technologies that solve real problems, so you can spend less time chasing ghosts and more time actually building things that stay upright.

Table of Contents

  • Why Most Emerging Technology Trends Fail Under Pressure
  • Building a Skill Acquisition Framework That Survives Real World Chaos
  • Five filters for avoiding the "shiny object" trap
  • The triage list for your next skill
  • The Long Game
  • Frequently Asked Questions

Why Most Emerging Technology Trends Fail Under Pressure

Why Most Emerging Technology Trends Fail Under Pressure

Most emerging technology trends fail under pressure because they are built to solve problems that only exist in a controlled, high-resource environment. I’ve seen this play out repeatedly: a new tool arrives with massive hype, promising to simplify orchestration or data processing, but the moment it hits a real-world production environment with messy, unvalidated data and strict latency requirements, it falls apart. These tools often prioritize developer ergonomics or “magic” abstractions over the boring, necessary stuff like observability, error handling, and predictable resource consumption.

When you are looking at a learning roadmap for programmers, you have to distinguish between a tool that makes writing code faster and a tool that makes a system more resilient. A lot of the noise in the industry is just people building shiny wrappers around existing concepts. If a technology doesn’t have a clear answer for what happens when the network partitions or when a database connection pool exhausts, it isn’t a foundation; it’s a hobby.

The real way to evaluate future-proof tech skills isn’t by looking at GitHub star counts, but by asking if the underlying principles of the tech hold up when things go wrong. If the tool’s primary selling point is that it “handles everything for you,” that’s usually a red flag. In my experience, the most valuable skills are the ones that help you understand the mechanics of failure, not just the mechanics of implementation.

Building a Skill Acquisition Framework That Survives Real World Chaos

Building a Skill Acquisition Framework That Survives Real World Chaos

Instead of scanning LinkedIn for whatever buzzword is currently trending, I’ve started using a more boring, but effective, skill acquisition framework based on how much friction a technology actually removes from a system. I don’t care if a tool is “revolutionary” if it just adds another layer of complexity that my team can’t debug when the database connection pool hits its limit. When I’m looking at a new language or a distributed system pattern, I ask one question: does this solve a problem I’ve actually seen in production, or am I just chasing a shiny object?

A decent learning roadmap for programmers shouldn’t be a list of tools, but a list of capabilities. If you focus on learning how to manage state in a distributed environment, you can jump between almost any framework that comes along. This is how you actually build future-proof tech skills—by focusing on the underlying mechanics rather than the syntax. It’s a bit slower, and it’s definitely less exciting than jumping into a new AI wrapper, but it’s the difference between being a person who knows a library and being a person who knows how to keep the lights on.

Five filters for avoiding the "shiny object" trap

  • Look for the boring stuff that works. I don’t care how many stars a repository has on GitHub; I care if the documentation actually explains how to handle a connection timeout or a partial write. If the “revolutionary” tool doesn’t have a clear way to handle failure, it’s not a tool, it’s a liability.
  • Follow the data, not the influencers. If you see everyone on social media talking about a new language, it’s probably too late to learn it for “edge.” Instead, look at what’s actually being used in the post-mortems of the companies you respect. If they are all standardizing on a specific database or messaging queue, there’s usually a very expensive reason for it.
  • Prioritize “transferable fundamentals” over syntax. Learning a new framework is easy; learning how that framework manages state, concurrency, or memory is hard. If you spend your time learning the specific quirks of a library, you’ll be obsolete in two years. If you learn the underlying patterns, you can pick up the next thing in a weekend.
  • Check the “Day 2” operations. Anyone can get a “Hello World” running in a new technology in ten minutes. The real test is: how hard is it to monitor? How do you debug it when it’s behaving strangely in a distributed system? If the technology doesn’t have good observability or tooling, you’re just signing up for more 2:00 AM pages.
  • Solve a problem you actually have. I’ve wasted way too many weekends building side projects with tech stacks I’ll never use at work. The best way to learn is to pick something that addresses a friction point in your current workflow—even if it’s just a small script to automate a tedious deployment step. That way, the learning has immediate, practical stakes.

The triage list for your next skill

Stop looking at GitHub stars or trending lists to decide what’s next; instead, look at the specific technical debt or architectural bottlenecks that actually keep you awake during an incident.

Prioritize “low-level” fundamentals—like networking, concurrency models, or database internals—because while frameworks go obsolete every three years, the physics of how data moves across a wire stays the same.

Aim for “boring” stability over “cutting-edge” novelty; if a technology hasn’t been battle-tested by a company with more scale than yours, you aren’t learning a tool, you’re volunteering to be its unpaid QA engineer.

The Long Game

Building a career with The Long Game.

At the end of the day, choosing your next skill shouldn’t feel like gambling on a crypto coin. It’s about looking past the marketing gloss and asking if a tool solves a problem you actually encounter when the load balancer is screaming. If you focus on the underlying principles—concurrency models, data consistency, or network protocols—rather than just the latest syntax, you’ll find that most “new” technologies are just old ideas in a shiny new wrapper. Don’t build a career on a stack of hype; build it on foundational stability that remains useful even when the startup that created the framework goes belly up.

I’ve spent too many nights fixing things that should have been simple if only I had understood the basics better. My advice is to stop trying to learn everything and start trying to learn the right things deeply. You don’t need to be a wizard in every library, but you do need to be the person who understands why the system is behaving the way it is. Pick something that challenges your mental model, write it down, and then apply it to something real. That is how you move from just writing code to actually engineering systems that last.

Frequently Asked Questions

How do I tell the difference between a legitimate paradigm shift and just another library that's going to be dead in eighteen months?

Look for the “why,” not the “what.” A new library usually just solves a specific, narrow annoyance—like a prettier way to handle state or a faster syntax for something we already do. A paradigm shift, though, changes how you think about the underlying problem. If it’s just a new way to write the same logic, it’s a tool. If it forces you to rethink how data flows through your entire system, pay attention.

If I focus on the "boring" fundamentals to avoid production outages, am I actually making myself obsolete in the job market?

Actually, it’s the opposite. Anyone can learn the syntax of a new framework in a weekend, but very few people understand how a distributed lock works or why a database connection pool is exhausting under load. Hype dies; fundamentals don’t. When the “shiny” new tool inevitably breaks at 2:00 AM, the company isn’t looking for the person who knows the latest API—they’re looking for the person who understands the underlying system. That’s where the job security is.

At what point does "learning the fundamentals" become an excuse for avoiding the hard work of actually picking up a new tool?

It becomes an excuse the moment you stop using “fundamentals” to navigate a new tool and start using them to avoid the friction of its syntax. Understanding how a B-tree works is great, but it won’t help you configure a broken Kubernetes ingress at midnight. If you’ve spent three weeks reading about distributed systems theory instead of actually deploying a single service, you aren’t “mastering the basics”—you’re just procrastinating.

How much time should I realistically spend on a new technology before I decide it's either worth mastering or a complete waste of my life?

I usually follow the “two-week rule,” but not for mastery. I spend two weeks trying to break it. If I can’t find a way to make it fail—or if I can’t find a coherent way to handle a basic failure state—I stop. Don’t aim for proficiency; aim for understanding its limitations. If you can’t see where the seams are after fourteen days of actual implementation, it’s probably just more hype you don’t need.

Learning how to keep a branch short lived.

A Branch Older Than a Week Is a Problem

Posted on October 16, 2026November 7, 2026 by Tomasz Wierzbicki

I’ve sat through enough “agile transformation” workshops to know that most people treat git workflows like a religious ritual rather than a tool. They’ll spend three weeks debating the perfect branching strategy or investing in expensive tooling, completely ignoring the actual problem: the sheer, agonizing friction of a massive merge conflict. I learned this the hard way at a logistics startup that didn’t survive its own technical debt; we had engineers sitting on massive feature branches for a month, treating them like personal sandboxes. By the time they tried to merge, the codebase had moved so far underneath them that it felt like trying to reconstruct a car engine while it was still running. If you want to stop the bleeding, you need to stop overcomplicating the theory and actually learn how to keep a branch short lived through practical, boring discipline.

I’m not here to sell you on a specific framework or a new DevOps suite. I just want to share the few things that actually worked when I was the one staring at a broken build at 2:00 AM. I’ll walk through the specific, slightly unglamorous habits I use to break down tasks and keep my pull requests small enough that they don’t scare my reviewers away. No hype, just the trade-offs.

Table of Contents

  • The High Cost of Reducing Merge Debt Too Late
  • Why Your Git Workflow Optimization Failed Under Pressure
  • Five ways to stop hoarding code like it's a survivalist bunker
  • The Lessons I Learned the Hard Way
  • The Long Game of Small Commits
  • Frequently Asked Questions

The High Cost of Reducing Merge Debt Too Late

The High Cost of Reducing Merge Debt Too Late.

The problem with waiting until the end of a sprint to merge isn’t just the extra work; it’s the psychological tax of “merge debt.” I’ve seen teams treat their feature branches like private bunkers, building up weeks of logic in isolation, only to realize during the final merge that the underlying platform has shifted under their feet. By the time you start reducing merge debt, you aren’t just fixing code; you’re performing surgery on a moving target. You end up spending more time untangling logic than actually shipping features, which is a terrible way to spend a Tuesday.

When you delay integration, you lose the safety net that continuous integration best practices are supposed to provide. Instead of catching a breaking change ten minutes after it happens, you catch it ten days later, after three other developers have built their own work on top of your flawed assumptions. This is where the real damage happens. You aren’t just fighting a simple conflict; you’re fighting a cascade of architectural drift. I’ve learned the hard way that minimizing merge conflicts isn’t about being tidy—it’s about ensuring that the version of the system you’re coding against actually exists in production.

Why Your Git Workflow Optimization Failed Under Pressure

Why Your Git Workflow Optimization Failed Under Pressure

The problem usually isn’t that your team lacks a process; it’s that the process is designed for a sunny Tuesday afternoon when everything is working perfectly. Most teams adopt a version of git workflow optimization that looks great on a whiteboard—lots of linting, plenty of automated tests, and a clean Jira board. But these systems are brittle. The moment a critical production bug hits or a high-priority feature gets pushed into a sprint, the discipline evaporates. Suddenly, that “temporary” feature branch is three days old, and nobody has the mental bandwidth to pull the latest from main because they’re too busy firefighting.

I’ve seen this happen repeatedly: a team follows all the standard continuous integration best practices in theory, but they fail the moment the pressure rises. They stop making small atomic commits and start bundling massive, sweeping changes into single, terrifying PRs just to “get it over with.” This is where the real damage happens. You think you’re being efficient by batching work, but you’re actually just building a mountain of technical debt that will inevitably collapse during your next deployment. When you skip the small, frequent integrations, you aren’t saving time; you’re just deferring the pain to a much more expensive hour of the day.

Five ways to stop hoarding code like it's a survivalist bunker

  • Stop trying to build the whole feature at once. If you’re working on a massive overhaul, break it into tiny, non-breaking pieces. I’ve learned that pushing a single, small refactor or a new interface definition every day is much easier than trying to merge a three-week-old monolith that has already drifted away from the main branch.
  • Use feature flags to decouple deployment from release. This is the biggest one. If you can wrap your half-finished logic in a toggle, you can merge it into the main branch immediately without actually exposing it to users. It lets you get the code out of your local environment and into the shared reality of the repo before it becomes a massive integration headache.
  • Treat your pull request like a series of small, digestible snacks rather than a seven-course meal. If your PR has more than 300 lines of code, you’re probably doing too much. Small PRs get reviewed faster, they get caught sooner, and they don’t turn into the kind of psychological burden that makes you want to avoid the repo entirely.
  • Pull from main every single morning. I know, it feels like extra work, but it’s much cheaper to resolve a small conflict at 9:00 AM over coffee than it is to face a catastrophic merge conflict at 4:00 PM on a Friday. If you aren’t rebasing or merging main into your branch daily, you aren’t actually working on the project; you’re working in a parallel universe.
  • Define your “done” before you even write the first line of code. I usually write my commit messages as a spec before I start, and if I see that the list of commits required to finish the task is getting too long, I stop and re-evaluate. If the task is too big to be finished in two days, it’s not a task; it’s a project, and it needs to be broken down.

The Lessons I Learned the Hard Way

Stop treating “merging” as a scheduled event; if a branch exists for more than two days without hitting main, it’s already accruing interest you can’t afford to pay back during a deployment window.

Small, atomic commits aren’t about being a purist—they are about making the inevitable conflict manageable so you aren’t staring at 400 lines of diff at midnight trying to remember why you changed that specific logic.

Automate the boring stuff, like linting and basic test suites, before the PR even reaches a human; I’ve learned that nothing kills a developer’s momentum—or a team’s sanity—faster than a “fix typo” cycle during a critical release.

The Long Game of Small Commits

The Long Game of Small Commits.

At the end of the day, keeping branches short-lived isn’t about following a specific GitFlow manual or satisfying some arbitrary DevOps metric. It’s about reducing the cognitive load required to ship code. We’ve talked about why massive feature branches turn into merge nightmares and why your current workflow likely collapses the moment a real production incident hits. The goal is to move away from the “big bang” integration model and toward a rhythm of continuous, incremental updates. If you can’t describe what your branch does in a single, concise commit message, it’s probably already too big. Stop treating your branches like long-term storage for ideas and start treating them like transient vehicles for specific changes.

I’ve learned the hard way that the most “productive” developer isn’t the one who writes the most code in a week, but the one who integrates it without breaking the world. It’s easy to feel like you’re being slow by breaking a feature into five tiny, manageable PRs instead of one giant masterpiece, but that’s a false economy. You’re trading a little bit of upfront discipline for a massive amount of peace of mind later. When you finally close your laptop at the end of the day, you want to know that your code is actually in the main branch and tested, rather than sitting in a stale, diverging branch waiting for a collision that’s inevitable. Write small, merge often, and sleep better.

Frequently Asked Questions

How do I handle a situation where a feature is too large to be finished in a single day without breaking the build?

You don’t finish the feature; you finish the interface. I’ve learned the hard way that if a task is too big for a single day, you need to stop thinking about “features” and start thinking about “deployable increments.” Use feature flags to hide the unfinished logic, or extract the new database schema and API contracts into a tiny, separate PR first. Get the plumbing in place while it’s still safe, then layer the actual logic on top.

At what point does frequent merging start to actually hurt productivity instead of helping it?

It’s when you start merging “work in progress” that isn’t actually ready for a code review. If you’re merging every twenty minutes just to keep the delta small, but your teammates are spending their entire morning untangling half-baked logic or fixing broken builds you pushed, you haven’t optimized anything. You’ve just traded merge conflicts for constant context switching. High frequency is good; high noise is a productivity killer.

Should I be using feature flags to hide incomplete code, or is that just adding more complexity to the debt?

It’s a trade-off. If you use feature flags to decouple deployment from release, you’re effectively buying insurance against massive, terrifying merges. It keeps your branches small and your CI green. But if you aren’t disciplined about cleaning them up, you’re just trading merge debt for conditional logic debt—which is much harder to debug at 2:00 AM. Use them to move fast, but treat every flag like a temporary loan that needs immediate repayment.

How do we stop the "just one more small change" cycle that turns a two-hour task into a three-day branch?

I call this “scope creep by increments.” It starts with a tiny fix, then you notice a typo in a related file, then you think, “while I’m here, I might as well refactor this helper function.” Suddenly, you’re three days deep into a branch that has nothing to do with the original ticket. My rule is simple: if the change isn’t in the original commit message, it doesn’t belong in that branch. Open a new one.

How to reuse a side project in the next one.

Keep the Parts, Throw Away the Product

Posted on October 15, 2026 by Tomasz Wierzbicki

I’ve spent enough time in production incidents to know that most “architectural advice” is just expensive noise designed to make engineers feel important. People love to talk about microservices, event-driven choreography, or building some massive, generic internal library as if that’s the secret to scalability. But when you’re sitting there at midnight trying to figure out how to reuse a side project in the next one without dragging a mountain of technical debt behind you, none of that high-level theory matters. In reality, most of my “reusable” code from three years ago ended up being a liability because I tried to make it too smart, too early.

I’m not going to give you a lecture on design patterns or tell you to build a private NPM registry. Instead, I want to talk about the messy, practical reality of extracting the bits that actually work—the logic that survived a real-world deployment—and moving them into a new context without breaking everything. I’ll show you how I approach decoupling my core logic from the boilerplate so that my next project starts with a head start, rather than a pile of legacy baggage I’m too tired to fix.

Table of Contents

  • The Pain of Re Writing Software Development Boilerplate
  • Why Modular Code Architecture Is Your Only Real Insurance Policy
  • Five ways to stop treating every new repo like a blank slate
  • The Lessons I Learned While Rebuilding the Same Wheel
  • The Long Game
  • Frequently Asked Questions

The Pain of Re Writing Software Development Boilerplate

The Pain of Re Writing Software Development Boilerplate

There is a specific kind of exhaustion that sets in around hour three of setting up a new repository. You’ve already decided on the tech stack, you know exactly what the data model looks like, and yet you find yourself staring at a blank screen, manually configuring auth middleware, setting up database connections, and wrestling with environment variable loaders. It’s the endless cycle of software development boilerplate that kills momentum before you’ve even written a single line of actual business logic. I’ve spent more weekends than I care to admit doing this exact same dance, feeling like I was spinning my wheels in the mud.

The problem isn’t that the work is hard; it’s that it’s repetitive. When I was at the logistics startup, we treated every new service like a blank slate, which meant we were constantly reinventing the wheel for things like logging and retry logic. We weren’t building features; we were building the same scaffolding over and over. If you don’t find a way to stop this, you’ll eventually stop starting side projects altogether because the “setup tax” becomes too expensive. You don’t need a complex microservices setup, but you do need to stop treating your setup process as a disposable ritual.

Why Modular Code Architecture Is Your Only Real Insurance Policy

Why Modular Code Architecture Is Your Only Real Insurance Policy

If you treat your side projects like a single, monolithic block of granite, you aren’t actually building anything you can use later; you’re just building a monument to your past self’s temporary interests. When I started out, I’d finish a project, feel a sense of accomplishment, and then bury the entire repository in a digital graveyard. The problem is that when I needed that same authentication flow or that specific Stripe integration six months later, I couldn’t find the “part” I needed because it was welded to a dozen other dependencies.

This is where modular code architecture stops being a theoretical concept from a textbook and starts being a survival mechanism. You need to treat your code like a set of Lego bricks rather than a single molded plastic toy. If you spend even a little extra time building reusable component libraries—even if it’s just a private npm package or a well-organized folder of Go modules—you’re essentially pre-paying for your future productivity. It’s about drawing hard lines around your logic. If you can’t lift a piece of your code out and drop it into a fresh, empty repository without bringing half the internet along with it, you haven’t actually written a module; you’ve just written a very complicated script.

Five ways to stop treating every new repo like a blank slate

  • Write the “Why” before the “How.” I’ve started writing my commit messages as a spec before I even touch the code. If you document the reasoning behind a weird architectural choice while the context is fresh, you won’t spend three weeks staring at your own code six months later wondering why you used a queue instead of a direct API call.
  • Treat your “utility” folder like a liability. Most side projects end up with a `utils/` directory that is a graveyard of unorganized, highly coupled functions. If a piece of logic—like a specific auth wrapper or a payment validator—is actually useful, pull it out into its own tiny, independent package or a local submodule. If it can’t live without the rest of the app, it isn’t reusable; it’s just clutter.
  • Standardize your environment, not your language. I don’t care if you use Go, Python, or Node, but if your Dockerfiles and CI pipelines are a mess, you’ll never move fast. Build a “base” configuration for your deployment scaffolding. The goal is to make the “boring stuff”—setting up linting, testing, and containerization—a copy-paste operation rather than a week-long chore.
  • Embrace the “Good Enough” interface. Don’t over-engineer a generic component to handle every possible edge case in your head. Just make sure the interface is clean. If you build a logging module, don’t try to make it work for every hypothetical scenario; just make sure it takes a standard input and doesn’t crash the main thread. You can always wrap it later.
  • Keep a “Lessons Learned” markdown file in every repo. It sounds tedious until you realize you’re halfway through a new project and you’ve hit the exact same database deadlock that killed your last one. A simple list of “what I got wrong” is worth more than any library you’ll ever import.

The Lessons I Learned While Rebuilding the Same Wheel

Stop writing “one-off” scripts. If you find yourself copy-pasting a database connection string or a specific authentication wrapper from an old repo, you’ve already failed. Treat your side projects as a library of pre-tested components, not just a graveyard of abandoned ideas.

Documentation is your future self’s only hope. I’ve spent way too many hours staring at my own code from two years ago, wondering why I chose a specific, convoluted way to handle error retries. Write down the “why” behind your weirdest architectural decisions while the context is still fresh, or you’ll just be debugging a stranger’s logic next time.

Aim for “boring” portability. Don’t tie your core logic to a specific framework version or a niche library that might be dead by next year. The more decoupled your business logic is from the surrounding plumbing, the easier it is to pluck a working module out of a dead project and drop it into a live one without bringing the whole mess along with it.

The Long Game

Building software assets for The Long Game.

At the end of the day, reusing a side project isn’t about being lazy or hoarding code snippets; it’s about reducing the cognitive load of your next big idea. If you spend the first three weeks of a new project fighting with authentication flows or database connection pools that you already solved six months ago, you’ve already lost the momentum that keeps side projects alive. By focusing on modularity and writing those “specification-first” commit messages, you aren’t just building software—you are building a library of solved problems. When you treat your past failures and boilerplate as assets rather than discarded experiments, you stop starting from zero every single time.

I’ve spent enough time in production environments to know that the most expensive thing you can do is solve the same problem twice. Your side projects are often where you take the risks you can’t take at your day job, and those hard-won lessons are your only real competitive advantage. Don’t let your previous work die in a forgotten GitHub repository. Instead, build it with the intention that it will eventually become the foundation for something even better. After all, the goal isn’t just to ship code; it’s to build a system that makes your future self a lot less stressed when the next idea inevitably hits.

Frequently Asked Questions

How do I separate the actual logic from the specific dependencies of my old project so I'm not dragging a heavy, outdated framework into a clean repo?

The trick is to stop letting your business logic touch the outside world. I call it the “dependency wall.” Keep your core domain logic in pure functions or classes that don’t know anything about your database, your web framework, or your specific message queue. If you need to save a user, don’t pass a database connection into your service; pass an interface. That way, when you start the next project, you’re just moving logic, not a heavy, outdated pile of dependencies.

At what point does "reusable module" actually just become "over-engineered abstraction" that makes the new project harder to understand?

It becomes over-engineered the moment you start coding for a “what if” that hasn’t happened yet. If you’re adding interfaces, dependency injection, and complex configuration layers just to make a simple database wrapper “generic,” you’ve lost. I’ve seen it happen: you spend three days building a perfect abstraction only to realize the new project needs something fundamentally different. If the code is harder to trace than the problem it solves, delete it and start simple.

Should I be maintaining a private package registry for these bits, or is it just easier to copy-paste the core logic and fix it as I go?

Look, I’ve been down the rabbit hole of maintaining a private NPM registry, and honestly? It’s usually overkill for one person. Unless you’re managing three different services that all need the same auth logic, the overhead of versioning and publishing will kill your momentum. Just keep your core logic in a well-documented folder or a separate Git submodule. Copy-paste is fine if you treat the “paste” as a starting point for refactoring, not a permanent debt.

How do I document the "why" behind a component so that six months from now, I actually remember how to use it instead of treating it like a black box?

Stop writing “how” it works; the code already tells you that. Write down why you chose the specific trade-off that probably feels wrong now. I always add a `// DECISION:` comment right above the weird logic. I explain what I didn’t do and why. If I don’t document that I picked a slower, consistent database over a fast, eventual-consistency one, six months from now I’ll just think I’m a bad engineer and try to “fix” it.

  • 1
  • 2
  • 3
  • 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