How to see "anti if" movement and its gaol?
- by Vijay Shanker
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.