Thursday, January 13, 2005

OOPs, part II: Lights are on, Coffee's hot

I started this entry intending to explain my sudden burst of understanding OOP and Procedural and their differences. It started getting long and windy, so in the interests of being cohesive, I'm going to break it up into a series of entries that will all have titles beginning with "OOPs, part n" and therefore make much more sense.

That's a good thing.

So I left off before with Sean's statement: You're thinking procedurally...

I was shocked into silence... which my friends will tell you doesn't happen often. What I realized in that moment was this:

OOP is concerned with seeking and documenting all aspects of a system, assigning needed functionality to those aspects, and creating connectors between them. In other words, OOP is a combination of PROCESS and CONTAINERS. A well-done OOP model will implicitly create each component needed to do work XYZ and all components necessary to move that work from point A to point B. Transfer objects, business objects, event objects, and any number of other concepts are combined to create a solid design that is modular enough to be maintainable and simple enough to be implemented.

PP takes a much more immediate view of things: I only need to to XYZ so I'm going to start at X and finish at Z and then I'll be done. The thing is if we add X.1 to the mix, we have to find ways to redirect the exit point of X to our .1 addition, then send that to Y... even though Y was purpose-built to listen to X. It's the same thing that OOP does, but it does it much more directly... so it's not as likely to be cohesive and much more likely to be strongly coupled to it's predecessor and it's successor.

The difference? In some respects, very little. Very similar code will be executed, very much the same amount of work is done. OOP isn't a lot more work, it's just a different approach to the same set of needs. In other respects, they're VERY different. OOP mandates that you know the system under examination (also known as the Universe of Discourse, or UoD), and that you model your application to an abstraction of the process.

What my view of OOP had been previous to my revelation consisted of a procedural use of classes to encapsulate functionality, which could then be used against the procedure from start to finish. What I realized was that OOP isn't concerned with procedure at all, because the procedure is endemic to the model. The model will, if correctly done, imply the process by nature. OOP is concerned with finding all the static elements in a system and then connecting them, but connecting them based on the collective experiences of thousands of professionals that get condensed into "Best Practices." I'm using the Manager/Factory design pattern to develop application based on the MachII framework with a model-view-controller (MVC) methodology, and having done this once I can say with conviction that it's nothing like I thought, nor is it even 1% as hard as I was afraid it would be.

In fact, since I KNOW that my model exists before I start working on a site, I am more comfortable, more secure, and less frustrated. Personally, my transition to OOP represents a major leap forward in my enjoyment of my work and the nature of the work I do. Not to mention that I see now how larger, even MASSIVE projects are no longer intimidating.

People, by nature, are procedural creatures. "Make coffee" means a set of steps, and few people ever stop to describe the coffee maker to themselves. If I said to someone "I have described my coffee scoop, but it's not really a coffee scoop until I pick it up" they'd think I was crazy. But, in terms of classes vs. objects, a class is a description of what an object will be once it's been instantiated... so for those of us who came to CF development, OOP seems like a waste of time and a pain in the butt. I can attest, however, that while OOP takes some effort to understand, (because it feels threatening to a naturally procedural creature) it pays huge dividends in productivity and stability. OOP isn't about making anyone do things they don't want to do, it's about deeper understanding of what we're doing and preventing mistakes, misunderstandings, and waste.

And I have to say that after having developed a set of classes to do XYZ, application architecture is not only fun, but everything about what I do as a developer is about to improve. My projects will go more smoothly, the end results will be more solid and supportable, I'll finish faster and have a better understanding of what I'm trying to accomplish, and I'll be able to expand it as time goes on.

So, this being part 2 in a series of what I expect to be 4 or maybe even 5 entries, I'll leave it off here for now and simply state that I hope this has helped someone understand the differences between what I used to do and what I do now. Maybe even incorporate some of it into their own workday. If so, I've done something right... and that just feels good.

Have a fantastic!

Laterz...

16 Comments:

At October 3, 2005 7:41 AM, Blogger Kevin Jackson said...

Hey, great blog! Sounds like you need coffee house.

