Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md

README.md

Super-powers and the Compiler

About the Talk

Try to imagine how powerful would it be if programmers could look at their code through the eyes of their compilers. If they could automatically analyze their code, improve it, change it, cover it with tests, etc. This would definitely be a super-power! Until recently, this super-power was at disposal only to rare ones who mastered the difficult skill of compiler development. Roslyn - C# and VB.NET Compiler-as-a-Service - gives this super-power to every .NET developer.

In the beginning of the talk we discuss compilers in general. How do they work? What makes them so complex to develop?

Then we introduce Roslyn and discuss how and why it "changed the game" for .NET developers. We present few concrete projects built on top of Roslyn and move toward examples of potential usage of Roslyn in our own projects. In particular, we discuss how to utilize Roslyn to increase code quality of our own projects.

The talk was given at:

Code Samples

The Awesome Roslyn list is the best starting point to learn more about Roslyn. It is a curated list of awesome Roslyn books, tutorials, open source projects, analyzers, code fixes, and refactorings.

The code samples used in the talk are already available in several other repositories.

The samples with C# contextual keywords can be found in the code snippets of the blog post "Await Async as Async".

The examples of the Roslyn's Syntax API usage can be found in the the reworked examples from the book "Source Code Analytics With Roslyn and JavaScript Data Visualization".

The diagnostics and code fix example, the MustInvoke, can be found in the Jason's Bock sample code for his book ".NET Development Using the Compiler API".

The details on the Sharpen project can be found on its homepage: http://sharpen.rocks.