Share your repls and programming experiences

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

Make the longest code you possibly can
BETA

-GOOD LUCK!

Commentshotnewtop
Zavexeon (1052)

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 (120)

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

SkyyCivil (120)

@SkyyCivil ill show you something!

SkyyCivil (120)

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

SkyyCivil (120)

@Zavexeon
bruh
it not work that well tho

Zavexeon (1052)

@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.

etian (33)

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

pedroguscos73 (0)

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

SkyyCivil (120)

Can we get some more upvotes

jwangtcsyl (5)

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

mwilki7 (1111)
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 (120)

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