Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Onion Pattern
Message
From
16/10/2017 12:57:06
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
16/10/2017 12:45:16
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows Server 2012
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01655029
Message ID:
01655038
Views:
47
>>You always have to figure out how someone else's code works. Better to replace old code with your new code, especially if it involves new and better practices. Think of it this way - you have a working 1965 Chevy Impala. Part of it is rusting badly. What you do is cut out the rusting part and replace that with new metal. It's a patchwork, but it's a patch that actually solved the underlying problem. You do not cover it up - onion anti-pattern. Patchwork is a bad approach if you put new metal in the midst of the rusting metal. The new patch will fall off if it sticks at all.
>
>I'm getting the impression we're the unfashionable dinosaurs here. The new approach would be to goldplate the old metal.
>
>And we're too old to think of something so ingenious and simple.

I'd been accused of gold plating something once. The owner was a moron. The programmer was an old-timer akin to a shaman in a hut. All I did was use aluminum, but compared to the crap they had, it might as well have been platinum.
Previous
Reply
Map
View

Click here to load this message in the networking platform