Dear Princess Celestia: Letter One
Today I Learned an important lesson about friendship.
I learned how to write "Hello World!"
Your faithful student, Twilight Sparkle.
P.S. In this case, the syntax is similar to C++.
----------------------------------------------------------------------
Dear Princess Celestia: Letter One
I wrote "Hello World!"
Your faithful student, Twilight Sparkle.
P.S. In this case, the syntax mirrors that of Python syntax. I'll leave it to you, readers, to decide which one you deem better. -Twilight Sparkle
----------------------------------------------------------------------
Dear Princess Celestia: Letter One
Today I learned how to sing Applejack's Drinking Song.
I learned Applejack's Drinking Song with Applejack.
Did you know that Applejack likes the number 99?
I did this while Applejack had more than 1.
I sang " 'Applejack' jugs of cider on the wall, 'Applejack' jugs of cider,"
Applejack got one less.
When Applejack had more than 1,
I sang "Take one down and pass it around, 'Applejack' jugs of cider on the wall."
In the end, I did this instead.
I sang "Take one down and pass it around, 1 jug of cider on the wall.
1 jug of cider on the wall, 1 jug of cider.
Take one down and pass it around, no more jugs of cider on the wall."
That's what I did.
In the end, I did this instead.
I sang "No more jugs of cider on the wall, no more jugs of cider.
Go to the store and buy some more, 99 jugs of cider on the wall."
That's what I did.
That's about Applejack's Drinking Song with Applejack!
Your faithful student, Twilight Sparkle.
P.S. Twilight's drunken state truly frightened me, so I couldn't disregard her order to send you this letter. Who would have thought her first reaction to hard cider would be this... explosive? I need your advice, your help, everything, on how to deal with her drunk... self. -Spike
Though I guess FiM++ isn't well suited for scientific purposes. Too bad, because then I could have doubled my fun at work
Not only is is consistent and unambiguous, but it can still be read as a letter! I hope you guys like what it's become, and feel free to contribute your opinions!
Today I learned recursion.
I remembered recursion!
That's all about recursion.
Your faithful student, Kyli Rouge.
The five lines of code you gave me earlier brought me much joy,
more so because they arrived at the opportune moment of the end of today's day court.
You have my gratitude for your contributions to the development of the new cipher, hereby known as FiM++.
May your name be known in the history of logicians that helped Equestria become the nation as it stands today.
Best wishes,
Princess Celestia of Equestria."
Oh, I almost forgot. Would you be able to give me access to the first page?
While I myself is not much of a programmer, I should be able to write a foreword that details the purpose and quirks of the language. My user name there is SingleCrystal.
"Your Highness Celestia,
It's been a pleasure working for Equestria to bring the everypony into the modern era. You can count on me if you ever need anything.
Humbly yours,
~Digit Shine"
As I said in the chat, simply click the blue "Share" button and do what is says, and I'll be able to add you :3
I'll make a space for your foreword ^^
I mean, I've been working with C# for over a year now and I really like working with it, but I think this'll be my new favourite language xD
Right now though, I have to learn how to work with a functional language: Haskell @_@
Gah, gimme FiM++ plox xD
In the first and second examples you should need to close the "an important lesson about friendship" function with "That's all about an important lesson about friendship!". I'm also confused with your if statement with two elses in the second example... I assume you're trying to say "go to the store and buy more cider" when the while loop is finished. If that's true you need to add an end to your while loop and place the last line of "100 bottles of cider" outside the for loop.
In this example you also declare the main function (how to sing applejack's drinking song) but never call your Applejack's drinking song function or do anything with the return (with Applejack implies you're going to return an object of Applejack type).
Therefore the implementation of "100 bottles of cider" should look more like this:
Dear Princess Celestia: Letter One
I learned applejack's drinking song.
Did you know applejack's number is 100?
I did this while applejack's number was greater than 0:
I sang applejack's number " bottles of cider on the wall " applejack's number " bottles of cider ".
applejack's number is one less.
If applejack's number was greater than 1,
I sang "take one down, pass it around, " applejack's number " bottles of cider on the wall".
That's what I did.
Otherwise,
I sang "take one down and pass it around, no more jugs of cider on the wall."
That's what I did.
That's what I did.
I sang "No more jugs of cider on the wall, no more jugs of cider. Go to the store and buy some more, 99 jugs of cider on the wall."
That's all about applejack's drinking song!
Today I learned a new song.
I remembered applejack's drinking song.
That's all about a new song!
Your faithful student, Twilight Sparkle.