News for hackers. Stuff that matters.
Re:“I am literally losing sleep” over Java (1996) by _old_dude_ on Thursday January 06, 2022 @12:39PM (#29826740)
The "dynamic" keyword [1] is my favorite blunder in C#. It's great if you are use it for COM interropt but it's awful otherwise.

The code compiles but from time to time it fails at runtime and performance are sometimes Ok, sometimes not depending on the call stack.

[1] https://docs.microsoft.com/en-us/dotnet/csharp/programming-g...

Re:“I am literally losing sleep” over Java (1996) by sterlind on Thursday January 06, 2022 @03:07PM (#29829248)
dynamic is amazing for the extremely niche use case of interop with dynamic languages. I had a system which executed Python scripts on devices using an orchestrator written in C#. With dynamic and IronPython, I could seamlessly unit test the whole enchilada without writing un-Pythonic Python or ugly C# wrappers.