News for hackers. Stuff that matters.
Re:DuckDuckGo Donates $25,000 to the Perl and Raku Foundation by forgetfreeman on Tuesday December 03, 2024 @11:15AM (#42307776)
Perl is maybe the most enjoyable language I've ever coded in up until I'm forced to read someone else's code which is always hellish.
Re:DuckDuckGo Donates $25,000 to the Perl and Raku Foundation by cafard on Tuesday December 03, 2024 @11:49AM (#42308232)
Most of the someone else's I have read has been in stuff from CPAN, and I recall it as pretty good. I have written some pretty bad Perl, and wish that I had encountered the O'Reilly Perl Best Practices long before I did.
Re:DuckDuckGo Donates $25,000 to the Perl and Raku Foundation by creer on Thursday December 05, 2024 @12:41PM (#42330434)
Perl's "layering" is one of its most brilliant features. You start learning Perl in layers; achieve some fluency and effectiveness and understanding of the general principles - and will still have many layers and sets of features that you can dig into as you progress. The set of O'Reilly books was amazing for this. Still is. But the documentation itself was amazing also. Still is. That's one problem with Raku: Can raku ever get to this level?

This is important as a powerful tool for a powerful programmer.

I always contrast this to C++ - where you are dangerous, too dangerous, until you have learned a huge amount "of the language" (and good luck understanding it). Or BASIC, where... there isn't much.

Re:DuckDuckGo Donates $25,000 to the Perl and Raku Foundation by shagie on Tuesday December 03, 2024 @11:31AM (#42308014)
As a perl programmer from decades past (I transitioned to Java during the perl 6 winter), I've been finding that groovy and even more recently scala are really nice tools for what I'd have traditionally done in perl.

When doing this year's advent of code, some of the terseness of symbols reminded me of perl.

Perl lost me and I transitioned too far away from its ecosystem professionally to return for more than a dalliance or occasional debugging ( https://news.ycombinator.com/item?id=16219876 ).

Re:DuckDuckGo Donates $25,000 to the Perl and Raku Foundation by gregw2 on Tuesday December 03, 2024 @02:53PM (#42310536)
One of my impressions as a Scala newbie coming from a perl background years ago was that Scala practitioners' culture in a corporate setting tended to end up with code bases that reminded me of corporate perl code bases - suffering from "theres more than one way to do it" disease. A bit too easy to be obscure for me to use/recommend it since then despite the nice typing, actors, lazy evaluation, etc. Not sure if this TMTOWTDI Scala resonates with others knowing both or not...
Re:DuckDuckGo Donates $25,000 to the Perl and Raku Foundation by shagie on Tuesday December 03, 2024 @03:47PM (#42311191)
https://news.ycombinator.com/item?id=6959326

> Scala feels like the Perl of the modern era: there is more than one way to do it. There is value in that mode of thinking, and Perl is a better language than people give it credit for.

https://news.ycombinator.com/item?id=2603425

> This actually is one of my frustrations with Scala, too many right ways to do the same thing. Makes it easier to write but harder to read especially when people have drastically differing styles. One of the advantages of Java is how easy it is to read and use someone else's code since the base language is so limited.

---

The question of company dialects for various languages comes up occasionally. You can see it with people talking about having to learn a new LISP (or Scheme) each time they switch to a different company.

I suspect that flexibility is similar to what is seen in perl, ruby, scala, and groovy.

The TMTOWTDI Scala exists... but I want to say that it is more a reflection of the power of the language (drawing from their LISP heritage). It becomes then a question of how much does the company impose a consistent way of doing it within the company (compare the different company dialects).

Re:DuckDuckGo Donates $25,000 to the Perl and Raku Foundation by kazinator on Saturday December 07, 2024 @03:32PM (#42352669)
> people talking about having to learn a new LISP (or Scheme) each time they switch to a different company.

Which people, where? Do you have a URL to a discussion?

I've not seen heard or read such talk almost 25 years of being involved in open source Lisp. Needless to say, I've often seen such narrative repeated by programmers not working in Lisp, who heard it from such others.

Someone talking about any industry work in Lisp whatsoever, even just one job, from any angle, is extremely rare.

Re:DuckDuckGo Donates $25,000 to the Perl and Raku Foundation by shagie on Tuesday December 10, 2024 @12:54PM (#42379269)
It's a browsing about https://wiki.c2.com/?WhyWeHateLisp

And that does get into the "25 years ago" area. Really neat place to browse and see as a historical record of discussion from back then.

The issue is that languages that allow/encourage writing domain specific languages within the environment leads to people doing exactly that - writing a DSL that is then used in that company.

Lisp, Ruby, Groovy, Raku (possible in perl 5 as demonstrated by https://metacpan.org/dist/Lingua-Romana-Perligata/view/lib/L... )...

These languages (and Scala too) allow for writing a dialect of the language that differs substantially from the main language.

I've seen it in ruby. I've personally done it in groovy (wrote categories to make certain reports easier to write)... twice (also wrote a DSL in groovy that matches the script used as input for powershell doing ftp so that instead of `ftp.ps1 script` it looked like "add this import to the top of the script and do `groovy script`")... for that matter gradle is a groovy script that has gone well beyond groovy as a DSL.

Just as the problem existed with "having to learn a new LISP dialect" 25 years ago, many times going from languages that allow for such flexibility in how its written from one shop to another have the "having to learn a new {language} dialect" today.

For code that I have to work on with someone else, I believe it is better/easier to work in a language that doesn't allow you to rewrite the language so that when I have to work with yet another person, they don't need to learn a completely different way of doing it from what they knew previously.

Re:DuckDuckGo Donates $25,000 to the Perl and Raku Foundation by saalweachter on Tuesday December 03, 2024 @11:33AM (#42308041)
My impression of Perl, as someone who wrote two scripts in it twenty years ago and has been on the Internet since the middle-old days, is that it is a language suited to being clever.
Re:DuckDuckGo Donates $25,000 to the Perl and Raku Foundation by forgetfreeman on Tuesday December 03, 2024 @03:55PM (#42311294)
This observation is spot on and 100% of the reason why dealing with other people's code is insufferable. After 20 years of coding I can confidently say I'd rather clean out crawlspaces for a living than deal with another "clever" codebase.
Re:DuckDuckGo Donates $25,000 to the Perl and Raku Foundation by thwd on Tuesday December 03, 2024 @11:18AM (#42307805)
It's a write-only language.
Re:DuckDuckGo Donates $25,000 to the Perl and Raku Foundation by knowitnone on Tuesday December 03, 2024 @11:37AM (#42308096)
Write Once Read Never(WORN)
Re:DuckDuckGo Donates $25,000 to the Perl and Raku Foundation by speed_spread on Tuesday December 03, 2024 @11:30AM (#42308000)
Programming is an individual activity; developing software is a social activity. Current tools and teaching are still biased in favor of the former, resulting in most of our troubles in the latter.
Re:DuckDuckGo Donates $25,000 to the Perl and Raku Foundation by forgetfreeman on Tuesday December 03, 2024 @11:05PM (#42314408)
The legend of the 10x programmer certainly didn't do our industry any favors either.
Re:DuckDuckGo Donates $25,000 to the Perl and Raku Foundation by miohtama on Tuesday December 03, 2024 @12:36PM (#42308781)
That's why it is called write-only language. Single job scripts, yes. Team work, no.
Re:DuckDuckGo Donates $25,000 to the Perl and Raku Foundation by cruffle_duffle on Tuesday December 03, 2024 @01:47PM (#42309708)
> I'm forced to read someone else's code

Which is 85% of the time my own code!