~/talk

Writing Code with Code: Getting Started with the Roslyn APIs

Talkat CPH DevFest 2024 · 2024-08-26..08-30· [developer-experience]
slides:none on file

Shows how the Roslyn APIs are used to generate a full .NET client from a JSON schema: parse a TypeScript spec with TS‑morph into a normalized JSON schema, then build C# syntax trees with SyntaxFactory, call normalize whitespace and emit thousands of .cs files in seconds. Covers handling unions/polymorphism, query-string parameter classes, constructor selection, and serialization attributes, and reports a working generator covering ~80% of endpoints for an API that has ~420 endpoints and 4,000 data structures.

AI-written summary · about

  1. 0:00Introduction
  2. 0:51Agenda
  3. 1:41Roslyn
  4. 2:30What is Roslyn
  5. 5:08What are analyzers
  6. 6:36analyzers in action
  7. 8:26Source generators
  8. 11:53Compiler pipeline
  9. 14:05Syntax trees
  10. 17:47Visual Studio
  11. 18:32Syntax Tree Demo
  12. 22:15Elastic Search
  13. 27:34Demo
  14. 35:31Practicalities
  15. 43:42Code Generation Pipeline
  16. 46:38Json Schema
  17. 51:53Generator Code
  18. 55:10Refactoring
  19. 59:03Resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.