Hacker News new | past | comments | ask | show | jobs | submit login

“but your code will break even on a slight change of output rendered.”

I see you still don’t get it. I wouldn’t as an experienced shell programmer construct a JSON/XML parser; I use libxslt for XML and I compiled jq for parsing JSON. It’s the UNIX way.

The Zen of this eludes you still. Think deeper.




>>The Zen of this eludes you still.

Seems like a blessing in disguise in this case, if such zen exists.

I should use shell+awk+sed+libxslt+jq and all that, instead of using Perl + XML::Simple?


Indeed, for that XML::Simple would be an operational nightmare to deploy and maintain (being fused into Perl’s tree), and your code would be unreadable and unmaintainable by anyone else, for such is the nature of Perl.

And then there is the UNIX way, with both jq and libxslt being reusable for other data without having to write a dedicated program. sed by the way is unnecessary if one has mastered AWK.

There are too many things you have not even begun to consider yet. You could start with taking those developer-convenience glasses off, and putting the system engineer glasses on.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: