RE: RE: Block.ops - An Analysis Tool - Account Creation, Account Claiming, Follows, Unfollows, Reblogs, Power Ups, Power Downs and More!
You are viewing a single comment's thread from:

RE: Block.ops - An Analysis Tool - Account Creation, Account Claiming, Follows, Unfollows, Reblogs, Power Ups, Power Downs and More!

RE: Block.ops - An Analysis Tool - Account Creation, Account Claiming, Follows, Unfollows, Reblogs, Power Ups, Power Downs and More!

Thank you very much for this intensive contribution.

  1. In blockOps.js you are using async/await - which is great but in mongoblock.js you are using Promise - which makes the code a lot messier.
  2. sometimes you are using == to compare the boolean values (you should stick to ===).
  3. and there is inconsistency of using semi-colon or not at each line. After JS-Minified, the JS code without semi-colons may have a problem.
  4. Despite let in most places, you are also using var sometimes, in a for loop, please be noted that the var will lift up the variables and create unpredicted problems. It is in general a good practice to start using let or const.
  5. Most functions are too big... You might want to break down a little bit - remember One function should only does one thing (Single Responsibility)

Overall, this is a nice piece of work!

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

H2
H3
H4
3 columns
2 columns
1 column
3 Comments