Sam Cooper
banner
sam-cooper.bsky.social
Sam Cooper
@sam-cooper.bsky.social
Author of Kotlin Brain Teasers
https://pragprog.com/titles/kotlinbt
Pinned
New book! 📚 Kotlin Brain Teasers is out now in early access beta. If you like #Kotlin and enjoy yelling "Wait, WHAT?!" at your IDE, this is the book for you. Reviewers said: "I hate this code so much" and "This code is actively making my day worse." 🧠🧩

pragprog.com/titles/kotli...
Kotlin Brain Teasers
Level 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.
pragprog.com
Reposted by Sam Cooper
Cyber Monday - Last Chance for 50% off!
Black Friday, Small Business Saturday - all the days... all come down to this
Code: SAVE50
Enter the code on the Payment Details screen
Almost everything on the site is on sale - but not for much longer!
(Only at pragprog.com)
December 1, 2025 at 1:20 PM
Yes, this code is good for both my Kotlin books 👍

Kotlin Brain Teasers 👉 pragprog.com/titles/kotli...
Kotlin Coroutine Confidence 👉 pragprog.com/titles/sckot...

And since it's 50% off, you have no excuse not to buy both 😉
November 25, 2025 at 2:58 PM
Reposted by Sam Cooper
✨ ✨ SAVE 50% ✨ ✨
We're not a giant retailer. We're just a tiny group of people doing something we love, with people we admire, for a community we're part of. This is our version of a fall/Black Friday/whatever sale.
November 22, 2025 at 2:17 PM
Reposted by Sam Cooper
Pragprog Early Black Friday sale
50% off with code Save50
Includes all Beta books
pragprog.com/categor...
November 24, 2025 at 6:55 PM
My Kotlin/writing skills are better than my image editing, I promise
🎁 Christmas shopping for programmers?

A paperback copy of Kotlin Brain Teasers is a great gift for the Kotlin lover in your life 😁🎄. Short, fun, and packed with memorable lessons and surprises.

My book 👉 pragprog.com/titles/kotli...
November 24, 2025 at 10:28 AM
🎁 Christmas shopping for programmers?

A paperback copy of Kotlin Brain Teasers is a great gift for the Kotlin lover in your life 😁🎄. Short, fun, and packed with memorable lessons and surprises.

My book 👉 pragprog.com/titles/kotli...
November 24, 2025 at 10:26 AM
My Kotlin Coroutines book is HALF PRICE this week for Black Friday! If you have a coroutine headache, I promise this book will help.

My book 📖👉 pragprog.com/titles/sckot... (use code save50 for your discount!)

Fix that coroutine headache and get Kotlin Coroutine Confidence 😉📚
November 24, 2025 at 8:51 AM
Reposted by Sam Cooper
@sam-cooper.bsky.social - "Kotlin Brain Teasers"
pragprog.com/titles/kotli...

Another tech review, and this one was right in my wheelhouse. I've done a lot of work with Kotlin and I was still learning new things throughout the book. The "Brain Teasers" series are always fun and this is my favorite.
Kotlin Brain Teasers
Level 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.
pragprog.com
November 19, 2025 at 3:21 PM
Reposted by Sam Cooper
10 years old and maybe never more relevant than in contemporary software development

www.commitstrip.com/en/2016/08/2...
November 10, 2025 at 9:11 PM
Reposted by Sam Cooper
Floating-point numbers are weirder than you think…

ivan.canet.dev/blog/2025/11...
What is the smallest number in Kotlin? - Ivan “CLOVIS” Canet
Software engineering, open source and computer security
ivan.canet.dev
November 11, 2025 at 11:20 AM
Rate my Fibonacci! 😄

After some improvements suggested by one of the book's tech reviewers, I think this code example from Chapter 10 of 📚 Kotlin Coroutine Confidence strikes a neat balance between brevity and readability.

What do you think? How would you write it?

