2 ms·
To be clear: I like that about it too. But in the real world, we want tooling that does more stuff. In the mid-90's, "everyone" knew perl, because it was the
by ajross 8y ago
To be clear: I like that about it too. But in the real world, we want tooling that does more stuff. In the mid-90's, "everyone" knew perl, because it was the best choice for problems in this space. And in a world where everyone knows perl, there is no place for awk.
But now we live in a world where no one knows perl, and languages like python and javascript are clumsy and weird in this space. And that makes awk look clever and elegant.
All I'm saying is that in perl-world (which was a real place!), awk wasn't clever and elegant, it was stale and primitive. And that to me is more surprising than awk's cleverness.
- fiddlerwoaroof 8y agoI think people underestimate the importance of medium-powered tools. Perl is great, but awks limitations make it easier to write in a way that the next person can maintain.
- fiddlerwoaroof 8y agoThat being said, the couple times I’ve paired with a perl wizard were revelatory.
- kqr 8y agoI totally see your point. And in Perl-world, I would probably use Perl too – I mean, if both tools are equally ubiquitous, why not use the most powerful one? I entered the field at the tail end of the Perl era, so I've only toyed with it a long time ago.
- kamaal 8y ago>>And that makes awk look clever and elegant. Eventually the cycle will repeat again. The moment you will have non trivial text work to do, awk will have to give way to Perl. The rise of Python was really use case for dealing with standard interfaces like DBs/XMLs/JSONs becoming common. Python hasn't actually replaced Perl in any meaningful way.
- oblio 8y agoMost modern distributions write their tools in Python instead of Perl. Proof: the really long transition process Fedora (and therefore RHEL), Debian and Ubuntu went through to migrate from Python 2 to 3. They could have done it faster if not for their system tools written in Python 2. In the web space, Python is not huge, but it definitely supplanted the niche Perl used to have. No one I know writes web stuff in Perl anymore.
- mozumder 8y agoI hated perl in the mid-90's, and stuck with grep/awk/sed intead, because it was a little more documented-structured. Meanwhile, if you randomly mashed on your keyboard, it would output a perl script. I jumped to Python as soon as I found out about it in the late 90's, because it was exactly what I was looking for in self-documenting structuring. It was great for creating parsers with state-machines. I was also the user of my scripts, and I didn't want to have to relearn what I coded a year or so earlier. Python let me pick that up, and to a lesser extent, awk. State machine programming was really self-documenting in Python.
- singingfish 8y agoI’m sick of the “perl is line noise” narrative. https://pastebin.com/C9hPS8xR https://pastebin.com/C9hPS8xR
- ams6110 8y ago> in a world where everyone knows perl, there is no place for awk. And yet in 2018, I never think about Perl anymore, but use sed, awk, and grep daily.
- mbubb 8y agoThis is a great point