• Android Developers Learn Swift Part 2

    This is the second part of the “Android Developers Learn Swift” articles. The topics include:

  • Android Developers Learn Swift Part 1

    I’ve developed Android Apps for more than 6 years. The reason I wanted to learn Swift and iOS development is that I wanted to know more about the iOS ecosystem. Since my wife also wants to learn iOS, I think it’s not a bad idea we can learn it together. I will write this series of articles in Android developers’ view. In this article, it contains topics as below.

  • Kotlin Flow Migration and Testing

    It’s been almost two years or so since I wrote my last blog article. I got a lot of things to share recently, no matter it’s related to work or not. I think it’s better for me to record and share them, so I started writing again. I’m not a native English speaker, if I wrote something doesn’t make sense, please let me know. :)

  • Effective Java Item 7: Avoid finalizer

    Avoid finalizer

  • Effective Java Item 5&6

    Avoid creating unnecessary objects

  • Effective Java Item 3&4

    Enforce the singleton property with a private constructor or an enum type

  • Effective Java Item 2: Consider a Builder When Face with Many Constructor Parameters

    Builder pattern is a really common pattern when we try to create an instance that has many parameters. For example, if we want to create a bean and the bean has a lot of required and optional parameters. Using builder to solve this problem can be really useful.

  • Effective Java Item 1: Consider Static Methods Instead of Constructors

    This is the first article about Effective Java Items. I read the 2nd version not the 3rd version which is just came out about a month ago. Item 1 is talking about static factory methods. This pattern is common in Android development. For example, when we are using Toast, we pass parameters and the static methods will return a Toast instance for us depending on the parameters. Using static factory methods sometimes could be good, but not always good because it has advantages and disadvantages.

  • Customize Your Own Retrofit

    Retrofit is a very useful when sending HTTP requests. Also, it’s extremely simple to write. In this post, I will describe how to write a custom Retrofit client and how to extend it. If you haven’t got familiar with Retrofit, I suggest that you can go to its website to know some basics about it.

  • Try Kotlin

    Since Google I/O 2017, I think I should learn Kotlin because they announced that Kotlin has became one of the offical support languages in Android. So I want to introduce some of Kotlin features. Also, it’s for me to recap how I learn Kotlin in short.

  • 1
  • 2