176: Kotlin's !! Operator is a Code Smell episode artwork

EPISODE · Sep 30, 2019 · 15 MIN

176: Kotlin's !! Operator is a Code Smell

from Fragmented - AI Developer Podcast · host Spec

Kotlin isn't a magic bullet that prevents NullPointerExceptions. Not at all. What Kotlin does do is force you to think about how you want to handle your nulls. through Kotlin forcing you to think this through, the hope is that you'll avoid NullPointerExceptions. The only problem is, Kotlin has the !! operator, also known as the "Not Null Assertion Operator". This operator basically says "Hey Kotlin, trust me, I'm a pro, I know what I'm doing ... I KNOW THIS WON'T BE NULL". This... is a code smell. In this episode, Donn walks through why Kotlin's Not Null Assertion Operator (!!) is a code smell and what you can do to alleviate it. Thanks To This Week's Sponsor: Bitrise Build amazing apps in Java, Kotlin or whatever tech you prefer and use Bitrise to automate your Android integration, build, test and deploy process quickly and easily. Sign up for an exquisite pair of Bitrise Branded Socks, here! https://go.bitrise.io/fragmented Contact Discord chat or @fragmentedcast or our Youtube channel @donnfelker and donnfelker (on Instagram) @kaushikgopal and kaushikgopal (on Instagram)

Episode metadata supplied by the publisher feed · Published Sep 30, 2019

Embed this episode

In this episode, Donn walks through why Kotlin's Not Null Assertion Operator (!!) is a code smell and what you can do to alleviate it.

Distinct summary based on available episode metadata or transcript content.

NOW PLAYING

176: Kotlin's !! Operator is a Code Smell

0:00 15:59

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of Fragmented - AI Developer Podcast?

This episode is 15 minutes long.

When was this Fragmented - AI Developer Podcast episode published?

This episode was published on September 30, 2019.

Can I download this Fragmented - AI Developer Podcast episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!