Search:

Type: Posts; User: jbraque

Search: Search took 0.10 seconds.

  1. Replies
    6
    Views
    1,140

    Re: Refactoring if statement

    Ok never mind, thanks
  2. Replies
    6
    Views
    1,140

    Re: Refactoring if statement

    I have to catch multiple exceptions and find which exception was thrown without using a if...else block. The exceptions are written by me and their number so far is 10 and may expand in the future.
    ...
  3. Replies
    6
    Views
    1,140

    Re: Refactoring if statement

    Well yes you are right about the pseudocode...
    Anyway i thought of putting all strategies in a collection and perform all of them as they will have the same interface.
  4. Replies
    6
    Views
    1,140

    Refactoring if statement

    Hello all,

    This is an example of pseudocode:

    if string = "" then
    do something
    if string case is all capital
    do something else
    if ...
    do something else
Results 1 to 4 of 4