Here is my Top three technology trends you all should look out for in your endeavors in this new year 2018, which as always, will offer you loads of new opportunities to rock this world. Being a part of this mobile app ecosystem I feel immense pride while writing this piece of article for all you visionaries and future mobile apprenuer.
Before I kick-start this article, please allow me to wish
“ A Very Very Very… Happy New Year 2018” To all you lovely readers and my well wishers.
It has been an amazing journey so far being a part of this mobile app revolution since 2006, I feel blessed to see both pre & post smartphone evolution era and having experienced the change myself being the developer, leader and now a father of my own mobility startup. So thought to analyze the trend setters which kind of will rule this new year.
Android Wear is a version of Google’s Android operating system designed for smartwatches and other wearables.By pairing with mobile phones running Android version 4.3 or newer, or iOS version 8.2 or newer with limited support from Google’s pairing application, Android Wear integrates Google Assistant technology and mobile notifications into a smartwatch form factor. It also adds the ability to download applications from the Google Play Store.
If you’re planning to make your own Wear app then i can give you list of some great Android Wear library which you can use in 2018.
A colleague approached me a while ago and asked me a question about Kotlin. What was this “Nothing type”, and what was it used for? I did not really have a good answer for him at the time.
Since then, I’ve found my answer.
In mathematics, bottom (often denoted as _|_) represents the absolute minimum value something can hold.
Nothing type has no instances. You can use Nothing to represent “a value that never exists”: for example, if a function has the return type of Nothing, it means that it never returns (always throws an exception).
When we’re talking about types, we can think of Nothing as being the absolute bottom (leaf) object of any type hierarchy.
What we can see in this diagram (figure 1) is that Nothing is the opposite of Any. While every object you will work with in Kotlin implicitly extends Any, so to does Nothing implicity extend any object that exists. This makes Nothing the ‘dual’ or opposite of Any.
Advanced Kotlin Tips on writing good Kotlin code and using what the language has to offer. There are many benefits of using Kotlin; it is concise, safe and most importantly it is 100% interoperable with Java. It also tries to solve some of the limitations of Java.
Now is a good time to consider Kotlin for your next big feature or project, because Google finally announced it to be a first-class language for writing Android apps in Google I/O 17.
So here are some advanced Kotlin tips to help you start making use of what the language has to offer and writing good Kotlin code.
Implementing lazy loaded and thread-safe singletons in Kotlin is really easy, unlike Java where you would have to rely on the complex double-checked locking pattern. And although Java enum singletons are thread-safe, they are not lazy loaded.
You are going to delete lots of lines of code! Yes, it is not a clickbait!
How do you pass your model between activities?
EventBus / Otto ?
Serializable = Reflection! Run Forest Run!!! It is terrible for Android performance.
Bus libraries like EventBus or Otto are easy to use and have good performance but after some time they cause too much complexity in your code.
Parcelable interface is great for Android performance but it has too much boilerplate.
Kotlin added parcelable support in version 1.1.4.
Android Extensions plugin now includes an automatic Parcelable implementation generator. Declare the serialized properties in a primary constructor and add a @Parcelize annotation, and writeToParcel()/createFromParcel() methods will be created automatically.
Android Timeline View Library (Using RecyclerView) is simple implementation used to display view like Tracking of shipment/order, steppers etc. Previously we discuss Android Vertical Steppers library which may display a transient feedback message after a step is saved.
And today we’re going to see a cool library which help you to implement that Android Timeline View in your applications.