Friday, June 15, 2007

Pokemon Silver Trade Vba

10 things to avoid ... But ... I am just 6

I draw inspiration from a nice post titled merlinox 10 things to avoid developing sites for "pinning" I am also a list of things to avoid (I think) in developing. NET and any other object-oriented programming language ...

1) copy and paste ... If you need to copy and paste the code means that you are not used properly the inheritance structure made available by the object-oriented language.

2) if the use and switches to change the behavior. Return to point 1, there is inheritance, then you can instantiate the object with the correct behavior and do not put an if to change the code to be executed.

3) implement their own interfaces. It 'easier to maintain an application, although small, if it implements interfaces.

4) typing of the untypable. An application that uses only strongly typed objects is easier to maintain and to debug.

5) use the enumerators. It binds to step 4, an enumerator simply lists the available options, the code will be cleaner and you will be situations unknown.

6) inherit all the inheritable ... Controls, engine and more. We do not know where our application will end and what behaviors we want to introduce. Starting to write the application using objects "our" inheriting the basic ones, we'll open the door for possible future deployments.

... if they'd had them six points clear about years ago, well, everything would be easier ...

0 comments:

Post a Comment