Click here to Skip to main content
15,891,473 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: bitcoin back-end blockchain storage Pin
ZurdoDev11-Dec-19 10:11
professionalZurdoDev11-Dec-19 10:11 
AnswerRe: bitcoin back-end blockchain storage Pin
Slacker00711-Dec-19 2:04
professionalSlacker00711-Dec-19 2:04 
AnswerRe: bitcoin back-end blockchain storage Pin
GuyThiebaut11-Dec-19 2:23
professionalGuyThiebaut11-Dec-19 2:23 
AnswerRe: bitcoin back-end blockchain storage Pin
F-ES Sitecore11-Dec-19 2:57
professionalF-ES Sitecore11-Dec-19 2:57 
GeneralWSO CCC OTD 2019-12-11 Pin
OriginalGriff10-Dec-19 21:31
mveOriginalGriff10-Dec-19 21:31 
GeneralRe: WSO CCC OTD 2019-12-11 Pin
Duncan Edwards Jones10-Dec-19 21:38
professionalDuncan Edwards Jones10-Dec-19 21:38 
GeneralRe: WSO CCC OTD 2019-12-11 - we have a winner. Pin
OriginalGriff10-Dec-19 22:03
mveOriginalGriff10-Dec-19 22:03 
GeneralHaha this is nuts I did it Pin
honey the codewitch10-Dec-19 17:50
mvahoney the codewitch10-Dec-19 17:50 
So I parsed that 8000+ line source file i threw at Slang, and then I rebuilt the tree, and spit out VB all in about 5-10 seconds, which isn't too bad considering what a monster it is.

The VB code is nasty looking because it's declaring arrays with 100s of elements on a single line

But it should work. It's all valid codedom constructs.

There's still work to be done on it but I think i'm at or almost at the point where I can start using it in my own projects.

I'm looking forward to never having to touch the actual codedom tree again, but I can't believe how difficult it was to resolve the tree.

I had to load assemblies and types, and crawl using reflect AND crawl the codedom looking for fields, properties, methods, signatures and return types.

In order to even know which methods were what I had to do SIGNATURE MATCHING. Do you have any idea what that entails? Never underestimate the work your compiler does for you. Jeez that's hard.

All this so I can call GetTypeOfExpression() on a codedom expression. What if the expression is a method call? what if it's one of several overloaded methods each with a different return type? I had to get it right.

Sigh | :sigh: This is probably the most extensively I've ever used reflection in a single project.

But the worst part wasn't even reflection. It was *emulating* reflection over the codedom.

If any of you know what I'm talking about here, then that last line should give you pause.

Yes, I did that. It was necessary.

But I feel pretty cool right now. Cool | :cool:
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: Haha this is nuts I did it Pin
Super Lloyd10-Dec-19 18:05
Super Lloyd10-Dec-19 18:05 
GeneralRe: Haha this is nuts I did it Pin
honey the codewitch10-Dec-19 18:06
mvahoney the codewitch10-Dec-19 18:06 
GeneralRe: Haha this is nuts I did it Pin
Super Lloyd10-Dec-19 18:10
Super Lloyd10-Dec-19 18:10 
GeneralRe: Haha this is nuts I did it Pin
honey the codewitch10-Dec-19 18:15
mvahoney the codewitch10-Dec-19 18:15 
GeneralRe: Haha this is nuts I did it Pin
Super Lloyd10-Dec-19 18:25
Super Lloyd10-Dec-19 18:25 
GeneralRe: Haha this is nuts I did it Pin
honey the codewitch10-Dec-19 18:26
mvahoney the codewitch10-Dec-19 18:26 
GeneralRe: Haha this is nuts I did it Pin
Super Lloyd10-Dec-19 18:40
Super Lloyd10-Dec-19 18:40 
GeneralRe: Haha this is nuts I did it Pin
honey the codewitch10-Dec-19 18:41
mvahoney the codewitch10-Dec-19 18:41 
GeneralRe: Haha this is nuts I did it Pin
Super Lloyd10-Dec-19 18:47
Super Lloyd10-Dec-19 18:47 
GeneralRe: Haha this is nuts I did it Pin
Sander Rossel10-Dec-19 21:30
professionalSander Rossel10-Dec-19 21:30 
GeneralRe: Haha this is nuts I did it Pin
Richard Deeming11-Dec-19 1:01
mveRichard Deeming11-Dec-19 1:01 
GeneralRe: Haha this is nuts I did it Pin
Daniel Pfeffer11-Dec-19 2:04
professionalDaniel Pfeffer11-Dec-19 2:04 
GeneralRe: Haha this is nuts I did it Pin
honey the codewitch11-Dec-19 2:09
mvahoney the codewitch11-Dec-19 2:09 
GeneralRe: Haha this is nuts I did it Pin
Jörgen Andersson10-Dec-19 18:34
professionalJörgen Andersson10-Dec-19 18:34 
GeneralRe: Haha this is nuts I did it Pin
honey the codewitch10-Dec-19 18:37
mvahoney the codewitch10-Dec-19 18:37 
GeneralRe: Haha this is nuts I did it Pin
Richard Deeming11-Dec-19 1:10
mveRichard Deeming11-Dec-19 1:10 
GeneralRe: Haha this is nuts I did it Pin
honey the codewitch11-Dec-19 2:08
mvahoney the codewitch11-Dec-19 2: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.