This post originated from an RSS feed registered with Java Buzz
by justin cater.
Original Post: Coping with Methods with Many Parameters
Feed Title: Java Code Geeks
Feed URL: http://feeds.feedburner.com/JavaCodeGeeks
Feed Description: Java 2 Java Developers Resource Center
I will put my captain Obvious cape now and write in short how to get rid of methods with many parameters, especially if some of the parameters are optional, or depend on each other somehow (e.g. go in pairs, one excludes another, etc.). Let’s take a simple RestClient class. You need to be able to […]