I love coffee and did a keyword search on coffee house and came up with your site. The association was close, anyway. Take care! Dave

 
At October 25, 2005 3:59 PM, Anonymous Anonymous said...

That sounds great, but I've seen very different opinions of shop vacuum

 
At November 16, 2005 6:21 AM, Blogger Willie said...

Hey. Just browsing getting some ideas for my site. If your interested you can visit my site. Payday Loans , Cash Advance

 
At November 20, 2005 11:44 AM, Anonymous Anonymous said...

Hey. Just browsing getting some ideas for my site. If your interested you can visit my site. Payday Loans , Cash Advance

 
At November 22, 2005 3:26 AM, Anonymous Anonymous said...

How did they do that without anybody knowing? Payday Loans Cash Advance

 
At November 22, 2005 5:00 PM, Anonymous Anonymous said...

How did it work when they got it updated? Cash Advance

 
At February 16, 2007 6:19 AM, Anonymous Anonymous said...

lolita chin
lolitas 13
lolitas kid
free anal sex
lolita picture
lolita suck
lolita cp terra loltobbs ftp lol
lolita vip lolitas virgins bbs
lolita lolly fuck movie children
lolita chin
lolitas 13
lolitas kid
free anal sex
lolita picture
lolita suck
lolita cp terra loltobbs ftp lol
lolita vip lolitas virgins bbs
lolita lolly fuck movie children

 
At February 24, 2007 8:26 PM, Anonymous Anonymous said...

disney cruise panama canal

 
At February 28, 2007 1:53 AM, Anonymous Anonymous said...

preteen underage video could feel him rising, and could feel his hands on her preteen 8 15 pic as he guided her to lay on her stomach.
Shifting her position, Jack pulled on her hips, raising her ass up into the air,
his hands carressing the cheeks of her buttocks and then grasping her hips firmly, his hardness pressing once more into her warm folds.
She moaned as he slammed suddenly into her, the motion starting a chain reaction that continued as he violently pounded into her willing cunt.
His fingers gripped into her hips harshly, pulled her toward him, and as he thrust into her she felt herself propelled in the other direction,
only to be pulled quickly back. Her breasts swinging freely, preteen angels felt a tingling pain in her nipples as her breasts bounced in time to his thrusts.
She moaned as she felt him tense, arching her back and trying to further expose her sex, trying to take as much of him into her as possible.
To the side, in the mirror, she could see his figure above her, his head tilted back as he groaned his pleasure.
Emily.... Oh, God... Emily!
"Come, Jack... Please, Come..." preteen hidden pic pleaded, and she found that the words were more for her than for encouragement.
She wanted to feel the hot rush of his seed, wanted to drink it inside herself and hear his moans of pleasure.
Emily... Emily...
He slammed almost painfully into her, and preteen sex pic galleries found herself nearly screaming outloud at the wonderful abuse.
He filled her so completely that she felt nearly impaled; stretched her so intensely that she feared to be torn.
His fingers dug into her flesh, and she could hear him slapping against her as his moans began to rise.

 
At March 5, 2007 9:05 PM, Anonymous Anonymous said...

WY cheap flights

 
At March 6, 2007 7:21 PM, Anonymous Anonymous said...

Hello!
It is really nice site. I like it
Look it:
free+hardcore+sex+video
free+hardcore+sex+video
http://12351.freegoodies.nl/forum_an.php?forum=12351
pinkworld
pinkworld
http://pinkworld1.21.forumer.com
couple+erotic+fetish+guide+sex
couple+erotic+fetish+guide+sex
http://coupleerotic.jconserv.net
free+sex+trailer
free+sex+trailer
http://12350.freegoodies.nl/forum_an.php?forum=12350
gay+porn+movie
gay+porn+movie
http://gaymovie.21.forumer.com
free+sex+chat+rooms
free+sex+chat+rooms
http://sexchat.jconserv.net

 
At March 12, 2007 5:14 PM, Anonymous Anonymous said...

