Search results

From CSSEMediaWiki
Jump to: navigation, search
Advanced search

Search in namespaces:

  
  
  
  
  
  
  
  
 
  • :''Explicit case analysis on the type of an object is usually an error, the designer should use polymorphism in m Type switches involve changing behaviour based on the object's type. Problems occur when multiple switches occur over the same variable in the
    3 KB (410 words) - 10:32, 11 October 2009
  • ...turing code to make it easier to use, cleaner to work with, and removing [[Code smells]]. An alternative definition is "Extending a program to make it more ...ure of [[If it ain't broke don't fix it]] by allowing developers to change code to meet their own needs, rather than for fixing bugs or adding features. It
    6 KB (758 words) - 08:51, 16 December 2011
  • For example your code looks like: Replace your check for a null reference with a null object
    1 KB (233 words) - 03:08, 25 November 2010
  • * Replace the Pair class with a Transaction class and two subclasses CreditTransaction and DebitTransacti ...ed differently depending on the types of its objects, which will require a type switch.
    20 KB (3,132 words) - 03:17, 25 November 2010
  • ...e of a bulk file modification tool. It's a classic example of writing some code, then coming back after a few years and thinking "Who wrote this #&%?" only ... a list of actions to perform on these files. These actions include find & replace actions, text insertion and deletion, case changes and encoding changes. Fo
    29 KB (4,246 words) - 10:12, 5 October 2009
  • ...u may only wish to use in some cases, it may need to be split into a class with one or more subclasses. * [[Replace Type Code with Subclasses]]
    351 B (57 words) - 03:22, 25 November 2010
  • ... files are the same. I can then use this information to decide how to deal with the situation. ...in. This gives me the power to limit my comparisons to, for example, files with the .avi extension. Adding support for such advanced operation to this prog
    18 KB (3,107 words) - 03:08, 25 November 2010

View (previous 20 | next 20) (20 | 50 | 100 | 250 | 500)

Views
Personal tools
Toolbox