What Name for This Method?
What Name for This Method?
public class OptionsAwareObject {
private Options options;
public void updateOptions(String fontName, int fontSize) {
options.setFontName(fontName);
options.setFontSize(fontSize);
}
}
class Options {
private int foregroundColor;
private int backgroundColor;
private String fontName;
private int fontSize;
// ...
}
Is updateOptions
a good name for this method? Of course not! updateOptions
is a general name that suggests a comprehensive update of options. Meanwhile, we are only updating font-related information. The responsibility of the method is thus the change of font-related options. A better name would be:
Weekend Workshops: Design Patterns
Invitation to Weekend Workshops on Design Patterns
We cordially invite you to the “Weekend Workshops on Design Patterns.” This is a special offer for users of the Goldenline.pl portal and readers of my blog as well as Michał’s. You won’t find this offer on the BNS IT website!
Read More2nd Łódź JUG Meeting - Summary
2nd Łódź JUG Meeting - Summary
Yesterday, on August 9th, 2008, the second meeting of the Łódź Java User Group was held. Despite the vacation period, many enthusiasts were brave enough to devote part of their Saturday afternoon to attend a meeting dedicated to the magnificent Java programming language.
Read MoreJUG Łódź
JUG Łódź
Things moved very quickly. The first announcement was made on jdn.pl, followed by a discussion list on http://groups.google.com/group/lodz-jug?hl=pl. The incredible response from Java fans in Łódź, as well as at Javarsovia, led to the first meeting of people interested in developing the JUG in Łódź, which took place on Saturday, June 7, 2008, at 4:00 PM. I commend everyone for this effort. I am hopeful and confident that this initiative will grow into a dynamic and cooperative group of individuals.
Read More