Click here to Skip to main content
14,640,048 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: Happy turkey day, and happy coding Pin
Tim Deveaux28-Nov-19 19:16
MemberTim Deveaux28-Nov-19 19:16 
GeneralRe: Happy turkey day, and happy coding Pin
honey the codewitch28-Nov-19 19:20
mvahoney the codewitch28-Nov-19 19:20 
GeneralRe: Happy turkey day, and happy coding Pin
Tim Deveaux28-Nov-19 19:30
MemberTim Deveaux28-Nov-19 19:30 
GeneralRe: Happy turkey day, and happy coding Pin
honey the codewitch28-Nov-19 19:34
mvahoney the codewitch28-Nov-19 19:34 
GeneralRe: Happy turkey day, and happy coding Pin
Tim Deveaux28-Nov-19 19:41
MemberTim Deveaux28-Nov-19 19:41 
GeneralRe: Happy turkey day, and happy coding Pin
honey the codewitch28-Nov-19 19:45
mvahoney the codewitch28-Nov-19 19:45 
GeneralRe: Happy turkey day, and happy coding Pin
Super Lloyd28-Nov-19 20:41
MemberSuper Lloyd28-Nov-19 20:41 
GeneralRe: Happy turkey day, and happy coding Pin
honey the codewitch28-Nov-19 20:49
mvahoney the codewitch28-Nov-19 20:49 
Not exactly. There's no language independent way to do a preprocessor like that.

On the other hand, have you heard of T4 templating?

class foo {
<# foreach(var member in members) {
      ... // write out a member
}
#>
}


basically, you can use ASP like context switches with T4 to render the code dynamically.

Sure you could do that with C# too, but it won't generate language agnostic code.

With slang (what i've decided to call it) it will. Ergo, your code generation routines (or more to the point, mine Cool | :cool: ) don't have to do nasty code dom manipulation. They can just run a template.

I'll be including builtin T4/asp context switching. It's painless to implement and microsofts is annoying.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

GeneralRe: Happy turkey day, and happy coding Pin
Super Lloyd28-Nov-19 20:55
MemberSuper Lloyd28-Nov-19 20:55 
GeneralRe: Happy turkey day, and happy coding Pin
honey the codewitch28-Nov-19 20:56
mvahoney the codewitch28-Nov-19 20:56 
GeneralRe: Happy turkey day, and happy coding Pin
honey the codewitch28-Nov-19 21:01
mvahoney the codewitch28-Nov-19 21:01 
GeneralRe: Happy turkey day, and happy coding Pin
Super Lloyd28-Nov-19 23:47
MemberSuper Lloyd28-Nov-19 23:47 
GeneralRe: Happy turkey day, and happy coding Pin
honey the codewitch29-Nov-19 4:02
mvahoney the codewitch29-Nov-19 4:02 
GeneralRe: Happy turkey day, and happy coding Pin
honey the codewitch29-Nov-19 4:09
mvahoney the codewitch29-Nov-19 4:09 
GeneralRe: Happy turkey day, and happy coding Pin
Super Lloyd29-Nov-19 12:01
MemberSuper Lloyd29-Nov-19 12:01 
GeneralRe: Happy turkey day, and happy coding Pin
honey the codewitch29-Nov-19 12:37
mvahoney the codewitch29-Nov-19 12:37 
GeneralRe: Happy turkey day, and happy coding Pin
Eddy Vluggen28-Nov-19 21:58
professionalEddy Vluggen28-Nov-19 21:58 
GeneralRe: Happy turkey day, and happy coding Pin
honey the codewitch28-Nov-19 22:00
mvahoney the codewitch28-Nov-19 22:00 
GeneralRe: Happy turkey day, and happy coding Pin
Eddy Vluggen28-Nov-19 22:08
professionalEddy Vluggen28-Nov-19 22:08 
GeneralRe: Happy turkey day, and happy coding Pin
OriginalGriff29-Nov-19 1:43
mveOriginalGriff29-Nov-19 1:43 
GeneralRe: Happy turkey day, and happy coding Pin
Eddy Vluggen29-Nov-19 2:27
professionalEddy Vluggen29-Nov-19 2:27 
GeneralRe: Happy turkey day, and happy coding Pin
Richard Deeming29-Nov-19 0:47
mveRichard Deeming29-Nov-19 0:47 
GeneralRe: Happy turkey day, and happy coding Pin
honey the codewitch29-Nov-19 3:56
mvahoney the codewitch29-Nov-19 3:56 
GeneralRe: Happy turkey day, and happy coding Pin
Richard Deeming29-Nov-19 4:04
mveRichard Deeming29-Nov-19 4:04 
GeneralRe: Happy turkey day, and happy coding Pin
honey the codewitch29-Nov-19 4:08
mvahoney the codewitch29-Nov-19 4:08 

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.