-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Bring all the folder structures of the repositories to a common standard #64
Comments
I strongly disagree with @ayaankhan98 on this matter because every language has its own style and ways. This is the reason why we need algorithms in many languages instead of just implementing them once in a pseudo-language. Algorithm implementations in different languages are the same algorithm, just expressed differently. This allows folks to learn the way things are done in a language. For example, one class per file rule is a de-facto standard in the .Net world and there is no good reason to violate this and put tests and code together. If we do so, people will get bad coding habits and will have to re-learn and break their bad coding habits when the time to do real work comes. As we are a big community and many people using our repositories are students, I think it's irresponsible from our side to set them a bad example with code that violates language and industry standards and best practices. |
some previous discussions on the same issue TheAlgorithms/Java#474 |
In project type structure files are dependent on each other, learners will not be capable of executing a single file in isolation. |
Yes, you cannot execute a file in C# and other compiled languages. And what does it mean to execute an algorithm in the first place? You can apply an algorithm to solve an instance of a problem, but you cannot execute an algorithm per se. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Please ping one of the maintainers once you add more information and updates here. If this is not the case and you need some help, feel free to ask for help in our Gitter channel. Thank you for your contributions! |
It is probably a good idea to bring all the folders in the different repositories to a common standard.
From @ayaankhan98 #60 (comment)
There are already a lot of repositories with the same or almost the same folder structure (python, C++, C, ...), so we are probably going with a folder structure like in the python repo.
That means, every algorithm is in a single file (including inline documentation and tests) and every repo has the same top level folders (for example
divide_and_conquer
).The text was updated successfully, but these errors were encountered: