create account

RE: Introducing the Coding Challenge by tzs

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @reggaemuffin/re-tzs-re-reggaemuffin-introducing-the-coding-challenge-20170818t054013756z

· @tzs ·
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`.
properties (22)
authortzs
permlinkre-reggaemuffin-re-tzs-re-reggaemuffin-introducing-the-coding-challenge-20170818t233545415z
categorycoding-challenge
json_metadata{"tags":["coding-challenge"],"app":"steemit/0.1"}
created2017-08-18 23:35:42
last_update2017-08-18 23:35:42
depth3
children0
last_payout2017-08-25 23:35:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length389
author_reputation66,276,041,146
root_title"Introducing the Coding Challenge"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id12,217,895
net_rshares0