MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerAnimemes/comments/e1avkb/rubber_duck_debugging_eh_i_rather_explain_my_code/f8o7xzz/
r/ProgrammerAnimemes • u/iSaithh • Nov 25 '19
32 comments sorted by
View all comments
62
Do you really want your code to explode?
33 u/Capetoider Nov 25 '19 YES! 24 u/Rafael20002000 Nov 25 '19 EXPLOSION 15 u/brickmack Nov 25 '19 Mine already does occasionally... error logs that fill up several gigabytes a minute...Found one of these occurred in production over the weekend 1 u/Rafael20002000 Nov 25 '19 What happened? 9 u/brickmack Nov 25 '19 Nobody noticed, but I almost crapped myself when I remoted in this morning.Apparently it has a 1 terabyte cap on the log folder at least 2 u/Rafael20002000 Nov 25 '19 Did some legacy code freaked out? 5 u/brickmack Nov 25 '19 Theres no legacy code here anymore. My team effectively rewrote the entire system from scratch over the last few months. Our fuckup. 5 u/Rafael20002000 Nov 25 '19 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. → More replies
33
24 u/Rafael20002000 Nov 25 '19 EXPLOSION
24
15
Mine already does occasionally... error logs that fill up several gigabytes a minute...
Found one of these occurred in production over the weekend
1 u/Rafael20002000 Nov 25 '19 What happened? 9 u/brickmack Nov 25 '19 Nobody noticed, but I almost crapped myself when I remoted in this morning.Apparently it has a 1 terabyte cap on the log folder at least 2 u/Rafael20002000 Nov 25 '19 Did some legacy code freaked out? 5 u/brickmack Nov 25 '19 Theres no legacy code here anymore. My team effectively rewrote the entire system from scratch over the last few months. Our fuckup. 5 u/Rafael20002000 Nov 25 '19 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. → More replies
1
What happened?
9 u/brickmack Nov 25 '19 Nobody noticed, but I almost crapped myself when I remoted in this morning.Apparently it has a 1 terabyte cap on the log folder at least 2 u/Rafael20002000 Nov 25 '19 Did some legacy code freaked out? 5 u/brickmack Nov 25 '19 Theres no legacy code here anymore. My team effectively rewrote the entire system from scratch over the last few months. Our fuckup. 5 u/Rafael20002000 Nov 25 '19 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. → More replies
9
Nobody noticed, but I almost crapped myself when I remoted in this morning.
Apparently it has a 1 terabyte cap on the log folder at least
2 u/Rafael20002000 Nov 25 '19 Did some legacy code freaked out? 5 u/brickmack Nov 25 '19 Theres no legacy code here anymore. My team effectively rewrote the entire system from scratch over the last few months. Our fuckup. 5 u/Rafael20002000 Nov 25 '19 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. → More replies
2
Did some legacy code freaked out?
5 u/brickmack Nov 25 '19 Theres no legacy code here anymore. My team effectively rewrote the entire system from scratch over the last few months. Our fuckup. 5 u/Rafael20002000 Nov 25 '19 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. → More replies
5
Theres no legacy code here anymore. My team effectively rewrote the entire system from scratch over the last few months. Our fuckup.
5 u/Rafael20002000 Nov 25 '19 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. → More replies
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. → More replies
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. → More replies
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. → More replies
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.
→ More replies
View all comments
62
u/Rafael20002000 Nov 25 '19
Do you really want your code to explode?