Thoughts on Better Kotlin Practices
I recently joined a new company to continue my career in Android development and leadership. Part of that is seeing how people code, what the team has found valuable in the past for best practices, and sprinkling some of my own ideas in as time goes on. I thought I’d share some of my thoughts here so that others can see these and consider them as well. Kotlin Best Practices Only use destructuring on positional classes Destructuring can be a really clean way to unpack data, but it should be reserved for data types where the order of fields makes intuitive sense—namely, positional classes like Pair, Triple, or when splitting a string, e.g. ...