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

feature/Refactor your code #5

Merged
merged 21 commits into from
Sep 4, 2023
Merged

feature/Refactor your code #5

merged 21 commits into from
Sep 4, 2023

Conversation

NitBravoA92
Copy link
Owner

@NitBravoA92 NitBravoA92 commented Sep 4, 2023

🚩Milestone 5: Refactor your code | refactor - >>branch<< -

Hi there! @NitBravoA92 and @ahmedeid6842 here. 👋

This is the PR for the Refactor your code activity. The main objective of this Milestone is to refactor the application code, to make it much cleaner and more maintainable by applying the SOLID principle and the best practices in development with Ruby

Here is a summary of what has been done:

  • Modify the App class, to delegate only the responsibility of processing the logic of the application. For this, all requests for information made to the user and other user's interactions were eliminated (for example: Request data to create or list information on people and income). Now the class has clearer responsibilities

  • Create the UserInterfaceActions class, which implements all the interactions that the user will have with the application, such as requesting and entering information to create people, books, and rentals, and also displaying the list of books, people, and rentals

  • Modify the main method of the main.rb file so that it contains the code needed to start the application. For that, an instance of the App class and an instance of the UserInterfaceActions class have been created and when the menu method of this class is called, the application begins its execution.

  • Update the README.md file

⭐To the code reviewer 👨‍💻

💝 We really thank 🙇‍♂️ you, dear code reviewer 👨‍🎨 for dedicating your precious 🥇 time ⌚ to check the PR 🧾 .

We kindly ask 🙏 dear code reviewer 🤵 that if there is any kind of issue 🦯 in this project, please do list 📃 them in a descriptive 💡 manner and give your best suggestions 🎁 if needed.

If you think some big issues are essential to be changed ♻️ please kindly contact 📞 us through Zoom or Slack, We're available on Microverse UTC-6 time zone.

@ahmedeid6842 ahmedeid6842 added the enhancement New feature or request label Sep 4, 2023
Copy link

@Omar-Muhamad Omar-Muhamad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved ✔

Hi @NitBravoA92 and @ahmedeid6842,

Great job, Your project is complete! There is nothing else to say other than... it's time to merge it :shipit:

Congratulations! 🎉

giphy (1)

(Highlights) Good Points: 👍

  • Your work is well documented. ✔
  • The correct workflow is used. ✔
  • All linters checks are ok. ✔

(Changes Required) Aspects to improve: ♻️

  • N/A

[Optional] suggestions:

  • N/A

Every comment with the [OPTIONAL] prefix is not crucial enough to stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better.

**Cheers and Happy coding!👏👏👏

Feel free to leave any questions or comments in the PR thread if something is not 100% clear, and please remember to tag me in your question so I can receive the notification**

Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.


As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

@NitBravoA92 NitBravoA92 merged commit 38e75d1 into dev Sep 4, 2023
1 check passed
@ahmedeid6842
Copy link
Collaborator

@Omar-Muhamad
Many thanks for your time and effort to review our code. 🙏

By the way Alex is one of my top picks for cities to visit. 😆 ❤️

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

Successfully merging this pull request may close these issues.

3 participants