5 Common Code Smells in Java and How to Fix Them
Five anti-patterns I see in production code review: why they matter for maintainability and reliability, and the minimal-cost refactors that close them without breaking calling code.
Latest
The complete chronological feed across writing, projects, talks, and judging. Most recent first.

104 entries
Five anti-patterns I see in production code review: why they matter for maintainability and reliability, and the minimal-cost refactors that close them without breaking calling code.
A practical reference of 25 Git commands for everyday version control and collaboration, with the scenario where each one earns its place.
How the Karatsuba algorithm multiplies large numbers faster than long multiplication, trading one multiplication for a few additions to bring the cost from quadratic down to about n^1.585.
A short, intuitive take on Root Mean Squared Error, why squaring makes it punish large misses harder than small ones, and how to read it when judging a regression model.
What Java's volatile keyword actually guarantees (visibility of writes across threads) and what it does not (atomicity and mutual exclusion), and why compound operations still need synchronization.
How Java 17 turns the old switch statement into a switch expression, with arrow labels, yield, and exhaustiveness checks that make branching cleaner and safer.
A Java concurrency note on when to reach for Thread versus ThreadLocal, how per-thread isolation avoids shared-state bugs like the classic SimpleDateFormat race, and how the two work together for thread-safe code.
Spot Award at eBay for a seamless billing migration off a legacy system.
LDD referral reporting and compliance for Walgreens specialty pharmacy
A web-based platform for reporting Limited Distribution Drug (LDD) referrals at specialty pharmacy sites: integrating with the core dispensing system for near real-time prescription tracking, auditing, and manufacturer-contract compliance.
STQC-certified e-voting for India's listed companies
A government-authorized, STQC-certified electronic voting platform that lets shareholders of publicly listed companies vote on corporate resolutions digitally across AGMs, EGMs, and postal ballots.