Click here to Skip to main content
15,886,199 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Local Polymorphism Pin
honey the codewitch3-Jan-21 7:51
mvahoney the codewitch3-Jan-21 7:51 
QuestionRe: Local Polymorphism Pin
Espen Harlinn3-Jan-21 9:41
professionalEspen Harlinn3-Jan-21 9:41 
GeneralRe: Local Polymorphism Pin
Richard Deeming4-Jan-21 23:42
mveRichard Deeming4-Jan-21 23:42 
GeneralOur town is making signs using No Code Pin
theoldfool3-Jan-21 1:14
professionaltheoldfool3-Jan-21 1:14 
GeneralRe: Our town is making signs using No Code Pin
RickZeeland3-Jan-21 1:28
mveRickZeeland3-Jan-21 1:28 
GeneralRe: Our town is making signs using No Code Pin
OriginalGriff3-Jan-21 2:10
mveOriginalGriff3-Jan-21 2:10 
GeneralRe: Our town is making signs using No Code Pin
RickZeeland3-Jan-21 2:18
mveRickZeeland3-Jan-21 2:18 
GeneralWho is afraid of regex? Pin
honey the codewitch2-Jan-21 18:04
mvahoney the codewitch2-Jan-21 18:04 
(I'm ignoring backtracking regex here because it's dirty, and algorithmically less useful except for making it easier for the user to match text)

Anyway it's just a tiny functional programming language with only ()|?* 4 explicit operators and 1 implicit one.

Representing the regex programming language as code: Any regex is mathematically equivelent to the DFA state machine it represents, and can be converted algorithmically back and forth to and from a state machine and a regular expression. Perfect compilation/decompilation.

So you can use them to match text (boring!)

Or you can use them to generate code for state machines (less boring!)

And yet I've met a lot of programmers that either loathe them, are intimidated by them, or both.

They're wonderful little things, with interesting mathematical properties, but more importantly, they're useful for everything quick and dirty.
Real programmers use butterflies

GeneralRe: Who is afraid of regex? Pin
Kornfeld Eliyahu Peter2-Jan-21 19:23
professionalKornfeld Eliyahu Peter2-Jan-21 19:23 
GeneralRe: Who is afraid of regex? Pin
honey the codewitch2-Jan-21 19:45
mvahoney the codewitch2-Jan-21 19:45 
GeneralRe: Who is afraid of regex? Pin
Greg Cronin4-Jan-21 3:53
Greg Cronin4-Jan-21 3:53 
GeneralRe: Who is afraid of regex? Pin
Amarnath S2-Jan-21 19:34
professionalAmarnath S2-Jan-21 19:34 
GeneralRe: Who is afraid of regex? Pin
Peter_in_27802-Jan-21 19:39
professionalPeter_in_27802-Jan-21 19:39 
GeneralRe: Who is afraid of regex? Pin
RickZeeland2-Jan-21 20:12
mveRickZeeland2-Jan-21 20:12 
GeneralRe: Who is afraid of regex? Pin
Mike Hankey2-Jan-21 20:29
mveMike Hankey2-Jan-21 20:29 
GeneralRe: Who is afraid of regex? Pin
honey the codewitch3-Jan-21 1:40
mvahoney the codewitch3-Jan-21 1:40 
GeneralRe: Who is afraid of regex? Pin
Mike Hankey3-Jan-21 4:00
mveMike Hankey3-Jan-21 4:00 
GeneralRe: Who is afraid of regex? Pin
honey the codewitch3-Jan-21 4:19
mvahoney the codewitch3-Jan-21 4:19 
GeneralRe: Who is afraid of regex? Pin
Gary R. Wheeler3-Jan-21 4:44
Gary R. Wheeler3-Jan-21 4:44 
GeneralRe: Who is afraid of regex? Pin
Matt Bond4-Jan-21 2:32
Matt Bond4-Jan-21 2:32 
GeneralRe: Who is afraid of regex? Pin
Hooga Booga4-Jan-21 5:43
Hooga Booga4-Jan-21 5:43 
GeneralRe: Who is afraid of regex? Pin
Randor 2-Jan-21 21:58
professional Randor 2-Jan-21 21:58 
GeneralRe: Who is afraid of regex? Pin
CPallini2-Jan-21 23:01
mveCPallini2-Jan-21 23:01 
GeneralRe: Who is afraid of regex? Pin
honey the codewitch3-Jan-21 1:38
mvahoney the codewitch3-Jan-21 1:38 
GeneralRe: Who is afraid of regex? Pin
Slacker0072-Jan-21 22:17
professionalSlacker0072-Jan-21 22:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.