DEV Community

Gustavo Duarte
Gustavo Duarte

Posted on • Edited on

My first experience using Kotlin instead of Java to develop mobile Android

So Hi everyone! This is my first post here and I hope you enjoy. Like the title, I'll talk about my first experience using Kotlin instead of Java in the Android developer world in real projects. Unless 2 months I joyed with Teams android develop in my work, after that I had developed some small apps using Java unless 2 years ago and in my work.

I was working with Rust language. So, why I started the developer apps 2 years ago? and why Java? first Java was the second language I learned(first was Python) it makes it easier to started developer apps, Kotlin was started adopted from Google to Android, and second I really had interesting in how apps were created.

My first day saw code base full Kotlin was amazing and little scare, amazing because all code was easier to read special class, inheritance and polymorphism, scare because have a lot different like val and var private inlate and other thinks like functional programming features using together with OOP.

One week after that I wrote some code to project and guess I had fun too when a developer one thing with Java a lot of years I not fun more and not because Kotlin was a new Language was because Kotlin gives me more productivity, logic matter more write some getter and setter I know some IDE do this but is not same.

Today was 2 month I'm working with Kotlin and one thing it's really bad is a way you could use OOP and functional programming because is really easier you confuse some things and your code became more unreadable because of that. Another thing is the null pointer because kotlin is null safe but interoperation with Java, because that if you use some third library in java you could have a null pointer(Belive this is bad things). Thanks, everyone and I hope you like to feel free to comment too.

Top comments (4)

Collapse
 
spiritupbro profile image
spiritupbro

i think you should say develop instead of "developer" brother but interesting insight thought coz kotlin is kinda like javascript for java no semicolon and all of that

Collapse
 
gustavohd18 profile image
Gustavo Duarte

Thanks. Yes exactly.

Collapse
 
marcellusherlus profile image
marcellusherlus

Hey cool post :) if I can give you one advice.
Make a space between logic sections of your text that helps the reader a lot.

Like this.

Text

Text

Text

Collapse
 
gustavohd18 profile image
Gustavo Duarte

Thank you. I'll see that.