|
|
London .NET User Group:Introduction to Writing DSLs with C#3.5
Introduction to Writing DSLs with C#3.5
LINQ is an internal DSL provided by C# for accessing streams of data. We can leverage the same feature set added to the language to make LINQ to author our own internal DSLs. In this session Ian introduces you to the ideas behind Internal DSLs and shows how C# 3.5 helps you to write them.
Review
In this session, Ian Cooper talks about Internal DSLs and demonstrates how to use LINQ in C# applications with live examples.
A Domain-Specific Language (DSL) can be defined as a programming language targeted at a particular kind of problem. It is not meant to be used for problems outside of its domain. DSLs are particular ways of using a host language (in our case, the C# language) to shape the feel of a particular language. An internal DSL is limited to the syntax and structure of its base language.
Language Integrated Query (LINQ) extends C# and VB with native language syntax for queries and provides class libraries to take advantage of these capabilities. LINQ to SQL provides a run-time infrastructure for managing relational data as objects without losing the ability to query.
Nested Closures are another topic covered in the talk. A Nested Closure is similar to that of Nested Function, but the child expressions of the function call are wrapped in a closure.
Ian also talks about the method chaining pattern, whose purpose is defined by Martin Fowler as: “To make modifier methods return the host object so that multiple modifiers can be invoked in a single expression.”
Open Ian Cooper’s web site.
Martin Fowler’s web site, which includes information on DSLs based on his book (currently being written) can be accessed here.
Review by Eren Aykin
ABOUT THE LONDON .NET USER GROUP
|
The London .NET user group was etablished in 2002 to provide developers developers working with Microsoft's .NET framework with access to the latest and best information. At our monthly meetings you can hear expert speakers who dig 'under the hood' and keep you informed on best practices and future directions of the Framework.
More about the London .NET User Group
|
|
PODCAST INTRODUCTION TO WRITING DSLS WITH C#3.5
|
SOFTWARE ARCHITECTURE COURSES
|
SOFTWARE ARCHITECTURE PODCASTS
|
OTHER SOFTWARE ARCHITECTURE EVENTS
|
Uncle Bob's Advanced Test Driven Development in NY
3 DAY COURSE. Featuring Uncle Bob (Robert C. Martin) New York, Tuesday, May 29th
|
|
Eric Evans' DDD Immersion Workshop
4 DAY COURSE. Featuring Alberto Brandolini London, Monday, June 11th
|
|
DDD eXchange 2012
CONFERENCE (1 DAY)
London, Friday, June 15th
BOOK NOW!
|
|
Simon Brown's Enterprise Software Developer
3 DAY COURSE. Featuring Simon Brown London, Monday, June 18th
|
|
QCon New York 2012
CONFERENCE (3 DAYS)
New York, Monday, June 18th
BOOK NOW!
|
|
Craig Larman's Object Design w Patterns
4 DAY COURSE. Featuring Francis Sanger London, Tuesday, June 19th
|
|
David Laribee's Leading Lean/Agile Teams
2 DAY COURSE. Featuring David Laribee New York, Thursday, June 21st
|
|
Find Your Ninja Project
FREE EVENT:
Cool Projects in June
London, Monday, June 25th
|
|
|
|