Software Thug Tech

"Find the Bug in This Function": Ten Planted Kotlin Bugs and How to Find Each One in Under a Minute

The debugging round hands you working-looking code and asks what is wrong. Here are ten Kotlin functions, each with one bug drawn from the gotchas in the earlier posts, the input that exposes it, the fix, and the method that finds bugs like these in under a minute. Every buggy and fixed version was compiled and run to prove the bug reproduces and the fix works.

Concurrency in Kotlin: The Coroutine Questions Senior Loops Ask, and the Answers That Hold Up

Kotlin candidates get asked about coroutines specifically: structured concurrency, cooperative cancellation, dispatchers, exception propagation, shared mutable state, and Flow versus Channel. Here are the questions, the mental model, ten compiled snippets, and the gotchas that separate people who have run coroutines in production from people who have read the guide.