Calculating Batting Stats - Filter, FlatMap, and GroupBy

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....

2021-10-23 · 5 min · Michael Fazio

'Kotlin and Android Development featuring Jetpack' Videos

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 ...

2021-06-26 · 1 min · Michael Fazio

ABL Push Notifications

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....

2021-04-16 · 11 min · Michael Fazio