Skip to content

Conversation

@jlholm
Copy link

@jlholm jlholm commented May 15, 2017

end
end

Counter.new
Copy link
Member

Choose a reason for hiding this comment

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

It is unusual to do all the work in initialize; I would expect Counter.new to prepare a counter object ready to do the work.

It is a bit arbitrary which parts of the code are setup and which are the real work. Perhaps reading the file still belongs in initialize. I like to do some of the prep work in there.

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.

2 participants