You are viewing a single comment's thread from:

RE: Utopian Rocks Mobile - Update 0.1.0

in #utopian-io6 years ago

Hi there,

Great to see the mobile version is having progress.

The utopian.rocks website addresses these two elements by calculating the rough score of each contribution and simulating the voting system. It also uses the Beem library to further correct the vote power calculations to make them more accurate. In the mobile application, rather than manually calculating these two values in the same way that the website does, the application just grabs the HTML document.

I personally don't like this idea. If the utopian.rocks API doesn't have it, it's possible to do the same calculations.

  • Make a request to https://steemit.com/@emrebeyler.json
  • Calculate the current vp from the last_vote_time and voting_power properties.
  • Calculate the recharge with the same information.

This would reduce the HTTP requests from two to one.


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:  

Well normally I would agree with you. Pulling in an entire HTML document and making a bunch of requests is a fairly bad practice for any application and even worse on a mobile application. That being said, the Idea is to eventually make it so that the application pulls in the HTML a single time on starting up and then it makes its own calculations from there. I am going to add caching next and this will be a big part of it. I looked into doing the calculations manually before and doing them from scratch was fairly performance heavy. The other way to do it would be to make an API request to the steem API for the Utopian vote and recharge information which you suggested, but I really would rather avoid using the steem API if possible. (A utopian API on the other hand would be an entirely different matter wink wink).

Thank you for moderating my contribution @emrebeyler

Thank you for your review, @emrebeyler!

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

Coin Marketplace

STEEM 0.18
TRX 0.16
JST 0.029
BTC 62299.15
ETH 2428.96
USDT 1.00
SBD 2.65