Code Generation with Roslyn
حتما تا حالا این را فهمیده اید که منطق کسب و کار سخت است. به ندرت منطقی هست و معمولا از الگوی قابل درکی پیروی نمیکند و پراز استثنا هست و به کرات و سریعا تغییر میکند. این میتواند باعث وحشتتان شود ولی این دنیایی هست که درش زندگی میکنیم.
دنیای کسب وکار به شدت رقابتی است. این استثناها و متناقضات آشکار هستند که ما را دیوانه میکنند و باعث نگه داشتن مشتری یا از دست دادن مشتری، قرار دادن بستن یا نبستن میشود. داشتن برنامه ای که بتواند به سرعت خود را با تغییرات کسب و کار تغییر دهد در این بازار رقابتی ضروری است. این مساله فشار زیادی را بر روی برنامههای تجاری ما قرار میدهد تا بتوانند خودشان را به سرعت با تغییرات وفق دهند. در این کتاب راه هایی را بررسی خواهیم کرد تا برنامه هایمان را زرنگ کنیم تا بتوانند با سرعت تغییرات کسب و کار تغییر کنند.
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 Will 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.
Table of Contents
Chapter 1: Introduction
Chapter 2: Putting Business Logic in Tables
Chapter 3: Pulling Table Driven Logic Into Code
Chapter 4: An Introduction to Roslyn
Chapter 5: Generating Code
Chapter 6: Deploying Generated Code
Chapter 7: Reflecting on Generated Code
Chapter 8: Best Practices