Skip to content
This repository has been archived by the owner on Mar 11, 2022. It is now read-only.

samples - part the shopping cart for samples-go-shoppingcart #33

Open
1 of 3 tasks
marcellanz opened this issue Jun 19, 2020 · 9 comments
Open
1 of 3 tasks

samples - part the shopping cart for samples-go-shoppingcart #33

marcellanz opened this issue Jun 19, 2020 · 9 comments

Comments

@marcellanz
Copy link
Contributor

marcellanz commented Jun 19, 2020

Tasks

  • add the sample repository: samples-go-shoppingcart.
  • part the shopping cart example from the Go TCK.
  • find a story to have the shopping cart only once, TCK and sample, and still use it as tested sourcecode in the docs.
@marcellanz
Copy link
Contributor Author

marcellanz commented Jun 19, 2020

@pvlugter what do you think about a samples repository for the go shopping cart?

@sleipnir
Copy link

@marcellanz Today, most languages have their own examples as part of their own repository. Do you think this is not appropriate? My opinion is that, or we have a single repository of examples for all supported languages, this would make it easier for the user, as it is a unique contact surface for all languages and all examples of supported types, on the other hand, makes it difficult to maintenance. Or the examples of each language reside in its own language repository, which gives the user interested in a language access to everything related to that support language.

@marcellanz
Copy link
Contributor Author

marcellanz commented Jun 19, 2020

@sleipnir I'm open for any form that is in line with the project in large.

My motivation is on one side to part the TCK shopping cart and a properly documented example shopping cart. If someone wants to implement or try out the shopping cart not having to clone the user support library as a whole and then getting confused about what she got. Beside that, I'm planning to have at least two go modules for the TCK part and also the library part, also so that users don't have to go get the TCK code when they use the Go support.

Saying that I see also a growing count of samples-XYZ libraries under the main project:

all recently updated with developer friendly documentation. I'm open to any form to have examples that is appropriate and I'm happy for any insights how we should have a consistent collection of samples.

@sleipnir
Copy link

I think the examples you mentioned are from LBS.
Okay, I hope the best for the project too.
I just think that having a collection of examples spread around is not a good approach, but if the majority decides to do so. The best for everyone is the best for me.

@marcellanz
Copy link
Contributor Author

yeah, see my initial question for Peter.

@sleipnir
Copy link

I saw. I just wanted to leave my opinion on record

@marcellanz
Copy link
Contributor Author

Perfect @sleipnir, thank you. lets discuss it.

@pvlugter
Copy link
Member

Since it's the pattern we're using currently, I've created samples-go-shoppingcart

I'm also not sure that having all the samples in separate repos is the best approach. I think having samples within the language support repos is easier to maintain, and they can evolve along with the language support. We can always publish zips of the samples to download and try, linked from the docs, instead of git cloning.

@marcellanz
Copy link
Contributor Author

Thanks @pvlugter. I agree regarding maintaining the samples. The shopping cart source is visible on three places now; and all of them need verified sources:

  • the TCK shoppingcart
  • /docs samples
  • sample application to be downloaded by developers

I'd prefer to have no paradox tags like

//#compose-entity
//#entity-type

in the source used for the sample application. And even could copy-clean them for the samples repository or any zip file later but always coming from a single source if possible.

@marcellanz marcellanz added this to the Go Support v0.2.x milestone Oct 9, 2020
@marcellanz marcellanz removed this from the Go Support v0.2.x milestone Nov 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants