Skip to content

hello-world: Be more function-oriented, not program-oriented #322

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

Merged
merged 1 commit into from
Aug 7, 2016
Merged

hello-world: Be more function-oriented, not program-oriented #322

merged 1 commit into from
Aug 7, 2016

Conversation

petertseng
Copy link
Member

As exercism/exercism#2746 rightfully
explains, the wording of "program" implies that the student is expected
to write a full program with a main function (or equivalent entry point
in language of choice).

Further, the wording of "greets" slightly implies that the function is
expected to put the result on STDOUT.

To remedy this, "program" is replaced with "function" and we specify
that the function should return the greeting.

Note that as #321 states, this is just one of many problems that has
"write a program" in its description. However, the "greets" -> "returns"
wording is an issue not covered by #321, so we deal with it here.

Closes exercism/exercism#2746

@@ -6,11 +6,11 @@

## Specification

The `Hello World!` program will greet me, the caller.
Write a `Hello World!` function that takes a single input (my name) from me, the caller, and returns an appropriate string.
Copy link
Member Author

Choose a reason for hiding this comment

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

I think I'm going to ditch the "from me"

@Insti
Copy link
Contributor

Insti commented Aug 6, 2016

I think these changes are definitely an improvement.

As exercism/exercism#2746 rightfully
explains, the wording of "program" implies that the student is expected
to write a full program with a main function (or equivalent entry point
in language of choice).

Further, the wording of "greets" slightly implies that the function is
expected to put the result on STDOUT.

To remedy this, "program" is replaced with "function" and we specify
that the function should return the greeting.

Note that as #321 states, this is just one of many problems that has
"write a program" in its description. However, the "greets" -> "returns"
wording is an issue not covered by #321, so we deal with it here.

Closes exercism/exercism#2746
@petertseng petertseng merged commit 84258ca into exercism:master Aug 7, 2016
@petertseng petertseng deleted the hello-world branch August 7, 2016 03:03
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.

2 participants