Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: rbowman Newsgroups: comp.os.linux.misc,alt.folklore.computers Subject: Re: C structure portability, naughty Python Date: 4 Jan 2026 20:04:58 GMT Lines: 23 Message-ID: References: <10j9a1l$1toj$1@gal.iecc.com> <10j9vvr$23cp$2@gal.iecc.com> <10jb0is$172cb$2@dont-email.me> <679q2mx7o4.ln2@Telcontar.valinor> <10jduat$22c54$1@dont-email.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net C0OYe7pVik/J+o5KqfNSfAth7n2mqZPvKFuw/nAMbzgLZlpNhF Cancel-Lock: sha1:0l3xylppZCgu4kWsCJ+w8HCEmP0= sha256:yAMmsPzRJ1UQya4S9dX3y7bQU4lHc09Hn4Irw4/t02A= User-Agent: Pan/0.162 (Pokrosvk) Xref: csiph.com comp.os.linux.misc:80480 alt.folklore.computers:233160 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.