Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Design Pattern
Message
From
07/04/2011 18:34:16
 
General information
Forum:
ASP.NET
Category:
Class design
Title:
Environment versions
Environment:
VB 9.0
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01506278
Message ID:
01506514
Views:
39
>>>>>I'm with Viv ... the delegate approach sounds good to me too.
>>>>>
>>>>>~~Bonnie
>>>>>
>>>>>
>>>>>
>>>>
>>>>Thank you for your vote. This is going to be a long ugly refactor, but it is one of those things that has been needed for a long time.
>>>>
>>>>Here is how one of the current methods ends after 1800 lines of code:
>>>>
>>>>
>>>>                                                       End If
>>>>                                                    End If
>>>>                                                End If
>>>>                                            End If
>>>>                                        Next
>>>>                                    End If
>>>>                                Next
>>>>                            End If
>>>>                        Next
>>>>                    End If
>>>>                End If
>>>>
>>>>
>>>
>>>That certainly brings back some ugly memories of inherited code. I worked on one VFP app that had a method with 3000 lines of code.
>>>
>>>Not putting that on VFP. You can write elegant code and ugly code in about any language. It's just that there are pro technicians and then there are shoemakers ;-)
>>
>>I think I have learned more from maintaining poorly written code than in any formal training. I didn't understand how evil globals were until I had to maintain an app where EVERY variable was declared PUBLIC. I learned alot about side effects keeping that app running.
>
>In a perfect world I will never have to do maintenance work on an ugly app again. And no one will ever have to work on any of mine ;-)

Unfortunately, I have to maintain MY code. I cringe whenever I have to revisit code I wrote a couple of years ago! OTOH, it has worked well as ugly as it is.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform