Better Late Than never

July 3, 2013 whiteboard

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?

About the Author

Biography

Previous
Why Passbook Integration is a Must
Why Passbook Integration is a Must

This month, Apple’s Passbook application will mark its first birthday since being announced at Apple Worldw...

Next
BJ Orvis – Rails Security
BJ Orvis – Rails Security

BJ Orvis provides an overview of web security and focuses in particular on Rails, presenting some common vu...