Post #64,921
11/25/02 12:44:10 PM
|
Mike-Shunning Competition
We want to shun Mike 50 times in the least amount of code possible.
Here's my Perl effort:
perl -e 'for(;$i<50;$i++){print "*shun*\\n";};'
Peter [link|http://www.debian.org|Shill For Hire] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Blog]
|
Post #64,922
11/25/02 12:45:36 PM
|
Bitches.
All y'all.
-YendorMike
[link|http://www.hope-ride.org/|http://www.hope-ride.org/]
|
Post #64,925
11/25/02 12:53:12 PM
11/25/02 12:58:39 PM
|
Shunning Mike with the Snake:
\npython -c "print '*shun*\\n'*50"\n Not a one-liner, but fewer characters to type overall (and slightly different output, but still shunful): [~]$ python Python 2.0 (#1, May 16 2001, 00:02:45) [GCC 2.95.3 20010315 (SuSE)] on linux2 Type "copyright", "credits" or "license" for more information. >>> '*shun* ' * 50 '*shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* *shun* ' Oh, BTW: *shun*
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
Edited by admin
Nov. 25, 2002, 12:58:39 PM EST
|
Post #64,926
11/25/02 12:54:35 PM
|
Bitch
-YendorMike
[link|http://www.hope-ride.org/|http://www.hope-ride.org/]
|
Post #64,927
11/25/02 12:55:48 PM
|
*shun*
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #64,928
11/25/02 12:56:17 PM
|
*shun*
Peter [link|http://www.debian.org|Shill For Hire] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Blog]
|
Post #64,931
11/25/02 1:09:13 PM
|
self.idle("stop"); self.shun("Mike"); self.idle("start");
=== Microsoft offers them the one thing most business people will pay any price for - the ability to say "we had no choice - everyone's doing it that way." -- [link|http://z.iwethey.org/forums/render/content/show?contentid=38978|Andrew Grygus]
|
Post #64,932
11/25/02 1:12:51 PM
|
Bitch
-YendorMike
[link|http://www.hope-ride.org/|http://www.hope-ride.org/]
|
Post #64,950
11/25/02 2:56:40 PM
|
Stop yer bitchin', bitch.
|
Post #65,084
11/26/02 3:24:20 AM
|
Who asked you?
Schweineficker.
-YendorMike
[link|http://www.hope-ride.org/|http://www.hope-ride.org/]
|
Post #64,976
11/25/02 5:32:27 PM
|
bashun
\r\nwhile echo '*shun*';do :;done|head -50\r\n \r\n\r\n 39 characters.
--\r\n Karsten M. Self [link|mailto:kmself@ix.netcom.com|kmself@ix.netcom.com]\r\n [link|http://kmself.home.netcom.com/|http://kmself.home.netcom.com/]\r\n What part of "gestalt" don't you understand?\r\n [link|http://twiki.iwethey.org/twiki/bin/view/Main/|TWikIWETHEY] -- an experiment in collective intelligence. Stupidity. Whatever.\r\n \r\n Keep software free. Oppose the CBDTPA. Kill S.2048 dead.\r\n[link|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html]\r\n
|
Post #64,977
11/25/02 5:41:24 PM
|
Python still the one to beat at 31 characters.
Oh, btw, Mike: *shun*
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #64,988
11/25/02 6:38:10 PM
11/25/02 6:40:33 PM
|
Well I Wouldn't want to shun Mike, but...
if I simply had to shun somebody, maybe:
fort=1to50:?"*shun* ";:next
would be the way to do it on a Commodore 64 (Vic, 128, whatever) in 27 characters.
(Edit: Formatting)
John. Busy lad.
Edited by Meerkat
Nov. 25, 2002, 06:40:33 PM EST
|
Post #64,990
11/25/02 6:41:17 PM
|
Oooers...
Nice and... cramped. I like. ;-)
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #65,083
11/26/02 3:23:58 AM
|
Not you, too!
Bitch.
-YendorMike
[link|http://www.hope-ride.org/|http://www.hope-ride.org/]
|
Post #83,570
2/23/03 7:50:59 PM
|
Nice, but a wee problem...
If you ever LISTed the code, it would expand out the '?' to PRINT IIRC...
I'm getting an urge to write an auto*SHUN*ner in Brainf**k - anybody else tempted?
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." -- Kristian Wilson, Nintendo, Inc, 1989
|
Post #64,997
11/25/02 7:17:53 PM
|
Not any more it ain't
ruby -e'puts"*shun*\\n"*50'
Clocks in at 26.
And your Python golf sucks. Here is 29.
python -c"print'*shun*\\n'*50"
But if the goal is just to get *shun* to appear 50 times, I think the following is pretty decent.
ruby -e'p"*shun*"*50'
21 chars.
The following is probably cheating...
ruby -e'p"*shun"*51'
Cheers, Ben
PS Why not Perl? Use the right tool for the job and all that. Ruby was a better choice this time. :-)
PPS Peter: Learn to loop over ranges already? No need to make Perl look like it sucks more than it does already. :-)
"Career politicians are inherently untrustworthy; if it spends its life buzzing around the outhouse, it\ufffds probably a fly." - [link|http://www.nationalinterest.org/issues/58/Mead.html|Walter Mead]
|
Post #65,086
11/26/02 3:42:18 AM
|
Perl range answer
perl -e "for(1..50){print\\"*shun*\\n\\";}"
Peter [link|http://www.debian.org|Shill For Hire] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Blog]
|
Post #65,097
11/26/02 7:15:29 AM
|
Now inline it
perl -e'print"*shun* "for 1..50'
Or using Scott's trick:
perl -e'print"*shun* "x50'
(Both assume a Unix-like shell.)
Cheers, Ben
PS Ruby still wins at 25:
ruby -e'puts"*shun* "*50'
PPS OK, there is a shorter entry, but it didn't include invoking the language etc. The Ruby program proper is 16 chars.
"Career politicians are inherently untrustworthy; if it spends its life buzzing around the outhouse, it\ufffds probably a fly." - [link|http://www.nationalinterest.org/issues/58/Mead.html|Walter Mead]
|
Post #82,209
2/17/03 12:42:46 AM
|
Re: bashun II
\r\nyes '*shun*'|head -50\r\n \r\n\r\n 21 characters. Best I can tell, invoking an interpreter from the\r\nnext shortest solution involves more characters (that would be Scott's\r\nPython solution). \r\n\r\n\r\n
--\r\n Karsten M. Self [link|mailto:kmself@ix.netcom.com|kmself@ix.netcom.com]\r\n [link|http://kmself.home.netcom.com/|http://kmself.home.netcom.com/]\r\n What part of "gestalt" don't you understand?\r\n [link|http://twiki.iwethey.org/twiki/bin/view/Main/|TWikIWETHEY] -- an experiment in collective intelligence. Stupidity. Whatever.\r\n \r\n Keep software free. Oppose the CBDTPA. Kill S.2048 dead.\r\n[link|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html]\r\n
|
Post #82,210
2/17/03 8:13:54 AM
|
woah... I like it...
b4k4^2
[link|mailto:curley95@attbi.com|greg] - Grand-Master Artist in IT | [link|http://www.iwethey.org/ed_curry/|REMEMBER ED CURRY!] [link|http://pascal.rockford.com:8888/SSK@kQMsmc74S0Tw3KHQiRQmDem0gAIPAgM/edcurry/1//|ED'S GHOST SPEAKS!] | [link|http://www.eweek.com/article2/0,3959,857673,00.asp|Writing on wall, Microsoft to develop apps for Linux by 2004] | Heimatland Geheime Staatspolizei reminds: These [link|http://www.whitehouse.gov/pcipb/cyberstrategy-draft.html|Civilian General Orders], please memorize them. "Questions" will be asked at safety checkpoints. |
|
Post #82,226
2/17/03 10:36:33 AM
2/17/03 10:36:52 AM
|
Reading trouble?
If you read the rest of the thread, the shortest existing solution was [link|http://z.iwethey.org/forums/render/content/show?contentid=64997|mine]. I beat Scott for nice output using Ruby, tied you for just satisfying the rules (albeit with ugly output), and if you make a judgement call just right, I beat you as well. :-P
But that is a nice answer...
Cheers, Ben
"good ideas and bad code build communities, the other three combinations do not" - [link|http://archives.real-time.com/pipermail/cocoon-devel/2000-October/003023.html|Stefano Mazzocchi]
Edited by ben_tilly
Feb. 17, 2003, 10:36:52 AM EST
|
Post #82,395
2/18/03 10:53:05 AM
|
bitch, etc
-YendorMike
[link|http://www.hope-ride.org/|http://www.hope-ride.org/]
|
Post #83,413
2/22/03 3:13:34 PM
|
Re: bashun III
Turns out the quotes aren't necessary at least in bash. Need to find\r\nout more about what the globbing rules are. \r\n\r\n \r\nyes *shun*|head -50\r\n \r\n
--\r\n Karsten M. Self [link|mailto:kmself@ix.netcom.com|kmself@ix.netcom.com]\r\n [link|http://kmself.home.netcom.com/|http://kmself.home.netcom.com/]\r\n What part of "gestalt" don't you understand?\r\n [link|http://twiki.iwethey.org/twiki/bin/view/Main/|TWikIWETHEY] -- an experiment in collective intelligence. Stupidity. Whatever.\r\n \r\n Keep software free. Oppose the CBDTPA. Kill S.2048 dead.\r\n[link|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html]\r\n
|
Post #83,414
2/22/03 3:16:56 PM
|
Very nasty
It works...unless there is a file in the directory that matches the pattern *shun*.
Still good enough that I consider it a winner. :-)
Cheers, Ben
"good ideas and bad code build communities, the other three combinations do not" - [link|http://archives.real-time.com/pipermail/cocoon-devel/2000-October/003023.html|Stefano Mazzocchi]
|
Post #120,041
10/3/03 8:12:14 PM
|
You can lose a character
Pointed out by a co-worker...
yes '*shun*'|sed 50q
Or lose the quotes if no files have shun in the name.
Cheers, Ben
"good ideas and bad code build communities, the other three combinations do not" - [link|http://archives.real-time.com/pipermail/cocoon-devel/2000-October/003023.html|Stefano Mazzocchi]
|
Post #64,984
11/25/02 6:26:29 PM
|
The undisputed master?
Ahem, les'see if y'all recognize this syntax:
:X ECHO SHUN GOTO X
Yup -- MS-Dos! ;^)
Fifteen characters -- or, OK, twenty-one, if you count the CR and LF at the end of each line as two separate characters.
And it goes right on shunning him (why, BTW?) for EVER! :-)
Christian R. Conrad Mechanisation As our souls are slowly stolen The wheels of progress keep steamrolling Mechanisation melts our minds To drive the furnace that drives us blind. -- [link|http://www.vergenet.net/~conrad/poetry/mechanisation.html|© Conrad Parker, 1993]
|
Post #64,986
11/25/02 6:30:03 PM
|
Nope, invalid entry.
50 times only, not infinitely. Read the entry rules before embarrassing yourself next time.
You're missing the * around the *shun* as well.
Thanks for playing, drive through.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #65,085
11/26/02 3:25:42 AM
|
Not only that...
...but a schweineficker who admits to knowing MS-DOS batch programming syntax.
For shame, Xian.
-YendorMike
[link|http://www.hope-ride.org/|http://www.hope-ride.org/]
|
Post #65,092
11/26/02 4:34:08 AM
|
Bigger, badder, better...
public class shun {\n public static void main(String[] args) {\n String[] names = { "Peter", "Scott", "Droog", "Xian", "GFolkert", "KMS", "Meerkat" };\n\n for (int x = 0; x < names.length; x++) {\n for (int y = 0; y < 50; y++) {\n System.out.println("*shun " + names[x] + "*");\n }\n }\n }\n}
-YendorMike
[link|http://www.hope-ride.org/|http://www.hope-ride.org/]
|
Post #65,175
11/26/02 2:11:57 PM
|
Obfuscated, test cases included.
Fore! [mike@halfadozen ~/IWT]$ ls\ntotal 16\n-rw-rw-r-- 1 mike mike 255 Nov 26 18:21 Person.java\n-rw-rw-r-- 1 mike mike 601 Nov 26 20:02 PersonShun.java\n-rw-r--r-- 1 mike mike 705 Nov 26 18:46 PersonTest.java\n\n[mike@halfadozen ~/IWT]$ cat Person.java\npublic class Person {\n private String _name;\n\n public Person() {\n _name = "";\n }\n\n public Person(String name) {\n _name = name;\n }\n\n public void setName(String name) {\n _name = name;\n }\n\n public String getName() {\n return _name;\n }\n}\n\n[mike@halfadozen ~/IWT]$ cat PersonTest.java\nimport Person;\nimport junit.framework.*;\n\npublic class PersonTest extends TestCase {\n public PersonTest(String name) {\n super(name);\n }\n\n public void testSetName() {\n Person p = new Person();\n\n p.setName("Mike");\n Assert.assertTrue(p.getName().equals("Mike"));\n }\n\n public void testBlankConstructor() {\n Person p = new Person();\n\n Assert.assertTrue(p.getName().equals(""));\n }\n\n public void testNamedConstructor() {\n Person p = new Person("Mike");\n\n Assert.assertTrue(p.getName().equals("Mike"));\n }\n\n public static Test suite() {\n return new TestSuite(PersonTest.class);\n }\n\n public static void main(String[] args) {\n junit.textui.TestRunner.run(suite());\n }\n}\n\n[mike@halfadozen ~/IWT]$ cat PersonShun.java\nimport Person;\n\npublic class PersonShun {\n private static String[] names = { "Peter", "Scott", "Droog", "Xian", \n "Greg", "KMS", "Meerkat", "Jake" };\n\n private static void doShun(Person p) {\n System.out.println("*shun " + p.getName() + "*");\n }\n\n public static void main(String[] args) {\n Person[] people = new Person[names.length];\n\n for (int i = 0; i < names.length; i++) {\n people[i] = new Person(names[i]);\n }\n\n for (int x = 0; x < names.length; x++) {\n for (int y = 0; y < 50; y++) {\n doShun(people[x]);\n }\n }\n }\n}\n\n[mike@halfadozen ~/IWT]$ javac Person.java\n[mike@halfadozen ~/IWT]$ javac PersonTest.java \n[mike@halfadozen ~/IWT]$ javac PersonShun.java \n[mike@halfadozen ~/IWT]$ java PersonTest\n...\nTime: 0.005\n\nOK (3 tests)\n\n[mike@halfadozen ~/IWT]$ java PersonShun\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Peter*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Scott*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Droog*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Xian*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun Greg*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun KMS*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Meerkat*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*\n*shun Jake*
-YendorMike
[link|http://www.hope-ride.org/|http://www.hope-ride.org/]
|
Post #65,180
11/26/02 2:20:05 PM
11/26/02 2:21:04 PM
|
/me thinks Mike has entirely too much free time
/me therefore *shun*'s his lameness.
=== Microsoft offers them the one thing most business people will pay any price for - the ability to say "we had no choice - everyone's doing it that way." -- [link|http://z.iwethey.org/forums/render/content/show?contentid=38978|Andrew Grygus]
Edited by drewk
Nov. 26, 2002, 02:21:03 PM EST
Edited by drewk
Nov. 26, 2002, 02:21:04 PM EST
|
Post #65,182
11/26/02 2:29:39 PM
|
Absolutely.
But then again, who needed another reason to *shun* Mike?
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #65,183
11/26/02 2:32:15 PM
|
Not much else to do...
...in a country where you don't speak the language, and it's dark before you leave the office even if you leave when everyone else does.
Chat with friends back in the States over IM. Shun y'all. And learn about JUnit. All good fun.
Or: Go back to the room and read a book, I suppose. Or go back to the room and play Moria, or Myst, or kobo-deluxe (damn you Peter.)
-YendorMike
[link|http://www.hope-ride.org/|http://www.hope-ride.org/]
|
Post #65,187
11/26/02 2:50:52 PM
|
Level 33
Read it and weep.
*shun*
Peter [link|http://www.debian.org|Shill For Hire] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Blog]
|
Post #65,189
11/26/02 2:54:28 PM
|
Yeah, what's your point?
Level 33. Im-fucking-possible.
*shun*
Bitch.
-YendorMike
[link|http://www.hope-ride.org/|http://www.hope-ride.org/]
|
Post #65,172
11/26/02 1:54:14 PM
|
Re: Mike-Shunning Competition
classic rexx: do 50; say '*shun*'; end object rexx: do 50; .output~lineout('*shun*'); end ... though the classic rexx code will work just fine in the object rexx interpreter, of course.
--\n-------------------------------------------------------------------\n* Jack Troughton jake at consultron.ca *\n* [link|http://consultron.ca|http://consultron.ca] [link|irc://irc.ecomstation.ca|irc://irc.ecomstation.ca] *\n* Laval Qu\ufffdbec Canada [link|news://news.consultron.ca|news://news.consultron.ca] *\n-------------------------------------------------------------------
|
Post #65,174
11/26/02 1:58:35 PM
|
Well, if we're running in the interpreter:
Python:
'*shun*'*50
will output *shun* 50 times.
Does Rexx have a command-line option?
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #65,184
11/26/02 2:36:49 PM
|
Yeah, it's called rexxtry
Actually, that's the format you'd use in rexxtry: \r\n\r\n rexxtry do 50; say '*shun*'; end \r\n\r\n Hmmm... using object rexx you could do something like this: \r\n\r\n rexxtry say ('*shun*'0d0a~x2c)~copies(50) \r\n\r\n which will put out fifty lines. If you don't care about actual lines of output, you could do \r\n\r\n rexxtry say '*shun*'~copies(50) \r\n\r\n Of course, if you wanted to mix'n'match functional/oo ("Heresy!", he cried), you might want to change the second example to be \r\n\r\n rexxtry charout(,('*shun*'0d0a~x2c)~copies(50)) \r\n\r\n Or, alternatively, and keeping more in tune with the built-in object model, you could do \r\n\r\n rexxtry .output~charout(('*shun*'0d0a~x2c)~copies(50)) \r\n\r\n All depends on how you want to go about it, I guess:)
--\r\n-------------------------------------------------------------------\r\n* Jack Troughton jake at consultron.ca *\r\n* [link|http://consultron.ca|http://consultron.ca] [link|irc://irc.ecomstation.ca|irc://irc.ecomstation.ca] *\r\n* Laval Qu\ufffdbec Canada [link|news://news.consultron.ca|news://news.consultron.ca] *\r\n-------------------------------------------------------------------
|
Post #72,415
1/4/03 3:40:29 AM
|
way back in the stone ages...
I wrote a little utility called REXX. It would take a REXX statement and execute it, or if there were no arguments it would simulate a shell environment. I used it alot. I just checked. I still have it. Here's the opening comments: \n/* Interactive REXX */ \n \n/* written ??/??/?? by Carl Forde */\n/* modified 89/09/07 by Carl Forde - no errortext for NOVALUE */\n/* - display command instead */\n/* modified 90/02/01 by Carl Forde - remove signal on ERROR */\n By changing the filetype it would run as an XEDIT macro. Very handy for debugging XEDIT applications. wow. makes me all nostalgic.
Have fun, Carl Forde
|
Post #65,176
11/26/02 2:12:28 PM
|
Bitch.
You get included in the program, now, too.
-YendorMike
[link|http://www.hope-ride.org/|http://www.hope-ride.org/]
|
Post #65,186
11/26/02 2:39:26 PM
|
I am honoured.
'Tis far nobler a thing... ;)
--\r\n-------------------------------------------------------------------\r\n* Jack Troughton jake at consultron.ca *\r\n* [link|http://consultron.ca|http://consultron.ca] [link|irc://irc.ecomstation.ca|irc://irc.ecomstation.ca] *\r\n* Laval Qu\ufffdbec Canada [link|news://news.consultron.ca|news://news.consultron.ca] *\r\n-------------------------------------------------------------------
|
Post #65,294
11/26/02 10:24:55 PM
|
Gotta do an Icon version...
Lessee... every 1 to 50 do write("*shun*")
I could probably shorten that.... every (1 to 50, write("*shun*"))
Or perhaps... write(repl("*shun*", 50))
:-)
Wade, who would be interested in the background of this "shunning".
"Ah. One of the difficult questions."
|
Post #120,049
10/3/03 9:11:41 PM
10/3/03 9:17:29 PM
|
Re: Mike-Shunning Competition
50 1 r <'shun' or even 50 4 r 'shun' APL. Prints "shun" 50 times in a column. r = reshape operator < = enclose operator < makes a scalar out of the 4-vector 'shun' 50 1 r means reshape into a 50x1-matrix. Repeat when list exhausted, so all 50x1 elements are "shun". Second version depends on fact that a string is really a vector.
-drl
Edited by deSitter
Oct. 3, 2003, 09:12:51 PM EDT
Edited by deSitter
Oct. 3, 2003, 09:17:29 PM EDT
|
Post #120,169
10/5/03 4:51:14 PM
|
What, no prize??
-drl
|
Post #120,171
10/5/03 5:38:24 PM
|
Well...
It didn't include the *'s around *shun*. It didn't run from the command line. And was about the same length as some of the other solutions.
:-P
Ben
PS: It is longer, but I like the elegance of the following illustration that in Ruby even numbers are objects:
ruby -e '50.times {puts"*shun*"}'
"good ideas and bad code build communities, the other three combinations do not" - [link|http://archives.real-time.com/pipermail/cocoon-devel/2000-October/003023.html|Stefano Mazzocchi]
|
Post #120,173
10/5/03 6:16:17 PM
|
Re: Well...
That is nice :) SAX APL has a "ply" operator like that:
(operator.integer) operand
applies operator integer-times to operand.
I often think of looking into Ruby, but then think, Python has broad support, so do that instead, but no, I like what I've heard of Ruby, but Python is widely used, but Ruby, but Python, but but but..
*overflow*
state indicator cleared
SAX APL has a very nice concept of functors, operators that spit out modified operators. Anything like that in Ruby?
-drl
|
Post #120,182
10/5/03 9:25:55 PM
|
Perhaps an example would help clarify
In Ruby you can write methods that take methods as arguments and wrap them in different methods. But that is probably not what you are thinking - it is just a consequence of supporting closures and dynamic programming techniques.
Haskell has something closer to what you probably are thinking of. At least it is called a Functor there as well...
Cheers, Ben
"good ideas and bad code build communities, the other three combinations do not" - [link|http://archives.real-time.com/pipermail/cocoon-devel/2000-October/003023.html|Stefano Mazzocchi]
|
Post #120,069
10/4/03 1:36:22 AM
|
Clearly: this is how MAN entries are edited.__All explained.
|