Defining Constants in Android

We Android Developers often need to define constants to achieve better readability compared to just hard-coding some value into our code. In Android we have three choices to define constants : final static variable Enum @IntDef or @StringDef Every choice have their own advantage and disadvantage, Let’s take a closer...

Read more

Taking a look at the new FragmentTransaction's commitNow()

So it’s all started when I saw this interesting question in stackoverflow. There is a new commitNow() method added in Android 7.0 and support library version 24 that allows us to commits the transaction synchronously. But if we read the documentation carefully there is one paragraph that tells us that...

Read more

Generic UIViewController in Swift

Motivation It’s not a rare case for us to have two or more similar screen in our apps. If the data type is same, it won’t be a big problem we can create an UIViewController that will adapt based on the usage. But what if the data type is different...

Read more

Testing RxJava Observable with TestSubscriber

RxJava gained so much popularity this year, I think it’s kinda obvious because it helps us to make our code composable. I won’t talk much about how to use it but, if you haven’t heard/tried it yet I recommend you to check it out here or you can check really...

Read more

Realm Browser

Recently realm released realm 0.86 that included Dynamic Realms. With Dynamic Realms we can have access to Realm Schema and we can also create objects and access fields dynamically with using strings (Model name and Field name respectively). These flexibility of Dynamic Realms gave me idea to create a Realm...

Read more