this post was submitted on 12 Nov 2023
267 points (95.3% liked)

Programmer Humor

32453 readers
360 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

you are viewing a single comment's thread
view the rest of the comments
[–] backhdlp@lemmy.blahaj.zone 41 points 1 year ago (54 children)

I still don't understand regex at all

[–] FUsername@feddit.de 24 points 1 year ago (6 children)

My guess is, that someone started with a small share of features to find a simple solution for the problem, but the complexity of the problem got waaaay out of hand.

[–] Prunebutt@feddit.de 24 points 1 year ago (4 children)

Regexes are actually used in formal computer science (if that's the right term), i.e. "proof that this and that algorithm won't deadlock" or something like that.

They're actually really elegant and can cover a lot. But you'll have to learn them by using them.

[–] loafty_loafey@lemmy.world 3 points 1 year ago (1 children)

You are probably thinking of Temporal logic which allows us to model if algorithms and programs terminate etc! It can be represented by using state machines tho!

[–] Prunebutt@feddit.de 2 points 1 year ago (1 children)

It's been a while, so I'm quite rusty, especiallyeon the terminology, but I think we modelled feasible sequences of finite and infinite state machines using regexes.

That's how I was forced to learn 'em in uni. ;)

[–] loafty_loafey@lemmy.world 2 points 1 year ago

Ohhh I must be confusing the two! But yea, Regex is just NDAs in text form! The course I have had on it is one of my favorites! Really fun stuff

load more comments (2 replies)
load more comments (3 replies)
load more comments (50 replies)