RSS feed [root] /design /weblog




login:

password:

title search:




 


Fri Jan 06 03:17:18 GMT 2023

flow condition



i wonder if it makes sense to refactor from this:

public void someMethod(SomeClass someObject) {
if(someObject != null){
do something ...
}
}
to this:
public void someMethod(SomeClass someObject) {
if(someObject == null) return;
do something ...
}

http://groups.yahoo.com/group/refactoring/message/3385

The other discussion about flow control presentation - http://www.artima.com/forums/flat.jsp?forum=106&thread=211172

A Response to “Stop Using If-Else Statements” - https://betterprogramming.pub[..]op-using-if-else-statements-c3d4c64c69af


(google search) (amazon search)
second
download zip of files only