▲ 695 ▼ Sometimes, it's backwards (sh.itjust.works) submitted 2 years ago* by 0x4E4F@sh.itjust.works to c/programmer_humor@programming.dev 188 comments fedilink hide all child comments
[+] ugo@feddit.it 2 points 2 years ago (1 child) [deleted] permalink fedilink source parent hideshow 2 child comments replies: [–] UnderpantsWeevil@lemmy.world 1 point 2 years ago Oh yeah, I love people who stick SQL lookups in a For Loop. Even better, the coder who puts conditional if (but no then/else) clauses around a dozen raw text execution commands that fire in sequence. So you're making six distinct lookups per iteration rather than answering your question in a single query and referencing the results from memory. Internal screaming permalink fedilink source parent
[–] UnderpantsWeevil@lemmy.world 1 point 2 years ago Oh yeah, I love people who stick SQL lookups in a For Loop. Even better, the coder who puts conditional if (but no then/else) clauses around a dozen raw text execution commands that fire in sequence. So you're making six distinct lookups per iteration rather than answering your question in a single query and referencing the results from memory. Internal screaming permalink fedilink source parent