You are viewing a single comment's thread from:

RE: Introducing the Coding Challenge

in #coding-challenge7 years ago

I don't know what you mean by

making rules a constant

It's already a constant there.

Since the filter phrase used once and it's a short one, I'd argue it's easier to read it this way.

I implemented/borrowed the second one because I wanted to have a generic solution that is easy to expand or change with new rules. Now, all you need is to update the rules to get a new FizzBuzz.

Coin Marketplace

STEEM 0.17
TRX 0.15
JST 0.028
BTC 60249.61
ETH 2321.35
USDT 1.00
SBD 2.51