Warning: Steem witnesses executed a hard fork on 2020-05-20, seizing 23.6M STEEM from 65 accounts. The funds were transferred to an account named @community321, the ownership (and intentions) of which have not been revealed. The witnesses claim to have been targeting accounts which defended against a hostile takeover in early March, but at least 2 accounts on the list have been inactive for over 4 years.

Coverage:
- Decrypt.io: Steem network to seize $5 million from its own users
- SteemPeak.com: Official Announcement by @softfork22888
- GitHub.com: view steemd HF23 changes

What you can do:
- Send exchanges a notice of the pending class action lawsuit.
- Switch to HIVE, the community-led fork. Visit Hive.blog and Hiveblocks.com.

The Importance of a Unit Test (Making Another Attempt to Fix the Reputation) by justyy

View this thread on steempeak.com
· @justyy ·
$32.48
The Importance of a Unit Test (Making Another Attempt to Fix the Reputation)
A few days ago, my PR was finally merged after more than two years (thank you @ety001). It is a good sign that the new SteemIt team is better as they review and care the contributions from the community.

However, when I wrote the implementation in [PHP](https://helloacm.com/steem-reputation-format-function-in-php/), I noticed that the Reputation needs to be returning 25 when 0 is given.

I checked the previous implementation (version 0.7.7): the reputation will return 25 when 0 is given: https://github.com/steemit/steem-js/releases/tag/v0.7.7

<a href="https://steemyy.com/steemjs/?s=log(steem.formatter.reputation(0))%3B">Run Code on SteemJs Editor</a>

![image.png](https://cdn.steemitimages.com/DQmbZYjrnP6Na7tdTChQSDeWmwowrCbnWaWymaVBuZoLDer/image.png)

However, the PR introduced a different behaviour - when 0 is fed into the function, it will return NaN due to Log10. Unfortunately, when there were no relevant unit tests, I couldn't spot this difference.

Thus, I have made another PR, which fixes this inconsistence and adds a few unit tests to ensure the behaviour stays the same.

https://github.com/steemit/steem-js/pull/479/files

<hr/>

Every little helps! I hope this helps!


**Steem On!~**
------------------

If you like my work, please consider voting for me, thanks!
https://steemit.com/~witnesses type in **justyy** and click ***VOTE***
https://steemyy.com/images/vote-for-justyy.jpg
<BR/>
**Alternatively, you could [proxy to me](https://steemyy.com/witness-voting/?witness=justyy&action=proxy)  if you are too lazy to vote!**

Also: you can vote me at the tool I made:  https://steemyy.com/witness-voting/?witness=justyy

### Visit me at:  [https://steemyy.com](https://steemyy.com)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 103 others
properties (23)
post_id86,515,390
authorjustyy
permlinkthe-importance-of-a-unit-test-making-another-attempt-to-fix-the-reputation
categorywitness-category
json_metadata{"tags":["witness-category","whalepower","steem-js","codeonsteem","programming","javascript","reputation","steem-dev"],"users":["ety001"],"image":["https:\/\/cdn.steemitimages.com\/DQmbZYjrnP6Na7tdTChQSDeWmwowrCbnWaWymaVBuZoLDer\/image.png","https:\/\/steemyy.com\/images\/vote-for-justyy.jpg"],"links":["https:\/\/helloacm.com\/steem-reputation-format-function-in-php\/","https:\/\/github.com\/steemit\/steem-js\/releases\/tag\/v0.7.7","https:\/\/steemyy.com\/steemjs\/?s=log(steem.formatter.reputation(0))%3B","https:\/\/github.com\/steemit\/steem-js\/pull\/479\/files","https:\/\/steemit.com\/~witnesses","https:\/\/steemyy.com\/witness-voting\/?witness=justyy&action=proxy","https:\/\/steemyy.com\/witness-voting\/?witness=justyy","https:\/\/steemyy.com"],"app":"steemit\/0.2","format":"markdown"}
created2020-06-29 16:35:15
last_update2020-06-29 16:35:15
depth0
children8
net_rshares41,649,659,026,841
last_payout1969-12-31 23:59:59
cashout_time2020-07-06 16:35:15
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value32.481 SBD
promoted0.000 SBD
body_length1,712
author_reputation340,582,416,232,499
root_title"The Importance of a Unit Test (Making Another Attempt to Fix the Reputation)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (167)
@annepink ·
$0.09
properties (23)
post_id86,515,534
authorannepink
permlinkqcp5ge
categorywitness-category
json_metadata{"app":"steemcn\/0.1"}
created2020-06-29 16:50:42
last_update2020-06-29 16:50:42
depth1
children1
net_rshares206,155,676,349
last_payout1969-12-31 23:59:59
cashout_time2020-07-06 16:50:42
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.091 SBD
promoted0.000 SBD
body_length5
author_reputation109,928,704,812,170
root_title"The Importance of a Unit Test (Making Another Attempt to Fix the Reputation)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (61)
@justyy ·
$0.61
谢谢
👍  ,
properties (23)
post_id86,516,014
authorjustyy
permlinkqcp7s6
categorywitness-category
json_metadata{"app":"steemit\/0.2"}
created2020-06-29 17:40:57
last_update2020-06-29 17:40:57
depth2
children0
net_rshares1,249,226,528,325
last_payout1969-12-31 23:59:59
cashout_time2020-07-06 17:40:57
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.611 SBD
promoted0.000 SBD
body_length2
author_reputation340,582,416,232,499
root_title"The Importance of a Unit Test (Making Another Attempt to Fix the Reputation)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (2)
@nano-gamer ·
Wow to get a post in English or Spanish in the trend zone is a great challenge .. haha.
I think that steemit has to improve in some respects with the new modality that they have created. I know that the new steemit team is giving their best to bring this ship afloat after a big storm. After getting used to the old function of steemit and seeing all the changes made by the new team makes it difficult for me to adapt a little.
I see that you are giving your contribution to the team. I congratulate you, person like you, who needs steemit to improve.
properties (22)
post_id86,517,894
authornano-gamer
permlinkqcpkqx
categorywitness-category
json_metadata{"app":"steemit\/0.2"}
created2020-06-29 22:21:06
last_update2020-06-29 22:21:06
depth1
children3
net_rshares0
last_payout1969-12-31 23:59:59
cashout_time2020-07-06 22:21:06
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length552
author_reputation1,171,895,506,177
root_title"The Importance of a Unit Test (Making Another Attempt to Fix the Reputation)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@justyy ·
$0.63
Thank you. there is still a long way to go.
👍  , ,
properties (23)
post_id86,527,739
authorjustyy
permlinkqcr0w2
categorywitness-category
json_metadata{"app":"steemit\/0.2"}
created2020-06-30 17:07:15
last_update2020-06-30 17:07:15
depth2
children2
net_rshares1,302,741,779,163
last_payout1969-12-31 23:59:59
cashout_time2020-07-07 17:07:15
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.632 SBD
promoted0.000 SBD
body_length43
author_reputation340,582,416,232,499
root_title"The Importance of a Unit Test (Making Another Attempt to Fix the Reputation)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (3)
@nano-gamer ·
$0.49
**If you have to go one step at a time, the road is long and you can get obstacles on the road that can be overcome little by little.
A question! I imagine that you have contact with the members of steemit.
What possibilities are there to create 2 types of trends?**
* ***One that is for the Asian area and one for the rest of the world***.
<h2>Is it possible to do that?</h2>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
post_id86,527,921
authornano-gamer
permlinkqcr1wp
categorywitness-category
json_metadata{"app":"steemit\/0.2"}
created2020-06-30 17:30:57
last_update2020-06-30 17:30:57
depth3
children1
net_rshares1,024,130,580,951
last_payout1969-12-31 23:59:59
cashout_time2020-07-07 17:30:57
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.485 SBD
promoted0.000 SBD
body_length376
author_reputation1,171,895,506,177
root_title"The Importance of a Unit Test (Making Another Attempt to Fix the Reputation)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (57)
@steem-supporter ·
thanks for using #codeonsteem , fully upvoted with my trail around $4 

thank you for being awesome
properties (22)
post_id86,519,855
authorsteem-supporter
permlinkqcpy0d
categorywitness-category
json_metadata{"tags":["codeonsteem"],"app":"steemit\/0.2"}
created2020-06-30 03:07:27
last_update2020-06-30 03:07:27
depth1
children1
net_rshares0
last_payout1969-12-31 23:59:59
cashout_time2020-07-07 03:07:27
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length99
author_reputation14,866,961,686,809
root_title"The Importance of a Unit Test (Making Another Attempt to Fix the Reputation)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@justyy ·
$0.55
Thank you.
👍  ,
properties (23)
post_id86,527,737
authorjustyy
permlinkqcr0vd
categorywitness-category
json_metadata{"app":"steemit\/0.2"}
created2020-06-30 17:06:57
last_update2020-06-30 17:06:57
depth2
children0
net_rshares1,144,389,325,192
last_payout1969-12-31 23:59:59
cashout_time2020-07-07 17:06:57
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.548 SBD
promoted0.000 SBD
body_length10
author_reputation340,582,416,232,499
root_title"The Importance of a Unit Test (Making Another Attempt to Fix the Reputation)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (2)