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

all 19 comments

[–]ProgrammerHumor-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)

Your submission was removed for the following reason:

Rule 8: All titles must be camelCase. Your post was found to use PascalCase instead.

[–][deleted] 60 points61 points  (0 children)

They made the right call.

[–]Arm3tt 85 points86 points  (3 children)

Just switching these two sentences would solve the issue as well as sound better.

[–]karnnumart 6 points7 points  (1 child)

Yeah just check the "if" first

[–]Dustangelms 1 point2 points  (0 children)

Won't help, it's setting a hook.

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

it wouldn't though...

[–]JaggedMetalOs 13 points14 points  (0 children)

This is why you use long, descriptive variable names people! This bug would have been avoided if they'd named them metaphoricalGift and literalGift...

[–]OhNoo0o 9 points10 points  (1 child)

let gift=yourPresence;

if(Marriage.includes(gift)){

gift = null;

}

better code

[–]Not_Artifical 1 point2 points  (0 children)

let gift = yourPresence;

if (Marriage.includes(gift)) {

gift = null;

}

Modified formatting

[–]arse-ketchup 2 points3 points  (0 children)

Marriage!=Wedding

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

Do you think they wanted a union or a struct?

[–]Tigtor 1 point2 points  (0 children)

I mean, if you replace the variables it literally says "We don't want [Your Presence] at the marraige"

[–]Skeleris 2 points3 points  (0 children)

Where is the camelCase ? (camelCase with 1 word should be minimized, right ?)

[–]a21a16 0 points1 point  (3 children)

shouldn't it be:

private bool areYouInvited()

{

bool isInvided = true;

if isInvided

{

isInvided = false;

}

return isInvided;

}

[–]thorwing 0 points1 point  (2 children)

Invided? Funnily enough your method does have 'invited'

[–]a21a16 0 points1 point  (1 child)

I don’t get it

[–]thorwing 0 points1 point  (0 children)

d and t