andrefrsousa Profile Banner
André Sousa Profile
André Sousa

@andrefrsousa

Followers
83
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
Don't wanna be here? Send us removal request.
@andrefrsousa
André Sousa
2 years
Thread: Star projection in Kotlin 🌟💻. 1/ The star projection operator (*) in #Kotlin is a powerful feature that allows for more flexible and concise code when working with #generics. It can be used to indicate that a type parameter can be any type.
2
0
5
@andrefrsousa
André Sousa
2 years
RT @kotlin: 📢 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 a….
0
145
0
@andrefrsousa
André Sousa
2 years
“What’s new in Android Performance — Google I/O 2023 edition” by ⁦@keyboardsurfer⁩. #AndroidDev
Tweet media one
0
1
4
@andrefrsousa
André Sousa
2 years
RT @finalfantasyxvi: Two months. #FF16
Tweet media one
0
2K
0
@andrefrsousa
André Sousa
2 years
RT @kotlin: 📣 Exciting news for Gradle users!.The @JetBrains, @Gradle, and @google teams have decided to make the Kotlin DSL the default fo….
0
39
0
@andrefrsousa
André Sousa
2 years
This article from @BorisFarber is really helpful in guiding the migration to #AndroidStudio Flamingo. 👉 #AndroidDev.
1
3
13
@andrefrsousa
André Sousa
2 years
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
0
@andrefrsousa
André Sousa
2 years
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
Tweet media one
0
0
3
@andrefrsousa
André Sousa
2 years
🧵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
@andrefrsousa
André Sousa
2 years
🧵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:
Tweet media one
1
0
0
@andrefrsousa
André Sousa
2 years
🧵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:
Tweet media one
1
0
1
@andrefrsousa
André Sousa
2 years
🧵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
@andrefrsousa
André Sousa
2 years
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
@andrefrsousa
André Sousa
2 years
Just 'in case of fire' never forget these recommendations. Safety first, right?" 😂🔥💻 #programmerhumor #gitcommit #gitpush #evacuationplan
Tweet media one
0
0
1
@andrefrsousa
André Sousa
2 years
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
@andrefrsousa
André Sousa
2 years
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
@andrefrsousa
André Sousa
2 years
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
@andrefrsousa
André Sousa
2 years
3/ This is useful when you want to create a collection that can hold objects of different types. #coding #programming.
1
1
1
@andrefrsousa
André Sousa
2 years
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
@andrefrsousa
André Sousa
2 years
RT @scrcpy_app: scrcpy 2.0 is released, with audio support! 🚀
0
159
0