https://bugzilla.wikimedia.org/show_bug.cgi?id=32969

--- Comment #2 from Van de Bugger <[email protected]> 2011-12-12 21:40:00 
UTC ---
> Sorry Van, but the needs of the many outweigh the needs of the few :)

Let us consider few scenarios:

1. `Maps' extension does not include `Validator' but warns:
1a. If user included `Validator' before `Maps' -- everything is ok.
1b. If user included `Validator' after `Maps' (or did not include at all) --
s/he has a error message: "Please include `Validator' before `Maps'" -- it
requires less than a minute to fix the problem.
2. `Maps' extension includes `Validator':
2a. If user included `Validator' before `Maps' -- everything is ok.
2b1. If user included *the same* `Validator' after `Maps' -- everything is ok.
2b2. If user included *another* `Validator' after `Maps' -- strange PHP errors,
no clue what is the problem.

I understand that only very few users will see the case 2b2, but they will be
in very bad situation. PHP (unlike to modern C++ compilers) does not show the
location where the symbol was defined for the first time. Moreover, web
application is not simple for debugging. Understanding what the cause of the
problem may take a lot of time.

I spend a noticeable part of my life hunting problems in software, so I hate
unclear error messages.

You can avoid unclear error message, but decide not to do it. Ok, that's your
choice.

> So I suggest you just remove the auto inclusion line in every version of the
> extension you have to avoid this.

Jeroen, you see that I already know the cause of the problem, so the suggestion
is useless to me. I have put a comment to my `LocalSettings.php':

#################################################
# `Validator' must be included before `Maps'!!! #
#################################################

But somebody else can face this problem in future, and get stuck. You are
leaving them with no help.

Praemonitus praemunitus.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to