ProAlgos-Cpp icon indicating copy to clipboard operation
ProAlgos-Cpp copied to clipboard

Implement data validation

Open cosmopockets opened this issue 7 years ago • 20 comments

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

cosmopockets avatar Aug 21 '17 19:08 cosmopockets

I am on it!

mrKappen avatar Sep 27 '18 14:09 mrKappen

@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.

alxmjo avatar Sep 27 '18 16:09 alxmjo

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 avatar May 08 '20 13:05 alxmjo

I am interested and new to open source

beardbytes avatar May 28 '20 19:05 beardbytes

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).

alxmjo avatar May 28 '20 20:05 alxmjo

Alright ! I can't find the file .

beardbytes avatar May 29 '20 17:05 beardbytes

Alright ! I can't find the file .

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

alxmjo avatar May 29 '20 17:05 alxmjo

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 .

beardbytes avatar May 29 '20 17:05 beardbytes

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.

alxmjo avatar May 29 '20 17:05 alxmjo

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 !

beardbytes avatar May 29 '20 17:05 beardbytes

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. 🙂

alxmjo avatar May 29 '20 17:05 alxmjo

Okay..Thanks for the explanation !

beardbytes avatar May 29 '20 17:05 beardbytes

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[bot] avatar Sep 13 '20 13:09 stale[bot]

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

subhadeep1912 avatar Oct 03 '20 14:10 subhadeep1912

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

Definitely. Just reference this issue in your PR.

alxmjo avatar Oct 04 '20 10:10 alxmjo

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 🤔

0xwal avatar Dec 14 '20 15:12 0xwal

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

0xwal avatar Jan 24 '21 15:01 0xwal

Sorry it's taken me a bit, but I've added this to my to-do list. Hopefully by Saturday.

On Sun, Jan 24, 2021 at 7:25 PM Waleed Alharbi [email protected] wrote:

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

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ProAlgos/ProAlgos-Cpp/issues/99#issuecomment-766367331, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMUKKX7JBBOFMC42X2RTL3S3Q3UZANCNFSM4DXW6OHA .

alxmjo avatar Jan 27 '21 05:01 alxmjo

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

rohithv999 avatar Jan 30 '22 22:01 rohithv999

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

ParthSaboo007 avatar Oct 02 '22 19:10 ParthSaboo007