You are viewing a single comment's thread from:

RE: Steemauto - backend improvement

in #utopian-io6 years ago

Thanks for the contribution, @mahdiyari! Did you know a lot about JavaScript before you created SteemAuto with PHP? If not, then how did you go about learning it (just curious)?

As for your code, everything looks good, but there are maybe some minor improvements that could be made. For example, I noticed that you have a lot of nested if statements in places, which could be prevented by switching them around.

Also, there are a lot of comments everywhere, which is fine. However, sometimes it's pretty obvious what the code does, but there are still comments explaining it. In my opinion it would be better to leave the comments for the difficult to understand code and function declarations/docstrings, but that is up to you of course.

Looking forward to seeing more of your contributions in the future!


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]

Sort:  

Thanks for your review
Yes. I was a little lazy about that if statements. I just wanted to finish coding. (I will try to improve that codes in the coming update but I prefer to add new features and leave that minor contributions to other users to get a reward by contributing)
Actually, I try to explain what is the purpose of using a code (function, and etc) I started using comments when I had to check my old codes! (a hard job)
Thanks again for your review:)


Let's answer your first question:
No. I learned a lot after developing Steemauto.
I try to learn things by experiment and I learned Javascript by using it in my projects. I think my first server-side app was voter.js (GitHub)
Then I coded the server-side operations of steemauto with Javascript (listening blocks, upvoting, and etc) and I changed those operations many times (really many times)
Then I started learning AngularJS and built some local applications with that for using in the Steem blockchain (just for practice)
Then I found ReactJS! I used React and again developed some applications about Steem (just for practice)
Finally, I moved to Angular v6, Typescript, es6, and etc. It is a long story.
Thanks for your time:)

Thank you for your review, @amosbastian!

So far this week you've reviewed 12 contributions. Keep up the good work!

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63126.02
ETH 2553.49
USDT 1.00
SBD 2.78