Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Proposal: Use nameservice as module scaffold #82

Open
jtremback opened this issue Jun 20, 2020 · 5 comments
Open

Proposal: Use nameservice as module scaffold #82

jtremback opened this issue Jun 20, 2020 · 5 comments

Comments

@jtremback
Copy link

Personally, I found the module that gets created as a scaffold hard to deal with, due to the fact that it does not run or even compile. Sometimes it's nice to be able to start from working code and tweak it, especially for beginners.

For this reason, I propose that the module created by the nameservice tutorial be used as a scaffold in this tool. It's not any harder to modify into your own module than the scaffold that is created now, and it runs right out of the box. @jackzampolin I think we talked about this on Twitter.

@jtremback
Copy link
Author

I can go ahead and do this and submit a PR if it will be accepted

@okwme
Copy link
Contributor

okwme commented Jun 21, 2020 via email

@tac0turtle
Copy link
Member

Personally, I found the module that gets created as a scaffold hard to deal with, due to the fact that it does not run or even compile. Sometimes it's nice to be able to start from working code and tweak it, especially for beginners.

My reasoning for this approach was to provide a way to guide the user with what needs to be done, but this may have been the wrong thinking.

What if we implement the functions so it would compile but every function has a panic("not implemented") in it. This would follow convection with other tools like impl (https://github.com/josharian/impl).

@jtremback
Copy link
Author

@okwme I don't really like the nameservice app, since for me (and I'm guessing many developers), what is wanted is to put your own custom logic into a full-fledged clone of the Cosmos hub. The nameservice app from the tutorial only has the modules that interact with the nameservice module.

For this reason, what I would personally prefer is a command that puts the nameservice module into the lvl-max app scaffold. Having it as a Git link or whatever as you suggest is probably best.

@marbar3778 I agree that putting panic("not implemented") would be more correct than the non-compiling code that is created now, and might be better than the nameservice module for experienced Cosmos developers, who don't want to delete all the nameservice stuff every time they start a module. Maybe it would be best to have both nameservice, and a non-running scaffold module as options.

@okwme
Copy link
Contributor

okwme commented Jun 22, 2020 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants