-
Notifications
You must be signed in to change notification settings - Fork 42
use 👋🌍 as a "Hello World!" greeting #89
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: master
Are you sure you want to change the base?
Conversation
I think #91 originally was only concerned with the example on the front-page, i.e. emojicode.org. While I'm fine with changing that, I feel it can be confusing for newcomers if we print emojis in the tutorial right away. Then the code is just a wall of emojis. However, there's nothing wrong with adding "emoji" as a "language" to the other sections (More Greetings, Internationalizing Our Greeter) of the tutorial. |
src/guides/compile-and-run.md
Outdated
>!H You must have installed Emojicode to run the following commands. | ||
>!H See [Installing Emojicode](install.html) if you haven’t already. | ||
> !H You must have installed Emojicode to run the following commands. | ||
> !H See [Installing Emojicode](install.html) if you haven’t already. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Theses spaces break the callout: https://deploy-preview-89--emojicode.netlify.app/docs/guides/compile-and-run.html#greetings
looks great! |
@thbwd yes, the front page example is what triggered me, but I have to say that I'm impressed even more if you consider changing all the other example code too. I have to admit that I didn't even think about internationalization at first, but I fully support the argument that 👋🌎 is much more international than 'hello world' and therefore gives the project an even bigger international appeal. Regarding the Wall of emojis I would argue two front:
class Greeter {
public static void main(String[] args) {
System.out.println("Hello World")
}
}
(Sorry about the off by one) |
My argument was that it's harder for people to recognize the string in the code sample if there are only emojis. Printing "Hello world" makes this very clear. It's not about counting emojis or brevity. A tutorial should be as clear as possible. I'm not sure I get what you're suggesting in 2./3. (#87 related?) but maybe you can illustrate with an example. |
@thbwd Well, I can only reiterate that having a non emoji string in a language that is called emoji code (and that for example allows the file extension to be an emoji), going back to the String 'Hello World' instead of To try and go to a boring argument: If you strive for ultimate clarity of tutorials, I can only recommend that you specify the language so it allows alternative international alternative spellings for all the language constructs so the tutorials can be provided in at least English, but ultimately in the local language of each user. Then later on you can start replacing constructs by their emoji alternatives to drive home the advantages that made you guys choose to build emoji code. In german that could be:
or in english
I'm curious to hear how you guys argue that this wouldn't be much more clear than the emoji version. Then later you can introduce replacement of tokens by their emojis for … whatever your particular reason is to prefer them, I guess? I can only guess what they where (for you) but in the meantime, I would say that you are really missing out bay not using 👋🌍 instead of the boring 'hello world'. |
Maybe to add a compromise, how about going this route (conceptual code following): var helloWorld = "👋🌎"
console.log(helloWorld) That would achieve the clarity you want (albeit at the cost of a variable) while additionally demonstrating how to declare a variable, and still achieving the desired outcome of outputting emoji. I still think it is a shame to the lord, to forego the chance to have a program that is entirely composed of emoji. |
@thbwd did we ever decide what should be done with this? |
As suggested in https://github.com/emojicode/emojicode/issues/186