Giter Site home page Giter Site logo

ruby-challenges's People

Contributors

flynnwebdev avatar janelbrandon avatar varshabapat avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ruby-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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.