Tag: Debug
-

Structured Logging in Java Microservices: SLF4J, MDC, and Distributed Tracing in Practice
I have spent more hours than I care to admit staring at logs that said “Process started” followed immediately by “Error: null.” A logging strategy is not about making your console look active — it is a forensic requirement for production survival. If your logs don’t provide a clear path to the root cause of…
-

Why You Should Never Use Floating Point for Money
After years of maintaining legacy systems, I have seen more bugs caused by improper currency handling than by actual logic errors. Floating-point arithmetic is designed for scientific calculations where precision is secondary to range, making it fundamentally unfit for financial systems. When you use float or double, you are essentially gambling with rounding errors that…
