GithubHelp home page GithubHelp logo

mario's People

Contributors

xephorium avatar

Watchers

 avatar  avatar

mario's Issues

Nice Job

Hey Chris,

A couple of things caught my eye that you did really well.

Great job wrapping your pyramid logic into an object and utilizing toString. That's known as the value object pattern and it's something that you'll use all the time. Great job with that.

Also, great job using a constructor to populate the default data in your pyramid object

Concern over static classes in strategy design

Although, this project's most recent refactor (pset2) did clean up the main (Mario) class and replace most unruly code with reusable method calls, I'm worried that simply creating a static Utilities class and moving tasks there doesn't take full advantage of the strategy design pattern. With such a small application, I'm having a hard time coming up with a better alternative, though. I see that in problem set 3, the instructions reference a "Printer" Interface. For simplicity, I'll go ahead and create my own Printer interface as well as corresponding strategy classes. But, even then, the Utilities class will remain with greeting and sentinel methods.

@MoMenne Is it acceptable practice to use static classes this way? If so, is there a good rule of thumb for deciding when they're becoming too bloated with random methods?

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.