Earlier quoted context omitted.
I clearly said I'm not defending shell. Even when the author is responsible himself for wanting to put a fixed string where a pattern is expected. But this is about text formats. Text is simple. It's only the overengineering farts who think they have to wrap everything in three levels of parens. It doesn't make a difference. > Their fault? Absolutely and definitely. But it's the job of the tech to slap you through th…
> Text is simple. Sigh. I am not here to argue with your out-of-context sweeping generalizations. So I won't. BTW, do you have a particular gripe with S-expressions / LISP? You ranted twice about parens in your comment towards me. And no -- me, the OP, and several others in this thread will definitely not stop with this "vague FUD", "bs", "trolling" -- all your quotes from other comments -- simply because it's someth…
This discussion is about text representations. Why do you keep claiming that text formats are broken when you can't give a single example?
> BTW, do you have a particular gripe with S-expressions / LISP? You ranted twice about parens in your comment towards me.
I will rant again until people stop making stupid claims.
I actually like LISP as a programming language. There is just zero benefit from writing record- or even word-oriented data in a (random) free-form syntax that is meant for representing trees. If I wanted I could parse /etc/passwd format like this:
struct_passwd = namedtuple("passwd", "pw_name pw_passwd pw_uid pw_gid pw_gecos pw_dir pw_shell")
passwd = [struct_passwd(* line.rstrip('\n').split(':')) for line in open('/etc/passwd')]
That's it. It works. There, I even made a nice datatype for you. And there's already more integrity checking in these two lines compared to a json.parse() or similar.It works so nicely that I'm even making a text format for such databases with strong schema support that can still quite easily be used with generic text tools (git, grep, sed, awk, diff...). http://jstimpfle.de/projects/wsl/main.html
> So forgive all of us working folk who don't keep Star Trek-like exact logs on every problem we ever bump into. /s
Never asked for that. Give a single reasonable example why text file practice is bad, to get any credibility. It can't be that hard.
> ... And that's a fact of the daily life of many devs. You can call that a vague FUD if you wish.
Well, it's a bit less vague now that you have actually described a little better. But there is no connection to text representations. Sorry, you replied to the wrong thread.