Skip to content

Instantly share code, notes, and snippets.

John Cipriano johncip

Block or report user

Report or block johncip

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
johncip /
Last active Jun 22, 2019
Active Record eager loading strategies

N+1 query problem

  • ORMs make it easy to a query per loop iteration, which we want to avoid


  • single query (left outer join)
  • can reference the other table's columns in where


  • a few queries (one per table)
  • typically faster
johncip /
Last active Dec 7, 2019
Moving from Phaser 2 to 3

Moving from Phaser 2 → 3: an incomplete guide


  • I found that the best thing was to ask myself what this or that line was meant to accomplish, and then to search for a Phaser 3 example of that task.
  • Usually the issue is just that a function has moved, or some property now requires a setter.
  • There's a real migration guide here: part 1, part 2

Scenes have replaced states (and the game object… mostly)

You can’t perform that action at this time.