8

Sometimes i forget how powerful regex are

Comments
  • 4
    Psssst... hey, kid. Wanna buy some perl?
  • 3
    Like a tornado of sharks, chainsaws and squirrels!
  • 6
    Stage 1: Hmm, I wonder if I can replace this whole screen full of code with one regex?

    Stage 2: Marvel at the beautiful, elegant simplicity of the regex.

    Stage 3: Work on something else for a few days.

    Stage 4: What the fuck is this regex doing? What does any of this mean? Is that a negative look-behind? What the fuck is a negative look-behind? This is stupid, I'm stupid, everyone is stupid, life is stupid.
  • 2
    It has power over you
  • 4
    When you try to solve a problem with regex, you tend to end up with two problems.
  • 0
    So I solved a problem that I should have considered with a regex today. When I look at the code again I will know what it does without looking up regex syntax. And it won't run off and do stupid shit because of a corner case.
  • 0
    @retoor oh fuck, retoor went postal...
  • 1
    Dude... if you only knew...

    Since i was a kid (7 or 8... so 25yrs ago) i started using basic regex for shit like filtering logs...

    Then i started scripting the shit that annoyed me... like everything default set to run... updates, scans, sysrestore... and stuff like temp files, recycle bin, internet history... etc

    Then i got annoyed going through log outputs, including ones i generated from manually scripting and automatically checking to make sure nothing broke... and keyloggers (several reasons and varieties)... malware thatd just change little shit about their files so it wouldnt match the lists, or sht that mimicked/deleted real files (a HUGE regex script so id know what exactly got changed in updafes or when file info had tiny mismatches)

    So many scripts by middle school... too many macros to tolerate hotkeys... so i started making my own file extensions, regex to find/sort/relocate and the program to read

    Ofc cli regex to generate/append custom files

    All b4 16. Imagine now
  • 1
    I have a very low tolerance for envs that arent mine... so ofc, i also have scripts to do stuff like remap system variables... even to an external hard drive for several programs, drivers, their paths, the registry keys of shit that annoys me... regex to check for bad registry keys... and stuff that puts it back to normal when im done.

    Me without regex and a tolerable env... historically, that's dangerous.
  • 1
    @retoor

    I'm not scheduled to start work until 2025, so free time until then :)
  • 1
    @retoor

    Nah, don't think so, sorry.

    Free time is for beers, playing guitar, or drums, or what have you with the folks, which I haven't done in ages, and travel a bit.
  • 1
    @retoor
    Make a bunch of programs/scripts/networks/encryption methods/etc... but do it like the mentality of those apocalypse preppers that invest so much time/energy/money/etc into their supposed survival.

    So going super overboard, but leaving out anything involving thought or learning outside of an overly simplified scope... like how most preppers learn about guns/knives/making pointy sticks... etc... yet dont consider packing a microscope and some basic knowledge/highly magnified pics of common protozoa or very easy to make, broad use, pharmaceuticals like penicillin (aka bread mold that's still one of the most widely used antibiotics in existence).

    Those prepper people never learn about basic chemical reagents either...foolish imo
  • 1
    @retoor just read your bio...

    If you like collabing on stuff and dont mind signing an nda or 2, between my company and the new(im literally writing up the legal stuff now) partnership company with a very experienced(impressive CV too) dev friend we have tons of space for people we can tolerate to collab... whether in actual code writing or some version of an advisory capacity.

    Technically im also fluent in Dutch... super rusty in verbal communication and i assume my grammar/word choice has dropped quite a bit due to years of mainly just reading it ...but i do fully comprehend the vast majority of typed Dutch and most spoken ...if slow and clear enough (aka, would appreciate the practice)

    Here's my info if interested (anyone else is welcome to use it... im not exactly hard to find... unless youre quite dense):

    Tg- awesomeest
    Discord- sara.awesomeest
    Email- awesomeest@gmail.com
  • 2
    @retoor
    I was very tempted just now to quickly hack your site and fix the typos/minor language issues.

    Tbh, even as much as typos in good content annoy me... it was probably only 50% of my temptation. The other half was likely my urge to procrastinate since what im doing now is boring but i gotta do it...

    *sigh*

    Im gonna zone out/clear my head, then go back to hours of hyperfocus to get this boring administrative crap done.
  • 1
    @awesomeest contacted you trough email.
Add Comment