C#: why ability to lock on any object was a bad idea
Any programming language gives you plenty of opportunities to shoot yourself in the foot, and C# is probably not the worst, but I ran into an interesting example today. C# […]
Any programming language gives you plenty of opportunities to shoot yourself in the foot, and C# is probably not the worst, but I ran into an interesting example today. C# […]
I’ve been using Whatsapp for about 2 years now, and it was more or less OK, until I bought a new phone and tried to move my account there. This […]
TL;DR: wrapping existing method DoSomething(MyData data), with an identically named generic extension method DoSomething<T>(T data) is a bad idea, since it erases compile-time type checking. DoSomething() may now be called […]
I have finally memorized one simple mathematical statement that is true for pretty much any number you can think of, but is in fact verifiably false, with known counterexamples. The […]
I created an ASP.NET core project with docker support. Good thing: it works. Bad thing: the “dev” image it creates does not really contain application code. The code is added […]
It turns out that after re-registering type as a singleton in Unity calls to container.Resolve() return a new instance. This may lead and have led to ugly bugs if your code relies […]
Google had shut down Recaptcha v1 on March 31st, killing my feedback page in the process. I found out yesterday, fixed today. Pros: new captcha is much easier to use […]
Today I spent several hours trying to find out why this code does not work: function doit() { return someObject .method1() .method2(); } but this one does: function doit() { […]
Coming back from .NET Framework, it feels like Win32 API was invented by some rather cold people with total disregard for the well being of the application programmers. Every other […]
Warning: this post is politically charged. Russia has just enacted a law that forbids dessimination of “untruthful information” over the Internet. The actual legal definition is very lengthy, but it […]