4 ms·
"Java ca. 2001 style" also seemed to include using every feature of J2EE even if it wasn't remotely relevant. Crazy files of constants seemed to feature a lot
by arethuza 11y ago
"Java ca. 2001 style" also seemed to include using every feature of J2EE even if it wasn't remotely relevant.
Crazy files of constants seemed to feature a lot as well:
public final static string HTTP = "HTTP";
public final static string COLON = ":";
public final static string SLASH = "/";
and then the inevitable:
string url = HTTP + COLON + SLASH + SLASH....;
[I did think about posting it to the DailyWTF at the time but thought that might be bad form when you are the lone contractor trying to rescue the project.]