Skip Navigation

varsock

@varsock.programming.dev.ap.tdpl.io

2 Posts0 Comments0 Memberships

Joined November 2026

  • PSA: Use Chat-GPT for writing and interpreting regex patterns for your convenience.

    With all the strengths and shortcomings of Chat-GPT, I wanted to share one consistent strength I found it has when working with regex.

    • You can ask it to generate regex patterns for known and custom things. • If you are skeptical it is correct (like me), you can ask it to break down the pattern and inspect why the decisions were made. If I don't understand some fields, I type up a quick test and make sure it covers all edge cases. • And my personal favorite, you can paste a regex and ask it to tell you what it matches to. No more writing regex and forgetting what they are for!

    I don't always have the opportunity to use regex when I work and would shy away from it because it can become illegible, but now that it is so easy I find I am slapping it everywhere and I cutting down on logic when sanitizing inputs/data. The bonus is now that I'm using it more, I am becoming less reliant on having it be generated for me.

  • what is the meaning of posts with "via programming.dev" ?

    I'm still getting the hang of Lemmy and federated services. I'm browsing the programming.dev instandce in the Liftoff app and I can choose to view: 1. my subscribed communities on the server (currently none) 2. Local communities on the server 3. All (?) I know All is not "all communities on Lemmy" but what perplexes me is I can see posts from another community that is hosted on a different server and it appears because it is "via programming.dev". At first I thought it was because a user registered on " programming.dev " posted on another instance but I opened my eyes and saw the user's origin is no way related. Any ideas? EDIT: After reading all the comments I’m pretty sure “via programming.dev” should read in the context of the post as !community@instance is known via programming.dev instance. I guess it makes it explicit which “all” I am browsing if I pick up browsing where I left off and forget I am not in the “all local”. At this point I have only seen this on the Liftoff App for Lemmy but still trying other. Must be in the metadata and Liftoff decided to display it.