Click here to Skip to main content
15,885,875 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: Wordle 657 Pin
ChandraRam6-Apr-23 22:11
ChandraRam6-Apr-23 22:11 
GeneralRe: Wordle 657 Pin
StarNamer@work6-Apr-23 23:26
professionalStarNamer@work6-Apr-23 23:26 
GeneralRe: Wordle 657 Pin
Cp-Coder7-Apr-23 1:16
Cp-Coder7-Apr-23 1:16 
GeneralRe: Wordle 657 (I got lucky) Pin
Jeremy Falcon7-Apr-23 4:58
professionalJeremy Falcon7-Apr-23 4:58 
GeneralRe: Wordle 657 Pin
Amarnath S7-Apr-23 5:28
professionalAmarnath S7-Apr-23 5:28 
Generalworldle 440 Pin
jmaida6-Apr-23 6:25
jmaida6-Apr-23 6:25 
GeneralWorldle 440 Pin
OriginalGriff6-Apr-23 19:08
mveOriginalGriff6-Apr-23 19:08 
GeneralC# Embedded Regex Pin
jschell6-Apr-23 6:15
jschell6-Apr-23 6:15 
Odd new feature for C# is that it can compile Regex right into the code.

Steven Giesel[^]

"The advantage over the traditional approach is that we can get the same performance as new Regex("...", RegexOptions.Compiled) and the startup benefit of Regex.CompileToAssembly, but without the complexity of CompileToAssembly. As the code is generated it can be viewed and debugged."

So excluding perhaps the "startup" part all I can think about is the simpler thing with linq expressions (no idea what they are called).

The problem with those is in production systems where one wants to log a stack trace from the exception. And now, with the above feature, one is likely going to see 20 lines of internal code (like linq) which makes no sense to anyone.

Also doubt the "viewed and debugged" claim. The article provides a sample, I believe, of what one sees but in my experience most developers who attempt to touch regexes are walking in a mine field with no idea a mine field even exists. So showing them a failed regex isn't going to help much.

But I have no doubt that developers will use this because they think it is 'better'. While ignoring the only feature advantage from the above which is about the "startup" speed.

Anyone want to provide an alternative take?
GeneralRe: C# Embedded Regex Pin
PIEBALDconsult6-Apr-23 7:12
mvePIEBALDconsult6-Apr-23 7:12 
GeneralRe: C# Embedded Regex Pin
Dan Neely6-Apr-23 13:03
Dan Neely6-Apr-23 13:03 
GeneralRe: C# Embedded Regex Pin
jschell7-Apr-23 8:56
jschell7-Apr-23 8:56 
GeneralRe: C# Embedded Regex Pin
lmoelleb6-Apr-23 19:19
lmoelleb6-Apr-23 19:19 
GeneralRe: C# Embedded Regex Pin
PIEBALDconsult8-Apr-23 6:19
mvePIEBALDconsult8-Apr-23 6:19 
GeneralRe: C# Embedded Regex Pin
honey the codewitch6-Apr-23 22:40
mvahoney the codewitch6-Apr-23 22:40 
GeneralRe: C# Embedded Regex Pin
jschell7-Apr-23 9:04
jschell7-Apr-23 9:04 
GeneralRe: C# Embedded Regex Pin
honey the codewitch7-Apr-23 10:50
mvahoney the codewitch7-Apr-23 10:50 
GeneralRe: C# Embedded Regex Pin
lmoelleb7-Apr-23 22:48
lmoelleb7-Apr-23 22:48 
GeneralRe: C# Embedded Regex Pin
honey the codewitch8-Apr-23 1:06
mvahoney the codewitch8-Apr-23 1:06 
GeneralWe just put up a sign on our private path .... Pin
0x01AA6-Apr-23 6:08
mve0x01AA6-Apr-23 6:08 
GeneralRe: We just put up a sign on our private path .... Pin
jmaida6-Apr-23 6:37
jmaida6-Apr-23 6:37 
GeneralRe: We just put up a sign on our private path .... Pin
0x01AA6-Apr-23 6:43
mve0x01AA6-Apr-23 6:43 
GeneralRe: We just put up a sign on our private path .... Pin
PIEBALDconsult6-Apr-23 6:46
mvePIEBALDconsult6-Apr-23 6:46 
GeneralRe: We just put up a sign on our private path .... Pin
MarkTJohnson6-Apr-23 7:42
professionalMarkTJohnson6-Apr-23 7:42 
GeneralRe: We just put up a sign on our private path .... Pin
PIEBALDconsult6-Apr-23 7:45
mvePIEBALDconsult6-Apr-23 7:45 
GeneralRe: We just put up a sign on our private path .... Pin
Richard MacCutchan6-Apr-23 21:44
mveRichard MacCutchan6-Apr-23 21:44 

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.