136: Kotlin Extension Functions

In this fragment episode, Donn talks about Kotlin extension functions. He discusses what they are, how to build them, why they’re useful, how to organize them, visibility and how to call them Java and much more.

Download

Show Notes

`

import android.view.View

fun View.gone() {
    this.visibility = View.GONE
}

fun View.visible() {
    this.visibility = View.VISIBLE
}

`

Contact

135: You can’t learn everything

Donn’s on a roll again this week and talks to us about his experience having developed Android for a while. In the early days of Android development, as app developers we felt like we had a decent grasp of everything you needed to know to pump out decent apps.

But with the time, and the latest updates, that has become a tricky thing. This is a good problem to have for the ecosystem but it can make it seem very daunting for developers, both new and old.

Donn gives his 2 cents on this subject.

Download

Contact

134: Get Effective Help with an SSCCE

In this episode, Donn talks about how you can get effective help with your coding problems with an SSCCE – a Simple, Self-Contained, Correct (Compilable), Example.

Using an SSCCE provides others with a quick, concise way to examine the problem without extraneous libraries, UI toolkits and various other parts of your application that do not matter to the problem at hand.

Donn breaks down each component of the SSCCE so you can wrap your head around what you need to get help quickly.

Download

Links

Sponsors

  • Instabug – Instabug is the simplest yet most comprehensive bug reporting and In-app feedback SDK.

Contact

132: Dealing with Money in programming

In this mini fragment Kaushik talks about dealing with the Money object. With money we need decimals, but the obvious solution of using a float or double may not work as advertised. Listen to this episode to find out why and how you can go about dealing with this.

Download directly

Show Notes

Problematic snippet 1:

println(1.03-0.42) # prints 0.6100000000000001

Problematic snippet 2:

var x = 0F
(1..100).forEach { i ->
    x += 0.01F
}
println(x) # 0.99999934 vs 1

Sponsors

  • Bitrise – Bitrise is your mobile continuous integration and delivery for your whole team, with dozens of integrations for your favorite services.

Contact

122: Learning Kotlin – typealias

In this episode of learning kotlin, we look at the typealias keyword. The typealias keyword allows you to provide alternate names for existing types and and function types. Learn how, why and when you can use it in this episode

Direct Download

Show Notes

Sponsors

  • Microsoft AppCenter – Sign up now on appcenter.ms and spend less time managing your app lifecycle and more time coding.

Contact