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

Alexandr Ignatiev <ignatus31...@mail.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ignatus31...@mail.ru

--- Comment #34 from Alexandr Ignatiev <ignatus31...@mail.ru> 2012-01-19 
17:33:52 UTC ---
People, you generals are talking here, but I'm a simple russian template writer
and I see that the situation with string automation is insufficient, and it's
an 0_o 0_o that it's keeping insufficient for years.

The main leak is that we can get left side of string by {{padleft:}}, but there
is nothig which can give us the right side. The effect is that {{Str right}}
works with step by step comparing each symbol with any point of alphabet. 
  * This seems to be less effective than 10 times more used special functions.
  * There is no way to cover all the Unicode in such way, while there are much
of very exotic words which might have need to be treatened automatically (e.g.
wouldn't one write a brief course of Martian language on Wikiversity and want
to automate declesion table creation).
  * You said A, please say B. If we've got the left side of string, it's boring
for us to wait for the right side for >5 years.

Nearly the same happens w {{Str len}}. OK, a good Perl regexp replacer can hang
the server and even crack it, even {{#rep:}} can slow it down, but only pair of
strlen() and substr() will make a great improvement of use without any
productivity loss. Can anyone strip them from StringExtension and install on
WMF projects separately from other ones? I haven't dealed w this code much but
believe it's two good weekends of 2-3 men at much most. I'm even not asking for
strpos() since {{Str pos}} at least has nearly similary sane algorithm.

P.S. I don't think builtin script engine is well for Wikipedia. Most templates
are written by people who know Martian language, not Lua. It's possible to
write as bad program on any language as on MadParserFunctionStringRegexScript,
and it will be done. But it's not a reason of doing nothing. If MW won't be
developed on WMF, it will then there deprecate and WMF with it, with all my
respects to its great awards till nowadays.

With best wishes, [[:ru:User:Ignatus]].

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

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to