Viewing a response to: @benniebanana/re-reggaemuffin-re-benniebanana-re-reggaemuffin-introducing-the-coding-challenge-20170817t173128127z
That looks pretty efficient to me :) Well done! I like your try except btw, that is exactly the python way of asking for forgiveness, not for permission. Here is a tip! for getting back on it and improving it :) If you want you can look at my solution, I made a few things that make it more maintainable (but it get's longer with it) so I would love to hear your feedback on that. And I would be glad if you would make a small post about it explaining how you tackeled the task, what your thinking was etc. :)
author | reggaemuffin |
---|---|
permlink | re-benniebanana-re-reggaemuffin-re-benniebanana-re-reggaemuffin-introducing-the-coding-challenge-20170817t175240016z |
category | coding-challenge |
json_metadata | {"tags":["coding-challenge"],"app":"steemit/0.1"} |
created | 2017-08-17 17:52:42 |
last_update | 2017-08-17 17:52:42 |
depth | 4 |
children | 1 |
last_payout | 2017-08-24 17:52:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 515 |
author_reputation | 37,964,839,695,531 |
root_title | "Introducing the Coding Challenge" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 12,106,337 |
net_rshares | 0 |
Thanks again, I'm looking forward to your future challenges and I'll definitely be making a post about this. Unfortunately I'm a complete Ruby newb but your solution looks nice and self explanatory. I'm pretty sure it can be shortened but as you said, things can get long when you want to keep it maintainable and understandable.
author | benniebanana |
---|---|
permlink | re-reggaemuffin-re-benniebanana-re-reggaemuffin-re-benniebanana-re-reggaemuffin-introducing-the-coding-challenge-20170817t181000469z |
category | coding-challenge |
json_metadata | {"tags":["coding-challenge"],"app":"steemit/0.1"} |
created | 2017-08-17 18:10:00 |
last_update | 2017-08-17 18:10:00 |
depth | 5 |
children | 0 |
last_payout | 2017-08-24 18:10:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 330 |
author_reputation | 875,530,017,816 |
root_title | "Introducing the Coding Challenge" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 12,107,895 |
net_rshares | 0 |