André Sousa
@andrefrsousa
Followers
85
Following
161
Media
41
Statuses
287
💻 #AndroidDev with a passion for clean and efficient code • 🚀 Bringing apps to life, one line at a time. #Kotlin
Portugal
Joined October 2018
📢 The Kotlin 1.9.0 release is out and the K2 compiler for the JVM is now in Beta. This release contains new language features as well as improvements for Kotlin Multiplatform and Kotlin/Native. Here are some highlights from this release: ✅ New Kotlin K2 compiler updates ✅
7
143
499
“What’s new in Android Performance — Google I/O 2023 edition” by @keyboardsurfer https://t.co/ArJ72H8HYq
#AndroidDev
0
1
4
📣 Exciting news for Gradle users! The @JetBrains, @Gradle, and @google teams have decided to make the Kotlin DSL the default for new Gradle builds, making script and plugin development easier and more consistent! 🚀 Learn more in our blog post ⤵️
8
38
188
This article from @BorisFarber is really helpful in guiding the migration to #AndroidStudio Flamingo. 👉 https://t.co/3UwHi8RH5v
#AndroidDev
1
3
12
Yesterday I watched #ShazamFuryoftheGods and I have to say, it didn't quite live up to the first film's magic. While still entertaining, it lacked the same heart and charm that made the original such a standout superhero flick. #MovieReview #DCFilms
0
0
1
Happy Father's Day everyone! Being a father has been the greatest adventure of my life, and I'm grateful for every moment. To my kids, thank you for making me a better man and for filling my life with joy and wonder. I love you to the moon and back! ❤️👨👧👦#FathersDay #ProudDad
0
0
3
🧵4/4 This code is much easier to read and understand, as the if statements are no longer nested and the return statement makes it clear what the function is checking for. #Kotlin #ProgrammingTips #androiddev #androiddevelopment #KotlinTips
0
0
0
🧵3/4 This function checks if a number is even and also divisible by 4. The `if ` statements are nested, which can make the code harder to read and understand. We can simplify the code by using the `return` statement to break out of the function as soon as the condition is met:
1
0
0
🧵2/4 By using the `return` statement, you can break out of a function or loop as soon as a condition is met, without needing to continue evaluating other conditions. For example, consider the following code snippet:
1
0
1
🧵1/4 Using the `return` statement in #Kotlin code can improve its readability by reducing the number of nested `if` statements. When `if` statements are nested, the code can become harder to read and understand, especially if there are multiple conditions. #KotlinTips #AndroiDev
1
1
7
This one made me laugh! 🤣 Why was the Kotlin code feeling depressed? Because it didn't have a companion object! #ProgrammingHumor #KotlinJokes
0
0
0
Just 'in case of fire' never forget these recommendations. Safety first, right?" 😂🔥💻 #programmerhumor #gitcommit #gitpush #evacuationplan
0
0
1
The heart-wrenching journey of #TheLastOfUs has come to an end, leaving us with a bittersweet taste. But one thing's for sure: the love and sacrifice of Joel and Ellie will stay with us for a long time. Thank you, #HBO, for bringing this masterpiece to life. #TheLastOfUsHBO
0
0
0
5/ Overall, the star projection operator is a useful feature in Kotlin that makes working with generics more flexible and concise. #KotlinProgramming #programminglanguages #appdevelopment
0
0
2
4/ Lastly, the star projection operator can be used when creating a map that can hold any type of key-value pair: val anyMap: Map<*, *> = mapOf("foo" to 42, true to "bar") Here, the map can hold a String key with an Int value, or a Boolean key with a String value.
1
0
0
3/ This is useful when you want to create a collection that can hold objects of different types. #coding #programming
1
1
1
2/ For example, you can use the star projection operator to create a list that can hold any type of object: val anyList: List<*> = listOf("foo", 42, true) Here, the list can hold a String, an Int, or a Boolean.
2
0
1
scrcpy 2.0 is released, with audio support! 🚀 https://t.co/KlfmNMjkvd
37
158
891