Matthew MichiharaAdventures in aspect oriented programming with AspectJI’ve recently become aware that Python has a @lru_cache function decorator that conveniently caches the maxsize most recent calls based on…Dec 14, 2018Dec 14, 2018
Matthew MichiharaScala tail call optimizationConsider the following recursive function that computes n!.Jan 18, 2018Jan 18, 2018
Matthew MichiharaScala foldsI (and probably some other people) used to think Scala’s fold / foldLeft /foldRight methods were pretty esoteric. While you can use fold to…Jan 7, 20181Jan 7, 20181
Matthew MichiharaA cool enum Parcelable techniqueI recently started making my enums implement the Parcelable interface for my Android models. It requires a bit more upfront work but I…Dec 13, 2016Dec 13, 2016