Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #21435 > unrolled thread
| Started by | bob smith <bob@coolfone.comze.com> |
|---|---|
| First post | 2013-01-16 07:38 -0800 |
| Last post | 2013-01-16 23:33 -0800 |
| Articles | 10 — 8 participants |
Back to article view | Back to comp.lang.java.programmer
Javadoc rethinking? bob smith <bob@coolfone.comze.com> - 2013-01-16 07:38 -0800
Re: Javadoc rethinking? Arne Vajhøj <arne@vajhoej.dk> - 2013-01-16 11:00 -0500
Re: Javadoc rethinking? Martin Gregorie <martin@address-in-sig.invalid> - 2013-01-16 20:14 +0000
Re: Javadoc rethinking? Martin Gregorie <martin@address-in-sig.invalid> - 2013-01-16 22:11 +0000
Re: Javadoc rethinking? Lew <lewbloch@gmail.com> - 2013-01-16 17:00 -0800
Re: Javadoc rethinking? Martin Gregorie <martin@address-in-sig.invalid> - 2013-01-17 01:25 +0000
Re: Javadoc rethinking? Steven Simpson <ss@domain.invalid> - 2013-01-16 18:49 +0000
Re: Javadoc rethinking? "John B. Matthews" <nospam@nospam.invalid> - 2013-01-17 00:35 -0500
Re: Javadoc rethinking? Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2013-01-16 21:18 +0200
Re: Javadoc rethinking? Roedy Green <see_website@mindprod.com.invalid> - 2013-01-16 23:33 -0800
| From | bob smith <bob@coolfone.comze.com> |
|---|---|
| Date | 2013-01-16 07:38 -0800 |
| Subject | Javadoc rethinking? |
| Message-ID | <3b10d0bb-0307-4365-b762-d619fd3c608b@googlegroups.com> |
Am I the only one who thinks that maybe there ought to be some improvements to the Javadoc process? I was just looking at a Javadoc for a DatePickerDialog, and it seemed like it was missing something… that something was an image of an example of the dialog. I think that would have been very helpful. However, Javadocs don't support images, and it is not necessarily good for the crucial documentation to be mingled with the code. Does anyone else think the Javadoc idea could perhaps use some rethinking?
[toc] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2013-01-16 11:00 -0500 |
| Message-ID | <50f6cebb$0$285$14726298@news.sunsite.dk> |
| In reply to | #21435 |
On 1/16/2013 10:38 AM, bob smith wrote: > Am I the only one who thinks that maybe there ought to be some > improvements to the Javadoc process? > > I was just looking at a Javadoc for a DatePickerDialog, and it seemed > like it was missing something… that something was an image of an > example of the dialog. I think that would have been very helpful. > > However, Javadocs don't support images, and it is not necessarily > good for the crucial documentation to be mingled with the code. JavaDoc support HTML tags and I would assume they support IMG tag?? Arne
[toc] | [prev] | [next] | [standalone]
| From | Martin Gregorie <martin@address-in-sig.invalid> |
|---|---|
| Date | 2013-01-16 20:14 +0000 |
| Message-ID | <kd71nq$5p4$1@localhost.localdomain> |
| In reply to | #21436 |
On Wed, 16 Jan 2013 11:00:58 -0500, Arne Vajhøj wrote: > On 1/16/2013 10:38 AM, bob smith wrote: >> Am I the only one who thinks that maybe there ought to be some >> improvements to the Javadoc process? >> >> I was just looking at a Javadoc for a DatePickerDialog, and it seemed >> like it was missing something… that something was an image of an >> example of the dialog. I think that would have been very helpful. >> >> However, Javadocs don't support images, and it is not necessarily good >> for the crucial documentation to be mingled with the code. > > JavaDoc support HTML tags and I would assume they support IMG tag?? > Yes, the Javadocs docs say you can put both HTML and images in the doc- files directory. The only I have is that the docs say you should not put a <title> section in package.html because this causes a conflict with HTML-tidy. Fortunately, you can ignore this: running "tidy -m ..." generates a <title> section which does not cause any problems with javadocs - at least, none that I can see. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |
[toc] | [prev] | [next] | [standalone]
| From | Martin Gregorie <martin@address-in-sig.invalid> |
|---|---|
| Date | 2013-01-16 22:11 +0000 |
| Message-ID | <kd78ja$7cm$2@localhost.localdomain> |
| In reply to | #21446 |
On Wed, 16 Jan 2013 20:14:50 +0000, Martin Gregorie wrote: > On Wed, 16 Jan 2013 11:00:58 -0500, Arne Vajhøj wrote: > >> On 1/16/2013 10:38 AM, bob smith wrote: >>> Am I the only one who thinks that maybe there ought to be some >>> improvements to the Javadoc process? >>> >>> I was just looking at a Javadoc for a DatePickerDialog, and it seemed >>> like it was missing something… that something was an image of an >>> example of the dialog. I think that would have been very helpful. >>> >>> However, Javadocs don't support images, and it is not necessarily good >>> for the crucial documentation to be mingled with the code. >> >> JavaDoc support HTML tags and I would assume they support IMG tag?? >> > Yes, the Javadocs docs say you can put both HTML and images in the doc- > files directory. > > The only I have is that the docs say you should not put a <title> > section in package.html because this causes a conflict with HTML-tidy. > Fortunately, you can ignore this: running "tidy -m ..." generates a > <title> section which does not cause any problems with javadocs - at > least, none that I can see. > Sorry: that should read: "The only niggle I have is that the Javadocs docs say you should not put a <title> section in package.html because this causes a conflict with HTML-tidy." -- martin@ | Martin Gregorie gregorie. | Essex, UK org |
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2013-01-16 17:00 -0800 |
| Message-ID | <98bee018-641f-4f45-a7c9-31a03842733d@googlegroups.com> |
| In reply to | #21449 |
Martin Gregorie wrote: > "The only niggle I have is that the Javadocs docs say you should not put > a <title> section in package.html because this causes a conflict with > HTML-tidy." I thought we were supposed to use package-info.java anyway, not package.html. http://docs.oracle.com/javase/7/docs/technotes/tools/solaris/javadoc.html#packagecomment -- Lew
[toc] | [prev] | [next] | [standalone]
| From | Martin Gregorie <martin@address-in-sig.invalid> |
|---|---|
| Date | 2013-01-17 01:25 +0000 |
| Message-ID | <kd7juf$alo$1@localhost.localdomain> |
| In reply to | #21455 |
On Wed, 16 Jan 2013 17:00:45 -0800, Lew wrote: > Martin Gregorie wrote: >> "The only niggle I have is that the Javadocs docs say you should not >> put a <title> section in package.html because this causes a conflict >> with HTML-tidy." > > I thought we were supposed to use package-info.java anyway, not > package.html. > http://docs.oracle.com/javase/7/docs/technotes/tools/solaris/ javadoc.html#packagecomment package-info.java is only 'preferred' over package.html: the latter is not deprecated and IME is sometimes preferable simply because its pure HTML and hence easier to synchronise with other documentation, e.g. manpages or in situations when you want to inject HTML <a> tags which link to HTML pages or images in the associated doc-files directory. The advantage of using package.html rathyer than package-info.java is that you can check package.html with HTML-tidy or even (shudder) use some WYSIWYG HTML authoring tool or word processor to maintain it. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |
[toc] | [prev] | [next] | [standalone]
| From | Steven Simpson <ss@domain.invalid> |
|---|---|
| Date | 2013-01-16 18:49 +0000 |
| Message-ID | <da9js9-9o3.ln1@s.simpson148.btinternet.com> |
| In reply to | #21435 |
On 16/01/13 15:38, bob smith wrote: > However, Javadocs don't support images, and it is not necessarily good for the crucial documentation to be mingled with the code. <http://docs.oracle.com/javase/7/docs/technotes/tools/solaris/javadoc.html#unprocessed> -- ss at comp dot lancs dot ac dot uk
[toc] | [prev] | [next] | [standalone]
| From | "John B. Matthews" <nospam@nospam.invalid> |
|---|---|
| Date | 2013-01-17 00:35 -0500 |
| Message-ID | <nospam-3759C6.00351417012013@news.aioe.org> |
| In reply to | #21444 |
In article <da9js9-9o3.ln1@s.simpson148.btinternet.com>, Steven Simpson <ss@domain.invalid> wrote: > On 16/01/13 15:38, bob smith wrote: > > However, Javadocs don't support images, and it is not necessarily > > good for the crucial documentation to be mingled with the code. > <http://docs.oracle.com/javase/7/docs/technotes/tools/solaris/javadoc.html#unprocessed> As a concrete example, the images accompanying GridLayout <http://docs.oracle.com/javase/7/docs/api/java/awt/GridLayout.html> may be found among the doc-files of the awt package: $ ls -1 java/awt/doc-files/GridLayout-* java/awt/doc-files/GridLayout-1.gif java/awt/doc-files/GridLayout-2.gif -- John B. Matthews trashgod at gmail dot com <http://sites.google.com/site/drjohnbmatthews>
[toc] | [prev] | [next] | [standalone]
| From | Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> |
|---|---|
| Date | 2013-01-16 21:18 +0200 |
| Message-ID | <lvlibt2ays.fsf@saunalahti.fi> |
| In reply to | #21435 |
ram@zedat.fu-berlin.de (Stefan Ram) writes: > bob smith <bob@coolfone.comze.com> writes: >>However, Javadocs don't support images, > Writing an image of a DatePickerDialog in a JavaDoc- > compatible way only did cost me about 7 minutes. > .--------------------------------------. > | -- | > | |\_| perjantaina 10, kesäkuuta | > | '__' 2011 | > (I do not know the language of the dialog as used above.) It's Finnish. (Friday, 10th of June) Funny that you happened to use it without even recognizing the language. -- Jukka Lahtinen
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2013-01-16 23:33 -0800 |
| Message-ID | <q2aff8p4npd85ga3mvddq8p34u30md6o4r@4ax.com> |
| In reply to | #21435 |
On Wed, 16 Jan 2013 07:38:18 -0800 (PST), bob smith <bob@coolfone.comze.com> wrote, quoted or indirectly quoted someone who said : > >I was just looking at a Javadoc for a DatePickerDialog, and it seemed like = >it was missing something=85 that something was an image of an example of t= >he dialog. I think that would have been very helpful. AMEN! I have often wanted to illustrate layouts too. Another feature I would like is commentary on @see to explain why that other reference might be germane. Or how it differs from this method. If you start inserting entities, the Javadoc quickly becomes unreadable to the programmer. The IDE should render it or there should be some way to write it without entities. Perhaps we should presume UTF-8 for all Java source. -- Roedy Green Canadian Mind Products http://mindprod.com The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time. ~ Tom Cargill Ninety-ninety Law
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web