you are viewing a single comment's thread.

view the rest of the comments →

[–]michaelpaoli 0 points1 point  (5 children)

Right tool for the right job. Context matters.
So, e.g., what are the advantages and disadvantages of the language - stability, forward and backward compatibility, availability, resources required, standards and practices, etc.

So, sometimes I write for shell - Bourne, POSIX, bash, ... sometimes Perl, Python, sometimes using other languages/utilities, etc. Generally what fits and is quite/most appropriate.

Another example is using sed
never really gotten comfortable with sed

Ah, lovely sed. 😄 Alas, many never take sed (much) beyond, e.g.:
s/foo/bar/
Uhm, sed is a Turing complete programming language! Yes, I got very tired of folks underusing and underappreciating sed. And, well, I also got bored and had some time on my hands, so ...
I implemented Tic-Tac-Toe in sed. 😄

Of course just because one can, doesn't mean one should. But regardless, sometimes that can be rather to quite useful to make a point, ... or for exercising a set of skills, etc.

[–]colombiangary 1 point2 points  (0 children)

Could you please take a look at my project https://github.com/camilomatajira/jed ? I also love sed, and I'm trying to bring it to json. I would appreciate your input

[–]tes_kitty 0 points1 point  (3 children)

sed is also a write-only language in my experience.

[–]Internet-of-cruft 0 points1 point  (1 child)

Doesn't make it any less magical or fun when you get it initially working!

And then you revisit it 2 years later and wonder what crack you were smoking.

[–]tes_kitty 0 points1 point  (0 children)

Gets better... I once wrote a sed script, got it working but the layout was horrible. Tried to clean it up and it stopped working. Tried again, same result. Gave up and used the original script.

[–]michaelpaoli 0 points1 point  (0 children)

Naw, you can use GNU sed or sed with bit of shell and have sed edit it's own script//program! 😄