Tech

Android Arch's Room - Transaction

Sometimes, we need more than one query to execute in one operation. Let's say you have to replace an item.

Read

Android Arch's Room - Relation

On the previous post, we already discussed the basic Room from AAC (Android Architecture Component). In this post, we're gonna explore the how to create a relationship between tables

Read

Android Arch's Room - Getting Started

So, on the first post we already have an introduction or more like a sneak peek to Room data access object code. Let's get our hands dirty now!

Read

Android Arch's Room - Introduction

My first reaction when Android Architecture Component is out is just **meh..** I mean come on, the ViewModel is heavily tied to Activity and Fragment and basically i don't need it because i use Conductor…

Read

Redux-Like State Management with Sealed Class in Kotlin

On the previous post, we already discussed how your view should have its own model. We also have discussed how you can make a simple redux-like state machine in Kotlin.

Read

Simple REST API with Adonis JS

On the last ADB meetup, we have a conversation about what framework we usually use in creating a REST API. Then, Adonis.Js is being mentioned. I know Adonis but haven't got a chance to test it, so let's test it now!

Read

Simple State Machine

After reading a bunch of unidirectional data flow, Cycle.js's MVI and this article about implementing MVI in Android by Hannes, I'm convinced that this is how I should write my code from now on.

Read

A Model for Your View

Not so long ago, on my Android's MVP architecture, my view layer does not have a model. The view only renders what the presenter tell them to do which is good because then, we have a passive view. But, there's no representation of the view itself.

Read

Using MySQL Database with Docker

Last Saturday I was attending a workshop for Spring Boot in Makers Institute Bandung. The prerequisite for the workshop is we have the tools installed on our private machine. Besides the obvious Java, we also have to install MySQL.

Read

Multiple Dex Files Defined in Build Config

Have you ever encounter an error like this?

Read

Glide v4 Integration for Library

Started from the issue on my image picker library which stated that we should use the new version of Glide, I'm starting to explore this new Glide v4 library and integrate it to the library

Read

Don't Mock Your Test Data

I found some strange condition when creating a test for a code with RxJava…

Read

FizzBuzz with Pattern Matching in Kotlin

Seeing FizzBuzz implementation in Clojure with clojure.core.match makes me wondering if Kotlin has the same pattern matching capabilities or at least some resemblance in the way of doing matching.

Read

Freakin' bind() Function

When i started React Native app development, it started just fine. I love how composition is used rather than inheritance. I prefer…

Read

Running Kotlin Code in VSCode

Suppose you want to test some Kotlin code, but it is too simple for you so you don't want to create a project in your IDE and it also too complex to put it in your REPL

Read

Domain Name Resolution with /etc/hosts

I think we already know that the domain that we use to access some website is just a masking to IP(s). All that fancy name like this blog will be translated to IP by the DNS. But how we can override it?

Read

Kotlin 101 - Constructors

If you're familiar with OOP then you must be familiar with constructors. A constructors is a special method of a `class` that initialize an object of that type. Simply put, a constructors is a function that return your object.

Read

Kotlin 101 - Extension Function

There is some code that we write everywhere. It doesn't have **state** and usually small enough to become a `class`. We often call it a helper function and in Java we used to save it in some `*Utils` class.

Read

Disable Direct Access to Your IP in Nginx

Often times we don't want to expose our server IP address to public. We just want to access our domain address.

Read

Easy & Free HTTPS with Let's Encrypt

HTTPS make the internet better and safer. It allows us to communicate securely in insecure channel such as public Wi-Fi or Internet Cafe.

Read

Lambda and SAM Conversion in Kotlin - Part 2

So we already create `Interface` in Java and convert it to lambda with in Kotlin through SAM conversion. How about `interface` in Kotlin? As the previous part suggest, currently there's no SAM conversion in Kotlin interface.

Read

Experimenting Kotlin without Editor

What will you do if you want to test some Kotlin syntax? Chance you are opening your favorite IDE or text editor (not mentioning `vim` or `emacs` user in here) are very likely.

Read

Parsing HTML with jsoup

Although a lot of my friends and colleagues use jsoup, i never had a chance to use it. It's my brain default to not choose Java as the language for parsing HTML.

Read

Lambda and SAM Conversion in Kotlin - Part 1

I love lambda expression. Whether it's in Java, Kotlin, or Javascript (arrow function). It helps me remove verbosity from my code

Read

Kotlin Coroutines - Introduction

Just like async/await in Javascript and C#, Kotlin Couroutines is trying to make asyncrhronous programming easier by enabling you to write async code with imperative style

Read