I knew my mom was hot from the time I hit puberty. As soon as I began masturbating I was fantasizing about her. And later, in high school all the guys were always over to use my pool in the summer, hoping she would be home from work or be tanning on the weekends. Mom rarely disappointed too, sunning herself in a modest two-piece on the weekends while all my male friends gawked at her. If she ever knew she was the neighborhood hot mom she never gave any indication.
The older I got the more I thought about mom and every girl I dated was compared to her. I had a steady girlfriend through high school, but a careful eye would have seen that she was just a younger version of my mom and when I was with my girlfriend I often imagined she was my Mom. Not that she needed a younger version of herself. Mom was twenty-two when she had me, so when I was in high school she was in her thirties and looked like she could have been in her twenties. Mom had been a beauty queen in high school and the years hadnÒt diminished her looks one bit. Her long, sunny blond hair still fell past her shoulders, I used to play with it all the time when I was little, and her eyes still sparkled blue. And Mom has kept her amazing body. Seeing old pictures I think it got better after she had two kids. Her ass is rounder and plumper than when she was a teen and her breasts look heavier, theyÒre 36CÒs, I know from checking out her bras in the laundry, too. Sometimes thinking about Mom just makes my cock ach
e.
So anyway, IÒm twenty-two now, the same age that Mom was when she had me and sheÒs been my lover for over two years now. I found a way to make my fantasies come true when I was nineteen and away at college. They say that the meeting of all those different cultures and ideas is good. I know it was for me. Some of you may think what I did to get my Mom was wrong, but I canÒt say I have any regrets. HereÒs my story.
My freshman year at college I met this exchange student from India named free erotic sex stories. Saji was a great guy and we decided that we would be roommates during our sophomore year. When we became roommates we became the best of friends and I took him back home for a weekend. He stayed in the guest room and we had a great time. And I could tell by the way he looked at my Mom that free french very young 16 yrs old wanted her just as much as all my friends always had. But Saji was different. He actually said something. We were drinking in the dorm one night.
Dude, would you get pissed if I told you something? free galleri teen porn asked, taking a swig of his beer.
I donÒt think so. Try me. I replied.
Well, I have not been able to stop thinking about your mother. She is such a hottie.
I didnÒt know what to say, so I agreed.
She came to check on me the first night, she was standing in the doorway and I could see right through her nightgown. I felt really bad about thinking of your mother that way, but I couldnÒt help it.
I knew just the nightgown he was talking about. It always drove me crazy too. I tried to make him feel better, and maybe me too a little. If you think you feel bad, think how I feel. IÒm her son!
What? You think your mother is hot too? free gay anal was very surprised.
I had told him a little so I didnÒt see what there was to loose by telling him the rest. Dude, IÒve been fantasizing about my mom since I was a kid. How could I not? SheÒs like a goddess. free gay sex nodded his agreement. Sometimes I think I am doomed to never be completely happy with another girl.
So would you? You knowÅ I thought I knew what he meant, but didnÒt say anything. If you could, Saji continued, would you be with her?
IÅIÅuh, hell, of course I would. As weird as thatÒs supposed to be, I would in a heartbeat. Just thinking about it got me hard. But dude, there is no way she would ever even think about it. She loves my dad way too much. That part was true. My parents acted like they were as in love as the day they met. My dad worked hard and that meant being on business trips a few days every month, going to some regional office or another and every time he came back I would be able to hear my parents making love from down the hallway. My mother was so loud every time she came. Believe me, that had provided more fodder for fantasy than a hundred pornos could. And anyway, she would probably hate me, think I am some disgusting little freak if she knew how I feel.
There was a glint in SajiÒs eyes now. What if I could do something to help you? If I could make your fantasy come true, would you do it then?
I had no idea what he was talking about. It was all academic, so I said, Sure.
Then this is your lucky day, friend. free incest hentai went on to tell me how back in India his family was well-regarded herbalists and medicine men and that when his father came to this country he brought much of his knowledge with him. Saji had been studying with his father for as far back as he could remember his father had been mixing up elixirs that healed the family far faster than western medicine had to offer. But what Saji had to help me was not a medicine, he said. It was something his father would not teach him and Saji had only been able to learn by sneaking into his fatherÒs journals. What was it? Now that Saji had teased me I had to know what he was talking about. There was a mixture of powdered herbs that when combined acted like a psychotropic agent. What the hell was that, I asked him. Saji smiled and simply said, Mind control.
YouÒre out of your mind. What, am I going to hypnotize my mother into sleeping with me? I snorted.
No, itÒs nothing as clumsy as you would see in a movie, Saji told me. This, he said, worked over time. Several weeks to a month, depending on how strong-willed the subject was. Well, I knew Mom was pretty strong-willed. The subject did not turn into a zombie and best of all they had no idea what was happening. As far as the subject was concerned all of their thoughts and feelings were coming from them.
So why are you offering me this ancient family secret? I asked. There had to be a catch.
Because youÒre the only person here whoÒs truly been a friend to me. And, obviously I expect you to tell me every detail.
I donÒt know why I made the show of struggling over my decision, but I did. After a few minutes of silence I told Saji, Okay, what do I have to do?
When Saji went home for Spring Break he mixed up some of the herbs. Of course he wouldnÒt tell me what was in the mixture he brought back, but he assured me that it wouldnÒt do anything to hurt my mother. He handed me a big ziplock baggie of something that looked like green tea, but ground up more finely, and some written instructions, along with a vial of an amber oil. Saji said it had a very slight, bitter taste, but depending on what I slipped it into she would never notice. The oil was the activator. It was to be used after the herbs had softened Mom up. Lucky for me Mom has a cup of tea every evening after dinner, Saji said that should work perfectly because it would probably start kicking in when she was ready for bed.

 
At March 25, 2007 7:41 PM, Anonymous Anonymous said...

