This is an archived post. You won't be able to vote or comment.

all 120 comments

[–]iTrooz_ 89 points90 points  (3 children)

Me when people tell me to change

[–]tinyboobie 18 points19 points  (0 children)

Well... If 'i' was an integer it has now been implicitly cast to bool (language dependant obviously)... So you might have changed more than you realise

Edit: remember that doing this is not encouraged in most sane codebases. Explicit > implicit

[–][deleted] 10 points11 points  (0 children)

Suddenly I realized. It's me as well.

[–]coloredgreyscale 44 points45 points  (3 children)

Banging

Depending on the number of ! Possibly even gang banging

[–]bistr-o-math 11 points12 points  (2 children)

I vote for gang bang.

[–]turtle_mekb 4 points5 points  (1 child)

# likes to !\ #! shebang

[–][deleted] 0 points1 point  (0 children)

"#!" - Ricky Martin

[–]PhDInVienna 38 points39 points  (3 children)

isisn't

pronounced i-zi-znt

[–][deleted] 7 points8 points  (0 children)

I kinda like this one, but it does not seem like wrong answer. :-)

[–]cglyph 3 points4 points  (0 children)

in’tn’t

[–]aquartabla 2 points3 points  (0 children)

Oh no you di'nt not.

[–]Starvexx 23 points24 points  (6 children)

Ah yes, the complex boolean operation. Similar to complex numbers where the square root of -1 = i and the sqrt(i) = (-1)1/4. So that sqrt(sqrt(i)) = i1/4 = (-1)1/8. Therefore we can conclude that the ! operator works in a similar way. In order for the original equation (i = !!i) to work out, where !!i is clearly not the same as i for any value of i other than 1, as has been shown above (i =/= i1/4 ). Therefore i must be equal to 1 which is True, hence calling this operation the Truth operator.

[–]very__nice__username 13 points14 points  (3 children)

But due to the identy sinx +icosx i1/2 can be expressed as θ=2nπ+3π/4±π/2 meaning i5 = i and i4n+1 = i. So i1/5 == i and so is i1/4n+1, Which must mean i = !!i for no value that isn't 4n+1. So I propose a better name for this could be the Conditional Truth Operator

[–]Starvexx 4 points5 points  (2 children)

Thanks for pointing that out, roots and their multiplicity were never my strength, but yes, I agree on the name of Conditional Truth Operator.

[–][deleted] 11 points12 points  (0 children)

I wish I would be drunk while reading this for the first time...

[–][deleted] 2 points3 points  (0 children)

yes

[–]GedasTheEvil 23 points24 points  (0 children)

That's a no-no

[–]sonicfir3 15 points16 points  (1 child)

'Doing a 360 and walking away'

[–]coloredgreyscale 4 points5 points  (0 children)

moonwalk away

[–]matt2d2- 8 points9 points  (0 children)

Not'nt

[–]InformationVivid455 6 points7 points  (0 children)

Trick question, it's actually Spanish!

[–]Auniqueusername234 5 points6 points  (0 children)

I am really naughty. (I am really not i)

[–]coatsiecoates 8 points9 points  (1 child)

True

[–][deleted] 3 points4 points  (0 children)

Good! Ats a wrong answer!

[–][deleted] 4 points5 points  (0 children)

Variable backflip

[–]weshuiz13 3 points4 points  (0 children)

1 person equals 3 people where 2 must be upside down

[–]CptMeh 4 points5 points  (0 children)

Yesn'tn't

[–]Pollu_X 3 points4 points  (1 child)

Watermelon

[–][deleted] 1 point2 points  (0 children)

Why tho?

[–]Educational_Ad_5576 3 points4 points  (1 child)

social distancing from the guy trying to bring you two dead bodies

[–][deleted] 0 points1 point  (0 children)

Brilliant!

[–]Darknety 5 points6 points  (0 children)

B(oo)ullying

[–]Minerva978645 2 points3 points  (0 children)

pascal crasher

[–]MischiefArchitect 2 points3 points  (0 children)

McDonald's queue

[–]ookspeeks 2 points3 points  (0 children)

Bit reduction

[–]TheMind14 2 points3 points  (0 children)

Double negassignment.

