aeternity / aepp-sdk-js

JavaScript SDK for the æternity blockchain
http://docs.aeternity.com/aepp-sdk-js/
ISC License
120 stars 59 forks source link

Review of current master state (5f0e8ce) #1

Closed devsnd closed 6 years ago

devsnd commented 6 years ago

This is a review of the Code in 5f0e8ce (since it's to late to create a PR now).

General Nitpicks:

Specific Nitpicks:

Final Note:

Your code is nice and tidy and easy to understand. I like it. What's especially interesting is that it shows some inconsistencies in the API that we should collect on Thursday.

E.g. the naming of the parameters changes from salt to name_salt. There are multiple inconsistencies like this and your code shows them as you stay consistent.

Also, what I too had to work-around, was the double JSON-encoded pointers which is a bit ugly on the API side.

tillkolter commented 6 years ago

thx for your comments @devsnd

I must confess, that I didn't really take time to consider alternatives to axios, simply because it seemed so common practice to use it after all the code I have been studying. I will consider using fetch standard over axios but, I would like to do some research on it first. Although some posts that I found state that Axios is still having advantages over the standard.

I wanted to add the security parameter from the very beginning, because I think it doesn't do any harm and empowers community developers to secure their potentially public servers as much as they want.

I second your note about the options.config, will change it.

You were right, the swagger documentation is giving the right hint, expecting int64.

I agree that timeout is misleading for an external parameter, although JS standard spec calls the parameter for setInterval exactly like that, so I will refactor to call it intervalTimeout. I am not sure if having a timeout for the global waiting time wouldn't do more harm than it would help.

Integrating the example for the lifecycle to an integration test suite is on my TODO list, but I think we should sync our activities on both language implementations that we can share some general test setup.

tillkolter commented 6 years ago

https://github.com/aeternity/aepp-sdk-js/pull/2