React Native on Mobile App Development

I haven’t got time to dig deeply into react native. But, here are some of my thoughts and future guess:

  • As React gets over their licence issue, more companies and open source organisation will adopt it.
  • React Native has been adopted by many big and small companies, in both Australia and Vietnam. It helps a lot if they have a web development team but no mobile development team. They don’t have to recruit and retrain people.
  • The performance looks good, and it will increase over time.
  • There will always a gap between react native and native platforms in new language features, AR, VR and CoreML development.

I think it is worth if you develop some web apps and then move into a mobile app with fast spped. In the future, it may get to the point where you can develop react native app right from beginning.

Swift Server Side

Looks Interesting, although it is quite new. I am learning on this course, would update with more details later:–ud1031

  1. Couple of notes from the course:
  • We can use Swift on Command Line. Wow, never heard about it before.
  • There is SwiftEnv for you to play around
  • As Swift can run on Command Line, it can run on Linux just fine, but with different libraries. I am not sure how different it will be between Swift on Linux and Swift on iOS / MacOS
  • They also talking about Docker. I don’t have any experience with Docker so I have to spend some time on this topic

Book Review

Well, I am back into my writing mood now, so I will go quickly through a list of books that I read. This is very personal, and everybody has their own priorities about what books are good.

Here is my list:

  • It must be engaging. Yes, it has to be. Fun is a plus
  • A little bit of story telling and some fact, research supported fact. Story supports your emotion, and helps you to link with the people, and remember what you read longer. However, too much story seems to focus on details and fail to abstract a lesson from then.
  • It offers new content and knowledge in each chapter. There are good books with amazing beginning chapters, but then it goes on and on about the same topic or concept. “I got it, thanks”, and move on.

Some kinds of books I love reading on:

  • Technology books. Definitely. Well, it is always awesome to read old and new technology books. They taught us new mindset, new tricks and new process.
  • Psychology and Sociology books. I actually want to touch into the people’s emotion and feeling, rather than just learning management. I think learning management offers lots of value, but I enjoy psychology and Sociology more.
  • Management, Process and Leadership
  • Design, UI & UX
  • Law
  • Sales

In the next post, I would review many of the books I read, hope that it can help others to find out what they should learn


Learning from a variety of source is key

Having going out and meeting a lot more people recently, I can start feeling differences in the way they learn and value learning:

  • Phd students tend to read a lot, and trust the source they read and learn. Many of them view people who disagree as idiots, stupid and not complicated enough
  • Practical and on hands people normally disregard reading, as it took them too long for it. They prefer working on the issue and having a chat with people.
  • Parents overestimate the value of studying in famous high school and colleges.
  • Entrepreneurs love learning from real experience and getting out to the real world, and point to Bill Gates as a solid example.

It is hard to say who is right, and everybody has their own strength and weakness. The reason they got their current achievement is due to those strength, weakness and hobbies.

But overtime, people’s mind change. I think that learning a little bit from any source is a better way to advance:

  • Books help you to look at the big picture, with facts, data and insights.
  • People tell you their stories, what is touching to their feeling. Those stories teach you that everybody feel differently about the same fact.
  • People give you concrete guideline and example, which saves you hours or months of reading and researching.
  • There are lots of things formal education can teach you, but there are lots of things that they cannot teach you. Nobody else can teach you either. You need to go out and experience for yourself. In Information Technology, NoSQL means Not Only SQL, and in education, NoDegree means Not Only Degree.

Opening your mind and your heart to knowledge, insights and understanding. Sometimes, what is factually right does not matter to lots of people. People are never rational. To convince them, you touch their hearts first, and then their mind.

You cannot touch their hearts without a solid fact follows on. That is dangerous for society as well. Trump is an example.

URL Design

The url has become an important part of lives, when it is shared around. You want to have a Get, not a Post, and the url has to include text for the SEO, but should be easy for human to make mistakes.

I love Stack Overflow’s URLs. Here’s an example:

The only thing that matters there is the 6380. Try it or also works. SO will even support this!

Great post here with Scott Hanselman:

Office 365

I wouldn’t say I like Microsoft or most of its products much. But Office 365 is actually working well for me. It also receive lots of praise from the community and users.

I guess I miss something after few years working solely on Apple stuff :))

Xamarin – Migration Journey (Part 3 – Legacy code integration)

This is actually the hard part, and the failure at this point actually prevents us from moving towards with Xamarin.

We have been developing with native iOS and Android for 6 years, with lots of legacy code and libraries. Our libraries in both iOS and Android can have up to 20-30,000 lines of code. To migrate all of them to Xamarin would be a huge deal. The only solution is to connect Xamarin with those libraries.

We have libraries in 3 languages: Objective-C, Swift and Java. The first trouble came up when Xamarin could not connect with Swift framework. In our experiment, we took the risk and port 1 of our library into Objective-C. The Swift framework issue should have signaled us that something was not going right.

Anyways, we move forward with our intention to write a real project, working on both iOS and Android, and connect with 5 of our libraries and use 3 cocoapods frameworks/libraries.

For the libraries we wrote, there was not much problem, except the Swift issue mentioned above. However, with cocoapods, when people write code in all shapes and forms, the API definition kept having weird issues that we could not comprehend. We spent 3-4 man days on this, and still wasn’t sure that if the code would work or not.

We will discuss more about what binding issues we have with Xamarin that forced us to change the direction: to try to at least make a workable app with missing elements and libraries working in Xamarin


Xamarin Migration Journey (Part 2 – Architecture)

In part 1, we discuss about some steps that we have to take when experimenting with Xamarin. In this part, we will discuss about architecture between iOS and Android.

In the normal process, iOS and Android will share some similar architecture styles. Both will have UI layer, Model Logic layer and Database Layer. Before trying to use Xamarin, we need to make sure that both of our code platform will share similar architecture.

So, the first step was to try bring both our platform into a V.I.P.E.R architecture and share the same code process. VIPER is more commonly used in iOS and there are not many resources for Android, but we still have to force the Android codebase to use VIPER. You can read more about VIPER here.

With this architecture, we hope to reuse our Interactor (Business and Controller Logic), Presenter (View Logic), Worker (Data Logic) and Models as much as possible. Any code that is different between iOS and Android will be integrated at runtime using a Protocol / Interface approach.

We take this as a first step, because if we fail to use Xamarin, we can still have a nice codebase and a familiar structure between iOS and Android. This allows us to port code from iOS to Android easily in the future