Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ana- Solar System Final #50

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Ana- Solar System Final #50

wants to merge 4 commits into from

Conversation

anakp07
Copy link

@anakp07 anakp07 commented Sep 26, 2020

Assignment Submission: Solar System

Congratulations! You're submitting your assignment. Please reflect on the assignment with these questions.

Reflection

Question Answer
When does the initialize method run? What does it do? it allowed me to set the initial values for the object
Why do you imagine we made our instance variables readable but not writable? We wanted the info in objects to be accessible (Read) and not be able to change as the program runs, which could lead to bugs.
How would your program be different if each planet was stored as a Hash instead of an instance of a class? I think it would be similar? I am not 100 % sure but I assume we can pair the @name and create key pairs.
How would your program be different if your SolarSystem class used a Hash instead of an Array to store the list of planets? . It would just be a different way of accessing the data, but I think it could still work.
There is a software design principle called the SRP. The Single Responsibility Principle (SRP) says that each class should be responsible for exactly one thing. Do your classes follow SRP? What responsibilities do they have? Yes each of my classes is only responsible for addressing the needs of that specific class. They track the actions and behavior of the planets and then the items within solar system.
How did you organize your require statements? Which files needed requires, and which did not? What is the pattern? the main ruby file that ran my code is the one that needed the require statements which were the two different classes.

@anakp07 anakp07 changed the title Ana - Draft Solar System Ana- Solar System Final Sep 26, 2020
@anakp07 anakp07 marked this pull request as ready for review September 26, 2020 22:41
@anakp07
Copy link
Author

anakp07 commented Sep 26, 2020

Completed the waves. However, when I ran it and executed the "list details" and selected a planet, it only gave me the info for Mercury. I tried to troubleshoot but was not successful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant