Click here to Skip to main content
15,306,187 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: How fair is this? Pin
Eytukan21-Sep-18 3:18
MemberEytukan21-Sep-18 3:18 
GeneralRe: How fair is this? Pin
Marc Clifton21-Sep-18 3:15
mvaMarc Clifton21-Sep-18 3:15 
GeneralRe: How fair is this? Pin
Eytukan21-Sep-18 3:27
MemberEytukan21-Sep-18 3:27 
GeneralRe: How fair is this? Pin
Richard Deeming21-Sep-18 3:35
mveRichard Deeming21-Sep-18 3:35 
GeneralRe: How fair is this? Pin
Eytukan21-Sep-18 4:01
MemberEytukan21-Sep-18 4:01 
GeneralRe: How fair is this? Pin
Marc Clifton21-Sep-18 5:57
mvaMarc Clifton21-Sep-18 5:57 
GeneralRe: How fair is this? Pin
Eytukan21-Sep-18 7:33
MemberEytukan21-Sep-18 7:33 
GeneralRe: How fair is this? Pin
F-ES Sitecore21-Sep-18 4:32
professionalF-ES Sitecore21-Sep-18 4:32 
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);
    }
}

GeneralRe: How fair is this? Pin
Daniel Pfeffer21-Sep-18 4:58
professionalDaniel Pfeffer21-Sep-18 4:58 
GeneralRe: How fair is this? Pin
Bassam Abdul-Baki21-Sep-18 5:36
professionalBassam Abdul-Baki21-Sep-18 5:36 
GeneralRe: How fair is this? Pin
ZurdoDev21-Sep-18 5:48
professionalZurdoDev21-Sep-18 5:48 
GeneralRe: How fair is this? Pin
  Forogar  21-Sep-18 5:53
professional  Forogar  21-Sep-18 5:53 
GeneralRe: How fair is this? Pin
Nish Nishant21-Sep-18 8:48
sitebuilderNish Nishant21-Sep-18 8:48 
GeneralRe: How fair is this? Pin
  Forogar  24-Sep-18 3:58
professional  Forogar  24-Sep-18 3:58 
GeneralCCC OTD - Solution. Pin
Pete O'Hanlon21-Sep-18 2:29
mvaPete O'Hanlon21-Sep-18 2:29 
GeneralRe: CCC OTD - Solution. Pin
pkfox21-Sep-18 3:44
professionalpkfox21-Sep-18 3:44 
GeneralRe: CCC OTD - Solution. Pin
OriginalGriff21-Sep-18 4:04
mveOriginalGriff21-Sep-18 4:04 
GeneralRe: CCC OTD - Solution. Pin
pkfox21-Sep-18 4:16
professionalpkfox21-Sep-18 4:16 
GeneralRe: CCC OTD - Solution. Pin
Pete O'Hanlon21-Sep-18 4:18
mvaPete O'Hanlon21-Sep-18 4:18 
GeneralRe: CCC OTD - Solution. Pin
pkfox21-Sep-18 6:05
professionalpkfox21-Sep-18 6:05 
GeneralRe: CCC OTD - Solution. Pin
Pete O'Hanlon21-Sep-18 23:28
mvaPete O'Hanlon21-Sep-18 23:28 
GeneralRe: CCC OTD - Solution. Pin
Pete O'Hanlon21-Sep-18 4:18
mvaPete O'Hanlon21-Sep-18 4:18 
GeneralIn 23.5 hours from now... Pin
CodeWraith21-Sep-18 0:33
MemberCodeWraith21-Sep-18 0:33 
GeneralRe: In 23.5 hours from now... Pin
Pete O'Hanlon21-Sep-18 0:52
mvaPete O'Hanlon21-Sep-18 0:52 
GeneralRe: In 23.5 hours from now... Pin
CodeWraith21-Sep-18 2:21
MemberCodeWraith21-Sep-18 2:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

On which operating systems are you writing code?
Let's see if things have changed since we last ran this. "writing code" meaning editing, building, and running the code on that OS.
  Results   817 votes