How about this little c# code
-
:doh:
brisingr_aerowing@Gryphon-PC $ rake in_the_dough Raking in the dough brisingr_aerowing@Gryphon-PC $ make lots_of_money Making lots_of_money
-
((Func)(x => ++x))(default(int));
Can 0 be casted to a function delegate? Also, is "++x" legal if x is nullable? Weird.
Greetings - Jacek
read the parenthesis, it is clearer this way:
var f = (Func)(x => ++x);
f(default(int));it's pointless code, but it works.
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p) "Given the chance I'd rather work smart than work hard." - PHS241 "'Sophisticated platform' typically means 'I have no idea how it works.'"
-
read the parenthesis, it is clearer this way:
var f = (Func)(x => ++x);
f(default(int));it's pointless code, but it works.
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p) "Given the chance I'd rather work smart than work hard." - PHS241 "'Sophisticated platform' typically means 'I have no idea how it works.'"
so basically all this expression does is return a nullable int with the value "1"? :doh:
-
so basically all this expression does is return a nullable int with the value "1"? :doh:
yep, that's why i said it's pointless, it's probably test code someone forgot to erase, at least i hope so.
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p) "Given the chance I'd rather work smart than work hard." - PHS241 "'Sophisticated platform' typically means 'I have no idea how it works.'"
-
yep, that's why i said it's pointless, it's probably test code someone forgot to erase, at least i hope so.
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p) "Given the chance I'd rather work smart than work hard." - PHS241 "'Sophisticated platform' typically means 'I have no idea how it works.'"
We got a lot of them there types of function in the current project I'm tryin to untangle. I think the previous contract company lived under the motto: 200 lines of code per programmer per day keeps the customer fat, dumb, happy, and *away*
-
We got a lot of them there types of function in the current project I'm tryin to untangle. I think the previous contract company lived under the motto: 200 lines of code per programmer per day keeps the customer fat, dumb, happy, and *away*
Here we use the Go Horse methodology, so we also have loads of entangled code that no one is capable of understanding, that is actually good code if compared to what we have here :(
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p) "Given the chance I'd rather work smart than work hard." - PHS241 "'Sophisticated platform' typically means 'I have no idea how it works.'"
-
Here we use the Go Horse methodology, so we also have loads of entangled code that no one is capable of understanding, that is actually good code if compared to what we have here :(
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p) "Given the chance I'd rather work smart than work hard." - PHS241 "'Sophisticated platform' typically means 'I have no idea how it works.'"
In addition to the 200 lines per day per programmer I think they also enforced just about every current buzz programming word and paradigm. I'd say they succeeded in folling the SOLID principles just fine. :laugh: Edit: Auto correct sux... WTF is "folling"? Urban dictionary says I've lapsed into urban slang... sigh...
-
In addition to the 200 lines per day per programmer I think they also enforced just about every current buzz programming word and paradigm. I'd say they succeeded in folling the SOLID principles just fine. :laugh: Edit: Auto correct sux... WTF is "folling"? Urban dictionary says I've lapsed into urban slang... sigh...
No one from the "teams" that wrote our legacy software works here anymore, but i don't think they even know that SOLID is an acronym
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p) "Given the chance I'd rather work smart than work hard." - PHS241 "'Sophisticated platform' typically means 'I have no idea how it works.'"
-
In addition to the 200 lines per day per programmer I think they also enforced just about every current buzz programming word and paradigm. I'd say they succeeded in folling the SOLID principles just fine. :laugh: Edit: Auto correct sux... WTF is "folling"? Urban dictionary says I've lapsed into urban slang... sigh...
Keep Clam And Proofread -- √(-1) 23 ∑ π... And it was delicious.