From owner-freebsd-hackers@freebsd.org Fri Nov 20 18:18:38 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D66E5A34604 for ; Fri, 20 Nov 2015 18:18:38 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from mx1.scaleengine.net (mx1.scaleengine.net [209.51.186.6]) by mx1.freebsd.org (Postfix) with ESMTP id B30EB13DE for ; Fri, 20 Nov 2015 18:18:38 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from [10.1.1.2] (unknown [10.1.1.2]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id E02A1D1EC for ; Fri, 20 Nov 2015 18:18:37 +0000 (UTC) Subject: Re: libUCL / UCL as FreeBSD config question To: freebsd-hackers@freebsd.org References: <5B598F72-C5DD-48FD-866D-F90E117D646E@rdsor.ro> <564F6118.5030702@freebsd.org> <20151120191426.a720ca4f4e73bd867d535104@yahoo.es> From: Allan Jude Message-ID: <564F6411.6040208@freebsd.org> Date: Fri, 20 Nov 2015 13:18:57 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151120191426.a720ca4f4e73bd867d535104@yahoo.es> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XkT97Bv6UheuM2MqNRv8p0AthIrg6AWlx" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Nov 2015 18:18:38 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --XkT97Bv6UheuM2MqNRv8p0AthIrg6AWlx Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2015-11-20 13:14, Eduardo Morras wrote: > On Fri, 20 Nov 2015 13:06:16 -0500 > Allan Jude wrote: >=20 >> 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. >=20 > POLA as in https://en.wikipedia.org/wiki/Principle_of_least_astonishmen= t 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. >=20 >> >> --=20 >> Allan Jude >> >=20 >=20 > --- --- > Eduardo Morras > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.o= rg" >=20 --=20 Allan Jude --XkT97Bv6UheuM2MqNRv8p0AthIrg6AWlx Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----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----- --XkT97Bv6UheuM2MqNRv8p0AthIrg6AWlx--