Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jun 2015 09:54:18 -0700
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        Garrett Cooper <yaneurabeya@gmail.com>, Slawa Olhovchenkov <slw@zxy.spb.ru>
Cc:        Craig Rodrigues <rodrigc@FreeBSD.org>, Marcel Moolenaar <marcel@xcllnt.net>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, Marcel Moolenaar <marcel@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org>
Subject:   Re: svn commit: r284198 - head/bin/ls
Message-ID:  <557F033A.1060006@FreeBSD.org>
In-Reply-To: <45B665F4-B81F-439B-89DC-6D27BA96F87D@gmail.com>
References:  <201506100127.t5A1RdX6051959@svn.freebsd.org> <20150612204309.11dd3391@kan> <20150613024916.GA98218@troutmask.apl.washington.edu> <1434208622.1415.57.camel@freebsd.org> <C88CB169-12FE-4692-92AA-5C7D41BB61DF@FreeBSD.org> <557C661F.8080104@freebsd.org> <860017ED-D754-450C-865D-2D81A30C2212@xcllnt.net> <CAG=rPVd93Q18aYnSGSf_QH4C08RCq5wsdKQSNYTgWQ2huTbUHQ@mail.gmail.com> <20150614100045.GF58397@zxy.spb.ru> <45B665F4-B81F-439B-89DC-6D27BA96F87D@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 6/14/15 3:17 AM, Garrett Cooper wrote:
> On Jun 14, 2015, at 3:00, Slawa Olhovchenkov <slw@zxy.spb.ru>
> wrote:
>=20
>> On Sat, Jun 13, 2015 at 05:13:31PM -0700, Craig Rodrigues wrote:
>>=20
>>> The people I talk to use scripting languages like Python or
>>> Ruby, and devops frameworks like Ansible, Saltstack, Puppet,
>>> and Chef. They may do some quick prototyping and UI work with
>>> Javascript and HTML/CSS. Being able to generate JSON directly
>>> from system-level tools, and then analyze that in a Python
>>> script,
>>=20
>> You need JSON from system-level tools for analyze that in a
>> Python script? Realy? Not plain text? or tab/space separated?
>=20
> Having written a bunch of tools that parse plaintext, it=92s a pain
> in the rear. It=92s far easier to have JSON and a schema for working
> with that JSON when developing tools to parse things out.
>=20
> Programmers are inherently lazy =97 the more we have to make them
> work, the more pushback we=92re going to get from them as far as
> integrating FreeBSD=92s concerned.
>=20
> Thanks!
>=20

For 'w' it makes sense, for 'ls' why? Most, all?, scripting languages
have globbing and file listing functions already so there's no need to
run /bin/ls and parse it.

--=20
Regards,
Bryan Drewery



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?557F033A.1060006>