This article looks at many categories of Java defects that Kotlin prevents in addition to null safety. Kotlin showed a surprising impact on productivity.
This article looks at many categories of Java defects that Kotlin prevents in addition to null safety. My first article (5 cool thing about Kotlin) provided a brief introduction to Kotlin and showed a surprising impact on productivity.
It’s important to realize the difference in value in fixing a defect in one class versus preventing an entire category of Java defects from occurring in any class.
Blockchain is a public record of transactions. It’s also distributed, so instead of one person controlling everything, there are thousands of computers around the world connected to a network, and these thousands of computers together come to an agreement on which transactions are valid.
A blockchain, originally block chain,is a continuously growing list of records, called blocks, which are linked and secured using cryptography. Each block typically contains a hash pointer as a link to a previous block, a timestamp and transaction data.
Attempting to explain the advantages and disadvantages of blockchain technology, in it’s current format, for developing solutions.
Over the last 6 months, we’ve been attempting to pull apart blockchain, from concept, to economics. This article is designed to record some of our thoughts about blockchain and why it’s useful, or not. If we have something wrong, inaccurate or out of date, let us know in the comments!
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.
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.
While some content on writing web applications in Kotlin has been published, the niche of writing browser extensions has seemed to be ignored until now. That’s why in this post we are going explore the process of writing a simple extension for Firefox using Kotlin JS.
We proceed through the wizard until the empty project is created and opened.
As the next step, we will enable the Dead Code Elimination plugin for KotlinJS. This is necessary because a Kotlin JS program needs to bundle the Kotlin stdlib which is over a megabyte in size. However, we can reduce the size of our compiled code drastically by removing code that’s never getting called.
To enable the plugin, simply add the following line to the build.gradlefile.
apply plugin: ‘kotlin-dce-js’
Creating the extension manifest
In the next step, we add the manifest file which is required for a Firefox extension. This fileis called manifest.json and resided in the root directory of our project. The file should have the following content.
“name”: “Kotlin Borderify”,
“description”: “Adds a red border to kotlinlang.org”,
In this file we declare that our extension will inject a content script in any website matching the pattern *://kotlinlang.org/* . The necessary script files are are the Kotlin stdlib kotlin.js as well as our code in the kt-borderify.js file.