Post AQPbDXR57YPVMsPStc by Htbaa@fosstodon.org
 (DIR) More posts by Htbaa@fosstodon.org
 (DIR) Post #AQPMAzVulxpgGjzvHM by swaggboi@fedi.seriousbusiness.international
       2022-12-08T20:33:39.288342Z
       
       0 likes, 0 repeats
       
       Which is least ugly?:Option 1Option 2Option 3 => tell me I’m a moron and I should use $x instead of any of this (our most popular offering!!)#Perl
       
 (DIR) Post #AQPMRw9aWDSWlqdQtU by purple@nya.social
       2022-12-08T20:36:43.456Z
       
       1 likes, 0 repeats
       
       @swaggboi@fedi.seriousbusiness.international i can read this. are you sure it's perl?
       
 (DIR) Post #AQPMdjURQZUGyD0uO0 by swaggboi@fedi.seriousbusiness.international
       2022-12-08T20:38:52.284634Z
       
       0 likes, 0 repeats
       
       @purple Well, I am using Mojo which I think is doing me a lot of favors… Before this I only produced bad CGI scripts and occasional vomit
       
 (DIR) Post #AQPMpfWpyv6C9vpGrI by purple@nya.social
       2022-12-08T20:41:00.346Z
       
       1 likes, 0 repeats
       
       @swaggboi@fedi.seriousbusiness.international perl was my first love, but i refuse to let it face the world. it is the duct tape that keeps the internet going
       
 (DIR) Post #AQPN0GThSXy1eSPXgO by swaggboi@fedi.seriousbusiness.international
       2022-12-08T20:42:56.339499Z
       
       0 likes, 0 repeats
       
       @purple I think I got into bash before anything, then perl because I asked someone many $dayjobs ago how to get into programming if I’m already into UNIX and shell scripting. They recommended perl naturally lol.
       
 (DIR) Post #AQPNhmljHLUeFfb2MS by joyo@thejoyo.com
       2022-12-08T20:50:48.226629Z
       
       1 likes, 0 repeats
       
       @swaggboi option 2 gives me anxiety.
       
 (DIR) Post #AQPNvkNYxciytUwxvM by swaggboi@fedi.seriousbusiness.international
       2022-12-08T20:53:19.186872Z
       
       0 likes, 0 repeats
       
       @joyo damnit that’s the one I went with….. easy fix tho
       
 (DIR) Post #AQPO3wumEl8a5cOfDs by joyo@thejoyo.com
       2022-12-08T20:54:48.567585Z
       
       1 likes, 0 repeats
       
       @swaggboi put the square brackets on their own lines.
       
 (DIR) Post #AQPO8gcWFNDr087Ea8 by joyo@thejoyo.com
       2022-12-08T20:55:40.380269Z
       
       0 likes, 0 repeats
       
       @swaggboi does perl not have an auto-formatter? I would spend zero amount of time considering whitespace if I could.
       
 (DIR) Post #AQPOHqqfaW2NKV6YUq by swaggboi@fedi.seriousbusiness.international
       2022-12-08T20:57:19.623464Z
       
       0 likes, 0 repeats
       
       @joyo I’m using a linter rn called perlcritic; there’s also perltidy I guess I could use which automates it. I’m not very good about implementing quality-of-life shit when I probably should.
       
 (DIR) Post #AQPQ3jgdcPB6yJoFF2 by joyo@thejoyo.com
       2022-12-08T21:17:10.718716Z
       
       1 likes, 0 repeats
       
       @swaggboi if your editor doesn’t automatically run on save then you should quit using RMS trash.
       
 (DIR) Post #AQPQ9xprvTusaj64Dg by swaggboi@fedi.seriousbusiness.international
       2022-12-08T21:18:18.218188Z
       
       0 likes, 0 repeats
       
       @joyo then you should quit using RMS trashI don’t think you understand just how bad my brain truly is
       
 (DIR) Post #AQPXjAufzm7oxu5B3Y by Htbaa@fosstodon.org
       2022-12-08T22:17:46Z
       
       1 likes, 0 repeats
       
       @swaggboi @JoYo This is my .perltidyrc I've been using for years now. Might help you to get started.https://gist.github.com/Htbaa/484396
       
 (DIR) Post #AQPXnw9QJACmd4FcUy by swaggboi@fedi.seriousbusiness.international
       2022-12-08T22:43:58.338258Z
       
       0 likes, 0 repeats
       
       @Htbaa @joyo Thanks I’ll take a look, right now just using perlcritic and I told it to ignore subroutine signatures (cuz Mojo plus I like signatures)
       
 (DIR) Post #AQPbDXR57YPVMsPStc by Htbaa@fosstodon.org
       2022-12-08T23:20:44Z
       
       1 likes, 0 repeats
       
       @swaggboi @JoYo I should look into perlcritic but I don’t like a computer telling me how to do something 😆.
       
 (DIR) Post #AQPbDY0syR3B9vA3hg by joyo@thejoyo.com
       2022-12-08T23:22:12.347332Z
       
       0 likes, 0 repeats
       
       @Htbaa @swaggboi I don’t recommend rustc, then
       
 (DIR) Post #AQPd3nfu5bSIkFpKVM by Htbaa@fosstodon.org
       2022-12-08T23:24:52Z
       
       0 likes, 0 repeats
       
       @JoYo @swaggboi that’s for Rust right? Never done anything with that yet (haven’t even touched it). So I’m good 😉.
       
 (DIR) Post #AQPd3oM5YlCQr5Z1G4 by joyo@thejoyo.com
       2022-12-08T23:42:51.240661Z
       
       0 likes, 0 repeats
       
       @Htbaa @swaggboi yah, rust is very opinionated. the benefit being a reduction in segfaults.
       
 (DIR) Post #AQPengWd6TWXqVvsDQ by swaggboi@fedi.seriousbusiness.international
       2022-12-09T00:02:21.693527Z
       
       0 likes, 0 repeats
       
       @Htbaa @joyo I don’t like a computer telling me how to do somethingI believe perlcritic just uses perltidy under the covers (I see it as a dependency) so it might not be worth your while if you’re happy with your perltidy config.As for me, I like to write bad tests to go along with my bad code. Computer yells at me constantly 😭
       
 (DIR) Post #AQPevGRvw727I3Ll9E by ology@fosstodon.org
       2022-12-08T23:26:15Z
       
       1 likes, 0 repeats
       
       @swaggboi https://gist.github.com/ology/e0b58ea953d508b06f71653b8924af59 is what I might do. (And I *hate* putting complex expressions inside a `map` block.) 😉
       
 (DIR) Post #AQPezNT9mMWoDgspxQ by swaggboi@fedi.seriousbusiness.international
       2022-12-09T00:04:28.466474Z
       
       0 likes, 0 repeats
       
       @ology Ya know… Sometimes you just need a little less code. I dig it, thanks!
       
 (DIR) Post #AQQCxvzxpIZRAkiDke by mjgardner@mastodon.sdf.org
       2022-12-09T05:09:16Z
       
       1 likes, 0 repeats
       
       @swaggboi Your map is getting too big. This is how I would write it.https://paste.lgts.xyz/?c0768668ba0dd8c2#8krkXqvYegFptgtYizfN3uUPXDjNRGY9ouZDTiyUKgYXI used features that are marked experimental in #Perl v5.20, but note that postderef is stable as of 5.24 and signatures stable as of v5.36. They’re just syntactic niceties, though.
       
 (DIR) Post #AQQD8wNGlkRfWWrSlM by swaggboi@fedi.seriousbusiness.international
       2022-12-09T06:27:10.298882Z
       
       0 likes, 0 repeats
       
       @mjgardner bruh