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

Fix: pre existing algorithm area.cpp to follow guidelines #2522

Conversation

rbevin777
Copy link
Contributor

Description of Change

The changes in this PR are to update legacy functionality to conform to the newer guidelines within this repo.

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:

rbevin777 and others added 30 commits July 21, 2023 18:43
…existing-algorithm-area.cpp-to-follow-guidelines
…existing-algorithm-area.cpp-to-follow-guidelines
This is because when doing the multiplication we need to give these data
types a wider area of memory when doing this calculation so we need a 64
bit variable.

Copy link
Collaborator

Choose a reason for hiding this comment

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

dont you think that sometimes we need to find areas of shapes with values with decimal points?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea, I wanted to keep it simple though because of the context of this issue: #2456

I can update these to use floats if you guys want and add more checks. It will increase the complexity though.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we need input from @Panquesito7 is this too simple? it will lack the functionality to do floats and doubles and decimals.

test(); // run self-test implementations
test_square_area_functionality(); // run self-test implementations
test_rect_area_functionality();
test_triangle_area_functionality();
Copy link
Collaborator

@realstealthninja realstealthninja Aug 11, 2023

Choose a reason for hiding this comment

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

please condense all these tests into a single function i.e

static void tests() {
 test_**_**(); // more info on test 
 test_**_**(): // more info on test 
}

@github-actions
Copy link
Contributor

This pull request has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Author has not responded to the comments for over 2 weeks label Sep 12, 2023
@github-actions
Copy link
Contributor

Please ping one of the maintainers once you commit the changes requested or make improvements on the code. If this is not the case and you need some help, feel free to ask for help in our Gitter channel or our Discord server. Thank you for your contributions!

@github-actions github-actions bot closed this Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Author has not responded to the comments for over 2 weeks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants