how on earth do you write this in lisp, I mean better than I have here.. surely it must be possible?
Rube Goldberg devices are definitely acceptable if it makes the final code better.. hope you have some ideas /prog/
Name:
Anonymous2007-08-14 13:04 ID:4If5aQmY
You people obviously have no experience writing enterprise maintainable code. See the following short snippet for an elegant yet extendible solution in Java. Note how code encapsulation lets me reuse the subtle optimizations in new code. I plan to further generalize it by wrapping it all up with the singleton and factory patterns and allowing configuration via XML.
interface NumDivisor {
public boolean dividesNumber(int n);
}