Nov 28Infectious EnthusiasmSmiles change the world. I was once told by a partner at a large financial services institution that I have “infectious enthusiasm.” When I first heard this, I was confused. …Java4 min readJava4 min read
Nov 27Don’t make me scrollI want to read your code… not travel through it. I want code for a single Java method to fit on one screen. I do not want to scroll vertically or horizontally when I am looking at a single method. Making me scroll is an opportunity for me to lose…Java1 min readJava1 min read
Published inStackademic·Nov 26Zombieland Implementation Pattern: Double TapHave you seen the movie Zombieland? There are rules for surviving in Zombieland. Rule number two is called Double Tap. When a zombie is attacking you, don’t get stingy with bullets. Shoot twice! I’ve seen the Double Tap pattern used occasionally with Eclipse Collections over the years. …Java3 min readJava3 min read
Nov 25Why do you write like you’re running out of time?I learned something important during the pandemic, so I wrote it down. I watched Hamilton the Musical on Disney+ back in July 2020. The musical was simply amazing. I felt like I had been missing this in my life for a very long time. The title of this blog is…Java3 min readJava3 min read
Nov 23My Journey to and as a Java ChampionReflecting on my Java Champion story and its evolution after five years. A marker along the journey, not the destination It was truly a great honor for me to be selected as a Java Champion in July 2018. By the time I was selected, there were around 265 Java Champions, out of an estimated 9–12 million Java developers.Java6 min readJava6 min read
Published inJavarevisited·Nov 19How do you know if a Java Collection is Mutable or Immutable?You don’t. You can’t. You won’t. I wrote this blog to help Java developers understand the benefits of differentiating between mutable and immutable collection interfaces. Java is an amazingly successful programming language and has been around for almost three decades now. The Java Collections framework is one of the most…Java10 min readJava10 min read
Published inStackademic·Nov 14Comparing Set Operations between Java and Eclipse CollectionsHow to find the union, intersection, and difference of Sets in Java Stop the Mutations! I first learned how to find the union, intersection, and difference of two sets in Java by using addAll, retainAll, and removeAll. What always confused me was why I needed to mutate a Set to be able to…Java6 min readJava6 min read
Published inBetter Programming·Nov 6What If Java Collections Had Eager Methods for Filter, Map, FlatMap?Exploring high-protein iteration patterns, without any excess carbs — Three years ago, I worked with Nikhil Nanivadekar on an experimental collections framework in an open source kata repository, in preparation for a presentation we gave to the JCP Executive Committee in April 2020. …Java18 min readJava18 min read
Oct 21CV vs. READMERejecting single page corporate distillation of the human experience. Summary vs. Index I’ve become indifferent on the importance of Curriculum Vitae. My CV tells you where I claim to have worked, for how long, corporate titles I have amassed, where I went to school, and skills I claim to have some proficiency in…Readme3 min readReadme3 min read
Published inJavarevisited·Sep 25How to get an item from a Set in JavaThe mystery of the missing get method on the Java Set interface. How to get from a Set with no get? The Set interface in Java does not have a get method. This has been the case since the Set interface was added in Java 2. The Map interface on the other hand has a get method.Java5 min readJava5 min read