Skip to main content

What the Heck is Kotlin???

What the Heck is Kotlin ???


Programming is that type of Daily Soap on Indian TV, which can change/update at any time of the day or any day of the year !!!


So, you have to be super ready as a developer to adapt any new language introduced in your field. And this time its for Android Developers and the freshly baked language for them is, none other than Kotlin.
Lets go through some of the things that you as a developer needs to keep in mind while even moving towards trying this new stuff.

0) What is Kotlin?

The Super Important Question Right Now!!!
 

Kotlin is an Android-compatible language that is concise, expressive, and designed to be type- and null-safe. It works with the Java language seamlessly, so it makes it easy for developers who love the Java language to keep using it but also incrementally add Kotlin code and leverage Kotlin libraries. Also, many Android developers have already found that Kotlin makes development faster and more fun, so we want to better support these Kotlin users.


1) Why prefer Kotlin over Java?



You should prefer Kotlin over Java!!! No, its not like that. But you should be clear and precised about WHY. This bold thing “WHY” can make your life easier if you continue to raise it before doing or implementing anything.
Q. Why Kotlin?
A. Basically Kotlin offers something which Java does not provide you from years of its existence. But I think this is the Job of new and different languages to come up with something that the previous or current languages does not offer.
Here Kotlin offers or you can say fixes some of the issues of Java, like
  • - Null references are controlled by the type system.
  • - No raw types
  •  - Arrays in Kotlin are invariant
  •  - Kotlin has proper function types, as opposed to Java’s SAM-conversions
  • - Use-site variance without wildcards
  • - Kotlin does not have checked exceptions
  • 2) What I have to do to get a sneak peek into Kotlin?



So the pivot of all the discussion comes to this basic point, that HOW can i get some of the Kotlin in my Environment and have some basic knowledge of it.
The Easiest way I know is this:
Step 1: Open Android Studio, Go to File -> Settings -> Plugins.
Step 2: In Plugin Section, look at the bottom section and click that “Install JetBrains plugin…” button.



Step 3: Now Search “Kotlin” or Scroll down to the letter ‘k’ and find “Kotlin” there and hit that Green Install button and let Studio do the downloading part.
Step 4: Wait…Wait…till it finishes.
Step 5: Now create a New Activity in your Android Studio and open MainActivity.java File.
Step 6: With the help of some keys of your keyboard, press Ctrl+Alt+Shift+K and it will show one dialog which says — “Convert Java Files into Kotlin” and hit OK.
Step 7: Kaboom!!! Welcome to the Kotlin and its MainActivity.kt File.

And don’t forget to collect some cashback for you to being the part of this Kudos Tutorial -
Here are some ultimate resources and links to move further in Kotlin and its environment before actually getting into the business end of it:




This is our sincere endeavor to aware developers about the latest things that they can get and they can implement if and only if they become Super Aware and read our Cool Blogs.




Comments

Popular posts from this blog

My First Android App Story

Back in  November 2013 , pursuing Bachelor in Computer Applications from  GLSICA , me and some others students from the class are forced/asked to develop our projects compulsorily in  Android or iOS  just because we were in that  top-30  list of toppers. At that time, I don’t know even the  single piece of code  in Android. I have chosen to do project in Android because I don’t have an iOS device to test our app and the configurations in my laptop. After 2–3 days of  parliamentary discussion  we’ve reached to a conclusion that we will develop the App for  TGB Cafe n Bakery . Now when you don’t know any programming language, you go to Tutorial Sites but luckily from somewhere I got one of the best collection of  Android Tutorials  by  The New Boston  of about 200 videos. And slowly and gradually I get into this  incredible environment  of Android Programming with layouts and Java fi...

That Winning Moment!!!

That Winning Moment!!! You are just a thought away from the fact that the penultimate thing we all want in our career is that winning moment and the motivation to carry that winning momentum all through outside and inside our career span. Let’s take a sneak peek of what can be some of the greatest winning moments. * That Bird who assembles the Nest: Have you ever thought about that little bird who is continuously collecting those tiny little wooden sticks to assemble or make home for her young ones to keep there and feed there. How great that  moment  will be for that bird, when she place that final wood stick on her assembled nest to finish that small yet hardworking activity. The bird can die for that type of winning moment!!! * That college boy who got placed in an interview: Everyone of you have definitely been through that phase of your graduation or school-life where you got selected for sitting in ...

The Positives of Terrorism

The Positives of Terrorism From this ultimate post I wanna provide you with some positives of all the terrorists who are spreading violence all across the country, the continents and the world. The reason behind is even not exactly known to those terrorists, that are wandering around with weapons. Let’s start firing the positives: Positive#1 — Making Families Come Together Those hardworking terrorists kill anyone from any country, cast or religion and think that they are getting successful in destroying families altogether but those silly humans don’t know that they are actually making those families come more closer than ever by killing their loved ones. Yes I know this is sad-very-sad and heart-breaking especially for those affected families and their members, but if you take any positive from this situation than you can realise that those families are becoming emotionally more healthier than anybody else. Positive#2 - Making Citiz...