Skip to content

Conversation

@jasonkarns
Copy link
Contributor

Summary

  • Moves Optimizely::Project into the file corresponding to its name.
  • Removes requires that aren't necessary (don't provide referenced constants within Project)
  • Adds missing require
  • Keeps "extraneous" requires in lib/optimizely.rb to make this change essentially a noop from behavior perspective.

Classes and modules should be defined in files that correspond to their name. This ensures that developers will know the right place to look because things will be in their conventional location.

Remove requires from project.rb which aren't referenced.
Add missing requires to project.rb which _are_ referenced.
Remove requires from optimizely.rb which aren't referenced, but are
already required by project.rb.
@brianlucas
Copy link

@jasonkarns This looks good, would you mind doing a rebase/remerge if it's not too much trouble and we can approve (assuming our tests pass)

Copy link

@brianlucas brianlucas left a comment

Choose a reason for hiding this comment

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

lgtm

@oakbani
Copy link
Contributor

oakbani commented Dec 4, 2019

@jasonkarns
Copy link
Contributor Author

too much drift.

@jasonkarns jasonkarns closed this Apr 30, 2020
@jasonkarns jasonkarns deleted the conventional-file branch April 30, 2020 18:57
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.

4 participants