Click here to Skip to main content
15,920,633 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: Keeping up Pin
_Maxxx_11-Aug-14 19:47
professional_Maxxx_11-Aug-14 19:47 
GeneralRe: Keeping up Pin
Christian Graus11-Aug-14 19:50
protectorChristian Graus11-Aug-14 19:50 
GeneralRe: Keeping up Pin
_Maxxx_12-Aug-14 1:41
professional_Maxxx_12-Aug-14 1:41 
GeneralRe: Keeping up Pin
Christian Graus12-Aug-14 1:55
protectorChristian Graus12-Aug-14 1:55 
GeneralRe: Keeping up Pin
Kornfeld Eliyahu Peter11-Aug-14 19:42
professionalKornfeld Eliyahu Peter11-Aug-14 19:42 
GeneralRe: Keeping up Pin
Marc Clifton12-Aug-14 3:23
mvaMarc Clifton12-Aug-14 3:23 
GeneralRe: Keeping up Pin
Christian Graus12-Aug-14 12:51
protectorChristian Graus12-Aug-14 12:51 
GeneralRe: Keeping up Pin
Marc Clifton12-Aug-14 14:03
mvaMarc Clifton12-Aug-14 14:03 
The coolest thing I've done with Action and Func is to put the call that processes a message into an Action lambda expression and then, depending on whether I'm animating the "mailing" of the message or not, the code either calls the Action or packages it up as part of what the animation code needs to know (sender/receiver and message.)

Then, when the animation code is complete (the message is received), the animator simply calls the Action and it executes at that point. The crazy and cool thing is, the animation code doesn't know and doesn't care what the action is, it just gets done when the message. And it's neat because it all works across assembly boundaries, there's no need for the animator to know about the executing code's namespaces, etc.

Anyways, I ramble, because it was a really good example of getting code to be more flexible in its behavior. If you have watched any of the HOPE[^] videos, you'll see what I mean.

Here's[^] a great article on computation expressions and continuations in C# and F#. It's well worth sinking one's teeth into.

Marc

GeneralRe: Keeping up Pin
Christian Graus12-Aug-14 14:06
protectorChristian Graus12-Aug-14 14:06 
GeneralError message of the week Pin
PaulLinton11-Aug-14 13:27
PaulLinton11-Aug-14 13:27 
GeneralRe: Error message of the week Pin
Super Lloyd11-Aug-14 13:37
Super Lloyd11-Aug-14 13:37 
GeneralRe: Error message of the week Pin
PIEBALDconsult11-Aug-14 14:34
mvePIEBALDconsult11-Aug-14 14:34 
GeneralRe: Error message of the week Pin
Chris Maunder11-Aug-14 17:28
cofounderChris Maunder11-Aug-14 17:28 
GeneralRe: Error message of the week Pin
PIEBALDconsult11-Aug-14 17:34
mvePIEBALDconsult11-Aug-14 17:34 
GeneralRe: Error message of the week PinPopular
_Maxxx_11-Aug-14 18:49
professional_Maxxx_11-Aug-14 18:49 
GeneralRe: Error message of the week Pin
Nguyen.H.H.Dang11-Aug-14 20:24
professionalNguyen.H.H.Dang11-Aug-14 20:24 
NewsBreaking News - RIP Robin Williams PinPopular
_Damian S_11-Aug-14 13:06
professional_Damian S_11-Aug-14 13:06 
GeneralRe: Breaking News - RIP Robin Williams Pin
Mike Hankey11-Aug-14 13:22
mveMike Hankey11-Aug-14 13:22 
GeneralRe: Breaking News - RIP Robin Williams Pin
Eric Goedhart11-Aug-14 13:29
professionalEric Goedhart11-Aug-14 13:29 
GeneralRe: Breaking News - RIP Robin Williams Pin
Swinkaran11-Aug-14 13:30
professionalSwinkaran11-Aug-14 13:30 
GeneralRe: Breaking News - RIP Robin Williams Pin
Eric Goedhart11-Aug-14 13:34
professionalEric Goedhart11-Aug-14 13:34 
GeneralRe: Breaking News - RIP Robin Williams Pin
Christian Graus11-Aug-14 13:31
protectorChristian Graus11-Aug-14 13:31 
GeneralRe: Breaking News - RIP Robin Williams Pin
PIEBALDconsult11-Aug-14 14:08
mvePIEBALDconsult11-Aug-14 14:08 
GeneralRe: Breaking News - RIP Robin Williams Pin
Rage11-Aug-14 14:20
professionalRage11-Aug-14 14:20 
JokeRe: Breaking News - RIP Robin Williams Pin
_Maxxx_11-Aug-14 14:23
professional_Maxxx_11-Aug-14 14:23 

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.