Tell me this never happened to you
Tell me this never happened to you
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 ā¦
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
Usually yes sex is āprivateā for me and not done in public
The real question is why is this a string, should this not be an enum?
Howās the project going n0mad?
LOL !
Yeah should even be a bool
10-12 hours a day on it, sir
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
lol
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ā¦