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

Code Style is incorrect #49

Closed
mrdjohnson opened this issue May 5, 2017 · 2 comments
Closed

Code Style is incorrect #49

mrdjohnson opened this issue May 5, 2017 · 2 comments

Comments

@mrdjohnson
Copy link

Java:
code is written to look like its C# (sure that SEEMS ok, but if the point of this code to introduce is to people then we'll just have more people writing code that does not look right)

Scala
The Scala looks like the Java that looks like C# . Also, Scala is functional (or at least it can be) your code is essentially modified Java, yes it works, but it needs to be correct no?

Python
Only looked a tiny bit, but there is never a reason to return None at the end of a file,this happens already. If that was done for newb purposes then I suggest doing it in a comment instead?

Other languages and Conclusion:
Using Intellij has helped many people when it comes to conforming to style standards. You may be thinking "Well that is just how I write it" Cool, neat, but if this is for other people, or even for recruiters to gawk at in amazement, would it not be better to have good examples online?

(all that said, i like this project, its pretty cool to have stuff like this out here, I have a similar idea but RossetaCode kinda beat me to it )

@theycallmemac
Copy link
Contributor

theycallmemac commented May 5, 2017

I agree with this, maybe people behind TheAlgorithms agree that each language should conform to a set standard, PEP8 for Python for example. I'll help if needed.

@jfsanin
Copy link

jfsanin commented Dec 26, 2017

I guess writing "correct code" for every language is quite time consuming, as I understand this repository is just to learn about algorithms not a guide to write specific code in a specific language.

I agree that specific code help a lot of people to get better coding skills ("for example writing Scala in a functional way") but it is not the intention of this repository, however, the community could help to write better examples and make this repository more language-specific.

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

No branches or pull requests

4 participants