Skip to content
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

Client readme #1881

Merged
merged 14 commits into from
Mar 9, 2015
Merged

Client readme #1881

merged 14 commits into from
Mar 9, 2015

Conversation

corylanou
Copy link
Contributor

Update the client readme. Add missing comments. Fix inconsistencies in code based on desired behavior.

@corylanou corylanou self-assigned this Mar 9, 2015
@otoolep
Copy link
Contributor

otoolep commented Mar 9, 2015

The changes to the README. Wouldn't it better if all that good information were in the form of GoDoc comments? That way we can just generate documentation automatically.

The content in the README is good, but it just seems to have written GoDoc-type stuff in the README, where the README would be better to point to one of those sites that generates pretty documentation from code comments. That way the documentation is more likely to remain correct.

@corylanou
Copy link
Contributor Author

@otoolep this was generated from the godoc comments. I agree that we need to update our documents as well to give a much better version of this. When that is done, we should remove it from here. For now, we have nothing, so this was just a first attempt at getting something.

@otoolep
Copy link
Contributor

otoolep commented Mar 9, 2015

I was thinking it was very similar to GoDoc. :-)

Perhaps I am missing something, but it's not clear to me why GoDoc-generated stuff needs to be added to the README. Why not just let the source comments speak for themselves, and simply do what Bolt does in its README? I.e. reference the equivalent of:

https://godoc.org/github.com/boltdb/bolt

And use the README for purely some examples, again like Bolt does.

@@ -726,7 +726,7 @@ func TestClientLibrary(t *testing.T) {
}

if test.query.Command != "" {
time.Sleep(50 * time.Millisecond)
time.Sleep(100 * time.Millisecond)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you find you needed to do this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, 50 was sometimes coming up short. 100 always worked. Until we get our wait endpoint back up to par this feels like the best we can do.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, it's just a stop-gap anyway so cool.

@corylanou
Copy link
Contributor Author

@otoolep Sometimes I work to hard :-). I forgot that godoc is automatic on that site.

@otoolep
Copy link
Contributor

otoolep commented Mar 9, 2015

Latest changes look find to me. +1.

corylanou added a commit that referenced this pull request Mar 9, 2015
@corylanou corylanou merged commit e11262c into update-client-write Mar 9, 2015
@corylanou corylanou removed the review label Mar 9, 2015
@corylanou corylanou deleted the client-readme branch March 9, 2015 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants