|
|
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
|
PODCAST INTRODUCTION TO WRITING DSLS WITH C#3.5
|
|
|
OPEN SOURCE .NET PODCASTS
|
OTHER OPEN SOURCE .NET EVENTS
|
London .NET User Group
FREE EVENT:
Functional and OO Approaches t
London, Wednesday, March 31st
|
|
Persistence with NHibernate
3 DAY COURSE. Featuring Oren Eini aka Ayende Rahien London, Monday, April 26th
|
|
Introduction into Raven DB
FREE EVENT:
In The Brain of Oren Eini aka Ayende Rahien
London, Wednesday, April 28th
|
|
London F-Sharp User Group
FREE EVENT:
F-Sharp Numerical Optimization
London, Thursday, April 29th
|
|
Robert Pickering's Beginning F# Workshop
2 DAY COURSE. Featuring Robert Pickering London, Monday, May 10th
|
|
Progressive .NET Tutorials
CONFERENCE (3 DAYS)
London, Wednesday, May 12th
BOOK NOW!
|
|
Persistence with NHibernate
3 DAY COURSE. Featuring Oren Eini aka Ayende Rahien London, Monday, May 17th
|
|
Agile Castle Web Development
2 DAY COURSE. Paris, Tuesday, May 18th
|
|
|
|