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

Canonical language #5

Open
sirex opened this issue Jun 19, 2016 · 1 comment
Open

Canonical language #5

sirex opened this issue Jun 19, 2016 · 1 comment

Comments

@sirex
Copy link
Contributor

sirex commented Jun 19, 2016

Some times it is hard to understand which example of all available languages to follow. Having a canonical language, where all other examples should be based on would help.

So I think, that data/code.yml should have a parameter for each example specifying canonical language. Since programming language have different features, the can't be single canonical language that can cover all cases. So for a specific a canonical language should be one, that have cleanest implementation. For examples like a = 2 + 2, a default canonical language could be used.

As I understand, currently all examples are based on Ruby?

@evmorov
Copy link
Owner

evmorov commented Jun 21, 2016

Interesting proposal.

At the beginning, there were Ruby (mostly) and CoffeeScript. I tried to write in CoffeeScript using Ruby examples and I succeeded I think.

Now I'm trying to make language sections more independent. Trying to think about programming in general rather than on language features (but surely you can't avoid specific language features if they are good). That's why there is a functionality that hides a section if there are no examples in both languages.

Now there are quite similar languages (mostly object-oriented) but I think we can add even functional languages. Imagine we were comparing Ruby and Elixir. There would be a lot of "No easy way to do that" but still there would be sections with the both langs. You can look at them and understand what are the similarities and what are the differences.

Thank you for sharing you thoughts. I understand the problem and will think about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants