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

SICP driven MIRC SCRIPT coding

Name: Anonymous 2009-07-15 0:07

So I learned in SICP

You can add another layer of complexity to solve a problem.

So I had the problem of making a variable overwrite function for text files in mirc script.  I used my massive knowledge of SICP to come up with an easy and elegant solution

if ($1 == 0 ) {
/write -l0 C:\Ladder.txt $2
}
if ($1 == 1 ) {
/write -l1 C:\Ladder.txt $2
}
if ($1 == 2 ) {
/write -l2 C:\Ladder.txt $2
}
if ($1 == 3 ) {
/write -l3 C:\Ladder.txt $2
}
if ($1 == 4 ) {
/write -l4 C:\Ladder.txt $2
}
if ($1 == 5 ) {
/write -l5 C:\Ladder.txt $2
}
if ($1 == 6 ) {
/write -l6 C:\Ladder.txt $2
}
if ($1 == 7 ) {
/write -l7 C:\Ladder.txt $2
}
if ($1 == 8 ) {
/write -l8 C:\Ladder.txt $2
}
if ($1 == 9 ) {
/write -l9 C:\Ladder.txt $2
}
if ($1 == 10 ) {
/write -l10 C:\Ladder.txt $2
}
if ($1 == 11 ) {
/write -l11 C:\Ladder.txt $2
}
if ($1 == 12 ) {
/write -l12 C:\Ladder.txt $2
}

......

if ($1 == 1000 ) {
/write -l1000 C:\Ladder.txt $2
}

Name: Anonymous 2009-07-15 0:09

0/10

Name: Anonymous 2009-07-15 0:11

No

this is real

I'm actually using this solution

Name: Anonymous 2009-07-15 0:14

http://pastebin.com/m2a906205

EXPERT PROGRAMMING

(sorry don't know how to bold)

This is what functional programming taught me

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-07-15 0:29

>>2 its a simple unrolled loop. Nothing bad about it.



___________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Idlers do not make history: they suffer it!

Name: Anonymous 2009-07-15 0:59

I can't even tell if this is supposed to be a troll. It's just bizarre.

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-07-15 1:19

>>6  Its a Mirc script. Anything that describes the problem into [insert loop structure here] is equivalent to [repeat statement loop times]. Loops are only meant to save screen space.

________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Biology has progressed tremendously due to the model that Darwin put forth. But the black boxes Darwin accepted are now being opened, and our view of the world is again being shaken.

Name: Anonymous 2009-07-15 1:34

>>7
I don't think you know what a loop is.

Name: Anonymous 2009-07-15 1:36

FV's trolling is getting progressively less subtle. I guess it's not an eternal September so much as an eternal progression towards it.

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-07-15 1:52

>>9 Eternal September refers to a state of community which is overwhelmed with newbies and has no relevance with me.
I'm sure you can write clever way to optimize >>1 into several lines, but this would require something beyond SICP-level knowledge.


________________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Ladies and gentleman, contrary to what you've just seen, war is neither glamorous nor fun. There are no winners; only losers.

Name: Anonymous 2009-07-15 2:57

fix prog script needs to be updated. I'm seeing things I normally should not.

Name: Anonymous 2009-07-15 3:30

>>11
☣ Please try to check for updates! ☣

http://userscripts.org/scripts/show/52726

Name: Anonymous 2009-07-15 5:16

>>11 perhaps you need glasses with shutters which close when something undesirable comes on the view?

Name: Anonymous 2009-07-15 5:19

>>12
Thanks so fucking much. The world is colorful again!

Name: Anonymous 2009-07-15 5:20



HAHAHAHA
YOU THINK YOURE THOUGH UH ?
I HAVE ONE WORD FOR YOU
THE FORCED INDENTATION OF THE CODE
GET IT ?
I DONT THINK SO
YOU DONT KNOW ABOUT MY OTHER CAR I GUESS ?
ITS A CDR
AND IS PRONOUNCED ``CUDDER''
OK YOU FUQIN ANGERED AN EXPERT PROGRAMMER
THIS IS /prog/
YOU ARE ALLOWED TO POST HERE ONLY IF YOU HAVE ACHIEVED SATORI
PROGRAMMING IS ALL ABOUT ``ABSTRACT BULLSHITE'' THAT YOU WILL NEVER COMPREHEND
I HAVE READ SICP
IF ITS NOT DONE YOU HAVE TO
TOO BAD RUBY ON RAILS IS SLOW AS FUCK
BBCODE AND ((SCHEME)) ARE THE ULTIMATE LANGUAGES
ALSO
WELCOME TO /prog/
EVERY THREAD WILL BE REPLIED TO
NO EXCEPTION

Name: Anonymous 2009-07-15 5:24

>>13
Would be glad, but there probably is no such thing.

Name: Anonymous 2009-07-15 5:27

>>16
Someday they might exist and you could protect your valuable brains from this mythical villain(which should not be named) automatically. Your life would also improve dramatically with all the bad stuff safely remove from view.
 Well, until you miss something life-threatening, but thats not a big deal. Life quality is more important.

Name: Anonymous 2009-07-15 5:37

>>17
Recreational use only. There is nothing life-threatening on /prog/ (sorry, , it's true), is there?

Name: Anonymous 2009-07-15 5:47

>>18
At least for now.

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-07-15 5:52

>>18 See http://en.wikipedia.org/wiki/Snow_Crash and http://en.wikipedia.org/wiki/Neuro-linguistic_programming



________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Peace cannot be achieved by force, only by understanding.

Name: Anonymous 2009-07-15 11:46

>>MIRC Script
0/10

Name: Anonymous 2010-12-17 1:30

Are you GAY?
Are you a NIGGER?
Are you a GAY NIGGER?

If you answered "Yes" to all of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!

Name: Anonymous 2013-03-13 12:27

no seriously

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