![]() |
I love maintaining legacy code (priceless snippet of ASP code)
At work we have a terrible (massive) ASP CMS we have to manage. No documentation, near no comments and code straight out of basic tutorials. I came though the following piece of code in it (follow bTemplateUpdate).
Code:
Dim bTemplateUpdate |
Quote:
haha so basically you're doing all this for nothing because you're setting bTemplateUpdate to TRUE anyways!!! If sNewTemplate <> "" Then bTemplateUpdate = True End If If oReq.Form("oldTemplate") <> sNewTemplate Then bTemplateUpdate = True End if |
LOL
I don't use ASP, but it's a simple if/else and very funny. So 9 lines of code to set the bTemplateUpdate variable to true. So if the that sample hold true for the rest of the code 3/4 of the code for that CMS is a waste O.o . Yea good luck with all that. |
Quote:
|
Quote:
I'm sure it has change tremendously since then.... |
Quote:
|
Quote:
I really don't know what the difference between .NET web programming and ASP. If you want to give me a quick summary feel free to do so, but PHP is rocks and that's all I care about!! |
Quote:
This also gives you seemless integration with your existing VB applications. For instance, I am making a DLL that can pull and process data from a feed. I will be using it both in a computer and web application. They can both use the same DLL with extreme ease. This ups productivity time and blurs the generally rigid line between computer programming and web programming. |
Oh dear, judging from that snippet its gonna be a right ordeal to un-kludge the CMS.
Very amusing however, brought a smile to my face. We don't have much code like that at work (I hope!), ours is just littered with comedic code comments. I keep meaning to have a proper look at asp.net, I spent about 2 years writing VB (vb6.0 and .net, about a year each non professional) spent a few months faffing with C# too so it would be a logical choice for me to learn, I do prefer the simplicity of PHP development however. I must say I really like the new Beast of Redmond languages / tools especially the Express editions. |
Quote:
|
Quote:
|
| All times are GMT. The time now is 01:10 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0