News for hackers. Stuff that matters.
Re:Automated Unit Test Improvement Using Large Language Mode... by barco on Saturday February 17, 2024 @09:52AM (#39409933)
If you name it `NUMBER_ELEMENTS_AVERAGED`, then when you add a new element to average, you will miss the fact that you also need to modify that value :)

You either have them on a list and calculate it dynamically based on the size, or have it as a magic number.

There are no comments on this comment yet.