-
Notifications
You must be signed in to change notification settings - Fork 918
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
Use consistent paths in code samples (accross all guides) #152
Comments
I think there should be a Setup environment page that guides can reference and explains the rational behind the structure... |
You are providing outstanding contributions here. I love the idea of doing a pwd before guides. Regarding directories, I am a little hesitant although I agree with you completely. For example, the "build with transaction metadata" was named "transaction metadata" in the beginning. Then later renamed for better user experience/SEO/marketing reasons. I'm afraid that might happen again and we'll always have to redirect the links. |
Thank you I believe this portal is one of the most important things for driving adoption and I'm happy to help. I can totally see why this is difficult to maintain. Maybe we could embed everything in some kind of a curriculum with a number system that can be extended and has a logic to it. Like courses in university. Then users could I'm makong this up as I go... 😅 |
As I re-read your comment I noticed a possible misunderstanding:
Are you talking about the file structure on the server? I'm talking about the local workspace. and the paths used in the guides. I am also much more hesitant to change the structure on the server and re-link the entire guides all the time. Let me explain why I raised this issue: When people work through the guides, they are asked to mkdir -p /home/user/cardano/keys Some devs will already have a folder mkdir -p /home/user/receive-ada-sample/keys Can't they use A lot of devs will rely on these guides while trying to wrap their heads around transactions and wallets and metadata and I think it's unfair to make it harder for them than it is. That said, people have brains and will figure out a system that works for them. |
Just a point of reference (I agree with what you raise), while this folder structure in this doco should possibly only be present for guide presented here and be consistent, it is already different/unique than any other guides (for example, for guild-ops, wherein there is very different folder structure intentionally kept outside of home folder). It wouldn't matter much to other guides ofcourse, but just thinking about aligning where possible the structure below top-level folder. To expand on one of the lines above, keys for wallet and CLI, can be used interchangeably (there are ways to derive keys using CLI for specific wallet address scheme), while keys for node/pool are seperate to wallet. As such, the example of keys, wallets under top level already can be conceptually different understanding |
@tweakch you are right, at first I thought you were talking about the file structure of the docs as well. |
@rdlrt Very important point... the guides need to contain best practices from the community. I must admit I'm out of my depth pretty quickly when it comes to those issues so I wouldn't want to design these environments. I'm a developer and follow what my sysadmin tells me to do. That said, I'm very much willing to learn and try the developer-portal guides with the guild-ops setup and share my findings so we can update the guides accordingly... |
Just a thought... Maybe a docusaurus plugin could support us be consistent.
We could write our own... quick and dirty one. Am I overthinking it? 🤣 |
It would make sense to agree on a consistent environment across guides
From what I've seen so far, it's pretty consistent but not everywhere... I find that I have to switch directory structure between different guides and my files started ending up everywhere...
I would suggest the following setup
This setup would allow all guides to first ask the user to check that he is in the correct directory (and let him
cd
into it)and then for
cardano-cli
commands "reach up" for.skeys
orprotocol.json
$ cardano-cli query utxo \ --testnet-magic 1097911063 \ --address $(cat ../keys/payment1.addr)
The text was updated successfully, but these errors were encountered: