xephorium / mario Goto Github PK
View Code? Open in Web Editor NEWLaunchCode Java CS50 Program #1
LaunchCode Java CS50 Program #1
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
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?
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.