Ok, time to rant about something specific but god damn it stupid people annoy me and make my life so hard sometimes. First a little background to understand why I'm so annoyed. A lot of the time when coding you simply need to know if something is true or false, enabled or disabled, yes or no. You get the idea. Now the negative of these (false, disabled, no) is always always a zero value and following that the positive (true, enabled, yes) is always 1. This makes things simple and you can check thing very easily.
Guess what someone did. They defined their own type where they have enabled being 0 and disabled being 1. So now we have a case in the code of enabled being equal to disabled where different types are used. It looks fucking stupid and is confusing as hell to read. To make it worse we can't just change the wrong type values to the right way around since they are being stored in the permanent configuration in already released code. If we want to fix it we need to write an additional upgrader to the configuration to fix this mistake.
Just another case of someone's stupid shortsightedness that causes me more work dealing with this crap after people have moved on. This is just a simple one to do with a simple yes/no value, you can imagine what kind of shit people think up that you can see is downright dumb with a moments though. With that I'm now going to write some more code to deal with this stuff. *grumble grumble grumble*
No comments:
Post a Comment