MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerAnimemes/comments/e1avkb/rubber_duck_debugging_eh_i_rather_explain_my_code/f8pi8fm/
r/ProgrammerAnimemes • u/iSaithh • Nov 25 '19
32 comments sorted by
View all comments
Show parent comment
5
Well, nice that your team is so efficient
9 u/brickmack Nov 25 '19 Yep, I've never seen anyone so quickly fill up error/debugging logs on a production server! 2 u/Rafael20002000 Nov 25 '19 Did someone forgot the debug stuff? 7 u/brickmack Nov 25 '19 Essentially was:for eachRowInMassiveDatabase {try {doThing()} catch (e) {log("Shits fucked' + e.toString())}}DB has like 100000 rows, and doThing() would fail on >90% of them. Oh, and "e.toString()" is like 1 megabyte per e. 2 u/Rafael20002000 Nov 25 '19 Uuuuuuuuuh, that's huge
9
Yep, I've never seen anyone so quickly fill up error/debugging logs on a production server!
2 u/Rafael20002000 Nov 25 '19 Did someone forgot the debug stuff? 7 u/brickmack Nov 25 '19 Essentially was:for eachRowInMassiveDatabase {try {doThing()} catch (e) {log("Shits fucked' + e.toString())}}DB has like 100000 rows, and doThing() would fail on >90% of them. Oh, and "e.toString()" is like 1 megabyte per e. 2 u/Rafael20002000 Nov 25 '19 Uuuuuuuuuh, that's huge
2
Did someone forgot the debug stuff?
7 u/brickmack Nov 25 '19 Essentially was:for eachRowInMassiveDatabase {try {doThing()} catch (e) {log("Shits fucked' + e.toString())}}DB has like 100000 rows, and doThing() would fail on >90% of them. Oh, and "e.toString()" is like 1 megabyte per e. 2 u/Rafael20002000 Nov 25 '19 Uuuuuuuuuh, that's huge
7
Essentially was:
for eachRowInMassiveDatabase {
try {
doThing()
} catch (e) {
log("Shits fucked' + e.toString())
}
DB has like 100000 rows, and doThing() would fail on >90% of them. Oh, and "e.toString()" is like 1 megabyte per e.
2 u/Rafael20002000 Nov 25 '19 Uuuuuuuuuh, that's huge
Uuuuuuuuuh, that's huge
View all comments
Show parent comment
5
u/Rafael20002000 Nov 25 '19
Well, nice that your team is so efficient