063: Effective Java for Android Developers – Item #13: Minimize the accessibility of classes and members

In this mini-Fragment episode, Donn talks about Item #13 of the Effective Java series – Minimize the accessibility of classes and members. You’ll learn why it’s important to limit the access on your public API, how it can help you with development and performance. You’ll also learn how changing a public API can affect the consumers of your API, for good and bad.

Download directly

Show Notes

Sponsor

Contact

Transcript

Donn Felker: Today, I’m going to talk about Item #13 from Effective Java, by Joshua Bloch. For those of you who are just joining us, Kaushik and I are covering all of the items inside this book in relation to how they apply to Android developers. We’ve already gone through the first 12, so I’ll be talking about #13: Minimize the accessibility of classes and members.

Joshua puts this very well right out of the gate, so I’m going to read this verbatim:

Continue reading 063: Effective Java for Android Developers – Item #13: Minimize the accessibility of classes and members

062: Effective Java for Android Developers – Item #12: Consider Implementing Comparable

In this mini-Fragment episode, Donn talks about Item #12 of the Effective Java series – Consider Implementing Comparable. You’ll learn about how you can use the Comparable interface to give your code the extra sorting boost it needs. Work with Arrays.sort(), Collections utilities and even sorted data structures. Donn breaks down what it takes to implement the compareTo method of the Comparable interface.

Download directly

Show Notes

Sponsor

Contact

058: Effective Java for Android Developers – Item #11: Override clone Judiciously

In this mini-Fragment, Donn talks about Item #11 of the Effective Java series – Override clone Judiciously. You’ll learn about the extralinguistic behavior of clone and the Cloneable interface. Clone and Cloneable are very special, and this episode helps explain the nuances.

Download directly

Show Notes

Contact

044 – Effective Java for Android Developers – Item #10

In this mini-Fragment, Donn talks about Item #10 of the Effective Java series – Always Override toString. You’ll learn why it’s important for your own sanity, future developers, and overall developer happiness.

This episode is sponsored by Hired.com.

Download directly

Show Notes

Sponsor

Contact

034: Effective Java for Android Developers – Item #9

In this mini Fragment, we introduce Joshua’s ninth Item. After the last somewhat mind boggling item, this is a much welcomed simple, practical yet important one: Always override hashCode when you override equals.

Donn goes into the importance of implementing hashCode and why it’s so important to override it for maintaining harmony with the equals method. Also 42 and the answer to life ? He then goes into some tips on implementing a good hashCode and a standard recipe for the same.

Go forth and override them hashCodes!

Download directly

This episode is brought to you by Rollbar. Go to rollbar.com/fragmented to get their Bootstrap plan for free for 90 days. Stay tuned for more items from our “Effective Java for Android developers” Fragment series.

Contact