Skip to content

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

Merged
petertseng merged 1 commit intoexercism:masterfrom
petertseng:hello-world
Aug 7, 2016
Merged

hello-world: Be more function-oriented, not program-oriented#322
petertseng merged 1 commit intoexercism:masterfrom
petertseng:hello-world

Conversation

@petertseng
Copy link
Copy Markdown
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

Comment thread hello-world.md Outdated
## 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
Copy Markdown
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
Copy Markdown
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