Click here to Skip to main content
15,891,184 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: Consistency... Pin
kalberts4-May-20 10:39
kalberts4-May-20 10:39 
GeneralRe: Consistency... Pin
phil.o4-May-20 10:57
professionalphil.o4-May-20 10:57 
GeneralRe: Consistency... Pin
HellsHarlot4-May-20 20:42
HellsHarlot4-May-20 20:42 
GeneralRe: Consistency... Pin
Sander Rossel4-May-20 22:16
professionalSander Rossel4-May-20 22:16 
GeneralRe: Consistency... Pin
agolddog5-May-20 3:55
agolddog5-May-20 3:55 
GeneralRe: Consistency... Pin
Col Wolf5-May-20 1:44
Col Wolf5-May-20 1:44 
GeneralRe: Consistency... Pin
agolddog5-May-20 3:53
agolddog5-May-20 3:53 
QuestionChallenging myself with Codegen - a Visitor generator Pin
honey the codewitch4-May-20 8:33
mvahoney the codewitch4-May-20 8:33 
Parsers are really easy to write code generators for. The hard part is generating the parse tables - the data used to generate the code, not the generation itself. I decided I wanted something a little more challenging in terms of codegen itself.

I'm writing a generator to implement a GoF visitor pattern over arbitrary .NET types. I tend to use them for searching object trees. It's easier than LINQ for really complicated queries, or queries where there's a lot of nests, /w undetermined paths.

How many of you actually employ such a pattern? Or do you all stick to LINQ now?
Real programmers use butterflies

AnswerRe: Challenging myself with Codegen - a Visitor generator Pin
Nelek4-May-20 8:55
protectorNelek4-May-20 8:55 
GeneralRe: Challenging myself with Codegen - a Visitor generator Pin
honey the codewitch4-May-20 8:58
mvahoney the codewitch4-May-20 8:58 
GeneralRe: Challenging myself with Codegen - a Visitor generator Pin
Jörgen Andersson4-May-20 9:04
professionalJörgen Andersson4-May-20 9:04 
GeneralRe: Challenging myself with Codegen - a Visitor generator Pin
honey the codewitch4-May-20 9:12
mvahoney the codewitch4-May-20 9:12 
GeneralRe: Challenging myself with Codegen - a Visitor generator Pin
Jörgen Andersson4-May-20 9:22
professionalJörgen Andersson4-May-20 9:22 
GeneralRe: Challenging myself with Codegen - a Visitor generator Pin
honey the codewitch4-May-20 9:30
mvahoney the codewitch4-May-20 9:30 
GeneralRe: Challenging myself with Codegen - a Visitor generator Pin
Nelek4-May-20 9:38
protectorNelek4-May-20 9:38 
GeneralRe: Challenging myself with Codegen - a Visitor generator Pin
honey the codewitch4-May-20 9:44
mvahoney the codewitch4-May-20 9:44 
GeneralRe: Challenging myself with Codegen - a Visitor generator Pin
Nelek4-May-20 20:45
protectorNelek4-May-20 20:45 
GeneralRe: Challenging myself with Codegen - a Visitor generator Pin
honey the codewitch4-May-20 21:04
mvahoney the codewitch4-May-20 21:04 
GeneralRe: Challenging myself with Codegen - a Visitor generator Pin
Nelek4-May-20 21:11
protectorNelek4-May-20 21:11 
GeneralWhy was Star Wars... Pin
DRHuff4-May-20 8:25
DRHuff4-May-20 8:25 
GeneralThought of the Day Pin
OriginalGriff4-May-20 4:46
mveOriginalGriff4-May-20 4:46 
GeneralRe: Thought of the Day Pin
lopatir4-May-20 5:27
lopatir4-May-20 5:27 
GeneralRe: Thought of the Day Pin
MarkTJohnson4-May-20 5:40
professionalMarkTJohnson4-May-20 5:40 
GeneralRe: Thought of the Day Pin
W Balboos, GHB4-May-20 6:21
W Balboos, GHB4-May-20 6:21 
GeneralRe: Thought of the Day Pin
jeron14-May-20 6:27
jeron14-May-20 6:27 

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.