-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
storage-plus
: containers
#23
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
38a8787
to
9e4e28e
Compare
By the way, you should add the crates you added as dependencies to the GitHub CI workflow, too, to update them to the latest versions (otherwise they are locked by the lockfile) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs look good to me fwiw :) left a couple small questions, nothing major
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall I would make sure the documentation is not simply list of functions and then some random examples - it has to be easy to follow by someone never using this thing before. Going to every single useful function one by one and providing an example would be easier to understand in my opinion.
Also we cannot just focus on simple concepts, and then ignore things like prefixed and layered things assuming that people would figure it out - we need to take special care about explaining those non-trivial things.
#[allow(unused_imports)] | ||
mod imports { | ||
pub use cosmwasm_std::*; | ||
pub use cosmwasm_schema::cw_serde; | ||
} | ||
|
||
#[allow(unused_imports)] | ||
use imports::*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this way instead of importing stuff directly in the file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So that we don't have to add #[allow(unused_imports)]
to every use
directive if we decide to add more. It looks awful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#![allow(unused_imports)]
at the top of the file once
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aumetra My instinct is to be more granular so that we still get warnings in other places, where they might be useful feedback.
@hashedone I agree mostly. My goal with this PR was to braindump content, honestly, and review it and rearrange it in subsequent PRs. I'm currently fighting my perfectionism, so I'm trying not to perfect every aspect of everything before I deliver it ;) It's usually a mistake. |
e1a8e41
to
933dcf3
Compare
Rebased |
I addressed the comments from @dakom. @hashedone Your review includes items that are both high-level and low-level, making it a little difficult to address. I think overall it's suggesting a rewrite, which I also think is due. I don't currently have the throughput to do that - I'm in the middle of writing the I strongly suggest we merge this as it is (even if not perfect), and iterate on this in subsequent PRs to keep up a sense of progress and achievement here, rather than getting stuck. If that's not OK with you, just close this and I'll submit a new PR in the future. |
Ah, a question about that: in my head, the priority list goes something like:
Is that wrong? I worry if we spend all the time explaining Which bits can we not have assuming resources run out? Trying to think strategically here. |
Lets go this way. Go through my comments. For low-level, things, whatever is easy to address - please just apply and resolve a comment. For things that are more high-level, annoying to fix in the particular review - simply open a PR, and we will figure it out there. |
3fe012b
to
86ce10a
Compare
Rebased |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking how to approach this, mostly because of this comment and your response, but for now I think the best would be to merge it and move forward.
86ce10a
to
b367e1c
Compare
Review and merge #20 first!