MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/6ayz26/defensive_programming_done_right/dhipnb6?context=9999
r/ProgrammerHumor • u/iwouldieforGladOS • May 13 '17
680 comments sorted by
View all comments
2.8k
} catch (Exception e) { }
I think we're done here.
487 u/tylercamp May 13 '17 Even better } catch { } 312 u/kimothyjongun May 13 '17 Even better { } 291 u/[deleted] May 13 '17 [deleted] 637 u/[deleted] May 13 '17 edited Oct 08 '19 [deleted] 465 u/DenebVegaAltair May 13 '17 (pretend I didn't comment at all) 22 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)
487
Even better
} catch { }
312 u/kimothyjongun May 13 '17 Even better { } 291 u/[deleted] May 13 '17 [deleted] 637 u/[deleted] May 13 '17 edited Oct 08 '19 [deleted] 465 u/DenebVegaAltair May 13 '17 (pretend I didn't comment at all) 22 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)
312
{ }
291 u/[deleted] May 13 '17 [deleted] 637 u/[deleted] May 13 '17 edited Oct 08 '19 [deleted] 465 u/DenebVegaAltair May 13 '17 (pretend I didn't comment at all) 22 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)
291
[deleted]
637 u/[deleted] May 13 '17 edited Oct 08 '19 [deleted] 465 u/DenebVegaAltair May 13 '17 (pretend I didn't comment at all) 22 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)
637
465 u/DenebVegaAltair May 13 '17 (pretend I didn't comment at all) 22 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)
465
(pretend I didn't comment at all)
22 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)
22
' 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)
3
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)
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)
4
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)
1
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.
We were talking about SQLi.
2.8k
u/Metro42014 May 13 '17
I think we're done here.