guidanoli / rummy

Rummy Card Game
MIT License
2 stars 0 forks source link

Get rid of Null Checks #2

Closed guidanoli closed 5 years ago

guidanoli commented 5 years ago

After reading this article by Robert Brautigam on DZone, I was convinced to get rid of null checks in the code of Rummy. The article shows that these checks make code less readable and null parameters acceptable. Instead, we should deal with null as a programming error and let NullPointerException occur.