• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar

CASTER.IO

Upgrade Your Career with Bite Sized Video Training

  • Articles

kotlin

Building Objects with Kotlin

Sam Edwards
Posted: January 30, 2019 • Leave a Comment

By leveraging the Kotlin Language features of data classes, named parameters and default values, we can address the the majority of use cases that the Builder Pattern addresses for Java, but with much less code. I saw a Tweet by Hannes Dorfmann …

Continue Reading

Handling Optional Errors using Kotlin Sealed Classes

Craig Russell
Posted: May 21, 2018 • Leave a Comment

Large seal. Or more likely a sea lion.

When calling a function which returns data, there is often the need to handle errors which might occur. This post details how to make use of Kotlin’s sealed classes to return one object which can represent the data you expected or an error. Let’s …

Continue Reading

Primary Sidebar

Recent Posts

  • Caster.IO Has Shut Down
  • Caster.IO is Shutting Down
  • Building Objects with Kotlin
  • Rxify: Error Handling with Subjects (Relays)
  • Self Destructing Smart Contracts in Ethereum

Search Articles

Copyright © 2021 · Maker Pro on Genesis Framework · WordPress · Log in