All posts tagged “Professional Development

Professional Development – 2023 – Week 9

.NET Random Finally Gets Its Missing Methods in .NET 8 (via Nick Chapsas) Currently .NET has Random.Shared for non-critical random numbers, and RandomNumberGenerator for secure operations. The latter is about 7x slower. .NET 8 brings in Random.Shared.Shuffle() and Random.Shared.GetItems(source, number…

Professional Development – 2023 – Week 3

.NET The New Built-in Guard Clauses Coming in .NET 8 (via Nick Chapsas) We already have things like ArgumentNullException.ThrowIfNull(…) and ArgumentException.ThrowIfNullOrEmpty(string s). In .NET 8, ArgumentOutOfRangeException may potentially get methods to check for zero, negative, negative or zero, greater than,…