Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple return points - is it OK practice?
Message
 
 
To
01/02/2013 16:34:37
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01564936
Message ID:
01564969
Views:
55
>That's plain ugly. Is it needed? Probably not. And what the heck is this Functions class? That's VERY much and anti-pattern and non-standard. Lots and lots of code that needs to be maintained just to check and pass parameters is very poor code.
>
>Another book I highly recommend is Brownfield Development in .Net. It talks about how to effectively refactor existing code and make it better. I rate it as one of the best tech books I've ever read. But you still need to understand refactoring and patterns.
>
>Speaking of anti-patterns. //TODO: is one of them.
>

Hmm - on the last point - what is supposed to be used instead of TODO: ? I looked it up before implementing

http://www.dotnetperls.com/todo

As for the rest - I guess your comments are valid, but this is what my colleagues (who I think a bit more experienced) have developed to simulate our VFP code. In VFP we were passing parameters as XML string, parsed them and used Invoke method to call. I think that is created is simulates that pattern.

I am just following the suit and code the methods similar to what already have been coded.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform