[mythtv] #10305 heads up, mysql.txt removal + config.xml changes + UPnP fixes

Karl Dietz dekarl at spaetfruehstuecken.org
Fri May 4 06:26:08 UTC 2012


On 04.05.2012 08:16, Tim Phipps wrote:
> Quoting Raymond Wagner <raymond at wagnerrp.com>:
>> The only value it has for use in bash is when trying to access the
>> database directly, and if you need to access the database directly,
>> you can spend the effort writing whatever you're doing in a "proper"
>> programming language with native MySQL bindings and proper type
>> handling, rather than something that is just going to clumsily wrap
>> the `mysql` shell client. Any such language is going to have some form
>> of XML parser available, and not have any problem dealing with the
>> config.xml.
>
> Please don't take offence but the above comes across as snobbish.
> "Proper" programming languages come and go, sh is a Posix standard and
> is here to stay. That said I don't mind mysql.txt going. I'd rather have
> one setup file and if XML means less chance of errors in reading and
> writing then that's good. Parsing performance doesn't not matter for the
> setup file, robustness does. I'm sure it will be possible to find a way
> to read it into a shell script.

While everything you say is true it doesn't fit together.
Any proper programming language, whichever that may be, will have
a proper way to to parse xml and talk to a SQL database. But the Posix
standard shell will always have to use whatever command line interface
the mysql tools offer.
So if you can trade supporting multiple versions of command line
interfaces in a shell script against saying "no" when asked to rewrite
your script "just because all the cool kids write scripts in Foo now!"
then I'd prefer any proper language that allows me to have a robust
script any time :-)

Regards,
Karl


More information about the mythtv-dev mailing list