It is amazing how much improved our Android development process has been, after Kotlin was announced as the official language for Android development. From people at Android, improving Android Studio to make it easier for us developers, to use Kotlin on our favorite IDE, to people at Kotlin making Anko library, to ease out the bulky operations in Android development even further with functions and extensions that simplify the time consuming things.

And now android has released a preview of another mind blowing library on which a lot of amazing people are working to make our lives a lot easier…


Photo by freestocks.org on Unsplash

PWA or Progressive web apps are web apps that help provide an app like experience to users. PWA requires modern web capabilities but can be built using vanillaJS, React, Polymer, Angular or any other framework.

A PWA brings best of both worlds as there is low friction to reach to users fingertips as it basically a web page but the experience is like an app which is immersive and with offline support. They work on every browser and and responsive to fit to varied screen sizes, maintaining an amazing user experience.

With use the loading of PWA becomes very fast…


Check out the image below for App UI screens. Don’t miss the description at the end :)

UI that creates a whole new way of sharing contacts with people you just met. Applying design thinking to every day problems. Share your solution to an everyday problem.

Don’t forget to share this post to make it reach more people.

As always follow me for more posts on tech, design and spirituality.

Find me on twitter, linkedIn, Instagram.;) Until next time.


Anko Layout Preview Tool window

This one is quickie about how to preview the layouts we make in DSL using Anko layouts. Before getting started it is probably wise to quickly go through what Anko, Anko layouts and DSL is for those who haven’t enjoyed them yet.

So Anko is a Kotlin library that helps make Android app development a pleasant experience by making development faster and code simple and concise to read. Anko layouts help us write dynamic layouts for our Android apps.

Here is a simple example activity, in which we use DSL layout instead of XML layout.

class MainActivity : AppCompatActivity() {…


Because Kotlin is fun ;P

One of the things we learn very early when learning a programming language is control flow. Usually apart from minute syntax changes, mostly the code remains same for most programming languages. But there are some interesting things in Kotlin that makes its control flow special. The different thing in Kotlin is that we can use some of the control flow statements as expressions. Why is this important? and how and when to use it? are some questions we will be answering in this post. So let’s get started!

Exploring if-else expression:

In Kotlin, if returns values which we can use to assign values…


Learning Kotlin: inline functions

Kotlin is packed with amazing features that make us fall in love with the language. One of them is high order functions which lets you pass functions as parameters as well as return functions. But the fact that they are stored as objects may make the use disadvantageous at times because of the memory overhead. The thing is, each object is allocated space in memory heap and the methods that call this method are also allocated space. Check out a high order function in below snippet:

fun main(args: Array<String>) {
var a = 2
println(someMethod(a, {println("Just some dummy function")}))
}


Images are important! They have in them the power to make the user laugh, cry, become sad, angry, happy, elated, motivated and ignorant and much more. When we decide on designing a human interface we always think of the emotions we want from the human. We also think of the message we want to convey to the human. Basically emotions are the key in design to make a user go from Ugh to AWW!

I feel sad, to say that I have also used placeholder images in designs and front-end, in past. …


You are probably thinking impossible. Come on Kotlin is like cakewalk! How could it be any simpler? Well, Haaaaave you met Anko?

Anko is a library by Kotlin which makes Android development faster and easier while making the code clean and concise. There are a lot of simple things in Android app development that we use a very often like Intents, dialogs, toasts, layouts etc but they are very bulky in code. I mean 4–5 lines of code for a simple Intent and don’t even get me started on dialogs.

If like me, you have been writing custom methods for…


Since Android Studio 3, all my new projects are in pure Kotlin! I make sure I am somehow able to use Kotlin even if it involves explaining to the client, why they would rather want to have their app in Kotlin than in Java. One of the reasons why the clients don’t want to use Kotlin is because AS 3 is not a stable build right now. By the way, there is a Kotlin support plugin for AS 2, which can be used in place. …

Rashi Karanpuria

Author of Kotlin Programming Cookbook | Android Developer | www.rashikaranpuria.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store