this post was submitted on 10 Sep 2023
65 points (93.3% liked)

Technology

59669 readers
3168 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
 

hi, i was interested if perl is still relevant in this day and age. Perl has been on the decline for a very long time now. Perl 6 (now named 'raku) not being backwards compatible with perl 5 code made the already small perl community even smaller by splitting it in half. A good example is lisp with it's thousands of different dialects.

Is it still worth using or is it bound to legacy software forever? Like cobol.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 8 points 1 year ago (4 children)

The illegible code claim has always baffled me.

You can write perfectly legible code in perl. You can write illegible code in python if you really want to.

[–] [email protected] 3 points 1 year ago (1 children)

The variable prefixes make it easy in Perl to write line noise, and there are much more "magical defaults".

What's the most illegible code you have found in Python?

[–] [email protected] 1 points 1 year ago

How is type information noise instead of a helpful feature?

I haven't looked for illegible Python code out there.

[–] [email protected] 3 points 1 year ago

You can write illegible code in any language.

[–] [email protected] -1 points 1 year ago (1 children)

Writing legible Perl code is the complete antithesis of what the language was created for. This comment shows a complete misunderstanding of Larry Wall’s work.

[–] [email protected] 0 points 1 year ago (1 children)

Lol what are you talking about?! What is this LW's point you're referring to? "Write non-readable code, everyone"?

I'm guessing you're referring to him saying "there's more than one way to do things", and that's not mutually exclusive from writing legible code.

[–] [email protected] 0 points 1 year ago (2 children)
[–] drzow 1 points 1 year ago

There’s an obfuscated C contest too - no one ever assumed that K&R opposed highly legible code. I seem to recall that Kerrigan actually wrote some books to the contrary.

[–] [email protected] 0 points 1 year ago

That's a non-argument, man. You just linked to a contest.

That's like saying that the FAA endorses unsafe airplane building practices because they hold a contest about unmanned cardboard made planes that fly the most length in a desert without crashing.