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

C++_2 #7

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

C++_2 #7

wants to merge 11 commits into from

Conversation

Aj163
Copy link
Member

@Aj163 Aj163 commented Sep 23, 2017

Implementation of LFU Cache, using C++

mohitreddy1996 and others added 5 commits May 2, 2017 23:47
* First Cut made

* Insert done. Refractoring to be done

* Remove implemented

* Access code done.

* Testing skeleton code added

* Code restart

* LFU Testing done!

* Todos Removed

* Refractoring

* Changes and Cpp Unit Tests Added.

* Source files added

* Cmake files removed
Copy link
Contributor

@mohitreddy1996 mohitreddy1996 left a comment

Choose a reason for hiding this comment

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

  1. Create a .h class to define the necessary classes.
    For the same header file, create a .cc file and implement all the necessary member funtions in that.
  2. _main.cpp is not required. Use unit testing to test the functionality of the program. And refer to testcases.md for the tests for which the program should pass.
  3. Follow a coding convention through out. Name a function/class/struct in camel cases. variable names separated by '_'.
  4. Add required comments.

Good example to get started with test suite.
CPPUnit testing: http://cppunit.sourceforge.net/doc/cvs/money_example.html

Good first attempt. Didnt check the functionality. Once the changes are made, second review will be done. Thanks,

Copy link
Contributor

@mohitreddy1996 mohitreddy1996 left a comment

Choose a reason for hiding this comment

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

Please change the file names. Give them appropriate names. prototype.h and member functions are too generic. Consider naming LFU.h and LFU.cc. While compile link the .cc with the _main.cc with LFU.h included in _main.cc file and _test.cc files.

@Aj163
Copy link
Member Author

Aj163 commented Nov 11, 2017

Any other changes required? @mohitreddy1996

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.

2 participants