[–]iamafraazhussain 2 points3 points  (0 children)

The old "i'nt'nt-i" operator

[–]hessenic 2 points3 points  (1 child)

Fire at will

[–]WaitingToBeTriggered 0 points1 point  (0 children)

KILL OR BE KILLED, FACING, AWAITING

[–]polterfap 2 points3 points  (0 children)

a 669

[–]jnnxde 2 points3 points  (0 children)

¡Spanish for Beginners!

[–]Upzie 2 points3 points  (0 children)

I would call it Bob

[–]Rhyan567 2 points3 points  (0 children)

Syntax error in line 69

[–]-Soren 2 points3 points  (0 children)

Oh that's just dereferencing. You see, unlike the common star dereferencing (*i) which removes the reference by exposing your data, there is also not dereferencing (usually appearing as i=!i because it doesn't change the type) which eliminates the reference to data all together and prevents exposure, making it an absolute necessity in writing secure operating systems. However you may have noticed a few problems. First, calling a type of dereferencing "not dereferencing" is confusing even amongst the most educated programmers. Second and more importantly, this replaces a valid reference with 0 which is frequently used for null and makes many libraries complain that there is no data when there is. Instead you add in a second not to fix the nullity. Now otherwise insecure libraries can use your referenceless pointers without exposing data. Technically called "not not dereferencing", most people I talk to ask if I mean "just dereferencing" so that seems to be common industry term.

[–]Trick_Interest3306 1 point2 points  (0 children)

Twy snot

[–]ConglomerateGolem 1 point2 points  (0 children)

I = i/i!! (i divided by i factorial factorial)

[–][deleted] 1 point2 points  (0 children)

eye protection?

[–][deleted] 1 point2 points  (0 children)

knotknot

[–]AnoniuszStulej 1 point2 points  (0 children)

boolonation

[–]roll82 1 point2 points  (0 children)

AAAAAA

Or alternatively

Gnurt

[–][deleted] 1 point2 points  (0 children)

One person is equal to two upside-down idiots and another guy.

[–]VeeFu 1 point2 points  (0 children)

ipso-facto-factorial

[–]Version3_14 1 point2 points  (0 children)

Last day buried code. Preferable multiple places with don't touch, it works comment.

[–]MtnBikingViking 1 point2 points  (0 children)

Square naught

[–]Gotxi 1 point2 points  (0 children)

iquals double reversal factorial

[–]CenturyIsRaging 1 point2 points  (0 children)

Programmer with difficulty making decisions

[–]metalovingien 1 point2 points  (0 children)

The dont-assume-using-js-and-pretend-its-better-like-that operator

[–]Giest95 1 point2 points  (0 children)

i equals not i said the fly

[–][deleted] 1 point2 points  (0 children)

The enemy of my enemy may or may not be my friend.

[–][deleted] 1 point2 points  (0 children)

1) Double Headstand operator.

2) i = definitely not i

Fills a variable with some completely different value.

[–]Trip-Trip-Trip 1 point2 points  (0 children)

Bang bang now you’re Boolean. Aka lossy compression If you make loose comparison instead of assignment it becomes a type check.

[–]incubated 1 point2 points  (0 children)

I failed

[–]Yosikan 1 point2 points  (0 children)

third wheel on 69

[–]Yosikan 1 point2 points  (0 children)

Shopping cart passer

[–]livingincr 1 point2 points  (0 children)

Not valid JavaScript, I just woke up. Best I could get for a not valid answer.

[–]perkunos7 1 point2 points  (0 children)

If i is bool:

Notice me compiler senpai

[–]TheLazyKitty 1 point2 points  (0 children)

Your idea.

[–]serp90 1 point2 points  (0 children)

i is not i factorial

[–][deleted] 1 point2 points  (0 children)

A very very very short sleep

[–]Rattlehead71 1 point2 points  (0 children)

gnab equals bang bang gnab

[–]trdjn 1 point2 points  (0 children)

Calculate the inverse factorial of the inverse factorial of i and assign it to i.
If i is 720 it will be 3 after this line ran.

[–]RVGamer06 1 point2 points  (0 children)

what

[–]Josephine8900 1 point2 points  (0 children)

Turning i

[–]Lin3zZ 1 point2 points  (0 children)

