forked from AdaGold/FarMar
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FarMar #35
Open
nahmisa
wants to merge
42
commits into
Ada-C5:master
Choose a base branch
from
nahmisa:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
FarMar #35
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…write similar methods) Wanted to move common methods across Markets and Vendors into DataClass Class so other classes (Market, Product, Vendor, Sales) could inherit them. Not sure I like it yet... But I'll get there!
…ot of the repetitive code
Ugh. Used parallel assignment! This was really cool, but now everything is coming through as a string... messed up some ID matching which I've mostly fixed now. Will see what other problems this causes. Weirdness with Sale method. Will fix after lunch.
… because of parallel assignment
….by_markets method as well
… self.find anymore since this is a wrong level of abstraction
…ces in Vendor & market specs
…rn instances (re-read requirements :().
…eturning methods (vendor, market) so we don't have to search over everything if we only want one instance
…ot of commented out code
Turns out it was a problem with the way my tests were written... (and not nils in the data file). Changed random sampling of instance from array to validating each isntance of the array is an instance of the appropriate data class. Also started reduce in revenue method from 0.0 so it always returns a float (durr). My tests are now shorter AND test more, so win-win (plus they pass! :D)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Sarah Nahmias
I'm still trying to find the line between refactoring and having my code still be readable to a human who isn't me (and may not understand why I have 1000000000 arguments per method). Coaching on that would be greatly appreciated! As well as any other spots I'm missing the mark but maybe just not cognizant of it yet.
Thanks for a fun project!!!!