kjs222 / black_thursday Goto Github PK
View Code? Open in Web Editor NEWThis project forked from turingschool-examples/black_thursday
This project forked from turingschool-examples/black_thursday
Go back and remove repetitive method use
(item.item) and utilize "all" method
Add more edge case testing at end
Looking over the reading for chapters pertaining to "Dependency Injection" and also "Duck Typing"
look into module
seems to be a number of functions that find all X objects with high/low X feature.
we can probably write a flexible function that works for all of these cases.
What is it? How to do
include the "require" bits
Send over whenever just so I can add for portfolio
Colin, fix your shit
Iteration 1 Merchants #items returns associated items
Failure/Error: expected = merchant.items
NoMethodError:
undefined method `find_all_by_merchant_id' for nil:NilClass
Iteration 1 Sales Analyst #average_items_per_merchant_standard_deviation returns the standard deviation
Failure/Error: expected = sales_analyst.average_items_per_merchant_standard_deviation
NoMethodError:
undefined method `average_items_per_merchant_standard_deviation' for #SalesAnalyst:0x007fb50a11e768
Did you mean? average_items_per_merchant
Iteration 1 Sales Analyst #average_item_price_for_merchant returns the average item price for the given merchant
Failure/Error: expect(expected).to eq 16.66
expected: 16.66
got: 16.656666666666666666666666667 (#<BigDecimal:7fb50a264438,'0.1665666666 6666666666 666666667E2',36(45)>)
(compared using ==)
# ./spec/iteration_1_spec.rb:61:in `block (3 levels) in <top (required)>'
expected: 350.29
got: 350.294697495132463357977937150568421052631578947 (#<BigDecimal:7fb50a2a4010,'0.3502946974 9513246335 7977937150 5684210526 31578947E3',54(63)>)
(compared using ==)
# ./spec/iteration_1_spec.rb:68:in `block (3 levels) in <top (required)>'
Big Decimal
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.