standup

Better Late Than never

Helps

Fixtures attempting to require files that don’t exist

We have global fixtures turned on in our project and on test startup a method deep in ActiveRecord::Fixtures tries to require a file for each model that does not exist. This causes ton’s of log output and slows the test suite by several minutes.

Interestings

GoLang named return parameters

Go has the ability to name your return values.

func(foo string) (bar string) {
// some stuff
bar = “hello”
// more stuff
return
}

The function will return “hello”. Useful where you would have created an accumulator variable and then returned it.

http://golang.org/doc/effective_go.html#named-results

Private in Go

Struct, function (upper and lower case), package… and what to test?