Code generation with Roslyn. (2017)
- Record Type:
- Book
- Title:
- Code generation with Roslyn. (2017)
- Main Title:
- Code generation with Roslyn
- Further Information:
- Note: Nick Harrison.
- Authors:
- Harrison, Nick
- Contents:
- At a Glance; Contents; About the Author; About the Technical Reviewer; Acknowledgments; Chapter 1: Introduction; The Problem with Business Logic; Develop/Test Deploy Takes Time; Lookup Tables Are Easier to Modify, Verify, and Deploy; Lookup Tables Can Be Slow; Having Your Cake and Eating It Too; What Is Not Covered; Summary; Chapter 2: Putting Business Logic in Tables; A Catalog of Business Logic Tables; Simple Lookup Table; Lookup Tables with Multiple Input Parameters (Decision Tables); State-Specific Business Logic; Shipping Charges; Interactive Questionnaire. Compound Decision TableExpression Decision Table; Summary; Chapter 3: Pulling Table Driven Logic Into Code; Overview; Treating Lookup Tables as Enums; Lookup Data; Code; Table-Driven Hello World; Data; Code; Automated Underwriting; Data Model; Data; Underwriting Rule; Loan Code Type; Loan Code; Underwriting Rule Detail; Code; Summary; Chapter 4: An Introduction to Roslyn; The Roslyn Pipeline; How Code Generation Fits In; Getting Started with Roslyn; Syntax API; Symbol API; Binding and Analysis API; Emit API; Generating Code; Summary; Chapter 5: Generating Code; Creating Enums; Hello World. Automated UnderwritingSummary; Chapter 6: Deploying Generated Code; Setting Up the Sample Solution; The Basic Flow; Loading the EmptyProject; Safely Add a New Document; Specifying Compilation Options; Reviewing the Diagnostic Messages; Emitting an Assembly; Summary; Chapter 7: Reflecting on Generated Code; Loading the Assembly;At a Glance; Contents; About the Author; About the Technical Reviewer; Acknowledgments; Chapter 1: Introduction; The Problem with Business Logic; Develop/Test Deploy Takes Time; Lookup Tables Are Easier to Modify, Verify, and Deploy; Lookup Tables Can Be Slow; Having Your Cake and Eating It Too; What Is Not Covered; Summary; Chapter 2: Putting Business Logic in Tables; A Catalog of Business Logic Tables; Simple Lookup Table; Lookup Tables with Multiple Input Parameters (Decision Tables); State-Specific Business Logic; Shipping Charges; Interactive Questionnaire. Compound Decision TableExpression Decision Table; Summary; Chapter 3: Pulling Table Driven Logic Into Code; Overview; Treating Lookup Tables as Enums; Lookup Data; Code; Table-Driven Hello World; Data; Code; Automated Underwriting; Data Model; Data; Underwriting Rule; Loan Code Type; Loan Code; Underwriting Rule Detail; Code; Summary; Chapter 4: An Introduction to Roslyn; The Roslyn Pipeline; How Code Generation Fits In; Getting Started with Roslyn; Syntax API; Symbol API; Binding and Analysis API; Emit API; Generating Code; Summary; Chapter 5: Generating Code; Creating Enums; Hello World. Automated UnderwritingSummary; Chapter 6: Deploying Generated Code; Setting Up the Sample Solution; The Basic Flow; Loading the EmptyProject; Safely Add a New Document; Specifying Compilation Options; Reviewing the Diagnostic Messages; Emitting an Assembly; Summary; Chapter 7: Reflecting on Generated Code; Loading the Assembly; Monitoring for Changes; Discovering Types; Discovering Methods; Calling Methods; Interpreting the Results; Summary; Chapter 8: Best Practices; Defining Requirements; Always Plan on Change; Most Business Rules Are Date-Sensitive; Structuring Logic. Separate Business Logic Tables from Business Entity TablesIntegrate Lookup Tables into the Entity Data Model; Avoid One True Lookup Tables (OTLT) in the Entity Data Model; An OTLT Can Be Used to Simplify Expression-Based Decision Tables; Types of Logic Tables; Use Dates; Add Comment Columns to Logic Tables; Writing Code from Structured Logic; Hand-Write Sample Code Before Generating the Code; Define an Input Interface; Not All Logic Tables Should Be Converted to Code; Generate Enums from Lookup Tables; Incorporate Comments; Fail Early; Using Roslyn; Roslyn Is the Compiler. Roslyn Is Better for Code GenerationParse Sample Code; Roslyn Is Immutable; Generating Code with Roslyn; Use Simple Objects to Host Metadata; Invert Business Logic; Reduce Complexity; Reflective Best Practices; Don't Lock the Assembly; Reload the Assembly as Needed; Prefer GetTypes () to GetType (); Track Results; Index. … (more)
- Publisher Details:
- United States : Apress
- Publication Date:
- 2017
- Copyright Date:
- 2017
- Extent:
- 1 online resource, illustrations
- Subjects:
- 005.4/5
Computer science
Code generators
COMPUTERS -- Mathematical & Statistical Software
Code generators
Computer Science
Microsoft and .NET
Programming Languages, Compilers, Interpreters
Computers -- Programming Languages -- General
Programming & scripting languages: general
Microsoft software
Microsoft .NET Framework
Computers -- Programming -- Microsoft Programming
Microsoft programming
Electronic books - Languages:
- English
- ISBNs:
- 9781484222119
1484222113 - Related ISBNs:
- 9781484222102
1484222105 - Notes:
- Note: Online resource; title from PDF title page (SpringerLink, viewed March 10, 2017).
- Access Rights:
- Legal Deposit; Only available on premises controlled by the deposit library and to one user at any one time; The Legal Deposit Libraries (Non-Print Works) Regulations (UK).
- Access Usage:
- Restricted: Printing from this resource is governed by The Legal Deposit Libraries (Non-Print Works) Regulations (UK) and UK copyright law currently in force.
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library HMNTS - ELD.DS.359784
- Ingest File:
- 01_322.xml