Lindax wrote:Yehaa! The REMATCH button is announced.
Unfortunately it seems to create more problems/loopholes than anything else. You would think smart people like computer programmers (or whatever they are) would think of those beforehand and/or test stuff before implementing it....
Yeah, being negative again. So, give me a reason to be positive CC!
Lx
It's actually pretty lame that a programmer of a code that hundreds of thousands use cannot foresee the problems the new code will create, specially if it is something very simple.
Let's get technical, and this will very simple, but then again good code is always simple and elegant:
The Rematch function should (in a good code) reuse the CreateGame function, such function should validate the selected options in the first lines, but either this doesn't happen in the CreateGame function and it's assumed (I believe because they are using the POST method) that never would this problem arise or the Rematch function has it's own code to create games and it was not properly validated. In the first case the CreateGame function has its validation before being invoked, or validation never happens?
Either way shows it's a badly written code. Now, the loophole it's harmless now, but it could be something more drastic, although many programmers catch every error by getting everything in a try-catch error handles which it's a bad programming technique IMO.
I've been out of the programming world for 10 years now and I did never get into HTML programming, which makes it worse because it shows the errors committed are very easily preventable.
This is not the first time something like this happens, it has happened many many times it's laughable. So really, by the time they take to implement stuff, the quality of the features and the abundant bugs, it's clear the programmer(s) leave a lot to be desired.
And I'm saying this because this site could use a lot of help, and it has too much room to expand.