How to see "anti if" movement and its gaol?

Posted by Vijay Shanker on Stack Overflow See other posts from Stack Overflow or by Vijay Shanker
Published on 2010-12-21T20:45:19Z Indexed on 2010/12/21 20:54 UTC
Read the original article Hit count: 189

I have a developer for last 3 years, have been using if-else or if-else if statements a lot in my programing habit.

And today, I found This link.

One obvious sample i put here

public void doSomthing(String target, String object){
    //validate requests
    if(target != null && target.trim().length() < 1){
        //invalid request;
    }

    //further logic

}

Now, I have seen this sort of check all over the places, libraries. So, I wanted to have a discussion about the worthiness of such a movement.

Please let me know your views.

© Stack Overflow or respective owner

Related posts about java

Related posts about programming-languages