ruby-challenges's People
Forkers
tsaker95 matthew-puku faetil fari3001 totallynotleo danakalee gjohn34 rachelwong wclifford1 ronnoci tanneo m0n4d1 lomaslove crystal-knight dylan-speight mtdago jackdwalker msmithstubbs flynnwebdev varshabapat jasmine1lewis michellejbryant carlmccabe kkk987 jamiemills98 lelaniparker loui7 natkat9 carliehamilton t-hnh10 absmohamed ldoughnutl boisyyy sizsan christopherhildebrandt janelbrandon jhyetech raeginez vicnatacu tdog16 liamgkuhn sherinemathew helluvadallas insidium charliegucci gj-ca sudo-dax davidjono1985 daaxe edgarscar kristybn shaunamack phillipyoo techiemum adams-coding thestrongcoder raphaelpl lvemavarapuruby-challenges's Issues
Review comments for time_and_bar challenge
You did a great job with your solutions to this challenge. I'll just give some feedback here.
I like your solution with arrays - it was unexpected for me. I wouldn't have thought to solve it by creating arrays with a number of items that match the number of drinks ordered. It would get to be an expensive solution with large amounts of data, but it is creative :)
Your solution with a Drink class is really nice. You demonstrated you can use classes, and there is just one piece of feedback I have to help you grow in understanding. You defined drinklog as an instance variable in your class but you don't use it, instead you actually keep track of it in your main program. One thing to consider is whether or not you should keep track of a drink order in the drink class, and the answer is really that you shouldn't. You could create another class called DrinkOrder, and use it to keep track of the order, including what drinks are in the order and cost, price, and profit.
We can chat about it if it doesn't make sense :)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.