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

Implement data validation #99

Open
cosmopockets opened this issue Aug 21, 2017 · 20 comments
Open

Implement data validation #99

cosmopockets opened this issue Aug 21, 2017 · 20 comments

Comments

@cosmopockets
Copy link

Could we add some data validation functions such as,
make upper case,
make lower case,
get random double,
get random int?

@mrKappen
Copy link

I am on it!

@alxmjo
Copy link
Collaborator

alxmjo commented Sep 27, 2018

@mrKappen Great! Also, if you're new to the repo and want to get your feet wet, a great way to do that is to migrate an algorithm to the new organization scheme, à la #201 and #202. Let me know if you have any questions.

mrKappen added a commit to mrKappen/Algos that referenced this issue Oct 2, 2018
mrKappen added a commit to mrKappen/Algos that referenced this issue Oct 2, 2018
@alxmjo
Copy link
Collaborator

alxmjo commented May 8, 2020

This also requires some thought as to what our goals would be regarding validation and how we would want to implement it in the project.

@alxmjo alxmjo changed the title Implementing Data Validation Implement data validation May 26, 2020
@beardbytes
Copy link

I am interested and new to open source

@alxmjo
Copy link
Collaborator

alxmjo commented May 28, 2020

Great! Have a look at PR #209. A lot of the work is already done but it was closed automatically a while ago (there were merge issues that were never sorted out).

@beardbytes
Copy link

Alright ! I can't find the file .

@alxmjo
Copy link
Collaborator

alxmjo commented May 29, 2020

@beardbytes
Copy link

Alright ! I can't find the file .

Try this: https://github.com/ProAlgos/ProAlgos-Cpp/pull/209/commits#diff-264aaf8546723aaccf7ce2e80d46ae3f

Okay ! I am looking where the commit conflicts are present .

@alxmjo
Copy link
Collaborator

alxmjo commented May 29, 2020

Might be easiest to just add the file from scratch rather than trying to manage conflicts. I think the folder organization is good, though. include/utils/data_validation.hpp. I think it would be better to separate the random number generation into a different file. And of course we'll want to add unit tests for anything we add.

@beardbytes
Copy link

Okay . So , just to be clear .
I have to make a new file in the include/utils directory . And I have to add data validation functions in this file along with unit tests !

@alxmjo
Copy link
Collaborator

alxmjo commented May 29, 2020

Yep!

  • Create a new file under include/utils called data_conversion.hpp (I think this title is a better reflection of the fact that we're converting cases of characters – we could add other data conversion functions later).
  • In that file add two functions: make_upper_case() and make_lower_case(). The random number generation can go in a different file later on.
  • Add unit tests for these functions under test/utils in a file called data_conversion.cpp.
  • If you're having trouble figuring out what the tests should look like, look at other testing files to get an idea how they work.

Let me know if you have any questions. 🙂

@beardbytes
Copy link

Okay..Thanks for the explanation !

@alxmjo alxmjo linked a pull request May 30, 2020 that will close this issue
3 tasks
@stale
Copy link

stale bot commented Sep 13, 2020

This issue has been automatically marked as inactive because it has not had recent activity. It will be closed in 15 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Inactive label Sep 13, 2020
@subhadeep1912
Copy link

I would like to know whether I can still contribute??

@alxmjo
Copy link
Collaborator

alxmjo commented Oct 4, 2020

I would like to know whether I can still contribute??

Definitely. Just reference this issue in your PR.

0xWaleed added a commit to 0xWaleed/ProAlgos-Cpp that referenced this issue Dec 14, 2020
- Make upper case using bit manipulation with unit tests
- Make lower case using bit manipulation with unit tests
@0xWaleed 0xWaleed mentioned this issue Dec 14, 2020
3 tasks
@0xWaleed
Copy link

0xWaleed commented Dec 14, 2020

Opened a PR for upper/lower case ^ 🥳 and hopefully it closes this issue unless if random int/double still required : ) but I think they are different problems random != conversion 🤔

@0xWaleed
Copy link

@alxmjo Sorry for the mention. Please can you review my pull request, I would appreciate your feedback. Thank you.

@alxmjo
Copy link
Collaborator

alxmjo commented Jan 27, 2021 via email

0xWaleed added a commit to 0xWaleed/ProAlgos-Cpp that referenced this issue Jan 30, 2021
@rohithv999
Copy link

rohithv999 commented Jan 30, 2022

I am interested in contributing to this issue. Also, I am new to open source.

@ParthSaboo007
Copy link

Hi @alxmjo I am interested in contributing to this repo as my first PR.

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

Successfully merging a pull request may close this issue.

9 participants