leobm, to RegEx German
@leobm@norden.social avatar

The ?x modifier/flag is nice, never used it before.
Makes it possible to include commentary inside complicated patterns.

original source: https://polar.sh/eval/posts/named-capturing-groups-in-clojure

RogerBW, to raku
@RogerBW@emacs.ch avatar
evilchili, to Canada
@evilchili@linernotes.club avatar

Hey Canadian nerds! I have held the domain registration for regex.ca for a very long time. When I lived in Canada it was my primary domain, but I haven't used it for years. Does anyone on the fediverse have a good use for it?

I'm going to release it but if you've got a good pitch I'll pay for a 1 year renewal and then transfer it to your ownership.

Please boost for visibility kthx!

claudius,
@claudius@darmstadt.social avatar
piko,
@piko@chaos.social avatar

@claudius has a nice idea, but I think https://regexle.ithea.de/ doesn't have enough Canada relations for that to really make sense. But thanks!

@evilchili @blinry

RogerBW, to raku
@RogerBW@emacs.ch avatar
ovid, to random
@ovid@fosstodon.org avatar

Hey, devs. Do you use DBIx::Class::Schema::Loader? Do you also use Perl::Tidy? You can get disappointed if Perl::Tidy reformats the dbic files, so drop this in your .perltidyrc to stop that:

Ignore DBIC-generated content

--format-skipping-begin='#(<<<| DO NOT MODIFY THE FIRST PART OF THIS FILE)'
--format-skipping-end='#(>>>| DO NOT MODIFY THIS OR ANYTHING ABOVE!)'

tripleo, to random
@tripleo@fosstodon.org avatar

All you nutcases still using , what's actually wrong with it?

aka What are the sharp edges?

leonerd,
@leonerd@fosstodon.org avatar

@tripleo If you want decent integration with 3rd party stuff (google APIs, amazon, etc...) you may need to write your own client stuff as most big service providers seem to have forgotten that exists

mjgardner, (edited )
@mjgardner@social.sdf.org avatar

@tripleo ’s “sharp edges” are mainly early syntax and features that later experience with large and networked found dangerous, but are preserved for backward (and we do mean “backward”) compatibility.

See the details of the strict and warnings pragmas, and successively missing items in feature bundles:

https://perldoc.perl.org/strict
https://perldoc.perl.org/warnings
https://perldoc.perl.org/feature#FEATURE-BUNDLES

And the summary of policies included in : https://MetaCPAN.org/pod/Perl::Critic::PolicySummary

ovid, to Lisp
@ovid@fosstodon.org avatar

, , and are three powerful programming languages that share a common feature.

Nobody knows how the hell to capitalize them.

toriver,
@toriver@mas.to avatar

@ovid Since Perl is an acronym for Practical Extraction and Reporting Language it used to be PERL.

tetrislife,

@ovid and programmers also complain they are not capitalized right.

@hetoug if Perl can be powerful, so can Javascript!

@tripleo

RogerBW, to raku
@RogerBW@emacs.ch avatar
ovid, to random
@ovid@fosstodon.org avatar

If any gurus want to take a look at a small bug in some code I wrote, I'd appreciate it. https://github.com/Ovid/unset-vars/issues/1

oalders, to programming
@oalders@fosstodon.org avatar

I'm handling sponsorships for this year's Perl and Raku Conference. Please share this far and wide so that we can get as many new sponsors as possible. ❤️

https://www.perl.com/article/this-is-your-opportunity-to-sponsor-the-perl-and-raku-conference-2024/

#perl @perl @tag@relay.fedi.buzz #programming

sjn,
@sjn@chaos.social avatar

@oalders @perl @tag@relay.fedi.buzz

Everyone! If your #business depends on #Perl or #RakuLang please consider supporting the communities you rely on!

One good way to ensure a sustainable future for #OpenSource ecosystems like these, is to support active and fertile venues for learning and teaching these technologies.

Right now, you can help by supporting the Perl and Raku Conference, and later this year, the London Perl Workshop.

Is this relevant for you? Forward it to your manager! 💯

ovid, to random
@ovid@fosstodon.org avatar

just wrote the following code for me, complete with the comment, which is correct.

my $UNINIT = bless => {}, 'Uninitialized::Vars::Variable';
sub uninit () { $UNINIT }
sub is_uninit ($var) { $var == $UNINIT } # XXX: This is wrong

charadon, to random
@charadon@8bit.red avatar

So, I know it's sacrilege to make your own "Build System", but for fun, I decided to give it a go.

It's made up of 3 scripts:

  • build.pl: Builds the project
  • clean.pl: Cleans up artifacts
  • install.pl: Installs artifacts where they need to go in the system.

build.pl was the most complicated, but that's not saying much, it was incredibly easy to make and it's small. It even supports parallel jobs and not rebuilding an object if the source file is older than the object.

charadon,
@charadon@8bit.red avatar

Now, would I use this in a big project? No way lol.

I can imagine things like subprojects would be a nightmare, and i'm a big fan of Meson/Muon. But it was a fun experiment to see what it's like. (Also, easier to make than a makefile, fuck makefiles.)

#Programming

mjgardner,
@mjgardner@social.sdf.org avatar

@charadon Everything’s easy when it’s purpose-built for a small job that stays that way.

Related: https://mastodon.social/@raiderrobert/112374892719211951

Serpent7776, to random
@Serpent7776@mastodon.social avatar

I just wasted 1hr, because I used == instead of eq and 'and' instead of && in

Serpent7776,
@Serpent7776@mastodon.social avatar

@mjgardner Thanks, I have both use strict and use warnings, but the script produced quite some lines of output and I guess the warnings got lost it the output. I guess I should've redirected the output to a file to have stderr more visible.
I'm on perl v5.38.2 and I didn't know about use v5.36, but I'm not sure it changes anything.

mjgardner, (edited )
@mjgardner@social.sdf.org avatar

@Serpent7776 I’m sorry to hear about the warnings lost in the output.

Since you’ve got #Perl v5.38.2, write use v5.38; and in addition to strict and warnings you enable the following niceties from https://perldoc.perl.org/feature :

bitwise
current_sub
evalbytes
fc
isa
module_true
postderef_qq
say
signatures
state
unicode_eval
unicode_strings

You’ll also disable these footgun “features”:

bareword_filehandles
indirect
multidimensional
switch

Give it a whirl!

/ @perl

RogerBW, to raku
@RogerBW@emacs.ch avatar
mjgardner, to perl
@mjgardner@social.sdf.org avatar

@perl Remember folks, 's is a dromedary 🐪, not a Bactrian 🐫:

perl -CS -pe 's/\N{BACTRIAN CAMEL}/\N{DROMEDARY CAMEL}/gu'  
  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines