tripleo, to random
@tripleo@fosstodon.org avatar

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

aka What are the sharp edges?

mjgardner,
@mjgardner@social.sdf.org avatar

@tripleo You’re thinking of #Perl’s “taint mode” (stop your teenage giggling), where outside data is untrusted unless it’s the extracted subpattern match in a #RegularExpression.

It’s only enabled under certain conditions. Read about it in the perlsec manual page: https://perldoc.perl.org/perlsec#Taint-mode

#programming #security #InfoSec #CyberSecurity #RegEx #RegExp

neustradamus, to random
mjgardner,
@mjgardner@social.sdf.org avatar

@neustradamus #PCRE continues to be a misnomer; it’s a modified subset of #Perl #RegularExpressions with dozens of differences: https://pcre.org/current/doc/html/pcre2compat.html

It's not "(C)ompatible." Accept no substitutes: https://perldoc.perl.org/perlre

#PCRE2 #PerlIncompatibleRegularExpressions #RegularExpression #RegExes #RegExps #regex #regexp

youronlyone, to RegEx
@youronlyone@c.im avatar

To my fellow #ActuallyAutistics who are also into programming. Can you handle #RegEx / #RegExp?

Up to how much complexity?

When I was younger, it was easy. Today, I have to use a test tool! ^_^;;

#Autistics #Autism #ActuallyAutistic #Autistic #AutismSpectrum #AskingAutistics

@autistics @actuallyautistic

mdione, to random
@mdione@en.osm.town avatar

@cheeaun again me with questions. when you find a toot like this one and like this other one:

https://fosstodon.org/@bignose/111775074307968376

do you do anything in particular when:

a) showing the toot in the timeline; and
b) when showing the toot's context on the right?

I have the impression that you somehow figure out it's another toot and do things differently to any other type of link. How do you figure that out?

mdione,
@mdione@en.osm.town avatar

@cheeaun I guess the is something like https://(domain)/@(username)/(toot_id). Do you remember where in/can you point me to your code that does this?

stbc, to webdev German
@stbc@nrw.social avatar

Diese WebDevs, deren Formular auf der Webseite des Online-Shops .email als TLD nicht anerkennen und eine gültige Mailadresse wollen: Weiß man da schon genaueres oder ist denen Umsatz einfach egal?

regehr, to random
@regehr@mastodon.social avatar

students are getting a bit harsh lately

MadMike77,
@MadMike77@chaos.social avatar

@regehr a good friend of mine had to maintain some scripts. He calls them "write-only".
I have a growing list of and select queries, which need sub- and sub-sub-queries (and so on). Those really make sense when I write them, but are hard to figure out after a week working on different code.

mjgardner,
@mjgardner@social.sdf.org avatar

@regehr @commodore @dev There is even a (low-severity, a/k/a “cruel”) policy to discourage everything but $_, @_, $], and numbered capture variables: https://metacpan.org/pod/Perl::Critic::Policy::Variables::ProhibitPunctuationVars

https://metacpan.org/pod/Perl::Critic::Policy::Variables::ProhibitMatchVars already protects you against the performance-sapping $`, $&, and $' match variables

And you can configure your own prohibited list with https://metacpan.org/pod/Perl::Critic::Policy::Variables::ProhibitEvilVariables

mjgardner, to Perl
@mjgardner@social.sdf.org avatar

#Perl has supported pluggable replacements for its #RegularExpression engine since the release of v5.10 in 2007: https://perldoc.perl.org/perlreapi

An @ietf compliant I-#Regexp subset would be very helpful for @Perl #developers implementing specifications like the draft #JSONPath standard: https://datatracker.ietf.org/doc/draft-ietf-jsonpath-base/

(There is already a JSONPath #CPAN module: https://metacpan.org/pod/JSON::Path) https://cosocial.ca/@timbray/110714888717469041

juandesant, to random
@juandesant@astrodon.social avatar

I tend to follow the logic of awk better than the one of sed (not being a vi enthusiast), but it is good to see when one might be better than the other:

https://www.linuxjournal.com/content/text-manipulation-linux-awk-vs-sed

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • InstantRegret
  • khanakhh
  • rosin
  • love
  • Youngstown
  • slotface
  • ngwrru68w68
  • kavyap
  • everett
  • DreamBathrooms
  • megavids
  • mdbf
  • modclub
  • tester
  • GTA5RPClips
  • Durango
  • osvaldo12
  • ethstaker
  • cubers
  • normalnudes
  • provamag3
  • Leos
  • cisconetworking
  • JUstTest
  • All magazines