dhgamache/Tic-Tac-Toe-JS — comment on commit dfe71893976cd104bad4795e7c55da7771a369c4
File: tictactoe.js line 7
By marcusphillips:

Explicitly writing out all the winning patterns is a great way to get this working, but arguably, you should be finding these patterns dynamically.

Consider what this line would look like if you decided to allow users to play on a board of size 999x999 - you'd have a whole lot of combinations to list out. It's true that this tic-tac-toe game isn't likely to need that, but it's a good thing to do as an exercise in solid coding.