Advertisement · 728 × 90

Posts by Sam Cooper

@typealias.com congratulations on being nominated for the Kotlin community awards! Very well deserved!

1 week ago 6 0 1 0

@ivcanet.bsky.social congratulations on being nominated for the Kotlin community awards! Great to see!

1 week ago 4 0 1 0

Developers: "We were spending all our time putting out fires in production."

Big Tech: "Would a flamethrower help?"

1 month ago 23 6 1 0
Preview
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...

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...

2 months ago 0 0 0 0

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.”

2 months ago 328 54 5 6
Preview
What does ‘when’ return in Kotlin? Mixed Messages? Kotlin Brain Teasers bonus puzzle!

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!

2 months ago 1 0 0 0
Code sample with a refactoring from `runBlocking { }` to `suspend fun` in tests.

Code sample with a refactoring from `runBlocking { }` to `suspend fun` in tests.

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.

2 months ago 9 3 0 0
Advertisement
Preview
Can a Kotlin class have no name? Nothing to see here! Kotlin Brain Teasers, Puzzle 18 of 23

"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.

3 months ago 1 0 0 0
Preview
What does ‘throw return’ do in Kotlin? The Vacuous Boomerang! Kotlin Brain Teasers, Puzzle 16 of 23

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 🧠📚

3 months ago 4 0 0 1

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%.

3 months ago 5100 1542 132 59

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!

3 months ago 1 0 0 0
Preview
What’s null + null in Kotlin? Something From Nothing? Kotlin Brain Teasers, Puzzle 1 of 23

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...

3 months ago 2 0 0 0
Video

Last day of the New Year's INSIGHT sale -
40% off with code INSIGHT
Find your inspiration -
Pragprog.com

3 months ago 2 1 0 0
Somebody Told Me (The User Provider Should Use An Adaptor To Proxy The Query Factory Builder)
Somebody Told Me (The User Provider Should Use An Adaptor To Proxy The Query Factory Builder) YouTube video by Dylan Beattie

youtu.be/p03oO_7sCaY

4 months ago 4 0 0 0

Can I get this on a t-shirt?

4 months ago 0 0 0 0
Advertisement

Consider the possibility that communicating is the work, and coding is the interruption.

4 months ago 15 4 3 0

I want to find the programmer who wrote the code that generates that error message where the detail text is just "cloudflare" and shake their hand

4 months ago 2 0 0 0
Post image

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"

4 months ago 7 0 1 0

News websites are going to start pre-writing "Cloudflare is down" articles the same way they prepare obituaries in advance for high profile figures

4 months ago 2 0 0 0

I'm seeing that exact same 500 error on a bunch of sites (LinkedIn, StackOverflow, Medium)

4 months ago 1 0 0 0

I don't think it's just Zoom... is CloudFlare down again?? 😬

4 months ago 3 0 2 0
Post image

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)

4 months ago 6 4 0 0

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 😉

4 months ago 1 0 0 0
Post image

✨ ✨ 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.

4 months ago 7 3 0 1
Video

Pragprog Early Black Friday sale
50% off with code Save50
Includes all Beta books
pragprog.com/categor...

4 months ago 7 2 0 1
Advertisement

My Kotlin/writing skills are better than my image editing, I promise

4 months ago 0 0 0 0

Bonus tip! Buy your gifts from local bookstores and make their Christmas a little better too ❤️

4 months ago 1 0 0 0
Save 50% at the Pragmatic Bookshelf

Or just treat yourself to a new skill with 50% off everything for Black Friday!

SALE 👉 media.pragprog.com/newsletters/...

4 months ago 0 0 1 0
Preview
Buy Pragmatic Bookshelf Gift Cards & eGifts | Shop Now GiftYa is like a gift card, only much better. Text a The Pragmatic Programmers egift with GiftYa and the recipient can use it like an egift code, can link it to their Visa or Mastercard, or they can s...

Or get your software engineer friends a gift card for the Pragmatic Bookshelf store so they can have their pick of topics! Supporting humans who write books for humans is a great way to spend some holiday cheer.

Gift cards 👉 www.giftya.com/brands/pragm...

4 months ago 0 0 1 0
Post image

🎁 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...

4 months ago 0 0 1 1