排序
ELI5: Why cast to an interface?
ELI5: Why cast to an interface?,So, I am super new to OOP and Java--specifically, just finishing up my first semester of it. I understand interfaces are akin to contracts, and unde...
Avoid getters and setters whenever possible
Avoid getters and setters whenever possible, Noooo!!! Don't click that generate getters and setters option!!! I like the rule: 'Don't use accessors and mutators.' Like any good rul...
On the subtleties of OOP
On the subtleties of OOP,It is not a overstatement to say that I am an enthusiast when it comes to object orientation. A well crafted object oriented system is a piece of art. Howe...
Design Patterns: Strategy Pattern
Design Patterns: Strategy Pattern,originally posted on my blog at henricodesjava.blog Hello world! I'm currently reading Head First Design Patterns: A Brain-Friendly Guide, and i...
How do you choose between an interface and abstract class?
How do you choose between an interface and abstract class?,I have been asking this question in interviews for some years now. I get to hear a lot of interesting answers from folks....
Java is Unsound: The Industry Perspective
Java is Unsound: The Industry Perspective,Recently Nada Amin and I discovered that Java and Scala are unsound. We submitted the finding and related discussion to OOPSLA, an academi...