News for hackers. Stuff that matters.
Re:Thirteen Years of Bad Game Code by yblu on Friday March 31, 2017 @02:04PM (#14006351)
This `for` loop looks particularly curious to me:

  for (int i = this.bindings.Count - 1; i >= 0; i = Math.Min(this.bindings.Count - 1, i - 1))
Why isn't the last expression a normal i--?
Re:Thirteen Years of Bad Game Code by et1337 on Friday March 31, 2017 @07:38PM (#14009393)
Because bindings[10] might have triggered a process that removes bindings 7-9, causing "i" to be out of bounds of the array. I wanted to continue updating the remaining bindings even if some of them got removed.
Re:Thirteen Years of Bad Game Code by yblu on Saturday April 01, 2017 @03:15PM (#14013634)
Wow, that's pretty subtle. Thanks for explaining.