ruby / TryRuby

This 4th iteration of TryRuby is a website where you can learn the Ruby language.
https://try.ruby-lang.org
MIT License
224 stars 97 forks source link

Summary #6: Add a link to the real program #42

Open duianto opened 5 years ago

duianto commented 5 years ago

Exercise/Summary: Summary #6 Which Means You've Come So Far

In the 4th section: Pretty printing The second sentence says:

In fact you made a real program!

Maybe "you made a real program" (it's displayed with a bold font) should be a link to the real program, because I don't know which one that was.

easydatawarehousing commented 5 years ago

The real program refers to the 'Me hungry' lesson.
Currently it is not possible to add a link to another lesson. Not sure if adding this would be an improvement. It might take the student out of his/her flow.
Changing the text to something like 'In fact you made a real program that tells you that you might be hungry' is possible. But this has the disadvantage that it should be changed in all supported languages. And that is quite a big effort.

duianto commented 5 years ago

I was just curious which program it was, and thought that someone else might wonder the same thing.

Maybe the simplest solution would be to just add the "Me hungry" lessons title from try_ruby_440.md to the end of the "you made a real program" line in try_ruby_450.md, like this:

... you made a real program! (Me hungry)

These seem to be the currently supported languages: https://github.com/ruby/TryRuby/tree/master/translations en, es, ja, nl, pt-br, ru.

The real program lines would look like this:

en

And if that wasn't enough, you formatted and printed some values in a way that is easy to read for humans. In fact you made a real program! (Me hungry)

es

Si eso no fuera suficiente, has formateado e imprimido algunos valores de una manera fácil de leer para humanos. De hecho ¡has hecho un programa real! (Tengo hambre)

ja

そして手に入った値が十分ではなかったので、人が読みやすい形に書式を整え、値を表示させました。 つまり、現実のプログラムを作りました!(腹ペコです)

nl

En alsof dat allemaal nog niet genoeg was heb je ook nog wat variabelen heel netjes en leesbaar uitgeprint. Je hebt in feite al een echt programma gemaakt ! (Ik ben hongerig)

pt-br

E como se isso não fosse o bastante, você formatou e imprimiu alguns valores de uma forma que é fácil para humanos ler. De fato, você fez um programa real! (Mim fome)

ru

И если этого недостаточно, то вы научились делать красивый вывод. Это ведь настоящая программа! (Я голоден)