Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

The two most common things in the Universe are hydrogen and stupidity. -- Harlan Ellison


computers / comp.os.linux.advocacy / dcigettext.c

SubjectAuthor
* dcigettext.cChris Ahlstrom
`* Re: dcigettext.crbowman
 +* Re: dcigettext.cChris Ahlstrom
 |`* Re: dcigettext.crbowman
 | `* Re: dcigettext.cChris Ahlstrom
 |  `* Re: dcigettext.crbowman
 |   `* Re: dcigettext.cChris Ahlstrom
 |    `- Re: dcigettext.crbowman
 `* Re: dcigettext.cLawrence D'Oliveiro
  +- Re: dcigettext.cJoel
  `* Re: dcigettext.cChris Ahlstrom
   +- Re: dcigettext.crbowman
   `* Re: dcigettext.cLawrence D'Oliveiro
    +* Re: dcigettext.crbowman
    |+- Re: dcigettext.ccandycanearter07
    |+- Re: dcigettext.cChris Ahlstrom
    |`* Re: dcigettext.cLawrence D'Oliveiro
    | `- Re: dcigettext.ccandycanearter07
    `* Re: dcigettext.cChris Ahlstrom
     `- Re: dcigettext.crbowman

1
dcigettext.c

<urvc0s$1ta36$4@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=10952&group=comp.os.linux.advocacy#10952

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: OFeem1987@teleworm.us (Chris Ahlstrom)
Newsgroups: comp.os.linux.advocacy
Subject: dcigettext.c
Date: Sat, 2 Mar 2024 09:10:36 -0500
Organization: None
Lines: 15
Message-ID: <urvc0s$1ta36$4@dont-email.me>
Reply-To: OFeem1987@teleworm.us
Injection-Date: Sat, 2 Mar 2024 14:10:36 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e9ea40f8e5d7d5a8124d3502bf6c75e9";
logging-data="2009190"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+oREMOvN5/+sMCy0eSmdPc"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:xlR5CvhTASObRcGKb2qxTNHJmgo=
X-Face: 63n<76,LYJQ2m#'5YL#.T95xqyPiG`ffIP70tN+j"(&@6(4l\7uL)2+/-r0)/9SjZ`qw=
Njn mr93Xrerx}aQG-Ap5IHn"xe;`5:pp"$RH>Kx_ngWw%c\+6qSg!q"41n2[.N/;Pu6q8?+Poz~e
A9? $6_R7cm.l!s8]yfv7x+-FYQ|/k
 by: Chris Ahlstrom - Sat, 2 Mar 2024 14:10 UTC

