News for hackers. Stuff that matters.
Re:Paving the on-ramp to Java by RockingGoodNite on Thursday September 29, 2022 @09:15AM (#33020164)
static should be removed from Java. static is bad, not always but because it can be misused and because it makes debugging more difficult and most important of all, it makes testing impossible and PowerMock is to be avoided at all costs.
Re:Paving the on-ramp to Java by ahtihn on Thursday September 29, 2022 @12:02PM (#33022560)
Right, methods that call Math.min() are literally untestable without PowerMock.