Keep cool & sharp this summer! Fun challenges without raising your temperature! 35% off with code CoolBrains. Try Haskell, Rust, JavaScript, Clojure & more: pragprog.com/categor...
Sam Cooper
@sam-cooper.bsky.social
Author of Kotlin Brain Teasers https://pragprog.com/titles/kotlinbt
With heat waves shattering temperature records across the globe, leading to needless deaths, let me just say that history will not look fondly on those who put fossil fuel profits above saving the planet.
📢📚 My Kotlin Brain Teasers book is on sale at @pragprog.com ! Great way to spend a spring weekend, especially if it's raining where you are like it is here ☔ The sale includes the whole Brain Teasers series, so there's something for everyone, not just Kotlin fans. Let me know which one you pick up!
Spring Forward - The Human Side Exercising your mind is a great way to support your human side - so we're adding our whole collection of Brain Teasers to the Spring Forward Sale - 50% off with code Spring2026 at checkout! pragprog.com/categor...
Spring Forward - The Human Side Exercising your mind is a great way to support your human side - so we're adding our whole collection of Brain Teasers to the Spring Forward Sale - 50% off with code Spring2026 at checkout! pragprog.com/categor...
No more billionaires. None. Once you hit $999 million, every extra cent goes to schools and health care. You get a trophy that says: “I won capitalism.” And we name a dog park after you.
There are basically 5 ways to accumulate a billion dollars: 1) Profiting from a monopoly 2) Insider-trading 3) Political payoffs 4) Fraud 5) Inheritance Don’t believe the self-made myth.
I was looking up a bit of my @pragprog.com info tonight and thought about the fact that I had one other book I wanted to do with them: Kotlin Brain Teasers I waited too long, and @sam-cooper.bsky.social beat me to it. Turns out, this was a good thing, because his version is *perfect*.
@typealias.com congratulations on being nominated for the Kotlin community awards! Very well deserved!
@ivcanet.bsky.social congratulations on being nominated for the Kotlin community awards! Great to see!
Developers: "We were spending all our time putting out fires in production." Big Tech: "Would a flamethrower help?"
I know I have a bit of a writers' community on here among all the tech stuff so though I'd share this, should be a pretty unique opportunity to get some insight from industry legend: field15.com/copyright-an...
Copyright and Copy Wrong - field15
Copyright law is confusing—and full of myths. From "mail yourself a sealed envelope" (useless) to "fair use will save you" (it won't), misinformation is everywhere. Join Andy Hunt, co-founder of The P...
field15.com
Scott Galloway on The Bulwark: ““The Gini coefficient, zero means everyone has the exact same amount. A hundred means one person owns everything. The French Revolution and Marie Antoinette was when they were at 82. We hit 83 this quarter.”
What happens when you use 'when' as the body of a 'map { … }' operation? That's the topic of this week's fourth and final 🧠📚 Kotlin Brain Teasers puzzle: 👉 sam-cooper.medium.com/what-does-wh... Try to guess the answer before you scroll down to read the full explanation!
What does ‘when’ return in Kotlin?
Mixed Messages? Kotlin Brain Teasers bonus puzzle!
sam-cooper.medium.com
A benefit of upgrading to Spring Boot 4 for #Kotlin developers: you will be able to leverage JUnit 6 support for suspending functions to have cleaner tests.
"enum class" Okay... enum class what? That's the puzzle 😉 See if you can figure out the trick that lets this code compile 👉 sam-cooper.medium.com/can-a-kotlin... And stay tuned for one last free sample 🧠📚 Kotlin Brain Teasers puzzle next week.
Can a Kotlin class have no name?
Nothing to see here! Kotlin Brain Teasers, Puzzle 18 of 23
sam-cooper.medium.com
People who follow me on here might have seen this Kotlin puzzler already, but in case you haven't: sam-cooper.medium.com/what-does-th... It's one of my favourite Kotlin tricks; I hope you enjoy it too! And stay tuned for another free Kotlin Brain Teasers chapter next week, as promised 🧠📚
What does ‘throw return’ do in Kotlin?
The Vacuous Boomerang! Kotlin Brain Teasers, Puzzle 16 of 23
sam-cooper.medium.com
Good morning. A regular reminder: a tiny few hoard staggering wealth and own much of the media, while millions struggle to survive. That’s not an accident. It’s a choice made by those in power. Tax wealth. Fund public services. Build an economy for everyone - not the 1%.
If I could give one piece of career advice to any engineer, it's: measure your impact. Make a note of usage and performance metrics before, during and after each big project. Cite them proudly in your resume/CV, performance reviews, job interviews, etc. Wish I had started doing this sooner!
I'm posting free chapters from 📚🧠 Kotlin Brain Teasers each week in January! I've shared the code for this one before, but here's the full explanation, with more code examples and further reading suggestions 💡 👉 sam-cooper.medium.com/whats-null-n...
What’s null + null in Kotlin?
Something From Nothing? Kotlin Brain Teasers, Puzzle 1 of 23
sam-cooper.medium.com
Last day of the New Year's INSIGHT sale - 40% off with code INSIGHT Find your inspiration - Pragprog.com
Consider the possibility that communicating is the work, and coding is the interruption.
My favourite part of the outage so far is the simple honesty of the error message. "500 server error." "Oh? What's the issue?" "cloudflare"
News websites are going to start pre-writing "Cloudflare is down" articles the same way they prepare obituaries in advance for high profile figures
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)
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 😉
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
Black Friday Sale - code Save50 lets you save 50% on (almost) everything on the site! But where to enter the code? Our ebook fulfillment partner doesn't make it easy to find during checkout - so here's a little hint! Code: Save50 (Only at pragprog.com)
✨ ✨ 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.
Pragprog Early Black Friday sale 50% off with code Save50 Includes all Beta books pragprog.com/categor...
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...