Thursday, September 7, 2006
Stevey’s Blog Rants: Execution in the Kingdom of Nouns
The King, consulting with the Sun God on the matter, has at times threatened to banish entirely all Verbs from the Kingdom of Java. If this should ever to come to pass, the inhabitants would surely need at least one Verb to do all the chores, and the King, who possesses a rather cruel sense of humor, has indicated that his choice would be most assuredly be “execute”.
The Verb “execute”, and its synonymous cousins “run”, “start”, “go”, “justDoIt”, “makeItSo”, and the like, can perform the work of any other Verb by replacing it with an appropriate Executioner and a call to execute(). Need to wait? Waiter.execute(). Brush your teeth? ToothBrusher(myTeeth).go(). Take out the garbage? TrashDisposalPlanExecutor.doIt(). No Verb is safe; all can be replaced by a Noun on the run.
Thursday, September 7, 2006
Based on this old post: Complex world of testing. Need for First-Class Testers
To define a tester is to see someone whose job it is to bridge the gaps of disparate worlds, to switch vocabularies, languages; from taking code to talking design to talking measures; communicating with different worlds in their own native vocabulary.
I conclude that Software Tester is like a self-aware ROUTER who constantly updates her ROUTING TABLES definitions to find the best shortcuts to connect all the worlds and make them talk to each other as if there was no translations whatsoever.
Wednesday, September 6, 2006
The “Cone of Silence” strategy and related project management strategies - AC
In general, I find that Osmotic Communication and Cone of Silence are two strategies that need to be balanced, usually with more of the former and only a little of the latter
I wear earplugs.
Wednesday, September 6, 2006
Leap year is an integer such that for modulo for division by 4 is 0 and modulo for division by 100 is NOT 0 OR modulo for the division by 400 is 0.
roll your own simple test for leap year in java (int year;)
if ( ((year % 4 == 0) && !(year % 100 == 0)) || (year % 400 == 0)){
System.out.println(" Leap Year!!!");
} else {
System.out.println(" Not a Leap Year");
}
Some resources:
Leap year
GregorianCalendar Java Class
isLeapYear method
public boolean isLeapYear(int year)
So we can make GregorianCalendar (no need to set it’s value) and do something like this:
GregorianCalendar cal = new GregorianCalendar();
for (int year = 1998; year<2007; year++){
if (cal.isLeapYear(year)){
System.out.print(year);
System.out.println(" Leap Year!!!");
} else {
System.out.print(year);
System.out.println(" Not a Leap Year");
}
Tuesday, September 5, 2006
Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!