Fragmented · August 7, 2017

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

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

Cost of approaches

Look at the fragmentedpodcast.com for some code snippets

Misc:

Sponsors

Contact

Copyright 2024 Spec Network, Inc.