Today’s a discussion of baseball, stats, box scores, and three handy Kotlin functions.
tl;dr We cover three built-in Kotlin functions today:
filter { ... }: Return a new Collection with all the items that cause the attached predicate block to return true. flatMap { ... }: Take a List of List objects and turn it into a single List with all the items together. groupBy { ... }: Turn a List into a Map with the value from the key selector block....
I created a trio of videos as accompaniments to “Kotlin and Android Development featuring Jetpack” to give people a bit of extra info.
There’s an overview video, a “Tips and Tricks” video, and one of me nerding out about the Android Baseball League. I also recorded myself opening up the first five physical copies of the book, which is a fun little extra.
Book Overview Tips and Tricks Android Baseball League Book Unboxing ...
I’d guess most people have a love/hate relationship with notifications. Often an app will display too many notifications, either annoying users or causing them to miss important notifications (ALERT OVERLOAD). Sometimes apps will instead be cautious with their notifications and users will miss out on important events.
Either way, notifications are an essential part of a solid app experience. In particular, push notifications (ones initiated from a server) can be a perfect way to interact with your users....