
Code Generation with Roslyn
Nick Harrison(Author)
APress
Published on 6. March 2017
Book
Paperback/Softback
XV, 105 pages
978-1-4842-2210-2 (ISBN)
Description
Learn how Roslyn's new code generation capability will let you write software that is more concise, runs faster, and is easier to maintain. You will learn from real-world business applications to create better software by letting the computer write its own code based on your business logic already defined in lookup tables.
Code Generation with Rosyln is the first book to cover this new capability. You will learn how these techniques can be used to simplify systems integration so that if one system already defines business logic through lookup tables, you can integrate a new system and share business logic by allowing the new system to write its own business logic based on already existing table-based business logic.
One of the many benefits you will discover is that Roslyn uses an innovative approach to compiler design, opening up the inner workings of the compiler process. You will learn how to see the syntax tree that Roslyn is building as it compiles your code. Additionally, you will learn to feed it your own syntax tree that you create on the fly.
What You'll Learn
Who This Book Is For
Back end developers in very dynamic fast-paced business environments. Developers focused on integrating different systems across an enterprise should also find this information useful.
Code Generation with Rosyln is the first book to cover this new capability. You will learn how these techniques can be used to simplify systems integration so that if one system already defines business logic through lookup tables, you can integrate a new system and share business logic by allowing the new system to write its own business logic based on already existing table-based business logic.
One of the many benefits you will discover is that Roslyn uses an innovative approach to compiler design, opening up the inner workings of the compiler process. You will learn how to see the syntax tree that Roslyn is building as it compiles your code. Additionally, you will learn to feed it your own syntax tree that you create on the fly.
What You'll Learn
-
Structure logic to be stored in database design
-
Build complex conditional logic based on lookup data in the database
-
Compile code that you generate programmatically
-
Discover generated code and run it dynamically to implement new business logic
-
Debug problems in generated code
-
Deploy and access generated code
Who This Book Is For
Back end developers in very dynamic fast-paced business environments. Developers focused on integrating different systems across an enterprise should also find this information useful.
More details
Edition
1st ed.
Language
English
Place of publication
Berkeley
United States
Target group
Professional and scholarly
Product notice
Paperback (trade)
Unsewn / adhesive bound
Illustrations
2 s/w Abbildungen, 13 farbige Abbildungen
XV, 105 p. 15 illus., 13 illus. in color.
Dimensions
Height: 255 mm
Width: 182 mm
Thickness: 15 mm
Weight
264 gr
ISBN-13
978-1-4842-2210-2 (9781484222102)
DOI
10.1007/978-1-4842-2211-9
Schweitzer Classification
Other editions
Additional editions

Person
Nick Harrison
is a Software Architect and .NET advocate in Columbia, SC. Nick has over 20 years experience in software developing, starting with Unix system programming and then progressing to the DotNet platform.
Content
1. Introduction.- 2. Putting Business Logic in Tables.- 3. Pulling Table Driven Logic into Code.- 4. An Introduction to Roslyn.- 5. Generating Code.- 6. Deploying Generated Code.- 7. Reflecting on Generated Code.- 8. Best Practices.