Jump to content
  • entries
    49
  • comments
    187
  • views
    1511

13 Comments


Recommended Comments

Usseewa

Posted (edited)

// :3
function isFraction(num) { return num % 1 != 0; }

// I love code-golfing.

true that dude

also see above

Edited by Usseewa
CoderDrag0n8

Posted

4 minutes ago, Usseewa said:
// :3
function isFraction(num) { return num % 1 != 0; }

// I love code-golfing.

true that dude

also see above

well but it is sup-no wait yeah that works

*goes to sulk in corner* (although technically that is 3 lines because Javascript is special)

Usseewa

Posted (edited)

i would do an arrow function but that would make it seem like i know more than i do, since i rarely us 'em

 

const isFraction = (num) => num % 1 != 0;

or smth

 

 

also dw for this one class i submitted everything in one-line programs. Yep.

Edited by Usseewa
CoderDrag0n8

Posted

Just now, Usseewa said:

i would do an arrow function but that would make it seem like i know more than i do, since i rarely us 'em

 

const isFraction = (num) => num % 1 != 0;

or smth

wat

well ok

Usseewa

Posted

Just now, CoderDrag0n8 said:

wat

well ok

read my edit also how was my non-arrow three lines?

CoderDrag0n8

Posted

3 minutes ago, Usseewa said:

also dw for this one class i submitted everything in one-line programs. Yep.

frickin love javascript

you can have a 1000 line program on one line

imagine the spagetti code possibilities!

Usseewa

Posted

1 minute ago, CoderDrag0n8 said:

frickin love javascript

you can have a 1000 line program on one line

imagine the spagetti code possibilities!

it was actually Python... but yeah

i love 🍝 

CoderDrag0n8

Posted

7 minutes ago, Usseewa said:

it was actually Python... but yeah

i love 🍝 

coding is fun

Usseewa

Posted

Just now, CoderDrag0n8 said:

coding is fun

true that my dude

KaladinsSenseOfHumourSpren

Posted

2 hours ago, CoderDrag0n8 said:

frickin love javascript

you can have a 1000 line program on one line

imagine the spagetti code possibilities!

Indeed

2 hours ago, Usseewa said:

it was actually Python... but yeah

i love 🍝 

Gasp how do you python in one line

Usseewa

Posted (edited)

8 hours ago, KaladinsSenseOfHumourSpren said:

Gasp how do you python in one line

Oh, it's very fun.

No, I don't use exec or eval or whatever the heck the python one is called.

I map lambdas lol. I can give you a specific example if you give me a (relatively simple) program to make. I also use all the inline stuff like ternary if-else, the inline for loop, etc.

Edited by Usseewa
KaladinsSenseOfHumourSpren

Posted

8 hours ago, Usseewa said:

Oh, it's very fun.

No, I don't use exec or eval or whatever the heck the python one is called.

I map lambdas lol. I can give you a specific example if you give me a (relatively simple) program to make. I also use all the inline stuff like ternary if-else, the inline for loop, etc.

Ah okay.

Makes sense.

Usseewa

Posted

8 minutes ago, KaladinsSenseOfHumourSpren said:

Ah okay.

Makes sense.

yorp.

..

×
×
  • Create New...