create account

RE: Introducing the Coding Challenge by reggaemuffin

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

Viewing a response to: @pilcrow/re-reggaemuffin-introducing-the-coding-challenge-20170818t085726321z

· @reggaemuffin ·
+1 for 
> Initially I returned it as an integer too, but returning mixed types is bad practice and in fact **actually broke my tests**, so I return it a as string now too.

and for having a test that breaks when this is not the case, tip! worthy :)

The `||` is a pretty clean way, I like that! 

Your explanation on why you used the spread operator is glorious! Thank you for giving insight into why you used that :) 

I would definitely read a blog post about it. But if you want to save your efforts for a harder challenge, a new one will come up pretty soon :)
properties (22)
authorreggaemuffin
permlinkre-pilcrow-re-reggaemuffin-introducing-the-coding-challenge-20170818t102036456z
categorycoding-challenge
json_metadata{"tags":["coding-challenge"],"app":"steemit/0.1"}
created2017-08-18 10:20:39
last_update2017-08-18 10:20:39
depth2
children2
last_payout2017-08-25 10:20:39
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_length564
author_reputation37,964,839,695,531
root_title"Introducing the Coding Challenge"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id12,162,209
net_rshares0
@pilcrow ·
Thanks! In that case I'll wait for the next one. This is fun :)
properties (22)
authorpilcrow
permlinkre-reggaemuffin-2017818t124833597z
categorycoding-challenge
json_metadata{"tags":"coding-challenge","app":"esteem/1.4.6","format":"markdown+html","community":"esteem"}
created2017-08-18 10:48:36
last_update2017-08-18 10:48:36
depth3
children0
last_payout2017-08-25 10:48:36
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_length63
author_reputation2,531,070,549,481
root_title"Introducing the Coding Challenge"
beneficiaries
0.
accountesteemapp
weight500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id12,163,717
net_rshares0
@zuricher ·
 
properties (22)
authorzuricher
permlinkre-re-pilcrow-re-reggaemuffin-introducing-the-coding-challenge-20170818t102036456z-20200829t032329z
categorycoding-challenge
json_metadata"{"app": "beem/0.23.9"}"
created2020-08-29 03:23:30
last_update2020-08-29 03:23:30
depth3
children0
last_payout2020-09-05 03:23:30
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_length1
author_reputation-39,571,640,904
root_title"Introducing the Coding Challenge"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id99,332,904
net_rshares0