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

133: Dependency Injection and Service Locators in a Kotlin world with Danny Preussler

A hotly debated topic at the moment is the use of a library like Dagger for dependency injection in the world of Kotlin. In this episode, we talk to Danny Preussler. Danny’s a pro who’s been around from the Java 1.0 days! He helps trace the history of dependency injection in Java all the way to today, in a Kotlin world where there exists alternatives like Koin and Kodine.

We dive into how some of these use a Service Loader/Locator pattern and the subtle differences with dependency injection. Listen on for an action packed episode.

Download directly

Show Notes

Service Locators vs Dependency Injection

Your application is aware it’s using a Service Locator, but your application should be totally un-aware that it’s using a Dependency Injection Container.

Sponsors

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

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