Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.os.linux.misc    |    Linux-specific topics not covered by oth    |    135,536 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 134,354 of 135,536    |
|    rbowman to Chris Ahlstrom    |
|    Re: C structure portability, naughty Pyt    |
|    04 Jan 26 20:04:58    |
   
   XPost: alt.folklore.computers   
   From: bowman@montana.com   
      
   On Sun, 4 Jan 2026 09:43:40 -0500, Chris Ahlstrom wrote:   
      
   > I don't really agree that C# is easier. You still have to develop a   
   > mental model of the language and master adjunct frameworks like .NET.   
      
   I find C# to be much like Python. You do have to learn the language but it   
   is a greater level of abstraction. For example you can create a   
   HttpClient() and   
      
   using HttpResponseMessage response = await client.GetAsync(url);   
   response.EnsureSuccessStatusCode();   
   string responseBody = await response.Content.ReadAsStringAsync();   
   var options = new JsonDocumentOptions { AllowTrailingCommas = true };   
   JsonDocument document = JsonDocument.Parse(responseBody, options);   
   JsonElement results = document.RootElement.GetProperty("results");   
   foreach (JsonElement result in results.EnumerateArray()) {   
    do stuff   
   }   
      
   In C the https transaction itself is about 100 lines of code after you get   
   through messing around with the OpenSSL library. Then you get into   
   parsing the JSON response.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca