Summon Resists and Fire Golem
#8
Yes. It is a very poor programming practice. I'm a huge stickler for maintaining domain integrity within software. The way that Blizzard should code it is to check for overflow or underflow before the calculation, and if the result is outside the acceptable domain of values, then set the value equal to the max value or min value appropriately. That goes for all stats, skills, etc.

As they add more options for manipulating the values, the opportunity for untested, and unexpected results skyrockets. So if you enforce your domain boundaries, then you should never overflow, and also never get unexpected results from pushing the values beyond the tested ranges.

This is why universities teach programmers courses on numerical methods, yet it is unfortunate that not many programmers paid much attention to them. The only tricky part is to determine whether the overflow or underflow would occur without having to perform the offending calculation. All this stuff is very available in open C++ libraries.
”There are more things in heaven and earth, Horatio, Than are dreamt of in your philosophy." - Hamlet (1.5.167-8), Hamlet to Horatio.

[Image: yVR5oE.png][Image: VKQ0KLG.png]

Reply


Messages In This Thread
Summon Resists and Fire Golem - by Vornzog - 06-29-2003, 07:57 PM
Summon Resists and Fire Golem - by Baajikiil - 06-29-2003, 08:57 PM
Summon Resists and Fire Golem - by Vornzog - 06-30-2003, 05:38 AM
Summon Resists and Fire Golem - by Ruvanal - 06-30-2003, 01:58 PM
Summon Resists and Fire Golem - by Baajikiil - 06-30-2003, 02:22 PM
Summon Resists and Fire Golem - by Vornzog - 06-30-2003, 03:27 PM
Summon Resists and Fire Golem - by Baajikiil - 06-30-2003, 04:01 PM
Summon Resists and Fire Golem - by kandrathe - 06-30-2003, 04:34 PM
Summon Resists and Fire Golem - by Vornzog - 06-30-2003, 04:57 PM
Summon Resists and Fire Golem - by Vornzog - 06-30-2003, 05:13 PM
Summon Resists and Fire Golem - by Baajikiil - 06-30-2003, 05:33 PM
Summon Resists and Fire Golem - by gekko - 06-30-2003, 06:13 PM
Summon Resists and Fire Golem - by Occhidiangela - 06-30-2003, 06:50 PM
Summon Resists and Fire Golem - by Baajikiil - 06-30-2003, 09:49 PM
Summon Resists and Fire Golem - by Vornzog - 06-30-2003, 10:40 PM
Summon Resists and Fire Golem - by Vornzog - 06-30-2003, 10:51 PM
Summon Resists and Fire Golem - by Ruvanal - 06-30-2003, 11:37 PM
Summon Resists and Fire Golem - by Baajikiil - 07-01-2003, 02:42 AM

Forum Jump:


Users browsing this thread: 10 Guest(s)