Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Kotlin language #107

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions kotlin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
lang: Kotlin
syntax: kotlin
title: Kotlin is a statically typed, object-oriented programming language that is interoperable with the Java virtual machine (JVM).
author: OverRevvv
---

```kotlin
fun main(args : Array<String>) {
println("Hello, World!")
}
```
## 📚What is Kotlin?

[Kotlin](https://en.wikipedia.org/wiki/Kotlin_(programming_language)) is a statically typed, object-oriented programming language that is interoperable with the [Java virtual machine (JVM)](https://en.wikipedia.org/wiki/Java_virtual_machine), Java Class Libraries and Android.

The Kotlin programming language was originally designed to improve the Java programming language and is often used in conjunction with Java. Despite being the preferred development language of Android, Kotlin's interoperability with Java has led it to be used with many application types.

## 🤔 Why to use Kotlin?
- **Expressive**: Kotlin's concise syntax makes code easier to read and write.
- **Safe**: Kotlin's null safety features help prevent common errors.
- **Interoperable**: Kotlin works seamlessly with Java, so you can reuse existing code and libraries.
- **Fast**: Kotlin compiles to bytecode, so it's as fast as Java.
- **Multi-platform**: Kotlin can be used to develop apps for Android, iOS, desktop, and the web.

## 🛠️ Setting up Kotlin development environment

- Install the [Java Development Kit (JDK)](https://en.wikipedia.org/wiki/Java_Development_Kit). Kotlin runs on the [Java virtual machine (JVM)](https://en.wikipedia.org/wiki/Java_virtual_machine), so you need to have the JDK installed on your system. You can download the JDK from the ] [Oracle](https://www.oracle.com) website.
- Install the [Kotlin compiler](https://kotlinlang.org/docs/command-line.html#snap-package). You can download the latest version of the Kotlin compiler from the [Kotlin](https://kotlinlang.org/) website.
- Set up your `PATH` variable. On Windows, you can do this by editing the Path environment variable. On macOS and Linux, you can do this by editing the `PATH` variable in your `.bashrc` file.
- Create a new Kotlin project. You can do this using the Kotlin compiler or using an IDE like IntelliJ IDEA or Android Studio.


## 💻 Popular Kotlin IDEs/Editors

- [IntelliJ IDEA](https://www.jetbrains.com/idea)
- [Android Studio](https://developer.android.com/studio?gclid=EAIaIQobChMI-8qYzarugQMVHAp7Bx3ecQGgEAAYASAAEgI28_D_BwE&gclsrc=aw.ds)
- [Eclipse ](https://www.eclipse.org/downloads/)
- [Visual Studio Code](https://code.visualstudio.com/)
- [Sublime Text](https://www.sublimetext.com/)

## 😎 Some cool projects in Kotlin
- [Coursera Mobile app](https://play.google.com/store/apps/details?id=org.coursera.android&hl=en&gl=US)
- [Evernote](https://play.google.com/store/apps/details?id=com.evernote&hl=en&gl=US)
- [Netflix](https://play.google.com/store/apps/details?id=com.netflix.mediaclient&hl=en_IN&gl=US)
- [Pinterest](https://play.google.com/store/apps/details?id=com.pinterest&hl=en_IN&gl=US)
- [Uber](https://play.google.com/store/apps/details?id=com.ubercab&hl=en_IN&gl=US)

## 📑Conclusion

Kotlin is a powerful object-oriented programming language that supports multiple platforms and runs on JVM. It is the first choice for many developers for Android development. It has a great community and many companies are shifting toward Kotlin from Java which means more opportunities are getting generated for Kotlin developers. It is gaining more and more popularity and it has the ability to interoperate with Java.