If you ever want to understand the full value of C++, trying locating and
comprehending this module (it's part of glibc, available at GNU Savannah). It
is used in the implementation of a number of gettext functions.

Ignoring the (to me) screwball coding conventions, it is a morass of calls to
malloc(), free(), alloca(), freea(), strcmp(), strlen(), strdup(), jillions of
pointers to characters and structures, checks for _LIBC, IN_LIBGLOCALE,
__GLIBC__, _LIBICONV_VERSION, calls to lock/unlock functions like
gl_rwlock_rdlock(), gl_rwlock_wrlock(), __libc_lock_lock() ....

It's not that large, about 1700 lines, but man....

--
Q: What lies on the bottom of the ocean and twitches?
A: A nervous wreck.

Re: dcigettext.c

<l4hbq5F8p7vU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=10956&group=comp.os.linux.advocacy#10956

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy
Subject: Re: dcigettext.c
Date: 2 Mar 2024 19:08:53 GMT
Lines: 20
Message-ID: <l4hbq5F8p7vU1@mid.individual.net>
References: <urvc0s$1ta36$4@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net mp+dXl/rpMoQEbrepiXXLw8Mxwi15q3PIiXG1+wzBWzOdU33Iq
Cancel-Lock: sha1:g6buTSt9eZx86+SzdGkatADVCQY= sha256:56BxJ3RbjklXj0JiXC/FbcLIrQRLOdz4RXrFHIwCfPM=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
 by: rbowman - Sat, 2 Mar 2024 19:08 UTC

On Sat, 2 Mar 2024 09:10:36 -0500, Chris Ahlstrom wrote:

> If you ever want to understand the full value of C++, trying locating
> and comprehending this module (it's part of glibc, available at GNU
> Savannah). It is used in the implementation of a number of gettext
> functions.

You're saying a C++ implementation would be better or that C++ hides the
ugly bits under a fig leaf? Have you looked at the way a vtable is
implemented?

I'm not saying C++ is bad but somebody has to do the dirty work. C# is
even cleaner looking and hides even more.

foreach (R r in rats) {
string color = r.furColor;
}

In C++ you'd be knee deep in arcane iterators.

Re: dcigettext.c

<us05tn$22vjj$3@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=10968&group=comp.os.linux.advocacy#10968

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: OFeem1987@teleworm.us (Chris Ahlstrom)
Newsgroups: comp.os.linux.advocacy
Subject: Re: dcigettext.c
Date: Sat, 2 Mar 2024 16:32:39 -0500
Organization: None
Lines: 37
Message-ID: <us05tn$22vjj$3@dont-email.me>
References: <urvc0s$1ta36$4@dont-email.me> <l4hbq5F8p7vU1@mid.individual.net>
Reply-To: OFeem1987@teleworm.us
Injection-Date: Sat, 2 Mar 2024 21:32:39 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7e9d506ab0bbabb1c5f6c1ce4ecf1d5f";
logging-data="2195059"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX185DMqAsurIklkNDtPgXdJF"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:mLQE64Z592wSjVadN82O7U7bNY8=
X-User-Agent: Microsoft Outl00k, Usenet K00k Editions
X-Mutt: The most widely-used MUA
X-Slrn: Why use anything else?
 by: Chris Ahlstrom - Sat, 2 Mar 2024 21:32 UTC

rbowman wrote this copyrighted missive and expects royalties:

> On Sat, 2 Mar 2024 09:10:36 -0500, Chris Ahlstrom wrote:
>
>> If you ever want to understand the full value of C++, trying locating
>> and comprehending this module (it's part of glibc, available at GNU
>> Savannah). It is used in the implementation of a number of gettext
>> functions.
>
> You're saying a C++ implementation would be better or that C++ hides the
> ugly bits under a fig leaf? Have you looked at the way a vtable is
> implemented?

Who cares? Unless you are a compiler designer.

> I'm not saying C++ is bad but somebody has to do the dirty work. C# is
> even cleaner looking and hides even more.
>
> foreach (R r in rats) {
> string color = r.furColor;
> }
>
> In C++ you'd be knee deep in arcane iterators.

Nah.

for (const auto & r : rats)
std::string color = r.furColor

You can replace "const auto &" with just "auto" if you don't need to worry
about the overhead of the copy constructor or the const-ness.

for (auto r : rats)
std::string color = r.furColor

--
You display the wonderful traits of charm and courtesy.

Re: dcigettext.c

<us0ecp$24khf$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=10977&group=comp.os.linux.advocacy#10977

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.advocacy
Subject: Re: dcigettext.c
Date: Sat, 2 Mar 2024 23:57:13 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 6
Message-ID: <us0ecp$24khf$2@dont-email.me>
References: <urvc0s$1ta36$4@dont-email.me> <l4hbq5F8p7vU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 2 Mar 2024 23:57:13 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1df16df39307445c7cddc792d9e0afb1";
logging-data="2249263"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18JzvqFeSVeq9Gj/I7LzONS"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:iD4zoDLRwND9GmJDCbFYCrn4jME=
 by: Lawrence D'Oliv - Sat, 2 Mar 2024 23:57 UTC

On 2 Mar 2024 19:08:53 GMT, rbowman wrote:

> C# is even cleaner looking and hides even more.

Pity nobody uses Dotnet for anything important. Even Microsoft won’t
entrust anything significant to it.

Re: dcigettext.c

<ulg7ui1j1oe1tsea94i4rqvg0jaih8ef77@4ax.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=10982&group=comp.os.linux.advocacy#10982

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: joelcrump@gmail.com (Joel)
Newsgroups: comp.os.linux.advocacy
Subject: Re: dcigettext.c
Date: Sat, 02 Mar 2024 19:22:59 -0500
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <ulg7ui1j1oe1tsea94i4rqvg0jaih8ef77@4ax.com>
References: <urvc0s$1ta36$4@dont-email.me> <l4hbq5F8p7vU1@mid.individual.net> <us0ecp$24khf$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="9dd96c1bfe6f5fc8776759c880c91f6e";
logging-data="2261690"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/7JQORyVYNfMt2w7I1rWOj6LyvgzKTFS4="
User-Agent: ForteAgent/8.00.32.1272
Cancel-Lock: sha1:b+Ip54NGLFpm/XIcSAiC0wCSa+s=
OS: Linux Mint 21.3 Cinnamon, with Wine 9.0 for WinAPI
 by: Joel - Sun, 3 Mar 2024 00:22 UTC

Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>On 2 Mar 2024 19:08:53 GMT, rbowman wrote:
>
>> C# is even cleaner looking and hides even more.
>
>Pity nobody uses Dotnet for anything important. Even Microsoft won’t
>entrust anything significant to it.

I wouldn't even use objects in C++, much less "C#".

--
Joel W. Crump

Amendment XIV
Section 1.

[...] No state shall make or enforce any law which shall
abridge the privileges or immunities of citizens of the
United States; nor shall any state deprive any person of
life, liberty, or property, without due process of law;
nor deny to any person within its jurisdiction the equal
protection of the laws.

Dobbs rewrites this, it is invalid precedent. States are
liable for denying needed abortions, e.g. TX.

Re: dcigettext.c

<l4hucfFb2ruU5@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=10983&group=comp.os.linux.advocacy#10983

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy
Subject: Re: dcigettext.c
Date: 3 Mar 2024 00:25:52 GMT
Lines: 10
Message-ID: <l4hucfFb2ruU5@mid.individual.net>
References: <urvc0s$1ta36$4@dont-email.me> <l4hbq5F8p7vU1@mid.individual.net>
<us05tn$22vjj$3@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 64s56pPCBX5DATRH2am4JAkIhufnhPKoCE6HyZZH3o25/fycFq
Cancel-Lock: sha1:loDJmjvoxKLkaaC1VJqjmSRMSSg= sha256:Gj8GuX3F2n1KDEGKn030kqODt2KICw7G+8KoLesp514=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
 by: rbowman - Sun, 3 Mar 2024 00:25 UTC

On Sat, 2 Mar 2024 16:32:39 -0500, Chris Ahlstrom wrote:

>> You're saying a C++ implementation would be better or that C++ hides
>> the ugly bits under a fig leaf? Have you looked at the way a vtable is
>> implemented?
>
> Who cares? Unless you are a compiler designer.

If you're trying to squeeze out the last bit of speed it helps to know
what C++ is doing under the hood.

Re: dcigettext.c

<us2471$2i1ku$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11030&group=comp.os.linux.advocacy#11030

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED.2600:1700:6d90:281f:9307:282c:9456:8790!not-for-mail
From: OFeem1987@teleworm.us (Chris Ahlstrom)
Newsgroups: comp.os.linux.advocacy
Subject: Re: dcigettext.c
Date: Sun, 3 Mar 2024 10:15:45 -0500
Organization: None
Lines: 29
Message-ID: <us2471$2i1ku$1@dont-email.me>
References: <urvc0s$1ta36$4@dont-email.me>
<l4hbq5F8p7vU1@mid.individual.net> <us05tn$22vjj$3@dont-email.me>
<l4hucfFb2ruU5@mid.individual.net>
Reply-To: OFeem1987@teleworm.us
Injection-Date: Sun, 3 Mar 2024 15:15:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2600:1700:6d90:281f:9307:282c:9456:8790";
logging-data="2688670"; mail-complaints-to="abuse@eternal-september.org"
User-Agent: slrn/1.0.3 (Linux)
X-User-Agent: Microsoft Outl00k, Usenet K00k Editions
X-Mutt: The most widely-used MUA
X-Slrn: Why use anything else?
 by: Chris Ahlstrom - Sun, 3 Mar 2024 15:15 UTC

rbowman wrote this copyrighted missive and expects royalties:

> On Sat, 2 Mar 2024 16:32:39 -0500, Chris Ahlstrom wrote:
>
>>> You're saying a C++ implementation would be better or that C++ hides
>>> the ugly bits under a fig leaf? Have you looked at the way a vtable is
>>> implemented?
>>
>> Who cares? Unless you are a compiler designer.
>
> If you're trying to squeeze out the last bit of speed it helps to know
> what C++ is doing under the hood.

Maybe. I'll trust the compiler writer over my own experience.

One of my programs reads command-line arguments, reads a bunch of INI-style
configuration files, adjusts as needed for the command-line arguments, and
rereads the configuration files based on that. The configuration-file scanning
is brute force... read in the whole file, and then search over and over for
each option. Very wasteful (and I will fix that in "version 2").

And yet the GUI app comes up completely populated in a second.

Even in a Windows VM it is a second or two.

Obviously one size does not fit all, though, and your point is well taken.

--
You will overcome the attacks of jealous associates.

Re: dcigettext.c

<us24ha$2i1ku$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11031&group=comp.os.linux.advocacy#11031

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED.2600:1700:6d90:281f:9307:282c:9456:8790!not-for-mail
From: OFeem1987@teleworm.us (Chris Ahlstrom)
Newsgroups: comp.os.linux.advocacy
Subject: Re: dcigettext.c
Date: Sun, 3 Mar 2024 10:21:13 -0500
Organization: None
Message-ID: <us24ha$2i1ku$2@dont-email.me>
References: <urvc0s$1ta36$4@dont-email.me>
<l4hbq5F8p7vU1@mid.individual.net> <us0ecp$24khf$2@dont-email.me>
Reply-To: OFeem1987@teleworm.us
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 3 Mar 2024 15:21:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2600:1700:6d90:281f:9307:282c:9456:8790";
logging-data="2688670"; mail-complaints-to="abuse@eternal-september.org"
User-Agent: slrn/1.0.3 (Linux)
X-User-Agent: Microsoft Outl00k, Usenet K00k Editions
X-Mutt: The most widely-used MUA
X-Slrn: Why use anything else?
 by: Chris Ahlstrom - Sun, 3 Mar 2024 15:21 UTC

Lawrence D'Oliveiro wrote this copyrighted missive and expects royalties:

> On 2 Mar 2024 19:08:53 GMT, rbowman wrote:
>
>> C# is even cleaner looking and hides even more.
>
> Pity nobody uses Dotnet for anything important. Even Microsoft won’t
> entrust anything significant to it.

I worked for awhile on a project that was a mishmash of C#, .NET, HTML,
Javascript, and even SRSS (Microsoft's "Crystal Reports").

I was happy to get off of that project, especially since the lead developer was
an arrogant asshole cowboy coder who tended to brush off customer requirements
and complaints. But he owned two Mercedes sedans :-D.

After he left the company (apparently my successor filed a complaint to HR
about him), another guy took over. I worked very briefly, and the project was
even more of a Frankenstein monster, adding "Mustache" and some other tech
that I've forgotten.

It was nice to see what Javascript could do, though.

--
The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
-- Jack Kerouac, "On the Road"

Re: dcigettext.c

<l4k1vsFl3p9U3@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11058&group=comp.os.linux.advocacy#11058

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy
Subject: Re: dcigettext.c
Date: 3 Mar 2024 19:39:40 GMT
Lines: 27
Message-ID: <l4k1vsFl3p9U3@mid.individual.net>
References: <urvc0s$1ta36$4@dont-email.me> <l4hbq5F8p7vU1@mid.individual.net>
<us0ecp$24khf$2@dont-email.me> <us24ha$2i1ku$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net PvjHTlK6RS4yFbAzmDn0xAaO3/gtFxyFwM/Q3SxEE6YFqiXq6x
Cancel-Lock: sha1:CIAT5oVvx4DMwEtPkGo0i830aqA= sha256:NpFqf3nBq6TCFnt/CLKVkzEHcUvBggQIDyx1vlIwfFg=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
 by: rbowman - Sun, 3 Mar 2024 19:39 UTC

On Sun, 3 Mar 2024 10:21:13 -0500, Chris Ahlstrom wrote:

> I worked for awhile on a project that was a mishmash of C#, .NET, HTML,
> Javascript, and even SRSS (Microsoft's "Crystal Reports").

SRSS is a piece of work but Power BI is actually usable to produce the eye
candy managers love. It's one of the few report packages that there might
be some hope of a manager being able to use by himself.

> After he left the company (apparently my successor filed a complaint to
> HR about him), another guy took over. I worked very briefly, and the
> project was even more of a Frankenstein monster, adding "Mustache" and
> some other tech that I've forgotten.
>
> It was nice to see what Javascript could do, though.

I did a couple of web maps with Node.js and the Express framework
generator. There are several choices but I always went with the Handlebars
engine. It's very similar to Mustache.

We also did a web SPA with Angular. It uses TypeScript which is helpful if
you use it right. There's a temptation to use 'any' which defeats the
purpose. I mostly worked on the map portion and fortunately Esri has an
Angular package. Their first JavaScript API used AMD with Dojo which was
not not compatible with CommonJS. Going to ES2015 was a definite
improvement.

Re: dcigettext.c

<l4k370Fl3p9U4@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11063&group=comp.os.linux.advocacy#11063

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy
Subject: Re: dcigettext.c
Date: 3 Mar 2024 20:00:33 GMT
Lines: 26
Message-ID: <l4k370Fl3p9U4@mid.individual.net>
References: <urvc0s$1ta36$4@dont-email.me> <l4hbq5F8p7vU1@mid.individual.net>
<us05tn$22vjj$3@dont-email.me> <l4hucfFb2ruU5@mid.individual.net>
<us2471$2i1ku$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net ZfHTZewuNZ4ERFs5J5vm6AjDhYyqtwwLTVZjF/7uFgApg7g8Gm
Cancel-Lock: sha1:8IJo8xoUG2gUwnG+fidAD0i99Uo= sha256:bHBZqLsEUHHhXzQogcmk69CmRWhxMTXSNK67mUXf9wA=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
 by: rbowman - Sun, 3 Mar 2024 20:00 UTC

On Sun, 3 Mar 2024 10:15:45 -0500, Chris Ahlstrom wrote:

> One of my programs reads command-line arguments, reads a bunch of
> INI-style configuration files, adjusts as needed for the command-line
> arguments, and rereads the configuration files based on that. The
> configuration-file scanning is brute force... read in the whole file,
> and then search over and over for each option. Very wasteful (and I will
> fix that in "version 2").

For better or worse working with the Esri API pit me in the COM world

pApp = AfxGetApp();
m_nCrossStreetAngle = pApp->GetProfileInt(_T("Data"),
_T("CrossStreetAngle"), 45);

strDatabase = pApp->GetProfileString(_T("Data"),_T("Database"),_T(""));

makes that relatively painless. Our C apps also read from an ini style
file but a library makes handles the grunt work so it's similar.

allow_alt_cfs = GetLogiOptBool("xmstat", "allow alternate cfs", 0);

For the newer apps I went to JSON rather than ini. ConfigurationBuilder
in .NET streamlines the process and you can suck in a JSON file and the
environment variables in one shot.

Re: dcigettext.c

<us2l4p$2ltj3$3@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11067&group=comp.os.linux.advocacy#11067

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.advocacy
Subject: Re: dcigettext.c
Date: Sun, 3 Mar 2024 20:04:41 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <us2l4p$2ltj3$3@dont-email.me>
References: <urvc0s$1ta36$4@dont-email.me> <l4hbq5F8p7vU1@mid.individual.net>
<us0ecp$24khf$2@dont-email.me> <us24ha$2i1ku$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 3 Mar 2024 20:04:41 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1df16df39307445c7cddc792d9e0afb1";
logging-data="2815587"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+EwlOD3Zancee5K8RJIoGa"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:YKPAk4e7BT/mzO/1fubo6RuAmm8=
 by: Lawrence D'Oliv - Sun, 3 Mar 2024 20:04 UTC

On Sun, 3 Mar 2024 10:21:13 -0500, Chris Ahlstrom wrote:

> I worked for awhile on a project that was a mishmash of C#, .NET, HTML,
> Javascript, and even SRSS (Microsoft's "Crystal Reports").

Wot, no PHP? SQL?

> It was nice to see what Javascript could do, though.

It has some remarkably good parts. Strict mode helps.

Re: dcigettext.c

<l4kqo3Fobf9U4@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11091&group=comp.os.linux.advocacy#11091

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy
Subject: Re: dcigettext.c
Date: 4 Mar 2024 02:42:11 GMT
Lines: 23
Message-ID: <l4kqo3Fobf9U4@mid.individual.net>
References: <urvc0s$1ta36$4@dont-email.me> <l4hbq5F8p7vU1@mid.individual.net>
<us0ecp$24khf$2@dont-email.me> <us24ha$2i1ku$2@dont-email.me>
<us2l4p$2ltj3$3@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net LUhgqj4RBu5m8BPemlzQ2Q8fTDT8rjvTrQheEVILGueRG/ZgqO
Cancel-Lock: sha1:g8g4dFdKSwn26zFf8kv1mn3N+K4= sha256:tqL7mCaeseQdnqfCY4NLx9xw6jd4G+sTlSuAZlPZw1Q=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
 by: rbowman - Mon, 4 Mar 2024 02:42 UTC

On Sun, 3 Mar 2024 20:04:41 -0000 (UTC), Lawrence D'Oliveiro wrote:

> On Sun, 3 Mar 2024 10:21:13 -0500, Chris Ahlstrom wrote:
>
>> I worked for awhile on a project that was a mishmash of C#, .NET, HTML,
>> Javascript, and even SRSS (Microsoft's "Crystal Reports").
>
> Wot, no PHP? SQL?

We have a programmer who likes PHP; we try to limit the damage. Something
that started as Personal Home Page so Aunt Tillie could put her casserole
recipes on the web doesn't inspire confidence.

SSRS == SQL Server Reporting Services.
>> It was nice to see what Javascript could do, though.
>
> It has some remarkably good parts. Strict mode helps.

Douglas Crockford's 'JavaScript: The Good Parts' was good in its day but
its day was 2008. He does have a newer book 'How JavaScript Works' that I
haven't read.

Re: dcigettext.c

<us4sl4$381tr$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11108&group=comp.os.linux.advocacy#11108

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: candycanearter07@candycanearter07.nomail.afraid (candycanearter07)
Newsgroups: comp.os.linux.advocacy
Subject: Re: dcigettext.c
Date: Mon, 4 Mar 2024 16:25:08 -0000 (UTC)
Organization: the-candyden-of-code
Lines: 28
Message-ID: <us4sl4$381tr$1@dont-email.me>
References: <urvc0s$1ta36$4@dont-email.me>
<l4hbq5F8p7vU1@mid.individual.net> <us0ecp$24khf$2@dont-email.me>
<us24ha$2i1ku$2@dont-email.me> <us2l4p$2ltj3$3@dont-email.me>
<l4kqo3Fobf9U4@mid.individual.net>
Injection-Date: Mon, 4 Mar 2024 16:25:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6695cb66ced474865bc5f3ed169c4776";
logging-data="3409851"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Y6EYaJ5nietJpLc0eu87UIaSwiJPpd7pD5LUOViSp3A=="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:ILbDSfm7kuOrGmyzSlF/+lLqlkM=
 by: candycanearter07 - Mon, 4 Mar 2024 16:25 UTC

rbowman <bowman@montana.com> wrote at 02:42 this Monday (GMT):
> On Sun, 3 Mar 2024 20:04:41 -0000 (UTC), Lawrence D'Oliveiro wrote:
>
>> On Sun, 3 Mar 2024 10:21:13 -0500, Chris Ahlstrom wrote:
>>
>>> I worked for awhile on a project that was a mishmash of C#, .NET, HTML,
>>> Javascript, and even SRSS (Microsoft's "Crystal Reports").
>>
>> Wot, no PHP? SQL?
>
> We have a programmer who likes PHP; we try to limit the damage. Something
> that started as Personal Home Page so Aunt Tillie could put her casserole
> recipes on the web doesn't inspire confidence.
>
> SSRS == SQL Server Reporting Services.
>
>>> It was nice to see what Javascript could do, though.
>>
>> It has some remarkably good parts. Strict mode helps.
>
> Douglas Crockford's 'JavaScript: The Good Parts' was good in its day but
> its day was 2008. He does have a newer book 'How JavaScript Works' that I
> haven't read.
>

JS and PHP are both way overused.
--
user <candycane> is generated from /dev/urandom

Re: dcigettext.c

<us51rg$3949a$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11113&group=comp.os.linux.advocacy#11113

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: OFeem1987@teleworm.us (Chris Ahlstrom)
Newsgroups: comp.os.linux.advocacy
Subject: Re: dcigettext.c
Date: Mon, 4 Mar 2024 12:53:52 -0500
Organization: None
Lines: 36
Message-ID: <us51rg$3949a$1@dont-email.me>
References: <urvc0s$1ta36$4@dont-email.me>
<l4hbq5F8p7vU1@mid.individual.net> <us05tn$22vjj$3@dont-email.me>
<l4hucfFb2ruU5@mid.individual.net> <us2471$2i1ku$1@dont-email.me>
<l4k370Fl3p9U4@mid.individual.net>
Reply-To: OFeem1987@teleworm.us
Injection-Date: Mon, 4 Mar 2024 17:53:53 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="eb740339481633052c3a3ef5ef8285c3";
logging-data="3445034"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18iWcd49PijercND9gHwZqE"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:Ysz8s57T3aVn74ohYo7tKeSi6sM=
X-Slrn: Why use anything else?
X-User-Agent: Microsoft Outl00k, Usenet K00k Editions
X-Mutt: The most widely-used MUA
 by: Chris Ahlstrom - Mon, 4 Mar 2024 17:53 UTC

rbowman wrote this copyrighted missive and expects royalties:

> On Sun, 3 Mar 2024 10:15:45 -0500, Chris Ahlstrom wrote:
>
>> One of my programs reads command-line arguments, reads a bunch of
>> INI-style configuration files, adjusts as needed for the command-line
>> arguments, and rereads the configuration files based on that. The
>> configuration-file scanning is brute force... read in the whole file,
>> and then search over and over for each option. Very wasteful (and I will
>> fix that in "version 2").
>
> For better or worse working with the Esri API pit me in the COM world
>
> pApp = AfxGetApp();
> m_nCrossStreetAngle = pApp->GetProfileInt(_T("Data"),
> _T("CrossStreetAngle"), 45);
>
> strDatabase = pApp->GetProfileString(_T("Data"),_T("Database"),_T(""));
>
> makes that relatively painless. Our C apps also read from an ini style
> file but a library makes handles the grunt work so it's similar.
>
> allow_alt_cfs = GetLogiOptBool("xmstat", "allow alternate cfs", 0);
>
> For the newer apps I went to JSON rather than ini. ConfigurationBuilder
> in .NET streamlines the process and you can suck in a JSON file and the
> environment variables in one shot.

JSON is cool. The main reason I'm sticking with INI here is legacy, and
because there isn't much in the way of nested configuration items.

I've had people ask me to switch to XML. No way. Too bulky; INI is
easier for a human to edit if they want to.

--
Are you a turtle?

Re: dcigettext.c

<us52b0$3949a$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11114&group=comp.os.linux.advocacy#11114

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: OFeem1987@teleworm.us (Chris Ahlstrom)
Newsgroups: comp.os.linux.advocacy
Subject: Re: dcigettext.c
Date: Mon, 4 Mar 2024 13:02:08 -0500
Organization: None
Lines: 30
Message-ID: <us52b0$3949a$2@dont-email.me>
References: <urvc0s$1ta36$4@dont-email.me>
<l4hbq5F8p7vU1@mid.individual.net> <us0ecp$24khf$2@dont-email.me>
<us24ha$2i1ku$2@dont-email.me> <us2l4p$2ltj3$3@dont-email.me>
Reply-To: OFeem1987@teleworm.us
Injection-Date: Mon, 4 Mar 2024 18:02:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="eb740339481633052c3a3ef5ef8285c3";
logging-data="3445034"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18SDhtKPy2q1mihC2xtqDtd"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:KQRm/mR+SdnKQmn4pafPKWENhrQ=
X-Slrn: Why use anything else?
X-User-Agent: Microsoft Outl00k, Usenet K00k Editions
X-Mutt: The most widely-used MUA
 by: Chris Ahlstrom - Mon, 4 Mar 2024 18:02 UTC

Lawrence D'Oliveiro wrote this copyrighted missive and expects royalties:

> On Sun, 3 Mar 2024 10:21:13 -0500, Chris Ahlstrom wrote:
>
>> I worked for awhile on a project that was a mishmash of C#, .NET, HTML,
>> Javascript, and even SRSS (Microsoft's "Crystal Reports").
>
> Wot, no PHP? SQL?

MS-SQL (Transact SQL) was used, and accessed in C#.

>> It was nice to see what Javascript could do, though.
>
> It has some remarkably good parts. Strict mode helps.

Another story. So I got the database queries and reports working well.
The "manager" was happy with them. Then the "cowboy" calls us into a
meeting room and basically says "We're scrapping that work."

I could tell the "manager" was flabbergasted. But he acceded to the "cowboy".

So what was the big change? The "cowboy" discovered he could use SQL to
write SQL statements. My god the stuff was almost undebuggable! I swear this
asshole was trying to see if he could make me fail.

After doing that crap for a bit, I was happy to take on a completely different
project. The "manager" had absolutely no sway with that guy.

--
A tall, dark stranger will have more fun than you.

Re: dcigettext.c

<us52co$3949a$3@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11115&group=comp.os.linux.advocacy#11115

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: OFeem1987@teleworm.us (Chris Ahlstrom)
Newsgroups: comp.os.linux.advocacy
Subject: Re: dcigettext.c
Date: Mon, 4 Mar 2024 13:03:04 -0500
Organization: None
Lines: 30
Message-ID: <us52co$3949a$3@dont-email.me>
References: <urvc0s$1ta36$4@dont-email.me>
<l4hbq5F8p7vU1@mid.individual.net> <us0ecp$24khf$2@dont-email.me>
<us24ha$2i1ku$2@dont-email.me> <us2l4p$2ltj3$3@dont-email.me>
<l4kqo3Fobf9U4@mid.individual.net>
Reply-To: OFeem1987@teleworm.us
Injection-Date: Mon, 4 Mar 2024 18:03:04 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="eb740339481633052c3a3ef5ef8285c3";
logging-data="3445034"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18bzUc2DEsLghXcusMQUlZX"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:ymC4Pz5C6tBnbcMqoKec0tPyuDY=
X-Slrn: Why use anything else?
X-User-Agent: Microsoft Outl00k, Usenet K00k Editions
X-Mutt: The most widely-used MUA
 by: Chris Ahlstrom - Mon, 4 Mar 2024 18:03 UTC

rbowman wrote this copyrighted missive and expects royalties:

> On Sun, 3 Mar 2024 20:04:41 -0000 (UTC), Lawrence D'Oliveiro wrote:
>
>> On Sun, 3 Mar 2024 10:21:13 -0500, Chris Ahlstrom wrote:
>>
>>> I worked for awhile on a project that was a mishmash of C#, .NET, HTML,
>>> Javascript, and even SRSS (Microsoft's "Crystal Reports").
>>
>> Wot, no PHP? SQL?
>
> We have a programmer who likes PHP; we try to limit the damage. Something
> that started as Personal Home Page so Aunt Tillie could put her casserole
> recipes on the web doesn't inspire confidence.
>
> SSRS == SQL Server Reporting Services.
>
>>> It was nice to see what Javascript could do, though.
>>
>> It has some remarkably good parts. Strict mode helps.
>
> Douglas Crockford's 'JavaScript: The Good Parts' was good in its day but
> its day was 2008. He does have a newer book 'How JavaScript Works' that I
> haven't read.

The book I studied from was something like "Object-Oriented Javascript".

--
You should emulate your heros, but don't carry it too far. Especially
if they are dead.

Re: dcigettext.c

<us5ch0$3besu$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11125&group=comp.os.linux.advocacy#11125

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.advocacy
Subject: Re: dcigettext.c
Date: Mon, 4 Mar 2024 20:56:01 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 5
Message-ID: <us5ch0$3besu$1@dont-email.me>
References: <urvc0s$1ta36$4@dont-email.me> <l4hbq5F8p7vU1@mid.individual.net>
<us0ecp$24khf$2@dont-email.me> <us24ha$2i1ku$2@dont-email.me>
<us2l4p$2ltj3$3@dont-email.me> <l4kqo3Fobf9U4@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 4 Mar 2024 20:56:01 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ebd4c9541601cb1e1312dcde6a0cb96a";
logging-data="3521438"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+UjGOmPLl5yWBsQSihDR6Q"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:PjH4UeRId76IVr11LDT9M+hm88Q=
 by: Lawrence D'Oliv - Mon, 4 Mar 2024 20:56 UTC

On 4 Mar 2024 02:42:11 GMT, rbowman wrote:

> We have a programmer who likes PHP; we try to limit the damage.

That deserves a “LOL” if anything does. ;)

Re: dcigettext.c

<us5hen$3cf1r$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11128&group=comp.os.linux.advocacy#11128

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: candycanearter07@candycanearter07.nomail.afraid (candycanearter07)
Newsgroups: comp.os.linux.advocacy
Subject: Re: dcigettext.c
Date: Mon, 4 Mar 2024 22:20:07 -0000 (UTC)
Organization: the-candyden-of-code
Lines: 10
Message-ID: <us5hen$3cf1r$2@dont-email.me>
References: <urvc0s$1ta36$4@dont-email.me>
<l4hbq5F8p7vU1@mid.individual.net> <us0ecp$24khf$2@dont-email.me>
<us24ha$2i1ku$2@dont-email.me> <us2l4p$2ltj3$3@dont-email.me>
<l4kqo3Fobf9U4@mid.individual.net> <us5ch0$3besu$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 4 Mar 2024 22:20:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6695cb66ced474865bc5f3ed169c4776";
logging-data="3554363"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19cfWPjASMRujSPNXbH55hayX409QL2YQXxkGheuwvMHg=="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:M7HnOgl4DOcG6CZFhwEJ17iudN0=
 by: candycanearter07 - Mon, 4 Mar 2024 22:20 UTC

Lawrence D'Oliveiro <ldo@nz.invalid> wrote at 20:56 this Monday (GMT):
> On 4 Mar 2024 02:42:11 GMT, rbowman wrote:
>
>> We have a programmer who likes PHP; we try to limit the damage.
>
> That deserves a “LOL” if anything does. ;)

LOL
--
user <candycane> is generated from /dev/urandom

Re: dcigettext.c

<l4nb38F5svbU3@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11133&group=comp.os.linux.advocacy#11133

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy
Subject: Re: dcigettext.c
Date: 5 Mar 2024 01:33:28 GMT
Lines: 20
Message-ID: <l4nb38F5svbU3@mid.individual.net>
References: <urvc0s$1ta36$4@dont-email.me> <l4hbq5F8p7vU1@mid.individual.net>
<us0ecp$24khf$2@dont-email.me> <us24ha$2i1ku$2@dont-email.me>
<us2l4p$2ltj3$3@dont-email.me> <us52b0$3949a$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net ykgA85oEw25qiMb9/GtKKA5L2djniPUq2OpVNyuTaSKxn/u0a4
Cancel-Lock: sha1:/X6Hqj+FCrCyh4P/jztMaELR3G0= sha256:hRKMnHDk3sQ2K5CUcElCw+lf90TS9AwfCHXs+AtcHTU=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
 by: rbowman - Tue, 5 Mar 2024 01:33 UTC

On Mon, 4 Mar 2024 13:02:08 -0500, Chris Ahlstrom wrote:

> So what was the big change? The "cowboy" discovered he could use SQL to
> write SQL statements. My god the stuff was almost undebuggable! I swear
> this asshole was trying to see if he could make me fail.

We had a support person who came up with a SQL statement to query a DB2
database for archived want/warrant information. It was a work of art and I
have no idea how long it took him to come up with it. At one point it
failed on older DB2 versions that only supported a 4k buffer for queries.

He used a lot of the scalar functions to try to extract a first, middle,
and last name from a full name, did a lot of other manipulations, and
glued it all together with concat. It was all one line with no formatting.
If any of the little twists failed you got nothing at all. I never did
figure it out.

I can get the job done with SQL but I prefer to break it down into bite
sized chunks and use C or C++ for preprocessing strings, formatting dates,
and the like.

Re: dcigettext.c

<l4nchkF6gi1U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11134&group=comp.os.linux.advocacy#11134

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy
Subject: Re: dcigettext.c
Date: 5 Mar 2024 01:58:12 GMT
Lines: 38
Message-ID: <l4nchkF6gi1U1@mid.individual.net>
References: <urvc0s$1ta36$4@dont-email.me> <l4hbq5F8p7vU1@mid.individual.net>
<us05tn$22vjj$3@dont-email.me> <l4hucfFb2ruU5@mid.individual.net>
<us2471$2i1ku$1@dont-email.me> <l4k370Fl3p9U4@mid.individual.net>
<us51rg$3949a$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net cEx3zEe1F3Y1VU4BOyipdwqT62QhHZMAk+72KGEfalQttpm6BL
Cancel-Lock: sha1:08qpmvyKlQBO4/KuLrvYgDi/1Lo= sha256:PTMx8XIRpququemkr1KT0OEH9Qy29dQuzHZIb8di9gI=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
 by: rbowman - Tue, 5 Mar 2024 01:58 UTC

On Mon, 4 Mar 2024 12:53:52 -0500, Chris Ahlstrom wrote:

> JSON is cool. The main reason I'm sticking with INI here is legacy, and
> because there isn't much in the way of nested configuration items.

Tell me about legacy :) I got a chuckle one day when another programmer
asked how something was handled. 'Well, according to the comments in the
code, you wrote the function in 1997.'


> I've had people ask me to switch to XML. No way. Too bulky; INI is
> easier for a human to edit if they want to.

It started with the DOJ wanting one schema to rule them all. Particularly
after 9/11 there was a big push about information sharing between
agencies. Of course it never happened because the agencies have their own
little fiefdoms and give zero fucks about sharing anything.

https://en.wikipedia.org/wiki/GJXDM

NCIC and the state CJIN people got into it. I never worked with Wisconsin
so this is an example I found on the web. It's fairly typical with a half
dozen or more namespaces. The best part is ones like <j:ID/> are
contextual. It might be a SSN, OLN, plate number, or who knows what.

https://www.doj.state.wi.us/sites/default/files/etime-schemas/
version2013v01/ncic/WINCICResponse_ViolentPerson.xml

The returns used to be reasonably well formatted plain text. Now I have to
write XSLT stylesheets to beat the mess into some sort of human readable
format.

Hey, Larry, how's your XSLT fu? Make that page look pretty. Oh, I forgot.
You're not interested in skills someone might actually pay you to use. Oh
well.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor