Developer Skill Sprint: Delphi Anonymous Methods And C++11 Lambdas
I am doing a Developer Skill Sprint this Tuesday, September 22, 2015, titled "Delphi Anonymous Methods and C++11 Lambdas: When to use them and not use them". This blog post contains some of my notes and resource links for my skill sprint.
What will be covered?
- Delphi Anonymous Methods
- C++11 Lambdas
- Parallel Programming Library
- When to use them / When not to use them
Advantages of Anonymous Methods and Lambdas
- Easy way to define and use methods
- Easy to parameterize using code
- Binding of variables in the context of your code
- Avoids direct use of function and procedure pointers
- Doesn't introduce a new name just for a temporary use
- Code clarity: places code closer to where it's called
When To Use Them
- To create a small method that is not meant to be reused
- Method benefits and variable binding/hiding inline in your code
- If a run time library requires them to be used (PPL for example)
When Not To Use Them
- If you are building a library used by another language that does not support Anonymous Methods or Lambdas
Learning Resources
- http://docwiki.embarcadero.com/RADStudio/Seattle/en/Anonymous_Methods_in_Delphi
- http://docwiki.embarcadero.com/RADStudio/Seattle/en/C%2B%2B11_Features_Supported_by_RAD_Studio_Clang-enhanced_C%2B%2B_Compilers#Lambda_expressions
- http://en.cppreference.com/w/cpp/language/lambda
- http://docwiki.embarcadero.com/RADStudio/Seattle/en/How_to_Handle_Delphi_Anonymous_Methods_in_C%2B%2B
- Anonymous Methods chapter in “Coding in Delphi” by Nick Hodges - http://codingindelphi.com/
- Skill Sprint source code on Code Central - http://cc.embarcadero.com/item/30383
For more learning about Delphi Anonymous Methods and C++11 Lambdas, register for CodeRage X, October 13-15, 2015!


David Intersimone (known to many as David I.) is a passionate and innovative software industry veteran-often referred to as a developer icon-who extols and educates the world on Embarcadero developer tools. He shares his visions as an active member of the industry speaking circuit and is tapped as an expert source by the media. He is a long-standing champion of architects, developers and database professionals and works to ensure that their needs are folded into Embarcadero's strategic product plans. David holds a bachelor's degree in computer science from California Polytechnic State University at San Luis Obispo, California.
Is there a link to the Skill Sprint registration page?