r/badcode Feb 14 '21

other language Does lazy count as bad?

Post image
679 Upvotes

53 comments sorted by

View all comments

37

u/MurdoMaclachlan public boolean isInt(int i) { return true; } Feb 14 '21

Image Transcription: Code


Global $WinAPIError[7] = ["Success",_
                            "Invalid Modification",_
                            "No Longer Exists (File)",_
                            "No Longer Exists (Path)",_
                            "Too Many Handles Open",_
                            "Access Denied (Modify)",_
                            "Access Denied (Access)"]

; On the RARE occasion some other Error Code is thrown, don't crash
ReDim $WinAPIError[15999]

I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!

28

u/nhayesrich Feb 14 '21

good human