this post was submitted on 16 Jul 2023
260 points (93.3% liked)

Programming

17488 readers
95 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
(page 2) 11 comments
sorted by: hot top controversial new old
[–] jmacc93 1 points 1 year ago

I used to hate regex, but after having had to use it a bunch and slowly getting used to the syntax, I can sort of read it quickly, and fully parse it if I stare at a regex expression long enough. It seems like having a DSL like regex is important because it does something well with a much shorter section of code than the equivalent host language code that does the same thing. But, it probably takes as long to understand a section of regex code as it does to understand the equivalent host language code, so it feels like you're staring at a small block of impenetrable code, where you would otherwise be scanning a larger block of code. If that makes sense

Props to the authors of this language

[–] brian 1 points 1 year ago* (last edited 1 year ago)

I'd personally rather something like regal in clj or rx in emacs. Instead of strings that my formatter and autocomplete don't know anything about and that I have to add to my build pipeline, I get native types that I can manipulate the same way I do other code, in editor or programmatically.

load more comments
view more: ‹ prev next ›