libUCL / UCL as FreeBSD config question

Allan Jude allanjude at freebsd.org
Fri Nov 20 18:18:38 UTC 2015


On 2015-11-20 13:14, Eduardo Morras wrote:
> On Fri, 20 Nov 2015 13:06:16 -0500
> Allan Jude <allanjude at 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 at yahoo.es>
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
> 


-- 
Allan Jude

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20151120/95ba4561/attachment.bin>


More information about the freebsd-hackers mailing list