Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Nov 2015 13:18:57 -0500
From:      Allan Jude <allanjude@freebsd.org>
To:        freebsd-hackers@freebsd.org
Subject:   Re: libUCL / UCL as FreeBSD config question
Message-ID:  <564F6411.6040208@freebsd.org>
In-Reply-To: <20151120191426.a720ca4f4e73bd867d535104@yahoo.es>
References:  <5B598F72-C5DD-48FD-866D-F90E117D646E@rdsor.ro> <564F6118.5030702@freebsd.org> <20151120191426.a720ca4f4e73bd867d535104@yahoo.es>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On 2015-11-20 13:14, Eduardo Morras wrote:
> On Fri, 20 Nov 2015 13:06:16 -0500
> Allan Jude <allanjude@freebsd.org> wrote:
> 
>> Although some limitation in libucl mean that, if you have a config
>> that has comments in it, the comments are lost, as they are not
>> represented in the in-memory version of the object that then gets
>> serialized for output. If you treat the config files as a database,
>> then this is fine, but if the user expects to still hand edit them
>> with an editor, this is a fairly big POLA violation.
> 
> POLA as in https://en.wikipedia.org/wiki/Principle_of_least_astonishment or https://en.wikipedia.org/wiki/Principle_of_least_privilege ?

Astonishment. The user put meaningful comments in their config file,
they used the utility to make a change to some value elsewhere in the
config file, now their config file is written possibly in a different
order, and with no comments.

> 
>>
>> -- 
>> Allan Jude
>>
> 
> 
> ---   ---
> Eduardo Morras <emorrasg@yahoo.es>
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
> 


-- 
Allan Jude


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQIcBAEBAgAGBQJWT2QUAAoJEBmVNT4SmAt+oMQP/0P2XBO9IAWoym3tOsR3ONDQ
ps89SMOh9dHtkc6uXUZG+abDxrvTpqHsdrQyd1maDqy5iPgxT2gdqU/6s+GcJnIT
+IPmVXncPkJIInuI/4GRpC2gKw+tQzCy1Z7EBRCEbuzeObwnLwnxt58qesAy6qr1
e/qWrqIrFLvovQIO9aTqiUJSv+7aiuF4viXhHyNdS7NKfJaVbRhljijaIKM9X8XX
PRvdMlF+gtcAH08y3cE9lu2aFFjiIs4Fd2Nq53kJhILW109F3cCswIXHgdcsc853
0gnP1BMprFV+rDnY17OSE41QTe1ovH7m1jZsVc/Oze3vop0cU1Znk3Fy8nNBH09H
byHtD9wM04GZ93uxS9MscKixZYQx+LCOdRd0afNUvnHwJBsxJKZhHqSpFiGoMNy1
sndPwVW3yTXxkvktmwAvaEbZZvkAtWpgr7fJsP6O8A0ow5z9TA8Rprjo8YcHG0Qq
g/k1H5MaNkG6j1QTIBgCZh7wPGj9GCekgvkxv2fJJaTkCdzkFKlFLZLSJ4QGMqti
mS8BPQWjrUZDP0tDnYTArtOxZpHg1sJhfrrSG0gNSdRg/Fkw3zVOYQjyFiKfHf3m
EQyJ9gn3L/D2ds47EIrc47gS40/mN8XdrBPdXItF37xcAVVcY2rievF9fZx+ObBE
jP1t8CnPdiuVeVKJ6DP6
=IhH7
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?564F6411.6040208>