[go-nuts] Re: Experience using Go for a student projet

2017-08-01 Thread Juliusz Chroboczek
> suggests you should move the wg.Add(1) out of the Goroutine from here: [...] > to there Thanks, that's an actual bug. > * Do you happen to know about the context package? It seems like a lot of > the closedown can happen if you recast part of the system as contexts and > cancel those explicit

Re: [go-nuts] Re: Experience using Go for a student projet

2017-07-30 Thread Jesper Louis Andersen
The documentation for https://golang.org/pkg/sync/#WaitGroup.Add suggests you should move the wg.Add(1) out of the Goroutine from here: https://github.com/Vivena/babelweb2/blob/03d03818e125f6f34c3b323b6cba786075888c00/main.go#L63 to there https://github.com/Vivena/babelweb2/blob/03d03818e125f6

[go-nuts] Re: Experience using Go for a student projet

2017-07-30 Thread Juliusz Chroboczek
> How did your students adjust to working with the GOPATH? No issue at all. I told them to create a directory under ~/go/src, and that was it. > It seems to cause some people trouble. In my experience, undergraduate students accept pretty much anything if the instructions you give them are clea

Re: [go-nuts] Re: Experience using Go for a student projet

2017-07-30 Thread Tyler Compton
Hi Juliusz, How did your students adjust to working with the GOPATH? I'm always interested to see how newcomers react to it. It seems to cause some people trouble. On Sun, Jul 30, 2017, 12:14 PM Juliusz Chroboczek wrote: > > I glanced at babelweb2 (https://github.com/Vivena/babelweb2/). A code

[go-nuts] Re: Experience using Go for a student projet

2017-07-30 Thread Juliusz Chroboczek
> I glanced at babelweb2 (https://github.com/Vivena/babelweb2/). A code > review would be useful. For example, from parser/parser.go: Thanks for the review. As I've mentioned, neither the students nor me had any significant experience with Go, so we were learning as we went along. If you happen

[go-nuts] Re: Experience using Go for a student projet

2017-07-30 Thread peterGo
Juliusz, Thank you. That's very interesting. Code should be correct, maintainable, robust, readable, and reasonably efficient. Readablity is a prerequisite for the other properties. I glanced at babelweb2 (https://github.com/Vivena/babelweb2/). A code review would be useful. For example, from