Skip to main content

2 posts tagged with "dotnet"

View All Tags

Magic strings—cool name, annoying problem.!

· 8 min read
Rajiv Karthik Yanamandra
Senior Software Engineer @ Compare The Market, Australia

Taming Magic strings in your code: clean, safe, and maintainable solutions!

Magic strings—cool name, annoying problem. 😤 These hardcoded strings (like "Paid" or "Failed") can sneakily break your code, cause typos, and make debugging a nightmare.

Imagine this:

You’re working on a payment system, and a single typo—"faild" instead of "Failed"—slips through. Suddenly, payments are misclassified, users are misinformed, and the system behaves unpredictably.

Sound familiar? You’re not alone. Magic strings like these are everywhere, but you don’t have to put up with them. 🚫 There are better, safer ways to handle these strings.

thumbnail post

That One line you missed that’s causing weird ASP.NET Core validation Issues!

· 3 min read
Rajiv Karthik Yanamandra
Senior Software Engineer @ Compare The Market, Australia

Forgot this line? Your ASP.NET Core app validation might act strange!

Okay, confession time—I recently encountered a strange issue with my ASP.NET Core validation in an inherited codebase. After some digging, I realized that a simple but crucial step had been missed, causing some pretty frustrating errors. I wanted to share this information with you, and perhaps with my future self, to ensure that we never encounter this issue again.

thumbnail post