Use ADB to backup and restore local data for testing

Android •

In addition to making ADB more useful in testing and debugging Android apps, today I would like to introduce a short trick to backup and restore the local data for testing. Test data on debugging built app is as important as the real data on users’ devices. Have you ever had to clean the app data to be able to start the app for debugging? Or have you ever worked in parallel for debug and release versions and they have different versions of Database? If the answer is YES (I’m sure most of us do), it hurts, especially when the data is related to date or time (UI is different for items created last month and today); or it’s hard and takes time to create test data (like creating new accounts) ...

Extend the ADB to Make App Debugging Easier

Android •

ADB is a useful and powerful tool to interact with an Android app or the whole Android device via the command line. However, ADB is still far away from a debug tool, therefore, usually, in a big app, we have to develop a UI tool called dev menu or something like that to interact, change the configuration, etc. We may use the other library like Facebook’s Fillper or Stetho or Hyperion, etc ...

Beautiful code

Code review •

Some days ago, my friend requested me to help him review his code. Well, it was my daily job, so, I pleased to help ...

Let's code with Leetcode

Leetcode •

Mmm…, I don’t know how to start this post, actually, it’s not about Leetcode but about my laziness (yes, very similar to the story about git naming) ...

A short story of naming git-branch from a lazy coder

Scripting •

Well, I’m a developer. Using git is somehow my daily job. I’m not very keen on typing command on the console, especially with long commands. In my previous company, we didn’t create a branch for each feature, just dev or master branch for all (of course, release-xxx branch for releasing) ...