MAJ Programming skrev:
...

I've inherited code from an idiot programmer that looks like this:

OPEN FILE1 TO F1 THEN
    OPEN FILE2 TO F2 THEN
        OPEN FILE3 TO F3 THEN
        LOOP WHILE READNEXT ID DO
            READ REC FROM F1, ID THEN
                WRITE REC ON F2, ID
                WRITE REC ON F3, ID
            END
        REPEAT
        END ELSE
            CANNOT OPEN FILE3
       END ELSE
            CANNOT OPEN FILE2
        END ELSE
            CANNOT OPEN FILE1
END

C'mon. Just because something can be done differently doesn't mean it's
worth a hill of beans.




Don't judge him/her to fast or hard - notice that this is THE ONLY WAY to write this
according to the strucutural programming school ...

-- mats
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to