Hi all at cfobjective.blogspot.com!
Make money with unusual business ideas. For example
Bye

 
At March 27, 2007 6:19 PM, Anonymous Anonymous said...

international airline tickets

 
At May 12, 2007 1:38 PM, Anonymous Anonymous said...

odd comments?

Jon
Knee Surgery Video

 
At September 11, 2007 8:16 AM, Anonymous Anonymous said...

Cool Sites!
http://buy-valium.awardspace.com
http://adult.wtcsites.com
http://rain.prohosting.com/tireshop
http://christmas-nightmare.freewebspace.com
http://cheaplaptop.traficexperts.com
http://toothwhitening.searchtrafficwizard.com
http://puntacanavacation.searchtrafficwizard.com
http://hotelvenice.searchtrafficwizard.com
http://dragonballz1.freewebspace.com
http://cingular.741.com
http://southbeachdiet.741.com
http://airfare1.white.prohosting.com
http://myspacegenerator.250free.com
http://cosmetology.bookst.info
http://bluetoothheadset.0catch.com
http://freewebs.com/allergytreatment
http://cosmetology-school.blogggest.com
http://freewebs.com/evanrachelwood
http://hertzcarrental.250free.com
http://buy-tramadol-1.100webspace.net
http://cheaplaptop.freewebspace.com
http://toothwhitening.freewebspace.com
http://puntacanavacation.freewebspace.com
http://hotelinvenice.freewebspace.com
http://cheapfuton.freewebspace.com
http://ionamin.freewebspace.com
http://ccart.freewebspace.com
http://travelcard.1sweethost.com
http://rhodiola.angelcities.com
http://poker1.funpic.de
http://m.domaindlx.com/gamb
http://transcred.freehostia.com
http://www.dubhot.port5.com
http://kitchenmixed.tripod.com
http://alarmsys.proboards102.com
http://construct1.funpic.de
http://homeins.freehostia.com
http://floorhardwood.bravehost.com
http://balancecred.bravehost.com
http://dragonballz1.741.com
http://vendingcandy.tripod.com/
http://pentcredit.angelcities.com
http://lumberwood.tripod.com/
http://dragonballz.usaroyalcasino.com
http://megasexshop.bka.ru
http://dragonballz2.funpic.de
http://suzukigrandvitara.tripod.com
http://cardonation.tripod.com
http://www.freewebs.com/enterprisecar
http://budgetcar.741.com

 

Post a Comment

<< Home