|
I can give you a good stack of assembly source code where this instruction is used frequently.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
How can it be bool when the answer can be "Yes please"?
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy Falcon.
|
|
|
|
|
Perhaps the software registers wire connectors and there really only is one alternative?
|
|
|
|
|
hehe good one
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy Falcon.
|
|
|
|
|
At least it wasn't bool? isMale;
Latest Article - A Concise Overview of Threads
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|
|
I just love it, when a fun post turns out to be a productive one.
I'm just discovering this "null-conditional Operators"
I'm a bit outdated, may be C# 4.0, that's when I became a manager. lol
happy to take away these cool tips
Thanks Marc!
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy Falcon.
|
|
|
|
|
|
You just made it double productive thanks
I was just thinking how can I google that. Then just went by searching ? operator in C#
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy Falcon.
|
|
|
|
|
Vunic wrote: Thanks Marc!
YW! Richard beat me to it, but my favorites are continuation and coalescing operators, so you can write stuff like this (not that you'd want to, mind you, at least without really thinking about whether your data model is really right, but really handy when you need it!):
int? n;
string ns = n?.ToString() ?? "0";
Latest Article - A Concise Overview of Threads
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|
|
thanks.
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy Falcon.
|
|
|
|
|
Given genders are hard to keep up with these days I use google's api to retrieve an up-to-date list rather than storing my own
public class Gender
{
public string Key { get; set; }
public string Description { get; set; }
public string PronounSubset { get; set; }
}
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://genders.googleapis.com/genders/api/json?key=API_KEY");
request.Method = "GET";
request.ContentType = "application/json";
WebResponse response = request.GetResponse();
using (var reader = new StreamReader(response.GetResponseStream()))
{
string data = reader.ReadToEnd();
JavaScriptSerializer s = new JavaScriptSerializer();
var genders = s.Deserialize<List<Gender>>(data);
foreach(var gender in genders)
{
System.Diagnostics.Debug.WriteLine("{0} {1} ({2})", gender.Key, gender.Description, gender.PronounSubset);
}
}
|
|
|
|
|
It won't help; you're bound to offend someone, anyway...
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Shouldn't the female be 0 and the male be 1?
|
|
|
|
|
I really hope this is a joke.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
I thought, "This looks handy. Let me try it."
I have my own API_KEY so I set up in the call but couldn't make it work to genders.googleapis.com - I got a 404 error. Any ideas?
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
|
Thanks Nish. I have given up on it for now. For my applications from now on there will be Male, Female or Undecided - I think that covers it.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
Podcast - see who can come up with the solution.
This space for rent
|
|
|
|
|
I suppose a refined type could be a Spod, and your initials are Po ?
|
|
|
|
|
The "refined type" is probably "cast", the initials are PO, but I'll clueless on the "D".
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I think it could be downcast and remove own for possession so we have podcast ( with po being Pete's initials )
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
You got it.
This space for rent
|
|
|
|
|
Where does regularly come in to play ?
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
I split the hint. A podcast is episodically online, or regular.
|
|
|
|