[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Goal oriented programming



> > "You should go to the store unless you're tired."
> >
> > "I want to play on thursday."
> >
> > "Brush your teeth every time you eat."
>
> Of course you are right. I didn't make clear my frame of reference.
> I was thinking about real world instructions, not just everyday
> speech.
>
> Preheat oven to 400 degrees.
> Remove pizza from wrapper.
> Place directly on center oven rack.
> While cheese is not golden brown, cook. :)
>
> Lather
> Rinse
> Repeat
>
> I still contend it is more natural to analyze a sequence of
> instructions in order. To do so otherwise is prone to error
> and material for comedy writers.
>
> Shake well before opening.
>
> or
>
> Open, if you have already shaken well.

When I see this idiom, I always feel like Hawkeye in the MASH episode
where he's attempting to defuse a large bomb that's landed in the center
of the compound (approximating from memory):

Radar: Snip the red wire. (2-second pause)
Hawkeye: (Snip.)
Radar: After disconnecting the blue wire.
Hawkeye: Run.

I realize that that might just be me, though.  I'd love to see some actual
research on code readability and maintainability using this construct
rather than the usual patronizing declarations from on high; anyone in
software engineering need a thesis topic?


-- 
Boyd Nation         Energy Management Systems Services     Southern Company
boyd@emss.com                 (205) 257-5789            FAX: (205) 257-3689

==== Want to unsubscribe from Fun With Perl?
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org