Giggling alone in front of my code

Tell me this never happened to you :smile:

601734--21377--$stringsex.jpg

Nope.

Well, at least itā€™s a string and not an animation clip.

Aw, I just realized that in English itā€™s called a ā€œG-stringā€, not a ā€œstringā€ for short as in Frenchā€¦ Joke ruined ā€¦ :confused:

Itā€™s perfectly normal for programmers to giggle in the dark, lit only by the glare of their compilers. This form of insanity usually sets in after a month but peaks at 6 months into the same project.

Some souls donā€™t recover, for example programmers working years on the same project. There isnā€™t any hope for them to return from the great void function.

lol ! xD

Les blagues dans les autres langues marchent jamais. Voici, une exemple.

Excellent :smile:

Usually yes sex is ā€˜privateā€™ for me and not done in public :stuck_out_tongue:

The real question is why is this a string, should this not be an enum? :slight_smile:

Howā€™s the project going n0mad?

LOL !
Yeah should even be a bool :stuck_out_tongue:

10-12 hours a day on it, sir :slight_smile:

LOOL, guys, seriously, Iā€™m dying out of laugh here

You could publicly expose the member by using a wrapper.

rofl, this theme got potential :smile:

lol :stuck_out_tongue:

yes it is actually funny.

Private Parts(float touch);

enum Sex { Male, Female, YesPlease! }

You sure itā€™s not supposed to be a void?

End up doing something and get nothing in returnā€¦

Funny enough, I had this exact same thing come up 2 days ago (pardon the pun)

I like to have my code as readable as possible so that complete noobs can understand what I am doing. I like for my code to read like comments wherever I can manage it. My coding has been described as ā€˜elegantā€™ by a number of people so when I wanted to work with gender in my latest project I wanted to get the code working but I didnā€™t want people to laugh their heads off at my coding slash comments.

I thought it would be okay having sex hidden behind a private as nobody would see it except for me, but it left me feeling awkward so I gave up on sex and swopped it with gender, instead.

int gender = 0

I wanted to make it an enum but throughout my code I am only ever interested in Male so I figured it would be a better idea to make it a bool but to say: Gender = false just seemed wrong to me, somehow; (sex == false) would always equate to true and if sex is always true then itā€™s value would be depreciatedā€¦

So what to do? So I finally decided to give up on elegance and stick with gender as an int and now test for:
if (gender == 0) instead.

ā€¦then ended up hating the readability of the code and defined 0 as ā€œMaleā€. So in my code gender is basically hard coded to be maleā€¦

It makes sense when you read itā€¦