6 ms·
I also choose Perl most of the time, but I think this is the first time I've ever heard anyone call it super nice to read
by dwedge 2y ago
I also choose Perl most of the time, but I think this is the first time I've ever heard anyone call it super nice to read
- johnisgood 2y agoMy Perl code is super nice to read. :D
- chgs 2y agoMy perl code isn’t. But neither is my Python, or Java, or C, or JavaScript or bash or anything. Clearly the problem is all these languages, and not me.
- johnisgood 2y agoCould be... or readable by who, who do not know these languages at all? :P
- raffraffraff 2y agoI've heard it called a "write-only language"
- fuzztester 2y agoAlso called executable line noise, like Python is called executable pseudocode. But I like Perl (and other languages) too. Variety is the spice of life.
- rurban 2y agoIt's more readable than C++, C or Rust though
- tmountain 2y ago100% depends on how it’s written. It gives a ton of flexibility regarding incorporating “magic variables” which can lead to incredibly abstruse code. The language motto is “there’s more than one way to do it”, and that’s implemented to a fault.
- rurban 2y agoSame with C or C++. Only recently there came up some examples of well-written C++ code. But most of old cooperate, Microsoft or Stroustrup code is just horrible, worse than hard-core perl nonsense.
- bluGill 2y agoReal Programmers can write FORTRAN in any language. Making a large code base easy to read is very hard. People often work on tiny code bases and talk about how easy it is to read, not understanding that they are comparing something with a couple thousand lines of code to something with tens of millions.
- dataflow 2y ago> Only recently there came up some examples of well-written C++ code. I'm not sure what you're referring to (link?) but note that whether C++ code is good or bad can depend strongly on the tooling. Certain coding patterns can be fantastic when your tooling can adequately detect their misuse, and awful when it doesn't. Which means sometimes you can't tell just look at code and tell whether it is good or bad. > But most of old cooperate, Microsoft or Stroustrup code is just horrible, worse than hard-core perl nonsense. I got the impression Microsoft's C code was always pretty good, their C++ not so much a decade ago - not sure how their C++ is now.
- lief79 2y agoParaphrased quote from one of my professors years ago: Writing readable perl is easy, just code it like it's LISP. Granted, he was working with it in AI/bioinformatics. One of my classmates who moved into the IT/management side of things historically got much quicker responses from the dev team whenever he volunteered to code something, as he was always going to do it in perl.
- jsrcout 2y agoDepends on who wrote it. My own Perl code, and plenty I've seen, is extremely clean and readable; sadly, a lot isn't. I'm sure clean and readable C++ exists, but the stuff I have to work with - big codebases with tons of history - is not. "Terrifying" would be more apt in most cases.
- HankStallone 2y agoThe Perl code I write today is much cleaner and easier to follow than what I wrote 30 years ago. I hope that's true of my programs in other languages too.
- pino999 2y agoThey call it like that, but it depends on the programmer as always. The problem is, that it is really flexible, more so than python or javascript, so it gives you all the tools to shoot yourself in the foot and take away the leg with it. An example, you can rewrite the calling program in a module.(https://metacpan.org/pod/Acme::Bleach https://metacpan.org/pod/Acme::Bleach orhttps://metacpan.org/release/DCONWAY/Lingua-Romana-Perligata-0.604/view/lib/Lingua/Romana/Perligata.pm https://metacpan.org/release/DCONWAY/Lingua-Romana-Perligata...) While cool for jokes or serious DSL's, it may lead to difficult to understand code. (Nothing wrong with Damian Conway btw, I just remembered he used source filters in interesting ways).
- csdvrx 2y ago> They call it like that, but it depends on the programmer as always. There are different styles, but in general they are concise, and I like them. perl use various sigils to remain concise, while other languages take a lot of room on the screen: too many letters in the usual function names, not enough sigils within the language. It's like if everything was in binary or hex, instead of using the full range of ASCII: while technically possible, it may be harder to fit into your head Python has one sub-style I dislike the most: using tabs for indentation, because how much EXTRA room they use on the screen. It must not just be me, as there are solutions for coloring the spaces (I forked https://github.com/csdvrx/indent-rainbow https://github.com/csdvrx/indent-rainbow to focus on black-and-white and using spaces instead of tabs) I use space to limit the issue, but I can't make python less verbose. > it gives you all the tools to shoot yourself in the foot and take away the leg with it. python isn't innocent either: I recently traced a issue where exit(0) wasn't working to a threading problem, making a bad use of atexit.
- worik 2y ago> Python has one sub-style I dislike the most: using tabs for indentation, because how much EXTRA room they use on the screen. Can you not adjust your tab stops? I hate it too, because tabs look like spaces and they have a different syntactic meaning
- 2y ago
- creer 2y ago> I've heard it called a "write-only language" A frequent opinion. Easy way to fit in for people who never bothered to learn the language. Which is all the more sad that Perl is super easy to learn (one layer at a time).
- IshKebab 2y agoMaybe he's used to K?
- davidwritesbugs 2y agoThe joke used to be that Perl code looked like an explosion in an apostrophe factory.
- csdvrx 2y agoIt may looks chaotic ("explosion") when you don't see the structure. When you do, you appreciate the density of information. When I read perl it's like I read a poem: to take a simple example, 'while/until' instead of 'while/while not' creates more beautiful code
- dwedge 2y agoI once accidentally piped an SSL certificate into Perl and got 40+ warnings before it realised it wasn't Perl. I'm not joking.
- vram22 2y agoThat's why Larry Wall said he'll be certified before Perl is (when asked about the prospect of standardizing the language). It's one of his well-known quotes. https://quotefancy.com/quote/1497280/Larry-Wall-I-think-I-m-likely-to-be-certified-before-Perl-is https://quotefancy.com/quote/1497280/Larry-Wall-I-think-I-m-...
- vram22 2y agoI posted a link to many of his quotes: https://news.ycombinator.com/item?id=43287809 https://news.ycombinator.com/item?id=43287809
- vram22 2y agoNow try piping Perl into itself. #@$%&^*! A homopipic / homeopathic language? Similiia similibus curentur. https://www.google.com/search?q=similia+similibus+curentur https://www.google.com/search?q=similia+similibus+curentur
- deleted 2y ago[deleted]