.NET Stop Using FirstOrDefault in .NET | Code Cop #021 (via Nick Chapsas) This video compares List<T>.Find() and IEnumerable<T>.FirstOrDefault(). In certain cases, primarily if you’re using .NET 8 or below, Find() is faster and doesn’t allocate any memory. However, in…
All posts tagged “Professional Development”
Professional Development – 2024 – Week 37
.NET Stop Dealing with EF Core Exceptions Wrong! (via Nick Chapsas) If constraints aren’t met (e.g., max length, uniqueness), EF Core throws a DBUpdateException, which tells you very little about the specific problem. The current solution is to follow inner…
Professional Development – 2024 – Week 36
Negotiation How to ask for more — and get it (TED)
Professional Development – 2024 – Week 35
Ethics 4 Warning Signs of Ethical Burnout on Your Team (via HBR)
Professional Development – 2024 – Week 34
.NET Stop Using IEnumerable The Wrong Way in .NET! | Code Cop #019 (via Nick Chapsas) You can’t return an IEnumerable in a benchmark because it involves deferred execution. That is, something must enumerate the list — .ToList(), foreach, etc. Estimation…
Professional Development – 2024 – Week 33
Motivation How to set the right goals and stay motivated (via TED)
Professional Development – 2024 – Week 32
.NET The New Option and Result Types in C# (via Nick Chapsas)
Professional Development – 2024 – Week 31
Career The secret to finding your ideal workplace (via TED) Leadership Are You a Micromanager or Too Hands-Off? (via HBR)
Professional Development – 2024 – Week 30
.NET Give Your Strings Meaning (via Nick Chapsas) There are several types of content — e.g., JSON, regular expressions — that are strings. Since .NET 7 there is a StringSyntaxAttribute for arguments where you can specify the type of string….
Professional Development – 2024 – Week 29
.NET How Thread Safety is Changing in .NET 9 (via Nick Chapsas) .NET 8 and earlier versions provide a lock block so that you can make operations thread-safe. (Under the hood, this is calling Monitor.Enter and Monitor.Exit.) In .NET 9…