Re: create a string of <n> equal chars <c>
On Tue, 13 Jul 2010, Andreas Leitgeb wrote:
Jim Janney <jjanney@shell.xmission.com> wrote:
Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> writes:
It seems so basic that I can't believe such a feature wasn't in the
standard library
http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#leftPad(java.lang.String,%20int,%20char)
My rant was about the Java Standard Library
The standard library is already freak huge. If it had every item which
anyone couldn't believe wasn't in the standard library, it could be a very
leviathan, a behemoth, a colossus of codes.
What i think we could do with is a sort of Greater Standard Library. Some
way of giving certain packages official blessing, so that if you built
code on top of them, you'd have a reasonable expectation that someone out
there who wanted to run your code would already have them. This already
exists de facto for certain things - log4j, quite a bit of Apache Commons,
JUnit, and so on, but it could be useful to put it on a more formal,
although not completely formal, basis. We could tie this up with a process
for merging different libraries approaching the same problem, reviewing
and improving and integrating things, etc. We would end up with something
like a more comprehensive standard library, but without the mandarins at
Sunacle (or JCP Towers - shudder) having to decree it.
Not that i'm volunteering to organise this, of course.
tom
--
blackguard, coward, git, guttersnipe, hooligan, ignoramus, liar, rat,
swine, stoolpigeon, and traitor