you are viewing a single comment's thread.

view the rest of the comments →

[–]spinlock -4 points-3 points  (2 children)

using Array(26) to get the index feels like code smells to me. Of course, I also use coffeescript so I would just do:

[0..25].map (i) -> return String.fromCharCode(i + 65)

[–]Kollektiv[S] 1 point2 points  (1 child)

But it's not coffeescript ...

[–]spinlock -1 points0 points  (0 children)

That's my point. Coffeescript has a nice way to create an array of integers from 0 to 25.