Regex visualized as 3D marble run

(regexmarblerun.com)

10 points | by seizethecheese 1 day ago

3 comments

  • monster_truck 33 minutes ago
    This is actually pretty satisfying, I wish it had sound. Maybe a dramatic follow cam for the balls
  • seizethecheese 1 day ago
    My coworker used to teach non-technical people how to code. Students always found regex hard to understand.

    Let's be honest, regex can be hard to understand even for technical people. (At least it's hard for me.)

    So coworker built this to help anyone understand arbitrary regex commands.

    AI disclosure: this was built using Agent Duel, a local coding agent arena system (https://github.com/bottomless/agent-duel). Promotion disclosure: our company is building agent duel. To test it and find bugs we are building passion projects through the system. I nonetheless thought HN would find this interesting.

    • atoav 3 minutes ago
      [delayed]
    • ogogmad 6 minutes ago
      Really cool. Do you teach people the mechanics, like what the app shows? I wonder if that actually makes it harder. I'm wondering where the hard bits are, given that it all boils down to just:

        "|", which means "or"
        ".", which means "any symbol"
        "?", which means "at most once",
        "*", which means "however many times"
        "+", which means "at least once"
  • deakmisra 0 minutes ago
    [flagged]