← prev | next →
2022-08-30 19:37:04
grakata_clem 2022-08-30 19:36:13
Hah, it’s not even regex, what are you scared about
but the syntax $history{CORE::fc($line)}; looks like a meth addict’s code
R3VERED 2022-08-30 19:37:19
ChrisCromer 2022-08-30 19:36:46
It’s nothing personal, I am just blunt and honest.
yes u always were, but not reading complete text
grakata_clem 2022-08-30 19:37:37
2022-08-30 19:37:04
but the syntax $history{CORE::fc($line)}; looks like a meth addict’s code
You effectively described actual Perl programmers
capezotte 2022-08-30 19:38:35
2022-08-30 19:38:40
It looks quite interesting tho, I could scare my boss with this shit
capezotte 2022-08-30 19:38:52
capezotte 2022-08-30 19:38:35
perl script i wrote
capezotte 2022-08-30 19:39:00
i’m starting to think the original sh version is more readable
capezotte 2022-08-30 19:39:09
but saving two cursed jq was worth it ig
grakata_clem 2022-08-30 19:39:24
One guy at my prev job said once: “The beauty of Perl is in writing code which works and no one knows how, except you. After a week, you don’t know it too.”
2022-08-30 19:39:28
HTTP::Request->new(GET => “Link”);
2022-08-30 19:39:36
what le fuck kek
2022-08-30 19:39:46
This is like the worst of C++ combined with JS
capezotte 2022-08-30 19:39:59
protip: perl came before either
2022-08-30 19:40:17
Oh my Bjarne
capezotte 2022-08-30 19:40:22
wait until you have to deal with references
R3VERED 2022-08-30 19:40:35
ChrisCromer 2022-08-30 19:36:24
Don’t let this discourage you though, if you do build something worthwhile, I have no problems with using it.
u can’t discourage me anyways.
But go through that text once again, U got it completely the wrong way.
2022-08-30 19:40:57
my $item = ‘Gtk3::ImageMenuItem’->new(“Related videos”);
2022-08-30 19:41:02
why is there a single quote string here
capezotte 2022-08-30 19:41:15

like in this snippet later in the script
2022-08-30 19:41:46
Looks better than pyshit with significant whitespace
2022-08-30 19:42:16
So @ denotes a reference?
capezotte 2022-08-30 19:42:40
2022-08-30 19:42:16
So @ denotes a reference?
[ ] { } create references and @{ } does a deference
2022-08-30 19:43:14
and $result->{‘grid’} is like a hashtable or something?
capezotte 2022-08-30 19:43:34
2022-08-30 19:43:14
and $result->{‘grid’} is like a hashtable or something?
accessing a reference of a hash table
2022-08-30 19:43:46
jesus
2022-08-30 19:43:56
what kind of sadist wrote this language
2022-08-30 19:44:11
and the fact that it hasn’t been updated since 2002 or something is astonishing
grakata_clem 2022-08-30 19:44:11
Weird coincidence, but somehow most interpreted / dynamic languages code can look extremely obscure no matter how hard you try
capezotte 2022-08-30 19:44:13
capezotte 2022-08-30 19:42:40
[ ] { } create references and @{ } does a deference
this is due to perl flattening all arrays so later when they realized supporting nested structures might be a good thing they came up with this Backward Compatible™ solution
R3VERED 2022-08-30 19:44:15
https://t.me/artixlinux/502044
both can be used for scripting & far more
XADE in Artix Linux –
Telegrami’ll throw something in black hole too.
LUA & NIM (yes, nim is over hyped but still stands)
2022-08-30 19:44:30
R3VERED 2022-08-30 19:44:15
https://t.me/artixlinux/502044
both can be used for scripting & far more
D can be used for scripting too
2022-08-30 19:44:38
or C with tcc -run
capezotte 2022-08-30 19:44:56
2022-08-30 19:44:11
and the fact that it hasn’t been updated since 2002 or something is astonishing
it’s been updated, but they realized all relevant perl scripts are from back then
capezotte 2022-08-30 19:45:00
so new features are opt-in
grakata_clem 2022-08-30 19:45:11
2022-08-30 19:44:11
and the fact that it hasn’t been updated since 2002 or something is astonishing
There is Raku, but God forbid using it
← prev | next →