Category: code review
I found that AI can be very useful for auditing code security. For example, I had been using a wallet extension that supports STEEM and Blurt, but it suddenly …
One interesting use case for ChatGPT is its ability to assist in reviewing code in a Pull Request, which can be incredibly beneficial. By pasting the code into ChatGPT …
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 …