News for hackers. Stuff that matters.
Re:AI Found a Bug in My Code by anilakar on Thursday November 17, 2022 @05:39AM (#33637155)
Can't wait for the next code review.

"You seem to be using ifs and fors very much. These should be abstracted into a function."

Re:AI Found a Bug in My Code by ColonelPhantom on Friday November 18, 2022 @03:32AM (#33651927)
You missed the point; an if or for is a single token. The problem is with predictable token sequences, and if you write the same for loop (or extremely similar ones) in multiple places then yes, it should be turned into a function.