Share your repls and programming experiences

← Back to all posts
LONGEST CODE ON EARTH
SkyyCivil (92)

Make the longest code you possibly can
BETA

-GOOD LUCK!

Commentshotnewtop
etian (31)

lol i broke it
How many half cooked dogs do you have?
40000000000000000000000000
dogdied

Zavexeon (631)

This writes an "infinitely" long file of code.

var fs = require('fs'); 

var fileStream = fs.createWriteStream('infiniteJS.js');
let x = 0;

stream.once('open', function(fd) {
    while (true) {
        stream.write(`console.log('Line number ${x} of code.')`);
        x++;
    }
});
SkyyCivil (92)

@Zavexeon
what format
C, C++, java, etc

SkyyCivil (92)

@SkyyCivil ill show you something!

SkyyCivil (92)

@SkyyCivil
lol no. im not included
####This is haw we do it

SkyyCivil (92)

@Zavexeon
bruh
it not work that well tho

Zavexeon (631)

@SkyyCivil Well of course it doesn't work well, it's an infinite loop. Performance goes out the window without any sort of delay in the loop.

pedroguscos73 (0)

just go on c, put while(1) and let it be :v

SkyyCivil (92)

Can we get some more upvotes

jwangtcsyl (2)

Well, if you want to make it long it will take forever to let the computer type

mwilki7 (519)
F1::
WinActivate, Notepad
SendRaw F2::
SendRaw Send a
Send {enter}
while (true)
{
    Send ^a
    Send ^c
    Send ^v
}

Now you have code that's is indefinitely copied at an exponential rate of 2^n !!

SkyyCivil (92)

Guys this is the beta version I accidentally put the other one into the ask section.