Skip to content
092: Learning Kotlin - dealing with static-ness and (companion) objects costs episode artwork

Aug 7, 2017 35 min

092: Learning Kotlin - dealing with static-ness and (companion) objects costs

from Fragmented - AI Developer Podcast Hosted by Spec

In this second episode of our learning Kotlin series, we talk about Kotlin’s support for static members or … lack thereof. Kotlin as a language was designed so that there’s no such thing as a “static member” in a class but there are times when having static members can be useful. So what do we do in those cases? do we just avoid static members? are there better alternatives? what are the costs with some of these approaches? Listen on to find out more! Show Notes Static alternatives Package level functions (Kotlin docs) Static constants in Kotlin Object declarations Objects vs companion objects Cost of approaches Where do i put my constants in Kotlin Exploring Kotlin's hidden costs - Part 1 Kotlin discussion - best practices for top level declarations Look at the fragmentedpodcast.com for some code snippets Misc: Ep.89 - Learning Kotlin: Properties a first class language feature Kotlin in Action – Manning Publications Sponsors Rollbar - special offer: Bootstrap plan free for 90 days Contact @fragmentedcast [twitter.com] @donnfelker and +DonnFelker @kaushikgopal and +KaushikGopalIsMe

Episode details come from the podcast's RSS feed.

Embed this episode

In this second episode of our learning Kotlin series, we talk about Kotlin’s support for static members or … lack thereof. Kotlin as a language was designed so that there’s no such thing as a “static member” in a class but there are times when having static members can be useful. So what do we do in those cases? do we just avoid static members? are there better alternatives? what are the costs with some of these approaches? Listen on to find out more! Shownotes: http://fragmentedpodcast.com/episodes/92

Ready to play

092: Learning Kotlin - dealing with static-ness and (companion) objects costs

0:00 35:11

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

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

This episode is 35 minutes long.

When was this Fragmented - AI Developer Podcast episode published?

This episode was published on August 7, 2017.

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.