Posts in Kotlin

What is Android X?

Reading Time: 5 minutes

What is this new support library and why is it needed in the Android world?

Whether you’re an experienced Android developer or are new to the platform, if you have written Android code recently, it’s highly likely that you wonder what is Android X exactly. If you’re like me, most likely you don’t look into the details behind what this term means or what the difference is between it and other imports you make to your app, like the Support Library. But if you’re here, most likely you’re wondering what’s behind AndroidX. I hope to clarify some of your doubts about it.

Read More

Kotlin Basic Types – Strings

Reading Time: 4 minutes

How Strings work in Kotlin

Kotlin has five basic data types. In a previous post, we discussed the first basic type in Kotlin, numbers.

This time, the discussion will be related to strings. This time the discussion will be related to Strings.

In Kotlin, like in most programming languages, strings are groups of characters that form what we normally use as words, even though this is not necessarily true, as strings can have a group of characters that don’t make any sense and still be the same type.

Read More

Kotlin Basic Types – Numbers

Reading Time: 4 minutes

The first topic to begin exploring Kotlin are data types, in this language, they are called ‘Basic’ types, which is not exactly the same as what many developers refer to as ‘Primitives’, but this is a topic for another post. Kotlin mentions in the documentation five of these types:

  1. Numbers
  2. Characters
  3. Booleans
  4. Arrays
  5. Strings

Across this post, I will focus on giving a friendly explanation about the first type ‘Numbers‘, because, even experienced programmers (me included), sometimes get overwhelmed by the amount of information we find in the ‘official docs’.

Read More