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

Let’s keep it short….again

Let’s keep it short….again The world is full of people who are full of Fear of Failure which doesn’t allow them to move steadily and think positively. But many of them don’t know that Fear is a Big Liar. Because Fear shows you fake reality about your own self that — ”You can’t do this thing”. Instead people should fake their fear by repeatedly saying this — ”At least I can try!!!” Because there is no sense at all to not do the particular thing just because you have never done it earlier. Try Again…Fail Again…Fail Better!!!😎 Kudossss To Fearless You…

Grateful 24/7/365

Grateful 24/7/365 The super basic problem with most of us is that we are not  grateful  for the life we all are living in currently. And the super duper solution for all of our this problem is to be  grateful enough for the life that we all got. Now to do that we can follow this simple phenomenon called -  Attitude of Gratitude. Many of us don’t even know How to be Grateful? So the best answer for this is: Becoming grateful and thankful for the smallest of things in your life is the best way to achieve the  Attitude of Gratitude. What to do with so much of Attitude of Gratitude? Many people even ask this silly but interesting question - that what we will get in return or what is the outcome of showing so much  gratefulness . So the best and interesting answer for this is: Keep yourself busy and focussed on your  attitude of gratitude , which will eventually make way for disappointments ...

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 ...