Skip to content

Unifying algorithms and examples (code) #320

Open
@PudottaPommin

Description

@PudottaPommin

Hey,

when I was looking through code examples, I noticed, each implementation is different from each other. Which is expected in some way. But we should try to unify things like:

  • input values
  • printed output
  • naming of functions - where possible

When you change from one language to another, it's sometimes hard to understand what that algorithm does.

Example: Monte Carlo
Java implemented everything as static functions with sample size 1000.
JS is functions, which is fine (JS versioning is different topic) with sample size 100000000.
Swift is mix of objects/functions (can't say if good/bad, I don't know Swift) with sample size 10000.
@julianschacher is making C# implentation which uses OOP and looks good. So it could be example for OOP languages implementation.

You may agree with me or not, I can be wrong in this, but it's worth discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DiscussionThis is open for a discussion.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions