014 - Effective Java for Android developers : Item 1

014 - Effective Java for Android developers : Item 1

Avatar

We've mentioned the book "Effective Java" by Joshua Bloch quite a few times on previous episodes. At this point, everyone knows they should have read this book (quadruple times). But it's a dense read and everyone could use a reading buddy. Also, what does Effective Java look like through the eyes of an Android developer?
In this second installment of our Fragment (a.k.a mini-episode), we thought we'll do our listeners a favor and help with that reading. We introduce the very first of these venerable "Items": Consider providing static factory methods instead of constructors.
Stay tuned for more items from our "Effective Java for Android developers" Fragment series.
Show notes for this episode:

Effective Java (2nd Edition) - Joshua Bloch

Consider providing static factory methods instead of constructors

static factory method makeText for Toast class [androidxref.com]
ObjectAnimator [androidxref.com]:

.ofInt [androidxref.com]
.ofArgb [androidxref.com]
.ofFloat [androidxref.com]

Adv

Comments

Avatar