-
Notifications
You must be signed in to change notification settings - Fork 25
join implementation #28
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
base: main
Are you sure you want to change the base?
Conversation
…r the joined file
|
Your join works well! However, your documentation should be clearer on what join does, how it works, and the expected output of the tests. Although extensive print statements are good to let the user know what's going on, they can feel overwhelming. Additionally, for lines 291 - 302 or 306 - 318, you could get by with one if statement where count1/count2 <= 0 and print the usage guidelines. There are also some indentation issues within your code. Also, a --help command could be useful for your code. Overall, very great job! |
… output format with examples
…s throughout join.c
Addressed changes in documentation, join (adding help flag and addressed minor indentation issues and made the user feedback when saving results to a file less overwhelming by reducing the amount of print statements.) |
|
Looks good, and thanks for addressing some of the issues already! This is a cool idea for a project. My main misgivings are: the readme is... explaining how to build xv6 etc, talking about toolchains etc. It should just cover join. The other issue is your fixed-sized buffers are pretty small, and that's going to limit the usefulness of this. I've had a few projects add dynamic allocation but in your case this is a complicated enough project to not warrant that. However, there's no reason not to use constants / 4.9/5 +0.1 -> create some constants for your buffer sizes, clean up the docs and help message, and do a final sweep to clean up unnecessary comments. |

The documentation can be quickly accessed from the README on the repo page or just by navigating to the docs directory and then opening documentation.md.