[Advanced-java] Coding String.indexOf() with ignore quoted
Steven J. Owens
puffmail at darksleep.com
Sun Apr 13 20:06:58 2003
On Sun, Apr 13, 2003 at 09:46:20AM -0400, Nikolaos Giannopoulos wrote:
> > -----Original Message-----
> > From: advanced-java-bounces@lists.xcf.berkeley.edu
> > [mailto:advanced-java-bounces@lists.xcf.berkeley.edu]On Behalf Of Steven
> > J. Owens
> >
> >
> > It's because, to quote Knuth, "Early optimization is the root of
> > all evil." <snip>
>
> Yes, but isn't this is an Advanced Java forum? Honestly, I'm not about to
> ask a question of this nature if I don't have good reason to ask - I'm sure
> others do and that may cause confusion - but the majority of those posts are
> one time posts from new users.
*You* know that, and now *I* know that, but how can *we* know
that beforehand? :-).
> Moreover, the blanket "don't worry, just optimize where you need it
> later", does nothing to advance solving the problem at hand.
I've burned a lot of time and energy over the years, trying to
help people solve the wrong problem. I think anybody who sticks with
it (sticks with helping people, that is) for any length of time comes
to the conclusion, sooner or later, that step one is making sure
you're solving the right problem.
> Once again I agree. Obviously I didn't clearly convey this fact in my
> initial post and will do so in the future and we'll see if I still 'get an
> optimize it later line' ;-)
I'm sure you will, sooner or later :-).
Steven J. Owens
puff@darksleep.com
"I'm going to make broad, sweeping generalizations and strong,
declarative statements, because otherwise I'll be here all night and
this document will be four times longer and much less fun to read.
Take it all with a grain of salt." - Me at http://darksleep.com