Ask coding questions

← Back to all posts
What line of code describes you best? πŸ€”
katyadee (1119)

Okay, I lifted this from Quora, but I thought it was a really cool question with lots of ways to interpret it! What line of code describes y'all best?

Commentshotnewtop
mat1 (2328)
time.sleep(86400)
vedprad1 (709)
function main() {
  var x = 0;
}
main();
console.log(x); // Error: x is undefined

You can interpret this two ways:
1. I constantly forget about scope.
2. I think I know who I am, but then I realize I do not. (I'm undefined.)

Everyone says: "Woah!"

s206984 (2)

@vedprad1 That's deeper than my English teacher can analyze a novel

s206984 (2)

@Helixable My english teacher has powers beyond unknown to analyze novel

vvc (58)

@vedprad1 hey mat how do u create a 404 page

vedprad1 (709)

@vvc : If you are using express, it is simple. Just have this as your last route just before the starting of the server:

app.get('*', function (req, res) {
  res.status(404).send('404 Not Found');
});
vvc (58)

@vedprad1 when i use express my repl never wakes up

vedprad1 (709)

@vvc : Could you show me an example of your repl?

vvc (58)

@vedprad1 ok i got some of this code from https://repl.it/@jajoosam/4ty2 cuz i was trying to make a 404

Link to my repl: https://repl.it/@vvc/newvvc

do u mind forking and fixing it up then sending me the link

u dont have to if u dont want to though

vedprad1 (709)

@vvc : I feel like there is a problem somewhere else in your code, and this error is affecting all the other stuff. I am not sure how to fix it, because I cannot find the error. It is probably in your JSON.

vvc (58)

@vedprad1 wait, so my repl works now, check it out at https://@vvc/hello

So im later gonna create a 404.html page or maybe right now. First things when i get a domain will my repl not wake up and just finish loading faster, or is there a way for the repl to load as soon as u get to the web. + can u tell me how to link my repl 404 error code to my 404.html page

ebest (558)
class Eric(Exception):
    pass
print("Eric has been born.")
raise Eric("has died.")

Eric is the writer's real name. That code has been tested and proved by Eric.

-Ebest

ash15khng (306)
#include <iostream>

#define yeet int
#define Yeet main
#define yEet std
#define yeEt cout
#define yeeT return
#define Yeeet (
#define yeeeT )
#define Yeeeet {
#define yeeeeT }
#define yyeet <<
#define yet 0
#define yeett "Yeet!"
#define yeetT ;
#define yEEt ::

yeet Yeet Yeeet yeeeT Yeeeet
    yEet yEEt yeEt yyeet yeett yeetT
    yeeT yet yeetT
yeeeeT

(I copied this sorry lol)
Basically what it does is just print "Yeet!". That's it.

ebest (558)

@ash15khng THE POWER OF THE YEET
yeeT yeEt yEet Yeet yeet YEEt
yeet Yeet...

GavHern (64)

plain and simple:

pass

mwilki7 (203)
I HAS A CHEEZEBURGER
VISIBLE "CAN I HAZ CHEEZBURGER?"
GIMMEH CHEEZEBURGER

BOTH SAEM CHEEZEBURGER AN "YEZ", 
O RLY?
    YA RLY
        HAPY
    NO WAI
        SAD
    OIC
KTHXBYE
vedprad1 (709)

@mwilki7 : What programming language is that?

mwilki7 (203)

@vedprad1
https://repl.it/@mwilki7/testlol
It’s an actual language called LOLCODE πŸ˜‚

Deacon_Cronin (52)
while True:
 print("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")
 if random.randint(0,10) == 1:
   die()

This represents the fact that I screech constantly and at some point will randomly drop dead

Highwayman (16)
int * ptr;
delete ptr;
delete ptr;
MichelleA8 (2)

int death;
cin >> death
for (int counter = 0; counter < death; counter++)
{
beLazy();
watchYouTube();
}

rediar (93)

prnt("I am significant")
SyntaxError:

SolarBoom (75)

/ Just Java
Peter van der Linden
April 1, 1996.
u0050u0076u0064u004cu0020u0031u0020u0041u0070u0072u0039u0036
u002au002fu0020u0063u006cu0061u0073u0073u0020u0068u0020u007b
u0020u0020u0070u0075u0062u006cu0069u0063u0020u0020u0020u0020
u0073u0074u0061u0074u0069u0063u0020u0020u0076u006fu0069u0064
u006du0061u0069u006eu0028u0020u0053u0074u0072u0069u006eu0067
u005bu005du0061u0029u0020u007bu0053u0079u0073u0074u0065u006d
u002eu006fu0075u0074u002eu0070u0072u0069u006eu0074u006cu006e
u0028u0022u0048u0069u0021u0022u0029u003bu007du007du002fu002a
/

OUTPUT IS

Hi!

Deadly_Venom (0)

print('why isn't my code working')
time.sleep(random.randint(86400,259200))
print('wait why does my code work?')

EduFaus (8)

Imtolazyrowritecodesoimakefunctions(true)

Giothecoder (2)

Words cannot define the happiness this thread gives me.

CPPStudent7308 (8)

std::cout << "Insert soul here:";
std::cin >> soul;
std::cout << "Sorry, the operation 'Insert Soul' is not responding";

eankeen (614)
() => 'Edwin Kofler'
mkhoi (192)
age = 0
deathAge = int(input("Enter the age when you will die: "))

for year in range(0,deathAge):
    live()
    age += 1
    time.sleep(1)

if age == deathAge:
    die()
malvoliothegood (148)
printf("hello, world\n");
RoylatGnail (73)

#include "studio.h"
int main(){
}

lsambrook (284)
body{
  color: Black, white, pink, green, purple, blue, red, yellow;
}

Text in html :

<div class="body">
I Love rainbow coulours
</div>
ReshiramWolfu (62)
While True:
print(" *Screams in OC, Dragons anime,roleplaying,and shipping* ")
time.sleep(0.0001)