A long time ago in a blog post far, far away… Andy wrote about Han Solo Encapsulation – to keep Jabba’s “system working as designed he needed to encapsulate his system behind... 更多内容 >>
Han Solo Revisited 13
- 类别:
- OOAD
A long time ago in a blog post far, far away… Andy wrote about Han Solo Encapsulation – to keep Jabba’s “system working as designed he needed to encapsulate his system behind... 更多内容 >>
Let’s send some emails!Imagine you write a function that sends an email to a customer. Your initial function call might look like this: ... 更多内容 >>
Well, it's that time of year, Christmas, Hanukkah, Kwanzaa, Ramadan, Winter Solstice, or you know.......Friday. You deserve the gift of a blog post. Here's a nugget of object oriented goodness in... 更多内容 >>
A while ago we discussed a good reason to appreciate and use MATLAB's model for properties. It had to do with encapsulation if you remember, and we discussed how MATLAB's properties are inherently encapsulated, preventing the need to write a bunch of boiler plate setters and getters.... 更多内容 >>
You may have heard some buzz lately about how MATLAB Central is celebrating its quinceañera. Indeed the event is worth a fiery fiesta, and you should definitely check out all of the activities MATLAB Central is hosting to celebrate. There are games, prizes, and all sorts of shenanigans to procrastinate with. You only get one 15 year birthday, and we are trying to make it a good time.... 更多内容 >>
Han Solo was a good guy. He was however unfortunate at times.... 更多内容 >>
What can we learn about software from an ice cream shop? Quite a bit apparently. It was in the early 70's that Steve's Ice Cream opened and introduced the world to the notion of mix-ins. The idea was... 更多内容 >>
Sometimes, Java® bugs me.Don't get me wrong, in many ways it is a beautiful language full of elegant structure and all the tools you need to help drive robust architectures. However, the flipside... 更多内容 >>
Last time we had a small discussion about the merits of keeping inheritance hierarchies shallow and avoiding the creation of deep, multi-level structures. This is all fine and dandy, but how do we... 更多内容 >>
The conventional wisdom these days seems to be that it is better to go deep, not wide. Whether this is in education, marketing, or general approaches to focused living, there seems to be an theme these days that if you favor breadth over depth the result will be shallow, without substance, and spread thin. The generalist it seems has seen better days in the court of public opinion. Is that true in life? I dunno, perhaps.... 更多内容 >>