code smell

Getters/Setters Revisited - Validation of Order Class

This is a continuation of the post devoted to some code smells that was vigorously commented in favour of ugly, anti-OO code design :). Thanks God, I also got an interesting question regarding this problem.

Seems to me, that this topic should be discussed one more time.

How Programming Books Promote Code Smells

This rant is dedicated to code examples (found in books) that promote bad programming habits. Some of them can be counted among famous code smells.

...for God's sake, books should be educational in every aspect !

getters and setters is all I need

Yes, I have a grudge against hibernate. Yes, hibernate. Oh, it's a great ORM, I use it a lot, it's really ok. But... but if an inexperienced programmer learns from hibernate-style classes then the get/set trouble comes.

Syndicate content