Post #141,132
2/11/04 9:57:51 AM
|

Shoulda wrote it in Smalltalk
Less likely to make a fatal error.
| out | out := WriteStream on: (String new). 1 to: 10 do: [:page | 1 to: 60 do: [:line | out nextPutAll: ('I will not forget my homework in ', (page > 5 ifTrue: [ 'science' ] ifFalse: [ 'health' ]), '.'); cr. ] ].
Transcript show: out contents asString.
- Yes I tried it.
The tree of research must from time to time be refreshed with the blood of bean counters. -- Alan Kay
|
Post #141,138
2/11/04 10:57:06 AM
|

Re: Shoulda wrote it in Smalltalk
\n: PUNISHMENT\n 10 0 DO\n 60 0 DO \n ." I will not forget my homework in "\n J 5 < IF ." science." ELSE ." health." THEN\n NEWLINE TYPE\n LOOP\n NEWLINE TYPE\n LOOP ;\n\nPUNISHMENT\n\nI will not forget my homework in science.\n..\nI will not forget my homework in health.\n ok\n - I tried it.
-drl
|
Post #141,161
2/11/04 1:19:00 PM
|

That's nice.
Where were YOU when we were shunning Mike in assorted languages?
[link|http://z.iwethey.org/forums/render/content/show?contentid=64921|http://z.iwethey.org...w?contentid=64921]
It started out as a minimalist thing; shun Mike in the least possible amount of code. It evolved into shunning Mike any way you like.
Peter [link|http://www.debian.org|Shill For Hire] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Home Page - Now with added Zing!]
|
Post #141,182
2/11/04 3:44:45 PM
|

I don't visit scripting
not much anyhow. Guess I should. Ok, late and lame but:
1 to: 50 do:[:x | Transcript show: 'shun'; cr].
The tree of research must from time to time be refreshed with the blood of bean counters. -- Alan Kay
|
Post #141,183
2/11/04 3:47:59 PM
|

Bitch.
-YendorMike
[link|http://www.hope-ride.org/|http://www.hope-ride.org/]
|
Post #141,238
2/11/04 6:17:37 PM
|

Re: I don't visit scripting
: SHUN 50 0 DO ." Shun" LOOP ;\n FORTH should be called "Smallertalk" :)
-drl
|
Post #141,240
2/11/04 6:18:24 PM
|

But you missed the most important part!
Just WHO does that program 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|Home Page - Now with added Zing!]
|
Post #141,820
2/14/04 11:52:57 PM
|

Better late than never
Here's my belated BrainF8ck entry: \n>+++++++[ < + + + + +\n++ >- ]< +[ -> [- ]>\n++ ++ ++ [< ++ +++ ++\n>- ]<.>+++++ ++ +[ <+ + ++\n+++++>-]< +.------- -- -- .+ + ++\n ++ ++ ++ ++ +. -- - --\n -- .[ -] >++++++[< ++ +++\n++>-]<.[- ]+ ++ +++++++++ +. <]\n
|
Post #141,821
2/15/04 12:28:42 AM
|

Outfreakin-standing!
-drl
|
Post #141,824
2/15/04 5:12:21 AM
|

You win, I wot.
Peter [link|http://www.debian.org|Shill For Hire] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Home Page - Now with added Zing!]
|
Post #141,842
2/15/04 12:11:21 PM
|

Re: Better late than never
\n>++++++++++ ++++++++++++ ++++++++++++ +++++++++++ +++ +++\n++++++++++++ ++++.>++++++ ++++++++++++ +++++++++++++ +++ +++\n+++ +++ ++++ ++++ +++ +++ +++ +++\n+++ +++ ++++ .>++ +++ +++ +++\n++++++++++++ ++++ ++++ +++ +++++++++++\n++++++++++++ ++++ ++++ +++ +++++++++++\n+++ ++. >+++ ++++ +++ +++ +++\n+++ +++ ++++ ++++ +++ +++ +++ +++\n++++++++++++ ++++++++++++ +.>+ +++++++++++++ +++ +++\n+++++++++++ ++++++++++++ ++++ +++++++++++ +++ ++.\n
-YendorMike
[link|http://www.hope-ride.org/|http://www.hope-ride.org/]
|
Post #141,852
2/15/04 3:56:04 PM
|

- style points
You could have at least tried to make it do something interesting. :-P
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]
|