Professional Development – 2024 – Week 21

Image Credit: https://www.flickr.com/photos/54585499@N04/

.NET

The Insane C# 13 Feature That Changes Everything (via Nick Chapsas)

  • Assume there’s a class that lives in some other assembly you don’t own (i.e., can’t modify or view source). Perhaps you want to add a method that does something with the properties of that class. Traditionally you’d make an extension method that’s static.
  • With public implicit extension MyExtension for SomeClass, you can remove the need for things being static, and you can make extension properties.
  • Nick believes this will replace extension methods.

Tutorial: Create a Razor Pages web app with ASP.NET Core

The tech stack I use at work is Angular + .NET Core, so I wanted to take a look at other .NET approaches to building web applications.

The Terrible Keyword that C# 13 FINALLY Fixed! (via Nick Chapsas)

  • The params keyword lets you invoke a method with any number of arguments, where that method looks something like MyMethod(params int[] numbers). There are performance issues with boxing, and the argument type must be an array (i.e., not a list or enumerable type).
  • C# 13 lets you use enumerable types and spans with the params keyword.

Leadership

Are we celebrating the wrong leaders? (via TED)

  • The speaker mentioned two people that explored the north pole: Ernest Shackleton (well-known), and Roald Amundsen. Shackleton failed numerous times, however brought much attention to himself. Amundsen planned carefully and had an uneventful yet successful trip.
  • Action fallacy — a mistaken belief that the best leaders are the ones that generate the most noise, action, and sensational activity in the most dramatic circumstances; we confuse a good story for good leadership
  • We tend to see leaders as those who (a) speak more, regardless of what they say (b) confident, regardless of how competent they are, (c) perpetually busy, regardless of what they’re actually doing.
  • Appearing to be a good leader is the path to success, bonuses, and promotions today.
  • Ignore the “captains of crises” — sailing from one dramatic circumstance to another. These people are often good storytellers giving us a false sense of inspiration. Refuse to give these people the attention they crave.
  • Celebrate those who mitigate rather than promote drama. They are planners. They build processes that align strengths with the challenges being faced. They are authentic and create cultures that bring out the best in people.
  • “The evidence is clear that boring management matters.” — Raffaella Sadun