Category: code review
This is a legacy code snippet that uses the magic goto, which I find it very difficult to understand and refactor. doit: foreach (var line in dict.Values) { var …
Magic numbers are not good, we want to avoid them as much as we can. However, there is one exception, as described in the following C# example: public void …
There is a piece of bad-smelling code, I happen to read today. The following aims to compute the angle between two line vectors. This code has been in the …
This is a code change that I observe today. It has been in the codebase for a long time, and I find it interesting to talk about it. The …
There was a time that a bug was assigned to me saying that my module was slow as hell. I did profile my module (Delphi Native Win32 DLL Module) …