What I Learn From Xamarin Party Event

Reading time ~1 minute

Bandung Developer Day #5

Bandung developer day is an event for developers in Bandung. The purpose of this event is to share new knowledge for developers. In 20 Desember 2016, Fifth event of Bandung developer day was held. the topic is Introduction to Xamarin. The speakers are Puja Pramudya and Albilaga from Radya Labs. There are 2 sessions, first session is Puja’s stage to introducing Xamarin to the attendees and second session is workshop session delivered by Albilaga. We were creating CRM apps for workshop session.


What is Xamarin

Xamarin is a set of tools for cross-platform development (Android, iOS, Windows) and the development language is C#.


Xamarin Native Vs Xamarin Forms

There are 2 types of Xamarin, Xamarin Native and Xamarin Forms. The differents are

  • Xamarin Native Using C# as logic languange but Xamarin Native uses the platform specific language for the interface. Android is using XML, iOS is using story board, and Windows is using XAML.

    When you should use Xamarin Native ?

    • You will build apps that has many platform API specific
    • Custom UI is number one
  • Xamarin Forms Using C# as logic languange and using XAML for the interface. Xamarin Forms already has pretty much widget supported.

    When you should use Xamarin Forms ?

    • You will build apps that has not many platform API specific
    • If you want to code once (C# and XAML), run everywhere


PCL Vs Shared Project

There are 2 types of Xamarin project styles. The main different of this two is

  • Shared Project

    You will see a lot of if when you want to do platform specific code.

    #if __ANDROID__ 
    path = "android";
    #else 
    
    #if __IOS__ 
    path = "iOS"; 
    #endif 
    
  • PCL

    If you want to do platform specific code, you can’t do something like #if __ANDROID__. You can create an interface to solve this and then implement it in each platform projects.


I’m doing some research after this event and found some useful links, here they are

Hello Kotlin, Nice to Meet You!

My first experience using Kotlin to make a simple android app Continue reading

A Good Git Branching Model #CodeSharing

Published on February 05, 2017

Introduction to TF-IDF

Published on January 25, 2017