|
On point 1 you and I are going to disagree.
I can't even read LALR(1) generation code. I can't even read the algorithm it's based off of. That's how messy the problem is.
No junior developer will be able to dissect LALR(1) table generation code. Someone with a masters in CS might recognize what it is, and be able to point out the various steps of the algorithm in the routine, but it's the algorithm itself that is the problem, not the code that implements it.
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.
|
|
|
|
|
Something tells me that Windows isn't open source not just to protect MS's IP...
|
|
|
|
|
var meth = binder.BindToMethod(BindingFlags.InvokeMethod | BindingFlags.NonPublic | BindingFlags.Static, binder.GetMethodGroup(
code.Namespaces[1].Types[0],
"Bar",
BindingFlags.NonPublic | BindingFlags.Static),
ref args, null, System.Globalization.CultureInfo.CurrentCulture,null);
Console.WriteLine(CodeDomUtility.ToString(meth));
I implemented reflection binding over CodeDOM objects as though they were real types.
I even support the #)(%*@)#% BindingFlags enumeration
Above is just calling the stupid thing. You should see what the code to make it work looks like.
What it does:
say in your codedom you have
class Foo
{
public int Bar(string foo)
{
Console.WriteLine(foo);
return foo.GetHashCode();
}
public string Bar(int foo)
{
Console.WriteLine(foo);
return foo.ToString();
}
}
Based on a group of methods with the same name, and a set of arguments or types you give it, match the signature to what you passed in, and return the appropriate method that best matches the signature, including doing widening conversions on primitive types, and skipping type checking on null arguments.
This is H-A-R-D
But I did it. Woo. Does it for indexed properties as well.
Gosh I never want to have to implement a binder again.
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.
|
|
|
|
|
honey the codewitch wrote: var meth = binder
so, you're cooking, erm, coding meth ?
I'd rather be phishing!
|
|
|
|
|
That's not even the worst of them. I've used die as short for delegate-invoke-expression recently. I've used f-c at least once that i can recall, p-s probably dozens more.
edited for forum rules
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.
|
|
|
|
|
I'm still impressed that someone at Microsoft managed to slip both PIDL and SHITEMID past their corporate overlords.
Common Explorer Concepts (Windows) | Microsoft Docs[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
haha and I'm such a microsoftie i didn't even think anything of PIDL until you just said something.
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.
|
|
|
|
|
I woke up and had an email saying a book I co-authored was FINALLY published after a year delay! (don't worry, we revised it so it's not a year behind)
So that's pretty awesome.
Because it was supposed to be released a year ago I already did a book presentation in January
This afternoon I went for the AZ-301 exam, Azure Architect Design.
I passed, and with my AZ-300 exam that I passed two weeks ago I can now officially call myself an Azure Solutions Architect
Then I got a call from my dad, who got a call from someone he used to work with who thought about me, who got a call from a customer...
Long story short, I'm calling a company tomorrow (who is a former customer from a previous employer) who may or may not need my services, possibly leaving me with a new customer.
Of course it's very premature to say anything about it, but it's nice to know my name is out there and people think about me
So did nothing go wrong today?
Unfortunately, I got wet in the rain and I spent most of my day wearing wet pants, being cold and having a ridiculous hair cut
Ah well, I'm dry and warm now so all's well that ends well
|
|
|
|
|
May I suggest a new name for you here on CodeProject:
Mr.Sunshine
|
|
|
|
|
I thought "sunshine" is a kind of insult on this forum?
|
|
|
|
|
Not if you are Dutch, words have different meaning for us Dutch (if any at all)
|
|
|
|
|
Careful what you say about the Dutch. My mother was from Dutch extraction, my father from German. When I tell people that, they are inclined to roll their eyes and respond like: "That explains a lot". I have no idea what that is supposed to mean.
|
|
|
|
|
That is probably for the best.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
Quote: That is probably for the best.
It is not as if I lie awake worrying what it all means!
|
|
|
|
|
Cp-Coder wrote: My mother was from Dutch extraction, my father from German
|
|
|
|
|
Did some Googling, and it seems to have mostly negative meanings
Well another English lesson learned ...
|
|
|
|
|
Top it off with dinner at Milliways?
It
|
|
|
|
|
Not gonna lie, I had to look that up.
Are you going to take my nerd license now?
|
|
|
|
|
Sander Rossel wrote: I'm dry and warm now so all's well that ends well But you still have the ridiculous haircut?
/ravi
|
|
|
|
|
|
I want a collar like that!
/ravi
|
|
|
|
|
Yeah, that was kind of unrelated because I always have that
|
|
|
|
|
|
For now, this seems to be the only answer directly related to the original post.
|
|
|
|
|