private XXXXXXXXXXX XXXXXXXXXXX(final XXXXXXXXXXX[] XXXXXXXXXXX, final int XXXXXXXXXXX,
final Long XXXXXXXXXXX, final Long XXXXXXXXXXX, final int XXXXXXXXXXX, final Long XXXXXXXXXXX,
final XXXXXXXXXXX XXXXXXXXXXX, final int XXXXXXXXXXX, final int XXXXXXXXXXX, final Long XXXXXXXXXXX,
final XXXXXXXXXXX XXXXXXXXXXX) {
if (XXXXXXXXXXX || XXXXXXXXXXX) {
XXXXXXXXXXX
return null;
}
final XXXXXXXXXXX
if (XXXXXXXXXXX) {
XXXXXXXXXXX
return null;
}
XXXXXXXXXXX
if (XXXXXXXXXXX) {
XXXXXXXXXXX
XXXXXXXXXXX
final XXXXXXXXXXX
final XXXXXXXXXXX
if (XXXXXXXXXXX {
for (XXXXXXXXXXX) {
final XXXXXXXXXXX
final XXXXXXXXXXX
if (XXXXXXXXXXX) {
if (XXXXXXXXXXX) {
if (XXXXXXXXXXX || XXXXXXXXXXX) {
if (XXXXXXXXXXX || XXXXXXXXXXX)
|| XXXXXXXXXXX)) {
final XXXXXXXXXXX
if (XXXXXXXXXXX) {
if (XXXXXXXXXXX) {
final XXXXXXXXXXX
if (XXXXXXXXXXX) {
int XXXXXXXXXXX
if (XXXXXXXXXXX) {
if (XXXXXXXXXXX) {
XXXXXXXXXXX
}
if (XXXXXXXXXXX) {
XXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXX
}
}
}
}
}
}
}
}
}
}
}
} else {
XXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXX
final XXXXXXXXXXX
final XXXXXXXXXXX
if (XXXXXXXXXXX) {
for (XXXXXXXXXXX) {
final XXXXXXXXXXX
final XXXXXXXXXXX
if (XXXXXXXXXXX) {
if (XXXXXXXXXXX) {
if (XXXXXXXXXXX) {
if (XXXXXXXXXXX)
|| XXXXXXXXXXX) {
final XXXXXXXXXXX
if (XXXXXXXXXXX) {
if (XXXXXXXXXXX) {
final XXXXXXXXXXX
if (XXXXXXXXXXX) {
if (XXXXXXXXXXX) {
final XXXXXXXXXXX
if (XXXXXXXXXXX) {
if (XXXXXXXXXXX) {
XXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXX
}
}
final XXXXXXXXXXX
if (XXXXXXXXXXX) {
if (XXXXXXXXXXX) {
XXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXX
}
}
} else {
final XXXXXXXXXXX
if (XXXXXXXXXXX) {
if (XXXXXXXXXXX) {
XXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXX
}
}
final XXXXXXXXXXX
if (XXXXXXXXXXX) {
if (XXXXXXXXXXX) {
XXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXX
}
}
}
}
}
}
}
}
}
}
}
}
}
if (XXXXXXXXXXX) {
XXXXXXXXXXX
}
return XXXXXXXXXXX
}The worst program I ever worked on
61–70 of 136 posts
Re: The worst program I ever worked on
#62Earlier quoted context omitted.
Yes, i remember working for a company (java devs) where at some point we ended up having wrappers around wrappers around wrappers delegating stuff around, factories of factories ... It made your head spin.
Yes. APIDelegatorInvocationHandler and APIAbstractFactoryFactoryProvider. (actual Java class names)
Re: The worst program I ever worked on
#63Re: The worst program I ever worked on
#64Re: The worst program I ever worked on
#65 MOVE SPACES TO LISTBAT-NAME.
STRING WORK-FILES "LIST.BAT" DELIMITED BY " "
INTO LISTBAT-NAME.
OPEN OUTPUT LISTBAT.
MOVE SPACES TO SCR-S.
STRING "DIR /B " DATA-PREFIX " > "
WORK-FILES "TMPLIST" DELIMITED BY " "
INTO SCR-S.
MOVE SCR-S TO LISTBAT-REC.
WRITE LISTBAT-REC.
CLOSE LISTBAT.
CALL "C$system" USING LISTBAT-NAME, 96
GIVING STATUS-VAL.
MOVE SPACES TO TMPLIST-NAME.
STRING WORK-FILES "TMPLIST" DELIMITED BY " "
INTO TMPLIST-NAME.
OPEN INPUT TMPLIST.
MOVE LOW-VALUE TO LIST-NAME.
PERFORM UNTIL 1 = 2
READ TMPLIST
INTO SCR-S
AT END EXIT PERFORM
END-READ
ADD 1 TO PROGRESS-REC-CT
INSPECT SCR-S CONVERTING LOWER-CASE-ALPHA TO
UPPER-CASE-ALPHA
PERFORM VARYING SCR-X FROM 50 BY -1 UNTIL
SCR-X = 1
IF SCR-S(SCR-X:1) = "."
MOVE SPACES TO SCR-S(SCR-X:)
EXIT PERFORM
END-IF
END-PERFORM
CALL "CC/STRINGER" USING SCR-S, STRING-INFO
MOVE SCR-S(1:STRING-INFO-LENGTH) TO TMP-RID
PERFORM LOAD-RPT-FILE THRU END-LOAD-RPT-FILE
END-PERFORM.
CLOSE TMPLIST.
The newline on some of those lines is off because HN makes it wrap but you get the ideaRe: The worst program I ever worked on
#66Earlier quoted context omitted.
For the Chinese guy, I wonder if the code would have been way easy to maintain for the average Chinese developer. That would be an interesting analysis.
I once worked in a Chinese software company on the mainland and often maintained code written by Chinese developers. I'm Irish and didn't appreciate their comments in Chinese, they didn't appreciate my comments in Irish. Once that was understood we swapped quickly over to English for all comments / variables / declarations.
"Python coders from non-English speaking countries: please write your comments in English, unless you are 120% sure that the code will never be read by people who don't speak your language."
Re: The worst program I ever worked on
#67Re: The worst program I ever worked on
#68Earlier quoted context omitted.
I work with a guy, long time ago, who would take code already split into functions and refactor it into one big function. I am not joking here, actually happened.
I've seen that too. I don't think it was intentional -- the programmer simply didn't understand what the existing code structure was for, and "defactored" it.
Re: The worst program I ever worked on
#69One of my former classmates names everything he can get his hands on after various obscure anime references-- database names, variables, servers, you name it. Once in a blue moon, I'd recognize a function name as being a character or item from one of the few animes I'd seen and after a bit of tortured logic based on the background it almost seemed like a reasonable choice. Needless to say, he does better working on h…
http://www.amazon.com/Manga-Guide-Databases-Mana-Takahashi/d...
Re: The worst program I ever worked on
#70A project I worked at during an internship had an unmanaged C++ portion for rendering complex typography, which was written when every letter in a variable cost $10 (or so it seems). The result was that "pointer to a metadata character" became the variable "pmc", and that was just the beginning of it. I never quite did understand what the variable lpmnoics meant, and debugging the C++ was quite the drag and the task…
But it's probably a defensible idea, in context. The idea is to supplement the type system of a low-level language with a manually-checked type system that helps you find semantic errors.