game-programming-patterns icon indicating copy to clipboard operation
game-programming-patterns copied to clipboard

GoF pattern links sometimes have an "→" icon

Open objectiveryan opened this issue 6 years ago • 0 comments

Thanks for this amazing resource! I'm a long-time coder but new game developer, and I'm learning so much from your book.

For a while I was confused why some links like "Chain of Responsibility GoF" had a superscript "GoF" while others like "Factory Method " had a superscript "→", although they're both GoF patterns. Finally I looked at the source, and saw that it was due to some line breaks, like here:

<p>This usually means that you have to encapsulate construction behind some
interface that can first look for an existing object. Hiding a constructor
like this is an example of the <a
href="http://en.wikipedia.org/wiki/Factory_method_pattern" class="gof-
pattern">Factory Method</a> pattern.</p>

  The gof-pattern class got split into gof- and pattern by a newline, so the CSS for pattern applied to the link.

objectiveryan avatar Jun 15 '19 01:06 objectiveryan