fossilesque@mander.xyzM to Science Memes@mander.xyzEnglish · 1 day agotickling ur spidey sensesmander.xyzimagemessage-square19fedilinkarrow-up1616arrow-down114
arrow-up1602arrow-down1imagetickling ur spidey sensesmander.xyzfossilesque@mander.xyzM to Science Memes@mander.xyzEnglish · 1 day agomessage-square19fedilink
minus-squarevrighter@discuss.tchncs.delinkfedilinkEnglisharrow-up18·11 hours agoI LOVE finding bugs. I HATE looking for them
minus-squareyetAnotherUser@discuss.tchncs.delinkfedilinkEnglisharrow-up3arrow-down1·10 hours agoAnd the bugs are always in the last lines of code you check. It’s so infuriating! Why can’t they be in the first?
minus-squareIron Lynx@lemmy.worldlinkfedilinkEnglisharrow-up2·edit-27 hours agoBecause you stop searching when you find the bug. You have to not execute lines[] = Load(file.code); bool bug_found = false; i=0; while(!bug_found) { bug_found = findBug(lines[i]); } bug_fix(lines[i]); You have to run lines[] = Load(file.code); def bugs[]; a = 0; for(i=0;i<lines[].length();i++) { if (findBug(lines[i]) { bugs[a] = lines[i]; a++; } } for(b=0;b<=a;b++) { bug_fix(lines[b]); } /j
minus-squaremeowMix2525@lemm.eelinkfedilinkEnglisharrow-up3·10 hours agoYou’re not desperate enough for them to reveal themselves to you yet
minus-squarevrighter@discuss.tchncs.delinkfedilinkEnglisharrow-up2·10 hours agono, but I used to have one. He didn’t like looking for them either.
minus-squarepropter_hog [any, any]@hexbear.netlinkfedilinkEnglisharrow-up1·10 hours agoOk that’s a fair point
I LOVE finding bugs.
I HATE looking for them
And the bugs are always in the last lines of code you check. It’s so infuriating! Why can’t they be in the first?
Because you stop searching when you find the bug.
You have to not execute
lines[] = Load(file.code); bool bug_found = false; i=0; while(!bug_found) { bug_found = findBug(lines[i]); } bug_fix(lines[i]);
You have to run
lines[] = Load(file.code); def bugs[]; a = 0; for(i=0;i<lines[].length();i++) { if (findBug(lines[i]) { bugs[a] = lines[i]; a++; } } for(b=0;b<=a;b++) { bug_fix(lines[b]); }
/j
You’re not desperate enough for them to reveal themselves to you yet
Are you a spider?
no, but I used to have one. He didn’t like looking for them either.
Ok that’s a fair point