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

Changed SNIPPET.txt to be a small standalone program #306

Merged
merged 2 commits into from
Jun 13, 2018

Conversation

jackhughesweb
Copy link
Contributor

I've changed the code snippet to appear more like a standard "Hello, World!" program, which can be compiled and run. I've also included a for loop to make use of the available space in the snippet box.

[Issue #303]

docs/SNIPPET.txt Outdated

int main(int argc, char* argv[]) {

for (int i = 1; i <= 5; i++) {
Copy link
Contributor

@wolf99 wolf99 Jun 13, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we get rid of the for loop?
I'd thought the idea of the SNIPPET.md is to provide the simplest program as possible to provide a very basic example. Indeed, I'm assuming this is why you think it should be self-contained? Anyone with no programming experience at all would see a for loop as a pretty arcane piece of symbol garbage. There is nothing wrong with a single line program :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense! I'll get that fixed 👍

@ryanplusplus
Copy link
Member

Looks great, thanks!

@ryanplusplus ryanplusplus merged commit b59122d into exercism:master Jun 13, 2018
@jackhughesweb jackhughesweb deleted the snippet branch June 14, 2018 08:15
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

Successfully merging this pull request may close these issues.

3 participants