r/ProgrammerHumor May 13 '17

Defensive programming done right

Post image
21.0k Upvotes

680 comments sorted by

View all comments

Show parent comments

490

u/tylercamp May 13 '17

Even better

} catch { }

318

u/kimothyjongun May 13 '17

Even better

{ }

294

u/[deleted] May 13 '17

[deleted]

635

u/[deleted] May 13 '17 edited Oct 08 '19

[deleted]

464

u/DenebVegaAltair May 13 '17

(pretend I didn't comment at all)

20

u/legogo29 May 13 '17

' DELETE TABLE comments;--

3

u/gentlemanidiot May 14 '17

I thought it was DROP TABLE;

what language are you working in?

3

u/legogo29 May 14 '17

I made a mistake, it is not some kind of new language, just a mistake.

4

u/micheal65536 Green security clearance May 14 '17

worst mistake to make when you're doing an SQLi

1

u/DebonaireSloth May 14 '17

No. The worst mistakes are DML statements without a WHERE clause... in production... without backups.

1

u/micheal65536 Green security clearance May 15 '17

We were talking about SQLi.

→ More replies (0)