-
-
Notifications
You must be signed in to change notification settings - Fork 360
Removing useless code in tree traversal. #107
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
Conversation
I would love to review/approve this PR and I'm sure I'm not the first to look at it, but the lack of a description makes it kind of difficult to understand what's going on. Why was the code there in the first place? What made it unnecessary? |
In addition to what I said above, you seem to have removed the wrong file. The Julia code now says this for every function:
|
There were two files both identical. So I chose to remove it. There really is nothing to add beyond that. I can remove the comments if you would like. |
Nevermind, both files are used. One needs the comments and the other one doesn't. This file is not unnecessary. |
I would still need to change the .md file. |
@Gathros Sorry, I was a little slow updating my last comment. Both files are linked in the .md file because they're both used and they both serve different purposes. One is to fill in missing code (e. g. for Python 3) and the other one is the actual Julia example. One needs the comments, the other one doesn't. The file is not unnecessary. |
I don't see why there needs to be two implementations with the same language one is fine. |
I've updated the .md file to add the warning of |
Ok. I now know what's going on, sorry. So there are several languages without implementations for them in the bulk text. In these cases, we are substituting Julia code. That is the purpose of If we only have one file, then when we list the code at the bottom of the page, the comment "This has not been implemented in your chosen language, so here is the Julia code" will be in the code, which doesn't make sense in that context. It looks to me like both files are necessary unless we update the bulk text to have the phrase "This has not been implemented in your chosen language, so here is the Julia code" just before the code snippets for almost every language that is not julia for certain cases. I am fine with either solution. Keeping 2 files with comments is less work, but it ultimately doesn't matter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took a look at the changes and I think it's nicer this way. I also looked for wrong line numbers in the code imports but everything seems to be correct.
We should think about finding other chapters with missing examples like this one and changing them in the same way. Also, we should note somewhere which code examples are still missing in this chapter.
@Butt4cak3 I made a project for all the missing examples in Tree Traversal. |
Thanks for doing that guys! |
No description provided.