Skip to content

Conversation

@julie-is-late
Copy link
Member

implement data handling application logic which manages the data handling
Written by: @loganga and @jshap70

Reviewed by: @ObsessiveOrange @fahslaj

👍 👍 💯 👍 👍

rawData := p.Data
err := json.Unmarshal(rawData, &p)
return p, err
}
Copy link

Choose a reason for hiding this comment

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

Why are these not a helper function? You literally have the same code block 5 times.

@ObsessiveOrange
Copy link
Member

Also, as a general rule of thumb, try to pass references around. Passing structs by value creates an entirely new struct, causing a lot of memory overhead if we are calling many functions.

@ObsessiveOrange ObsessiveOrange merged commit c6e93ea into test Apr 19, 2016
@julie-is-late julie-is-late deleted the datahandling branch July 25, 2016 05: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.

3 participants