top | item 33654086

(no title)

blop | 3 years ago

I miss perl.

I don't think there are any other scripting languages that allow you to write very concise one-liners that can do very complex things. That's also where perl got its bad reputation from, but it's more a discipline issue than a language problem. I always rewrote my explorative one-liners more cleanly when I committed them to a final program, but nothing forces you to do it like python does.

discuss

order

ilyt|3 years ago

It becomes language issue when you need to manage code written by others.

Yes, the majority of bad rep it gets is because people picked it as first language and "just started coding", without reading up how to write stuff in readable way but that's... most developers.

Not many start their new language adventure with code style guide and while say Python at least nudges you toward semi-readable code, Perl gives you enough rope to shoot yourself and nuke a nearby city along the way. And any of you that goes "well, ropes do not explode" clearly don't know Perl deep enough.

That births a lot of shit code.... that new developers in a year or two now need to deal with too (which is bad) but also use as example on how to write it (which is way worse).

nextaccountic|3 years ago

> I don't think there are any other scripting languages that allow you to write very concise one-liners that can do very complex things.

Ruby maybe? It feels like a saner Perl to me