👉 pragprog.com/titles/...
November 10, 2025 at 10:23 AM
I don't want to brag, but they mentioned my book before they mentioned Obama
It happened on Medium: October 2025 roundup
SEO stats, spooky reads, and what publication editors featured
medium.com
November 8, 2025 at 9:53 AM
Reposted by Sam Cooper
Few things scare me more than someone telling me they’ll just “buy the book on Amazon” 🫠
October 31, 2025 at 4:54 PM
😈 Working on my new LinkedIn bio. "I love to respond to AI messages, but only if they correctly show me a seahorse emoji."

Let the chaos begin 🐴 🐎 🐠 🐟 🐡 🦈 🪸 🐚 🐙 🦑 🦐 🪼 🧜‍♀️ 🦄 🐢 🐬 🐳 🐋 🐊 🦭 🐌 🪻 🪷 🪹 🪺 🐾 🪼 🐚 🪸 🐠 🐟 🐡 🦈 🦑 🐙 🦐 🐴 🐎 🦄 🐉

knowyourmeme.com/mem...
October 31, 2025 at 9:00 AM
"Two networks are better than one," says Vodafone, telling me I can now get service from both Three and Vodafone, thanks to their merger.

I don't suppose they can see the irony in their choice of wording.
October 30, 2025 at 5:34 PM
Reposted by Sam Cooper
Instead of trying to green cars so much why don't we just invest in trains. city trains. under ground trains. above ground trains. trains between cities. trains between countries. TRAINS

THE PEOPLE CRAVE TRAINS
October 28, 2025 at 6:50 PM
Thanks @stackoverflow.blog.web.brid.gy for mentioning my article in last week's newsletter—and congratulations on 300 issues!

Nice link description, too: "Dotting your i's and crossing your t's matters even in Kotlin." Can't believe I didn't think of that one! 🤦

stackoverflow.blog/newsletter/i...
Issue 300: This...is... STACK OVERFLOW! - Stack Overflow
Founded in 2008, Stack Overflow’s public platform is used by nearly everyone who codes to learn, share their knowledge, collaborate, and build their careers.
stackoverflow.blog
October 29, 2025 at 10:27 AM
Trying to summarise all of asynchronous programming and structured concurrency in fifteen minutes would be kind of insane.

So of course, that's exactly what I decided to do when I spoke at ACCU York last month. 😄 I think it went okay!

youtu.be/VJC1BJ2ZDEM
How Do You Tame the Async BEAST with Kotlin and JavaScript? - Sam Cooper
YouTube video by ACCU Conference
youtu.be
October 29, 2025 at 10:19 AM
Reposted by Sam Cooper
Writers are nothing if not well versed in the art of telling their writing software why its punctuation and grammar suggestions are incorrect.
October 29, 2025 at 4:46 AM
Reposted by Sam Cooper
I do find LLMs occassionally useful, but the "You're absolutely right!" is gonna kill me one day.
October 20, 2025 at 8:13 PM
In many video games, when I loot a chest, the value and level of the loot is fixed, but the specific selection of items is randomised.

It would be inefficient to populate every chest up front, so maybe the contents are only determined when I open the box.

Schrödinger would have liked that, I bet.
October 13, 2025 at 12:22 PM
Reposted by Sam Cooper
⚡ Hackernews Top story: A years-long Turkish alphabet bug in the Kotlin compiler
The Country That Broke Kotlin
Logic vs language: how a Turkish alphabet bug played a years-long game of hide-and-seek inside the Kotlin compiler
sam-cooper.medium.com
October 12, 2025 at 9:18 PM
On LinkedIn I try to have a policy that if you try to sell me gen AI I will unfollow/mute. But that's becoming increasingly difficult as people whose posts I usually respect and enjoy start jumping on the AI crapwagon 😢
October 13, 2025 at 9:00 AM
🤔 I seem to be on the front page of Hacker News 🤯🤯🤯

news.ycombinator.com/item?id=4555...
October 12, 2025 at 9:19 PM
Reposted by Sam Cooper