~/talk

Small things we got wrong in .NET

Talkat 4Developers 2022 Online · 2022-04-04..04-07· [dotnet]
slides:none on file

Claims and gotchas with concrete examples: value types land on stack or heap depending on context, not always stack; var is compile time, dynamic is runtime; List<T> uses an underlying array with default capacity 4; Any() beats Count on enumerables unless you can read a Count property; overloaded == can lie so use is null; string.Empty and "" end up identical at runtime; StringBuilder is slower for small joins; Environment.FailFast skips finally; RegexOptions.Compiled can be 200× slower if compiled per call; Count(predicate) differs from Where().Count() by about 5×.

AI-written summary · about

  1. 0:00Start
  2. 2:02DATA TYPES
  3. 4:47dynamic
  4. 14:32STRING CONCATENATION
  5. 18:18EMERGENCY HANDLING
  6. 28:55INTERFACES
~/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.