Skip to content

Instantly share code, notes, and snippets.

View PixelTom's full-sized avatar

Tom Greybeard PixelTom

View GitHub Profile
@mattcolman
mattcolman / good-bad-js.coffee
Created November 5, 2015 05:31
Good Bad JS Examples (coffeescript)
# ---------------------------------------------------------- #
# EXAMPLE 1
# ---------------------------------------------------------- #
#
# BAD
addPoints: ->
pts = []
for i in [0...100]
pts.push @getRandomPointFromRect new Rectangle(0, i * 20, 20, 20)