|
|
|||
|
||||
OverviewLevel up your Kotlin the fun way! Solve mysteries, dodge traps, and banish bugs. Sharpen your critical thinking to ace interviews and ship rock-solid code. Can you outsmart the Kotlin compiler? Detect, deduce, and diagnose your way to clearer code and expert insights. Escape type-system traps and navigate logic labyrinths. Challenge your skills and quiz your friends with fun Kotlin facts, and power up your code with nuanced mastery of data types, functions, and programming techniques. Stay sharp, know your threats, and reason critically to fix bugs before they happen. Laugh at unexpected outcomes and puzzle over awkward edge cases, then ace your next interview with memorable payoffs that simplify key concepts in Kotlin and computer science. Put the fun in functions and laugh while you learn with programming puzzles that challenge your intuition and sharpen your skills. Guess each simple program's output-if you can-then run the code or turn the page to find out what's not as it seems. Deepen your understanding of key data types and put computer science in context as you make deductions and discoveries that will upgrade your apps. Play around and break things to uncover the deliberate design decisions behind Kotlin's unexpected quirks and reveal the why, not just the what. Take on the type system and smuggle null values past the compiler's defenses. Overload operators and turn math on its head as you crack floating-point conundrums. Think like a computer and predict your program's path when you test the limits of control-flow keywords. Harness the power of iteration and immutability to tame devious data and curate collections with confidence. Unravel ambiguous lambda functions and streamline inscrutable syntax. Dodge destructuring dilemmas, spot sneaky shadowing, and know the dynamic difference between members and extensions. Prepare for interviews, tests, competitions, real-world projects, and more with powered-up problem-solving proficiency, improved coding confidence, and lasting Kotlin lessons. Most of all, have fun! What You Need: Run the code in your head, in your IDE, or in the free online Kotlin Playground. The puzzles were written and tested with Kotlin 2.1.20 on the Java Virtual Machine, but they'll work on any recent version and platform. You don't need any additional dependencies. Full Product DetailsAuthor: Sam CooperPublisher: The Pragmatic Programmers Imprint: The Pragmatic Programmers Edition: New edition ISBN: 9798888651582Pages: 110 Publication Date: 14 October 2025 Audience: Professional and scholarly , Professional & Vocational Format: Paperback Publisher's Status: Active Availability: Temporarily unavailable ![]() The supplier advises that this item is temporarily unavailable. It will be ordered for you and placed on backorder. Once it does come back in stock, we will ship it out to you. Table of ContentsIntroduction Something From Nothing? Elvis In The Building As Close As It Gets Upside-Down Math Is It A Number Or Not? Which Came First? What's In The Box? That's Not What I Ordered How Deep Is Your Copy? This Much Is True It's Over Nine Thousand! Out Of Order Just One More Thing End Of The Line The Vacuous Boomerang Don't Bet On It A Class With No Name? It's Just An Expression Never The Same Serial Spending Problem Inside, Outside Bringing Up The Rear No, That's Not It… That's Not My Name Who You Gonna Call? If It Looks Like a Duck… Kotlin Ain't JavaReviewsThis book of Kotlin puzzles will amuse and befuddle you, helping you explore the Kotlin language and type system in a fresh way within a few short hours.—Pamela Hill, Kotlin Developer Advocate, JetBrains Sam nailed the brain teaser concept here; each puzzle has a smart point to make, usually looks simple, and is rarely what you think. I found myself continually learning new concepts and tricks as I went through this book, and I feel better equipped as a Kotlin developer as a result.—Michael Fazio, Author, Kotlin and Android Development Featuring Jetpack These puzzles will challenge you as a Kotlin developer, whatever your level of experience. You'll improve your programming and troubleshooting skills as the puzzles show you how to spot and avoid common coding traps and pitfalls. This book is both entertaining and educational.—Klitos Kyriacou, Senior Software Engineer There are always ways to write terribly confusing code, but these puzzles aren't about that. They demonstrate that writing non-idiomatic code is enough to wander into some corners of Kotlin where intuition no longer helps. This is a great opportunity for developers of all levels to deepen their understanding of the language and, more specifically, its type system.—Joffrey Bion, Senior Software Engineer Author InformationSam Cooper is a respected tech writer and Kotlin expert whose insights and advice have appeared in Kotlin Weekly, Android Weekly, Software Testing Weekly, and more. He has developed software at internationally recognized technology companies including Amazon Web Services, and has headed major Kotlin projects as a technical lead and principal engineer. Sam is the author of Kotlin Coroutine Confidence. Tab Content 6Author Website:Countries AvailableAll regions |