Author: farifam

1

Java VS C# – Getter Setter

Java and C# have different way to define getter setter on their code. Java mostly using function get() set() with the property name behind it: String myText = data.getText(); data.setText(“Hello World”) and C# use...

0

Kotlin – Using Extensions

In Kotlin you can add new function without having to inherit from the class or use any type of design pattern such as Decorator, this ability called “Extension”. For example: fun MutableList<String>.addPercentage(){ for((index, item) in...

4

Android Kotlin – Using toObject() to get Firestore Data

From our post about how to get Firestore data on Kotlin here, we grab Firestore data by it name: for (document in task.result) { list_member.add(Member(document.id,document.get(“first”).toString(), document.get(“last”).toString(), document.get(“born”).toString())) } Since Firestore allow us to convert...