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.... 더 읽어보기 >>