~/talk

10 Things I Do On Every .NET App

Talkat NDC Oslo 2025 · 2025-05-19..05-23· [frontend-architecture]
slides:none on file

Opinionated checklist for maintainable .NET apps: use feature folders to colocate UI, tests and models; treat warnings as errors and use Serilog + ILogger with structured logs, separate logs/metrics/audits and store audits in the primary DB; require authentication by default via a fallback policy; prefer FluentValidation over data annotations; remove the Kestrel server header; avoid IOptions by registering POCOs; validate DI on build; adopt CI/CD, trunk-based flow and build once deploy many times — one client moves from ~12 to ~2,000 deploys/year with <1% rollback.

AI-written summary · about

  1. 0:00Introduction
  2. 5:14Feature folders for code
  3. 9:31Fixing .NET warnings
  4. 10:57Logging best practices
  5. 21:48Secure fallback policies
  6. 24:17Validation without data annotations
  7. 28:30Remove server header
  8. 31:07Avoid IOptions DI
  9. 33:07Code smells and early returns
  10. 38:01Modern solution files
  11. 39:55HTTP security headers
  12. 42:15Build once deploy many
  13. 43:59DI container validation
  14. 46:49Testing with XUnit
  15. 52:25Central package management
  16. 53:28SQL and CI/CD tips
  17. 57:41Q&A
~/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.