Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Plan9

Name: Anonymous 2008-08-07 16:56

I want to program for plan9, which language would suit me best?

Name: Anonymous 2008-08-12 13:33

>>10
What about 'Ha'x3-ruhi?

Name: Anonymous 2008-08-12 17:38

>>12
As simply typing "HaHaHaruhi" would have taken you less time and less key presses, I am highly interested in learning what exactly you were trying to accomplish when you decided to produce this horrible abbreviomination.

Name: Anonymous 2008-08-12 18:33

take 6 (cycle "Ha") ++ "ruhi"

Name: Grammar Nazi Meme Fan 2008-08-12 19:06

>>13
fewer key presses

Name: Anonymous 2008-08-12 19:15

cycle "Ha" ++ "ruhi"

Name: HAX MY SEPPLES MEME FAN 2008-08-12 19:26


wxString GetTrannyName() {
   wxString str;
   for( int i = 0; i < 3; i++ ) {
      str << "Ha";
   }
   str << "ruhi";
   return str;
}

OPTIMIZED1
­
________________________
1 - Compared to an equivalent Ruby implementation.

Name: Anonymous 2008-08-12 20:17

#include <string>
#include <iostream>

using namespace std;

template <int i>
struct TrannyName
{
   static const string str;
};

template <int i>
const string TrannyName<i>::str = string("Ha") + TrannyName<i - 1>::str;

template <>
const string TrannyName<0>::str = "ruhi";

int
main(void)
{
   cout << TrannyName<3>::str << endl;
   return 0;
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List