Thank you very much for this intensive contribution.
- In
blockOps.jsyou are using async/await - which is great but inmongoblock.jsyou are using Promise - which makes the code a lot messier. - sometimes you are using
==to compare the boolean values (you should stick to===). - 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.
- Despite
letin most places, you are also usingvarsometimes, in a for loop, please be noted that thevarwill lift up the variables and create unpredicted problems. It is in general a good practice to start usingletorconst. - 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]
RE: Block.ops - An Analysis Tool - Account Creation, Account Claiming, Follows, Unfollows, Reblogs, Power Ups, Power Downs and More!