Posts

After more than 25 years, I am opening Visual Studio Less

Image
I started using Visual Studio around 1999, and when C# and .NET were still in alpha, I got a lot more serious about it. I’ve been in that IDE for so long that imagining a day of .NET development without opening Visual Studio feels like reaching for a light switch in a house I moved out of years ago. My hand still knows where to go. For most of my career, opening Visual Studio was simply how work began. It’s where I learned the early versions of C# and .NET, and where I went to make sense of an unfamiliar codebase. Solution Explorer, IntelliSense, the debugger, the Error List—I knew where to look when something broke, and I spent enough decades there that the environment felt like an extension of how I thought. Then I caught myself looking at what I was actually doing in it. I’d open Visual Studio, run the app, and see what errors came back. Almost everything leading up to that point had already happened in the GitHub Copilot app. Lately, I’ve been using Copilot’s built-in termina...

The Blazor DateRangePresets Control You'll Actually Reuse

Image
Open a timesheet history page, pick a start date, pick an end date, and hit search. Come back tomorrow and do it all over again. And the day after that. Picking two dates isn't rocket science, sure. But when 90% of your users are just pulling up today, the last seven days, or the current month, forcing them through two date pickers every single time is just unnecessary friction. That's the whole point of DateRangePresets : give people one-click shortcuts for the ranges they actually use, keep custom dates right there when they need them, and let them decide when to fire the query. It's a small, focused control that drops nicely onto a timesheet screen, an audit log, or a release history page. Better yet, building it forces us to nail down date semantics upfront—before they turn into off-by-one bugs in production. Nail Down What the Shortcuts Actually Mean A button labeled "Last 7 days" sounds obvious right up until two developers implement it two differe...

Stop Guessing on Auth: A Practical Guide to Picking the Right Strategy for Your App

Image
Authentication always looks deceptively simple on a whiteboard. Two text boxes, a login button, maybe a "Forgot Password" link—how hard can it really be? In thirty years of building commercial software, I have watched teams get burned by authentication from both ends of the spectrum. On one side, someone slaps together a quick users table and a custom password check for a side project that unexpectedly grows to 5,000 users. On the other, a team spends three weeks wiring up an enterprise identity platform for an internal utility used by six people. The goal isn't to bolt on the most sophisticated authentication stack you can find. The goal is to pick the one that fits your users, your risk profile, and the amount of maintenance your team can actually stomach—without painting yourself into a corner two years from now. Two Ground Rules Before You Pick Anything Before you compare providers or frameworks, get these two rules straight: AuthN is not AuthZ. Authenti...

Building a Blazor Activity Timeline

Image
I've been building enterprise systems for three decades, and I can tell you this: a status badge tells you where a request is right now, but it completely fails to explain how it got there. Someone submits a request, another person reassigns it, and a reviewer kicks it back. By the time a manager finally opens the record, a label like "Pending Approval" doesn't answer their real question: what just happened? I want that answer front and center on the record page. A compact timeline can display the latest activity and provide a simple button to load older events when someone needs the full story. That’s the entire philosophy behind this AuditTimeline component: provide an ordered history, a clean paging action, and enough feedback to make the loading state obvious to the user. Defining a Useful Boundary For this example, let's look at a generic craft request. Its recent activity log might show a routing service assigning it for review at 15:00 UTC, right af...

10 Biggest Mistakes with AI-Driven Development

Image
Over the past year, I've spent a lot of time pushing AI-driven development as far as it will go—building apps from scratch, bolting features onto existing systems, hunting down bugs, writing tests, and getting code ready for production. Along the way, I've put together my own development harness out of prompts, project instructions, specialized agents, and reusable skills. If there is one thing that has jumped out at me, it's that AI-driven development is not the same thing as AI-assisted development . Confusing the two is where most of the trouble starts. With AI-assisted development, you're still doing the heavy lifting. The AI might autocomplete a method, explain a gnarly regex, or help you troubleshoot an exception, but you're the one building the solution. AI-driven development flips that dynamic. You define the intent, set the constraints, supply the right context, and verify the output. The agents handle the bulk of the implementation—and often the planni...

From Copy Text to Copy Image: A Reusable Blazor Clipboard Component

Image
It all started with one of those tiny, repetitive annoyances that slowly drives a developer crazy. Whenever I needed an email template token like %%CustomerName%% , I’d have to carefully highlight it, squinting to make sure I grabbed every single percent sign. Dropping in a simple "Copy" button fixed that in a heartbeat. But then I thought—what about images? Why not use the exact same approach for copying a release badge or a report graphic right into an email or document? So, I built it out. I kept the name CopyableValue because, from the user's perspective, the job hasn't changed: see the target, click a button, and get a clear confirmation. The real magic just happens under the hood depending on what's hitting the clipboard. Component mockup: the same interaction works for a template token and a release badge. Same Interaction, Two Formats Handling text is straightforward: the component just calls navigator.clipboard.writeText() . Images, on the oth...

Building an Accessible Active Filter Bar in Blazor

Image
Building an Accessible Active Filter Bar in Blazor In my thirty years of writing software, I've seen countless teams underestimate filtering. It always starts out looking dead simple. Slap a few dropdowns on a form, query the database, and you're done, right? But then your users hit a wall trying to answer one fundamental question: Why am I seeing these results? An approval queue, audit log, case-management list, or project dashboard can have several filters applied at once. If those filters are buried inside a collapsed form, users have no idea why a specific record is missing. Worse, they struggle to remove just one filter without nuking the entire search and starting over. This project demonstrates a reusable ActiveFilterBar component for Blazor WebAssembly. It displays exactly which filters are affecting a result list right now, lets users drop them individually, supports a one-click "clear all," and plays nicely with assistive technology. What the ...