You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "J.Pietschmann" <j3...@yahoo.de> on 2003/02/11 19:10:16 UTC

Re: cvs commit: xml-fop/src/org/apache/fop/render AbstractRenderer.java

jeremias@apache.org wrote:
>   Fixes a cause for a NPE. Doesn't fix the obvious bug, though.
>   +        	final String pageNumber = (area.getPage() != null 

Dammit, does this mean the page can be already null?
In this case the following:

>                log.error("Areas pending, text probably lost. Check Page " +
>   +                      pageNumber +

is basically useless. "Check Page <unknown>...", this would
drive me crazy for certain. Are there cases where a page
number was actually shown?
The dropped text could be retrieved from the pending area,
however, I think a page number to check would be really
useful too.

Also, why does this problem get so much attention recently?
It was mentioned only three or four times in two years!

J.Pietschmann



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


RE: Throwing away code was: Re: cvs commit:

Posted by Patrick Dean Rusk <Pa...@attbi.com>.
> I think that the reason resources are not forthcoming
> is because of the barriers to entry that we have raised,
> the largest being that, if you want to work on the code,
> you really only get to work on the code that doesn't run.
> For most people, that is a no starter. I think when the
> trunk works reasonably well, resources will appear again.

Victor,

	You describe my situation exactly here.  I would be working on FOP
development to get inline containers working right now if such work was
possible to be done on the maintenance branch.

	However, the dynamic that any work that I contribute to the trunk might not
see the light of day in the time frame of my project has restricted me to
guiding my project within the limitations of the maintenance branch until I
get my version 1.0 out.  Then, I might be able to work on the trunk, and I'm
secretly hoping that it will be in good working shape by that time.

	That said, I probably would have been on the redesign bandwagon were I
around before, because I've got all of the qualities mentioned in that
article of why programmers do that.  I very much enjoyed the article, and I
think it speaks a lot of wisdom that accords with what I've seen in the
past.  I will think twice the next time a rewrite from scratch is proposed.

	I certainly think it describes in spades everything that was wrong with the
whole Netscape/Mozilla effort.

Patrick Rusk


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


RE: Throwing away code was: Re: cvs commit:

Posted by Victor Mote <vi...@outfitr.com>.
Jeremias Maerki wrote:

> On 11.02.2003 20:55:40 J.Pietschmann wrote:

...

> > Actually, the way the redesign was attempted was probably a
> > bad idea. See
> >   http://www.joelonsoftware.com/articles/fog0000000069.html
> >
> > Seems we have now the worst of all, with a reasonably working
> > but outdated code in the maintenace branch and a huge investment,
> > but still not fully working code in HEAD :-(
>
> We took a decision and I can still live with it. Nobody said it would be
> easy. Of course, it would be nice if we got some more resources in form
> of people working on the redesign or even funding to developers or
> committers... The biggest problem is probably that we lost a lot of
> knowledge (and possble workpower) when important committers left. At
> least you can say that the redesign holds some promising prespectives
> (IMO).

Sorry, I have to agree with Joerg here, although I have no desire to reopen
the issue. I would rather have done a million refactorings to get us where
we want to go than to maintain two sets of code. I think that the reason
resources are not forthcoming is because of the barriers to entry that we
have raised, the largest being that, if you want to work on the code, you
really only get to work on the code that doesn't run. For most people, that
is a no starter. I think when the trunk works reasonably well, resources
will appear again. <Caution: Blatant pontification follows> The sine qua non
of open source software is that the code works. Any experimental code that
doesn't work but needs to get checked in should go onto a branch until it
works. Commercial software developers might be able to get away with a
different approach, if they hold enough cash in their hand to buy the
resources to get them across the hump. The transitory nature of open source
resources dictates that every incremental change (on the trunk anyway) be
pretty much logically complete, and (by intention anyway) better /even in
the short term/ than what was there before.

All of that said, I am committed to the redesign, and frankly can't wait to
get back to it. This is not only an extraordinary project, but it has an
extraordinary crew (but let's don't ever do it this way again ... please).

Victor Mote


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Throwing away code was: Re: cvs commit:

Posted by Jeremias Maerki <de...@greenmail.ch>.
On 11.02.2003 20:55:40 J.Pietschmann wrote:
> Jeremias Maerki wrote:
> >>Dammit, does this mean the page can be already null?
> > Sounds like it. :-)
> Where the hell is it nulled? I can't find it!

It is never set. Area.setPage() is never called for LineAreas or so
Eclipse tries to tell me.

> > When I tracked down the bug, I tought a function on LineArea would be
> > nice that constructs a String from its children so you get some context
> > in your FO file.
> Hmhm.

:-)

> > Does it? Well, bugs are bugs, but it bugs me that they still distract us
> > so much from the redesign. Wouldn't life be beautiful if we didn't have
> > to provide support? Just kidding.
> 
> Actually, the way the redesign was attempted was probably a
> bad idea. See
>   http://www.joelonsoftware.com/articles/fog0000000069.html
>
> Seems we have now the worst of all, with a reasonably working
> but outdated code in the maintenace branch and a huge investment,
> but still not fully working code in HEAD :-(

We took a decision and I can still live with it. Nobody said it would be
easy. Of course, it would be nice if we got some more resources in form
of people working on the redesign or even funding to developers or
committers... The biggest problem is probably that we lost a lot of
knowledge (and possble workpower) when important committers left. At
least you can say that the redesign holds some promising prespectives 
(IMO).

Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Throwing away code was: Re: cvs commit:

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Jeremias Maerki wrote:
>>Dammit, does this mean the page can be already null?
> Sounds like it. :-)
Where the hell is it nulled? I can't find it!

> When I tracked down the bug, I tought a function on LineArea would be
> nice that constructs a String from its children so you get some context
> in your FO file.
Hmhm.

> Does it? Well, bugs are bugs, but it bugs me that they still distract us
> so much from the redesign. Wouldn't life be beautiful if we didn't have
> to provide support? Just kidding.

Actually, the way the redesign was attempted was probably a
bad idea. See
  http://www.joelonsoftware.com/articles/fog0000000069.html

Seems we have now the worst of all, with a reasonably working
but outdated code in the maintenace branch and a huge investment,
but still not fully working code in HEAD :-(

J.Pietschmann



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: cvs commit: xml-fop/src/org/apache/fop/render AbstractRenderer.java

Posted by Jeremias Maerki <de...@greenmail.ch>.
On 11.02.2003 19:10:16 J.Pietschmann wrote:
> jeremias@apache.org wrote:
> >   Fixes a cause for a NPE. Doesn't fix the obvious bug, though.
> >   +        	final String pageNumber = (area.getPage() != null 
> 
> Dammit, does this mean the page can be already null?

Sounds like it. :-)

> In this case the following:
> 
> >                log.error("Areas pending, text probably lost. Check Page " +
> >   +                      pageNumber +
> 
> is basically useless. "Check Page <unknown>...", this would
> drive me crazy for certain. Are there cases where a page
> number was actually shown?

Not in the example I've examined today.

> The dropped text could be retrieved from the pending area,
> however, I think a page number to check would be really
> useful too.

When I tracked down the bug, I tought a function on LineArea would be
nice that constructs a String from its children so you get some context
in your FO file.

> Also, why does this problem get so much attention recently?
> It was mentioned only three or four times in two years!

Does it? Well, bugs are bugs, but it bugs me that they still distract us
so much from the redesign. Wouldn't life be beautiful if we didn't have
to provide support? Just kidding.


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org