Beneficial Results: Code Reuse

I don't remember exactly where or who, but writing re-usable code was impressed upon me as an important thing I now completely disagree with that. Do not write reusable code. One of the worst things you can do when writing code is to make it "re-usable" before you have multiple uses. I tried so much to make things re-usable. I mostly tried to make it as non-coupled to [Read More]

Teach Yourself MicroObjects: Output the Data

Encapsulation - it's a huge part of what allows us to be highly effective developers. It's what MicroObjects is about. Encapsulation is the highest thing to strive for when striving to write good code. If we encapsulate our data so effectively that we can never just access the data... how can we get the data? The basic answer is that you can't. The data is never yours to retrieve from [Read More]

Teach Yourself MicroObjects: Add Two Ints

I'm working on ways I can share the practices and mindset that allows me to create MicroObjects. One of the suggestions I've gotten from a co-worker, John, was to create as simple of a project as possible and show my steps to breaking it into MicroObjects. FizzBuzz as a project is too complicated. There's a lot that goes on through the course of implementing as MicroObJects. Needs to be SIMPLER. [Read More]

Book Review: Java by Comparison

I got Java By Comparison from Amazon a while ago. I wasn't impressed with what my initial page flipping showed me. I skimmed it and largely evaluated based on name and example code. Feel free to ignore my review based on the fact I skimmed. Any Code Crafter book has to have two things for me to consider it worth purchasing AS a code crafter book. No Getters. This advocates [Read More]

Technical Practices: Never Return Your Data

No Getters That's the normal form of this technical practice. No Getters There's some uncertainity around what "No Getters" means. OK, there's two versions of it. Yegor Bugayenko in Elegant Objects Vol. 1 says, It's all about prefixes That's section 3.5.3 in Elegant Objects Vol. 1. I very strongly disagree with it. When it's all about the prefix, then you're not effectively encapsulating behavior. If you're [Read More]