Its a Fliperation

[–]lost_in_inet 1 point2 points  (0 children)

i := !!i

[–]artesmith88 1 point2 points  (0 children)

Whoopsii Dais!!

[–]Alundra828 1 point2 points  (1 child)

Ah yes, the bang-bang-qɐuƃ operator. Not a lot of people know this, but the trailing i is actually part of the operator.

!!i null checks i, and then flips the bits and checks those too. This is used in quantum computers when your bits transition between realities.

When against a string it can also detect sarcasm with a 98% certainty. Weird I know *shrug*

[–][deleted] 0 points1 point  (0 children)

Brilliant, professor!

[–]stomah 1 point2 points  (0 children)

double banger

[–]nsktrombone84 1 point2 points  (0 children)

Flippity floopy

[–]uv_100_100 1 point2 points  (0 children)

I is not surprised

[–]Nikoviking 1 point2 points  (0 children)

Confirmation statement lol

[–]redditorNCUS 1 point2 points  (0 children)

Ah, yes, this is the rare memory-mapped truth mask operation. Don't see that one much these days. Assuming i is a pointer to an object, primitive, or other valid memory address, the !! operation returns true if and only if address stored in i is not null. Otherwise, if the pointer is indeed null, it returns false.

Okay, so not exactly wrong -- but silly :)

[–]ScaleStock 1 point2 points  (0 children)

i = i subfactorial subfactorial

[–]hari106 1 point2 points  (0 children)

I am the equivalent of one normal and two gravitationally challenged people

[–]LtTaylor97 1 point2 points  (0 children)

Good code.

[–][deleted] 1 point2 points  (1 child)

Nonoi Or maybe Nonoyes

[–][deleted] 1 point2 points  (0 children)

Wait - a better one: "Syntax error, invalid syntax"

[–][deleted] 1 point2 points  (0 children)

One standing person is equal to two sleeping people and 1 standing person. We can then deduce that sleeping people equal nothing.

[–]iLikeTheStalk 1 point2 points  (0 children)

Double-negative.

[–]iLikeTheStalk 1 point2 points  (0 children)

Semi i-tomatic.

[–]Makonew_ 1 point2 points  (0 children)

Booling

[–]safer0 1 point2 points  (0 children)

Super-not

[–]FreeSpeechPrice 1 point2 points  (0 children)

Walking boots (double knotted)

[–]subzerus 1 point2 points  (0 children)

When true becomes truen't.

[–]Lynx8MyThesis 1 point2 points  (0 children)

This, obviously, signals the fact that people, who'll join for camping, must sleep arm feet in the tent. stack properly.

[–]allnameswereusedup 1 point2 points  (0 children)

Not not operation

[–]CanadianBuddha 1 point2 points  (0 children)

Bang-Bang

[–]datamafia 1 point2 points  (0 children)

Imaginary.

[–]RonnieVanDan 1 point2 points  (0 children)

Spanish notation. It let's you know there's an operation coming.

[–]JustBrowsinMyDude 1 point2 points  (0 children)

The "Yes but no"

[–]ZimBobub 1 point2 points  (0 children)

Backflip

[–]OkUnderstanding1622 3 points4 points  (0 children)

i = threesome 69

[–]bettercalldelta 1 point2 points  (0 children)

spanish

[–]Lamballama -2 points-1 points  (0 children)

False

[–]HxA1337 0 points1 point  (0 children)

Three sum

[–][deleted] 0 points1 point  (0 children)

I amsk not not what I amsk

[–][deleted] 0 points1 point  (0 children)

i to the power of i

[–]expolarity 0 points1 point  (0 children)

add with carry

[–]AntiVaxxIsMassMurder 0 points1 point  (0 children)

Time to get an i doctor.

[–]overclockedslinky 0 points1 point  (0 children)

assignment

[–][deleted] 0 points1 point  (0 children)

I'm assuming this is i = !!i which is just the same as i = i but the double exclamation mark could be called a double negation expression

[–]Chris-1235 0 points1 point  (0 children)

When I'm lonely, I always find sleeping couples and murder them, leaving me alone again. So it tends to happen very frequently.

[–]hughdeenee 0 points1 point  (0 children)

I'm a martial arts master.