Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2012-12

Brook 1.0 - A new framework for web was born

39 messages · 12 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

silvioprog

Hello all,

More than 15,000 lines of source code, more than 90 test cases, more than one year of work. Today, a new framework for web development was born. It's name is Brook and its nice features are available for you. I thank the FPWeb, the Freespider, the Powtils, the ExtPascal, the CustCGI and the EazyCGI developers. I got inspiration in all of them and and still in Rails and Slim Framework.

Special thanks, I drive to João Moraes, who gave me valuable advices to decoupling the code. Thanks for Luciano de Souza, responsible for the documentation and the name of methods and properties. Thanks also for Marcos Douglas, the author of Greyhound, project wich started as an inspiration and finished as a valuable partner in the new web ways.

Finally, I thank for the Free Pascal and Lazarus community for the precious tips and quick helps.

I was thinking about what to write in the launching e-mail. But, there's no much to say. The site of Brook and its documentation will speak for me. So I present the Brook's house:

http://brookframework.org

Your visit will be appreciated.

Their, you find the documentation, you find examples running online and you find also the hopeness this work will be very useful to the Free Pascal and Lazarus commoties.

On Sunday, I am going to start my vacations. Thanks God. The work is ready and the conscious is quiet.

Enjoy!

Silvio Clécio My public projects - github.com/silvioprog

Reply by email

Rainer Stratmann
to silvioprog

Does it only work with Apache?

silvioprog wrote 34 lines
Hello all, More than 15,000 lines of source code, more than 90 test cases, more than one year of work. Today, a new framework for web development was born. It's name is Brook and its nice features are available for you. I thank the FPWeb, the Freespider, the Powtils, the ExtPascal, the CustCGI and the EazyCGI developers. I got inspiration in all of them and and still in Rails and Slim Framework. Special thanks, I drive to João Moraes, who gave me valuable advices to decoupling the code. Thanks for Luciano de Souza, responsible for the documentation and the name of methods and properties. Thanks also for Marcos Douglas, the author of Greyhound, project wich started as an inspiration and finished as a valuable partner in the new web ways. Finally, I thank for the Free Pascal and Lazarus community for the precious tips and quick helps. I was thinking about what to write in the launching e-mail. But, there's no much to say. The site of Brook and its documentation will speak for me. So I present the Brook's house: http://brookframework.org Your visit will be appreciated. Their, you find the documentation, you find examples running online and you find also the hopeness this work will be very useful to the Free Pascal and Lazarus commoties. On Sunday, I am going to start my vacations. Thanks God. The work is ready and the conscious is quiet. Enjoy!

Reply by email

luciano de souza
to silvioprog: More than 15,000 lines of source code, more than 90 test cases, more than one year of…

No, Brook works with any web server. Apache is only the an example and the preference of the author.

2012/12/15, silvioprog :

Show quoted text 39 lines
Hello all, More than 15,000 lines of source code, more than 90 test cases, more than one year of work. Today, a new framework for web development was born. It's name is Brook and its nice features are available for you. I thank the FPWeb, the Freespider, the Powtils, the ExtPascal, the CustCGI and the EazyCGI developers. I got inspiration in all of them and and still in Rails and Slim Framework. Special thanks, I drive to João Moraes, who gave me valuable advices to decoupling the code. Thanks for Luciano de Souza, responsible for the documentation and the name of methods and properties. Thanks also for Marcos Douglas, the author of Greyhound, project wich started as an inspiration and finished as a valuable partner in the new web ways. Finally, I thank for the Free Pascal and Lazarus community for the precious tips and quick helps. I was thinking about what to write in the launching e-mail. But, there's no much to say. The site of Brook and its documentation will speak for me. So I present the Brook's house: http://brookframework.org Your visit will be appreciated. Their, you find the documentation, you find examples running online and you find also the hopeness this work will be very useful to the Free Pascal and Lazarus commoties. On Sunday, I am going to start my vacations. Thanks God. The work is ready and the conscious is quiet. Enjoy! -- Silvio Clécio My public projects - github.com/silvioprog
Luciano de Souza

Reply by email

Rainer Stratmann
to luciano de souza

I thought the webserver itself was programmed in FreePascal...

luciano de souza wrote 42 lines
No, Brook works with any web server. Apache is only the an example and the preference of the author. 2012/12/15, silvioprog : > Hello all, > > More than 15,000 lines of source code, more than 90 test cases, more than > one year of work. Today, a new framework for web development was born. > It's name is Brook and its nice features are available for you. > I thank the FPWeb, the Freespider, the Powtils, the ExtPascal, the > CustCGI and the EazyCGI developers. I got inspiration in all of them and > and still in Rails and Slim Framework. > > Special thanks, I drive to João Moraes, who gave me valuable advices to > decoupling the code. Thanks for Luciano de Souza, responsible for the > documentation and the name of methods and properties. Thanks also for > Marcos Douglas, the author of Greyhound, project wich started as an > inspiration and finished as a valuable partner in the new web ways. > > Finally, I thank for the Free Pascal and Lazarus community for the > precious tips and quick helps. > > I was thinking about what to write in the launching e-mail. But, there's > no much to say. The site of Brook and its documentation will speak for > me. So I present the Brook's house: > > http://brookframework.org > > Your visit will be appreciated. > > Their, you find the documentation, you find examples running online and > you find also the hopeness this work will be very useful to the Free > Pascal and Lazarus commoties. > > On Sunday, I am going to start my vacations. Thanks God. The work is > ready and the conscious is quiet. > > Enjoy! > > -- > Silvio Clécio > My public projects - github.com/silvioprog

Reply by email

luciano de souza
to Rainer Stratmann

It would be very intersting, but in this moment, it would mean a lost of focus. The existant web servers are fortunately reliable. So Brook has prefered to invest in another aspects.
For example, the route handling. With one line, you can register a pattern to calll your URLs:

action1.register('/person/:id/');

In the above code, you are saying that:
1. The first level of your pathinfo is "/person";
2. The second level of your PathInfo is a variable containing an ID;
3. The final slash indicates that the URL will be a final slash even if you have forgoten it.

Examples:

http://www.mysite.com/person/25
http://www.mysite.com/person/25/

If only an example of the power of route handling. I think people will really appreciate the news Brook implements.

2012/12/15, Rainer Stratmann :

Show quoted text 54 lines
I thought the webserver itself was programmed in FreePascal... Am Saturday 15 December 2012 09:59:48 schrieb luciano de souza: > No, Brook works with any web server. Apache is only the an example and > the preference of the author. > > 2012/12/15, silvioprog : > > Hello all, > > > > More than 15,000 lines of source code, more than 90 test cases, more > > than > > one year of work. Today, a new framework for web development was born. > > It's name is Brook and its nice features are available for you. > > I thank the FPWeb, the Freespider, the Powtils, the ExtPascal, the > > CustCGI and the EazyCGI developers. I got inspiration in all of them > > and > > and still in Rails and Slim Framework. > > > > Special thanks, I drive to João Moraes, who gave me valuable advices to > > decoupling the code. Thanks for Luciano de Souza, responsible for the > > documentation and the name of methods and properties. Thanks also for > > Marcos Douglas, the author of Greyhound, project wich started as an > > inspiration and finished as a valuable partner in the new web ways. > > > > Finally, I thank for the Free Pascal and Lazarus community for the > > precious tips and quick helps. > > > > I was thinking about what to write in the launching e-mail. But, > > there's > > no much to say. The site of Brook and its documentation will speak for > > me. So I present the Brook's house: > > > > http://brookframework.org > > > > Your visit will be appreciated. > > > > Their, you find the documentation, you find examples running online and > > you find also the hopeness this work will be very useful to the Free > > Pascal and Lazarus commoties. > > > > On Sunday, I am going to start my vacations. Thanks God. The work is > > ready and the conscious is quiet. > > > > Enjoy! > > > > -- > > Silvio Clécio > > My public projects - github.com/silvioprog _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Luciano de Souza

Reply by email

luciano de souza
to Juha Manninen

Yes, there is a very nice tool. Its name is Pasdoc. Take a look here: http://sourceforge.net/projects/pasdoc/
For this project, the author has changed the source code of Pasdoc. Originally, it's compatible only with HTML 4, but the documentation was released in HTML 5.

2012/12/15, Juha Manninen :

Show quoted text 8 lines
May I ask how were the hierarchy and dependency graps generated? Is there a tool that can do it? Juha _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Luciano de Souza

Reply by email

Reinier Olislagers
to Juha Manninen
Juha Manninen wrote 9 lines
On Sat, Dec 15, 2012 at 12:50 PM, luciano de souza wrote: > Yes, there is a very nice tool. Its name is Pasdoc. Take a look here: > http://sourceforge.net/projects/pasdoc/ > For this project, the author has changed the source code of Pasdoc. > Originally, it's compatible only with HTML 4, but the documentation > was released in HTML 5. Cool, I didn't know it can do that.

FYI, Synapse uses pasdoc as well, I think...

Reply by email

Michalis Kamburelis
to luciano de souza: Yes, there is a very nice tool. Its name is Pasdoc. Take a look here:…
luciano de souza wrote 7 lines
Yes, there is a very nice tool. Its name is Pasdoc. Take a look here: http://sourceforge.net/projects/pasdoc/ For this project, the author has changed the source code of Pasdoc. Originally, it's compatible only with HTML 4, but the documentation was released in HTML 5.

And the improvements will be (I'm counting on it :) contributed back to PasDoc and available in it's next version, see
http://sourceforge.net/p/pasdoc/feature-requests/50/ :)

Michalis

Reply by email

Sven Barth
to Graeme Geldenhuys
Graeme Geldenhuys wrote 7 lines
On 15/12/12 17:08, Michalis Kamburelis wrote: > > And the improvements will be (I'm counting on it :) contributed back to > PasDoc and available in it's next version, More worrying is why fpdoc was not used. ;-)

Maybe because the authors prefered inline comments instead of fpdoc's XML files...

Regards,
Sven

Reply by email

silvioprog
to Michalis Kamburelis: And the improvements will be (I'm counting on it :) contributed back to PasDoc and…

2012/12/15 Michalis Kamburelis

Show quoted text 16 lines
luciano de souza wrote: > Yes, there is a very nice tool. Its name is Pasdoc. Take a look here: > http://sourceforge.net/**projects/pasdoc/<http://sourceforge.net/projects/pasdoc/> > For this project, the author has changed the source code of Pasdoc. > Originally, it's compatible only with HTML 4, but the documentation > was released in HTML 5. > > > And the improvements will be (I'm counting on it :) contributed back to PasDoc and available in it's next version, see http://sourceforge.net/p/** pasdoc/feature-requests/50/<http://sourceforge.net/p/pasdoc/feature-requests/50/>:) Michalis

I'll send the patchs as soon as I get back from vacation.

Thank you guy! :)

Silvio Clécio My public projects - github.com/silvioprog

Reply by email

silvioprog
to Sven Barth: Maybe because the authors prefered inline comments instead of fpdoc's XML files... Sven

2012/12/15 Sven Barth

Show quoted text 19 lines
On 15.12.2012 18:16, Graeme Geldenhuys wrote: > On 15/12/12 17:08, Michalis Kamburelis wrote: > >> >> And the improvements will be (I'm counting on it :) contributed back to >> PasDoc and available in it's next version, >> > > > More worrying is why fpdoc was not used. ;-) > Maybe because the authors prefered inline comments instead of fpdoc's XML files... Regards, Sven

Exactly, the reason is precisely this. But as FPDoc is a very good project and I have never used it, in future projects, it can be a very good option. :)

Silvio Clécio My public projects - github.com/silvioprog

Reply by email

Sven Barth
to silvioprog: More than 15,000 lines of source code, more than 90 test cases, more than one year of…
silvioprog wrote 6 lines
More than 15,000 lines of source code, more than 90 test cases, more than one year of work. Today, a new framework for web development was born. It's name is Brook and its nice features are available for you. I thank the FPWeb, the Freespider, the Powtils, the ExtPascal, the CustCGI and the EazyCGI developers. I got inspiration in all of them and and still in Rails and Slim Framework.

This sounds interesting. I'll evaluate your framework once I find the time to reimplement my website. :)

A small note though:
Here http://brookframework.org/get-started.html it should read "If you are a Lazarus user" instead of "If you is a Lazarus user"

Regards,
Sven

Reply by email

silvioprog
to Sven Barth

2012/12/16 Sven Barth

Show quoted text 19 lines
On 15.12.2012 04:24, silvioprog wrote: > More than 15,000 lines of source code, more than 90 test cases, more > than one year of work. Today, a new framework for web development was > born. It's name is Brook and its nice features are available for you. > I thank the FPWeb, the Freespider, the Powtils, the ExtPascal, the > CustCGI and the EazyCGI developers. I got inspiration in all of them and > and still in Rails and Slim Framework. > This sounds interesting. I'll evaluate your framework once I find the time to reimplement my website. :) A small note though: Here http://brookframework.org/get-**started.html<http://brookframework.org/get-started.html>it should read "If you are a Lazarus user" instead of "If you is a Lazarus user" Regards, Sven

Thank you very much Sven! I'm sure Brook will reply your expectations. :)

And, your fix was applied:

https://github.com/silvioprog/brook-site/commit/ca7a742cebcb95da99809506fd2a52a5ceb30eb5

Silvio Clécio My public projects - github.com/silvioprog

Reply by email

Graeme Geldenhuys
to Sven Barth: Maybe because the authors prefered inline comments instead of fpdoc's XML files... Sven
Sven Barth wrote
Maybe because the authors prefered inline comments instead of fpdoc's XML files...

A shame, because the more detailed the documentation, the more it obfuscates the code.

eg: Documentation Insight, a popular Delphi IDE plugin for documenting frameworks from inside the IDE's most requested feature... "external documentation files" because good documentation means lots of text and examples, thus lots and lots of code obfuscation.

Anyway, it the Brook author's choice.

Regards,
- Graeme -

Reply by email

Unknown author
to Graeme Geldenhuys
Graeme Geldenhuys wrote 12 lines
On 15/12/2012 21:22, Sven Barth wrote: > > Maybe because the authors prefered inline comments instead of fpdoc's > XML files... A shame, because the more detailed the documentation, the more it obfuscates the code. eg: Documentation Insight, a popular Delphi IDE plugin for documenting frameworks from inside the IDE's most requested feature... "external documentation files" because good documentation means lots of text and examples, thus lots and lots of code obfuscation.

Exactly the reason why fpdoc uses external XML.

A pasdoc-to-fpdoc conversion is on my TODO list. (tracker item 325689871 ;))

Michael.

Reply by email

Michalis Kamburelis
to Unknown author
Show quoted text 20 lines
On Sun, 16 Dec 2012, Graeme Geldenhuys wrote: > On 15/12/2012 21:22, Sven Barth wrote: >> >> Maybe because the authors prefered inline comments instead of fpdoc's >> XML files... > > A shame, because the more detailed the documentation, the more it > obfuscates the code. > > eg: Documentation Insight, a popular Delphi IDE plugin for documenting > frameworks from inside the IDE's most requested feature... "external > documentation files" because good documentation means lots of text and > examples, thus lots and lots of code obfuscation. Exactly the reason why fpdoc uses external XML. A pasdoc-to-fpdoc conversion is on my TODO list. (tracker item 325689871 ;))

(We're getting off-topic from Brook, sorry...)

A couple of answers (from the position of both PasDoc user and developer):

1. Although I personally prefer pasdoc, I was also thinking about implementing pasdoc output that produces fpdoc-compatible XML. This is quite easy to do in pasdoc (e.g. see our existing "simplexml" output), so if you want to do it this way, patches are surely welcome :) I wrote about it on http://pasdoc.sipsolutions.net/MichalisKamburelis#Fpdoc_output .

2. As for the discussion about whether it's better to have docs inside comments or as a separate files:

2.1. For what it's worth, you can place descriptions in separate files and still use PasDoc, see
http://pasdoc.sipsolutions.net/ReadDescriptionFromFile . Whether this format is cleaner or not than fpdoc's XML file is up to the debate, anyway you *can* use separate files for the documentation. We also have features like introduction/conclusion where you write completely separate pages using pasdoc markup.

2.2. As for whether it's better to place documentation in comments or in separate files, I wrote about this on
http://pasdoc.sipsolutions.net/MichalisKamburelis#Should_documentation_be_placed_inside_units_interface.2C_or_in_separate_files_.3F . And I still believe that generally the answer is "it is a matter of taste".

It comes down to the fact that I don't mind having a large unit interface with long comments inside. I don't see this as "code obfuscation", I see my comments and examples as crucial and useful information that I want to keep together with the interface. You no longer can easily see the list of all your methods "at a glance", but you can see them in the pasdoc output, so no loss.

And the big advantage of keeping documentation inside source code is that it makes documentation easier to keep synchronized with code. Patches to the source code often naturally contain also changes to the related documentation in the interface. This keeps docs very up-to-date in my experience, which also means complete. YMMV of course, but I definitely know examples of PasDoc-produced documentation where it's very complete and useful.

With documentation in a separate file, there is a risk that you will see writing documentation as a "separate task", where you need to go edit "these other files". In such case, chances of getting contributions that update both the source *and* the relevant documentation are much lower, at least in my experience.

One practical note is also that "documentation in source code" approach is used by many tools in a lot of other languages too: Doxygen, OcamlDoc, JavaDoc, PhpDoc... Languages like Python and Lisp even recommend to place docs inside special strings in code (not just comments). So, somehow this approach can work Ok :)

Michalis

Reply by email

Unknown author
to Michalis Kamburelis

Hi,
as the question whether inline or external source docs are the way to go (again?) came up, here are my thoughts (currently searching for the "best" solution :) ):

I personally prefer external docs (and thus started to use fpdoc); reasons are uncluttered source, less scrolling and (if you strictly limit oneself to 80 chars per line) readability on small screens (mobile). At the same time, I use short single (!) line comments to functions, very much the way pasdoc would use them.

For sources in an early state (moving code around etc.) external documentation is really annoying, for the detailed documentation of mature source inline docs are simply unsuitable IMHO.

Therefore I would really like to see a feature that combines both approaches, small inline comments, e.g. for IDE tooltips and overview documentation together with the possibility to have more detailed infos in external files.

Don't get me wrong, that's not an complaint...
... I don't how much work it would be to extend fpdoc, but I really would like to contribute if I knew where to start [and had some more time...] :)

Btw. I really like the lazarus fpdoc GUI...

Just my 2 cents,
d.l.i.w

Reply by email

Michael Van Canneyt
to Unknown author
Show quoted text 14 lines
Hi, as the question whether inline or external source docs are the way to go (again?) came up, here are my thoughts (currently searching for the "best" solution :) ): I personally prefer external docs (and thus started to use fpdoc); reasons are uncluttered source, less scrolling and (if you strictly limit oneself to 80 chars per line) readability on small screens (mobile). At the same time, I use short single (!) line comments to functions, very much the way pasdoc would use them. For sources in an early state (moving code around etc.) external documentation is really annoying, for the detailed documentation of mature source inline docs are simply unsuitable IMHO.

Well, I have planned a inline-to-external conversion for fpdoc for exactly this reason.

Michael.

Reply by email

Graeme Geldenhuys
to Unknown author: as the question whether inline or external source docs are the way to go (again?) came…
Btw. I really like the lazarus fpdoc GUI...

Compared to Documentation Insight (a Delphi IDE add-on), the UI of FPDoc Editor has a lot to be desired for. Plus the fact that FPDoc Editor generates undesired formatted XML for fpdoc is not so nice.

This makes me not use FPDoc Editor in Lazarus - which is unfortunate. But the idea of FPDoc Editor (tied into Lazarus IDE and working with the code editor) is great. It just needs some more polish.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Mattias Gaertner
to Graeme Geldenhuys
Show quoted text 7 lines
On 17/12/12 17:57, wrote: > > Btw. I really like the lazarus fpdoc GUI... Compared to Documentation Insight (a Delphi IDE add-on), the UI of FPDoc Editor has a lot to be desired for. Plus the fact that FPDoc Editor generates undesired formatted XML for fpdoc is not so nice.

I thought that was fixed?

This makes me not use FPDoc Editor in Lazarus - which is unfortunate. But the idea of FPDoc Editor (tied into Lazarus IDE and working with the code editor) is great. It just needs some more polish.

Mattias

Reply by email

Graeme Geldenhuys
to Mattias Gaertner: On Mon, 17 Dec 2012 20:44:08 +0000 I thought that was fixed? Mattias
Mattias Gaertner wrote
I thought that was fixed?

OK, my apologies for the false alarm. The XML generation seems fixed now.

There are other issues with the FPDoc Editor dialog though. Off the top of my head:

- It allows you to enter long descriptions for method arguments, when only short descriptions are allowed. I'm not sure what the fpdoc manual says about this.
- Same as above, but for enums. I did confirm this with Michael, and the fpdoc manual actually mentions this.
- No formatting buttons for things like Unordered List, Ordered Lists, List Items etc.
- "Underline" and "Insert URL" has the same glyphs on the small buttons.
- No place to specify the Package Name when creating a new XML file. It can take a while to figure out why that unit's documentation doesn't appear when you generate fpdoc output.

There was more, but this was just a quick list of what I could remember now.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

luciano de souza
to Unknown author: as the question whether inline or external source docs are the way to go (again?) came…

I have never used FPDoc, but I'd like to understand how it would work in my specific case.
I am blind. I use screen reader. I compile my projects without the intervenience of an IDE. No Lazarus, No FPC console ID, I compile my projects with commands like that:

fpc myprog.pp

If Myprog.pp has the Pasdoc marks, I can create the documentation also by means of commandline. But my question is: FPDoc can be used without an IDE? If true, would I have to create the XML structure manually? Pasdoc is a very good tool, but that's true the source code becomes overcrowded. For my case, Pasdoc seems to be better becouse I won't have an IDE to create the XML. Is this true?

2012/12/17, :

Show quoted text 38 lines
Hi, as the question whether inline or external source docs are the way to go (again?) came up, here are my thoughts (currently searching for the "best" solution :) ): I personally prefer external docs (and thus started to use fpdoc); reasons are uncluttered source, less scrolling and (if you strictly limit oneself to 80 chars per line) readability on small screens (mobile). At the same time, I use short single (!) line comments to functions, very much the way pasdoc would use them. For sources in an early state (moving code around etc.) external documentation is really annoying, for the detailed documentation of mature source inline docs are simply unsuitable IMHO. Therefore I would really like to see a feature that combines both approaches, small inline comments, e.g. for IDE tooltips and overview documentation together with the possibility to have more detailed infos in external files. Don't get me wrong, that's not an complaint... ... I don't how much work it would be to extend fpdoc, but I really would like to contribute if I knew where to start [and had some more time...] :) Btw. I really like the lazarus fpdoc GUI... Just my 2 cents, d.l.i.w _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Luciano de Souza

Reply by email

Graeme Geldenhuys
to luciano de souza
luciano de souza wrote
But my question is: FPDoc can be used without an IDE?

Yes, fpdoc is a command line tool, just the fpc (The free pascal compiler).

Some get confused between the fpdoc program, and the FPDoc Editor (add-on) included within Lazarus IDE. The latter is used to edit the XML description files (documentation).

If true, would I have to create the XML structure manually?

I always write my XML description files with a text editor, simply because there exists no editor application that supports everything fpdoc syntax does. Also the fpdoc XML syntax is rather simple. I use MSEide as my editor of choice for documentation - due to much better code templates support. I have setup quite a few fpdoc code templates in MSEide, which speeds up my writing of fpdoc xml syntax. That way I can rather concentrate on writing the documentation and not the XML tags (or fighting with some documentation editor tool).

Pasdoc is a very good tool, but that's true the source code becomes overcrowded.

It is very clear that it is a personal preference. There is no right or wrong. Some like inline documentation, others like external documentation. I like complete and detailed documentation, not just one-liners. So External Documentation files is the only way for me, otherwise I will never be able to read my object pascal source code. Plus, using fpdoc, I can generate PDF, INF, CHM and HTML output from the same XML description files.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Reinier Olislagers
to Graeme Geldenhuys: OK, my apologies for the false alarm. The XML generation seems fixed now. There are other…
Graeme Geldenhuys wrote
There are other issues with the FPDoc Editor dialog though. Off the top of my head:

As I think I said last year, there's also Laz DE/Lazarus Documentation Editor.

As long as we're suggesting improvements, I'd like LazDE to
1. show a formatted view of the resulting fpdoc (i.e. use fpdoc processing to output as e.g. HTML and show that) so you have direct feedback on how your documentation looks.
2. use an XML syntax highlighter (synmemo?) (if it's not already there). Helps with those missing closing tags etc I suffer from
3. allow drag and drop from an identifier in a source code window to create a link automatically.
4. (from memory, haven't done this a while) make it easier to start documenting a new unit. Whenever I start, I have no idea what package name I should supply. Some automated suggestions might be nice.

However, fpdoc documentation writing is a huge chore for me compared to writing in the wiki so I've decided it's more productive to get my documentation done on the wiki.

I still have documentation for the zip unit lying around and I'm trying to get that in shape to submit it.

Meanwhile I've updated the fpdoc code some with cosmetic changes/better warning messages:
http://bugs.freepascal.org/view.php?id=23506
... so if anybody is interested ;)

Thanks,
Reinier

Reply by email

Reinier Olislagers
to Graeme Geldenhuys: OK, my apologies for the false alarm. The XML generation seems fixed now. There are other…
Graeme Geldenhuys wrote
There are other issues with the FPDoc Editor dialog though. Off the top of my head:

As I think I said last year, there's also Laz DE/Lazarus Documentation Editor.

As long as we're suggesting improvements, I'd like LazDE to
1. show a formatted view of the resulting fpdoc (i.e. use fpdoc processing to output as e.g. HTML and show that) so you have direct feedback on how your documentation looks.
2. use an XML syntax highlighter (synmemo?) (if it's not already there). Helps with those missing closing tags etc I suffer from
3. allow drag and drop from an identifier in a source code window to create a link automatically.
4. (from memory, haven't done this a while) make it easier to start documenting a new unit. Whenever I start, I have no idea what package name I should supply. Some automated suggestions might be nice.

However, fpdoc documentation writing is a huge chore for me compared to writing in the wiki so I've decided it's more productive to get my documentation done on the wiki.

I still have documentation for the zip unit lying around and I'm trying to get that in shape to submit it.

Meanwhile I've updated the fpdoc code some with cosmetic changes/better warning messages:
http://bugs.freepascal.org/view.php?id=23506
... so if anybody is interested ;)

Thanks,
Reinier

Reply by email

Unknown author
to Reinier Olislagers: As I think I said last year, there's also Laz DE/Lazarus Documentation Editor. As long as…
Reinier Olislagers wrote 22 lines
On 18-12-2012 0:58, Graeme Geldenhuys wrote: > There are other issues with the FPDoc Editor dialog though. Off the top > of my head: As I think I said last year, there's also Laz DE/Lazarus Documentation Editor. As long as we're suggesting improvements, I'd like LazDE to 1. show a formatted view of the resulting fpdoc (i.e. use fpdoc processing to output as e.g. HTML and show that) so you have direct feedback on how your documentation looks. 2. use an XML syntax highlighter (synmemo?) (if it's not already there). Helps with those missing closing tags etc I suffer from 3. allow drag and drop from an identifier in a source code window to create a link automatically. 4. (from memory, haven't done this a while) make it easier to start documenting a new unit. Whenever I start, I have no idea what package name I should supply. Some automated suggestions might be nice. However, fpdoc documentation writing is a huge chore for me compared to writing in the wiki so I've decided it's more productive to get my documentation done on the wiki.

A wiki is never documentation. It's an explanation (not targeting anyone here) it is sloppy, incomplete, not maintained, no verification of the up-to-dateness possible.

It's some quick and dirty text which you jot down if and when you feel like it.

Writing quality documentation IS a chore. There is no way around it. That is why companies have tech writers employed for this job.

Show quoted text 7 lines
I still have documentation for the zip unit lying around and I'm trying to get that in shape to submit it. Meanwhile I've updated the fpdoc code some with cosmetic changes/better warning messages: http://bugs.freepascal.org/view.php?id=23506 ... so if anybody is interested ;)

I applied the patch, thank you !

Michael.

Reply by email

Reinier Olislagers
to Unknown author
Show quoted text 6 lines
On Tue, 18 Dec 2012, Reinier Olislagers wrote: > However, fpdoc documentation writing is a huge chore for me compared to > writing in the wiki so I've decided it's more productive to get my > documentation done on the wiki. A wiki is never documentation. It's an explanation , a wiki is a way to store articles/text that people can read. What is

in those articles is up to what you put in it.

Of course, a wiki has certain drawbacks - e.g. no structure and the ones you mention below.
Remember paper documentation though? That has drawbacks, too, some of them similar to the wiki.

Usually (not targeting anyone here) it is sloppy, incomplete, not maintained, no verification of the up-to-dateness possible.

Mostly agreed. In the same spirit: how up to date, complete and actually helpful is the fpdoc documentation?
As for up to dateness: there is a history on the wiki, so you can check that.

Your idea of building a (web) interface that lets people easily update fpdoc documentation and submit the result for approval by a dev and subsequent implementation makes a lot of sense.

Writing quality documentation IS a chore. There is no way around it.

I agree.... but I was refering to the document format, not so much the content of the documentation.
Having to fight with the fpdoc format where I get unhelpful help messages like
Warning: Target ID of <link> in unit "zipper" is unknown: "<empty> is a bit too much for me.

So I put my stuff on the wiki because it's much quicker to write and update.

> http://bugs.freepascal.org/view.php?id=23506 > ... so if anybody is interested ;) I applied the patch, thank you !

Thanks a lot.

Reply by email

Marco van de Voort
to Reinier Olislagers: As I think I said last year, there's also Laz DE/Lazarus Documentation Editor. As long as…

In our previous episode, Reinier Olislagers said:

However, fpdoc documentation writing is a huge chore for me compared to writing in the wiki so I've decided it's more productive to get my documentation done on the wiki.

Wiki is not versioned, not context sensitive etc. It is a perfect place to do some quick scribblings and howtos, but it is not a solution for final documentation.

Yes, making documentation is tedious. No pain, no gain.

Show quoted text 7 lines
I still have documentation for the zip unit lying around and I'm trying to get that in shape to submit it. Meanwhile I've updated the fpdoc code some with cosmetic changes/better warning messages: http://bugs.freepascal.org/view.php?id=23506 ... so if anybody is interested ;)

I'm planning doing some fpdoc testing in the holidays. (partially also because I need to generate 2.6.2 CHMs)

Reply by email

Reinier Olislagers
to Marco van de Voort
Marco van de Voort wrote 8 lines
In our previous episode, Reinier Olislagers said: > However, fpdoc documentation writing is a huge chore for me compared to > writing in the wiki so I've decided it's more productive to get my > documentation done on the wiki. Wiki is not versioned, not context sensitive etc. It is a perfect place to do some quick scribblings and howtos, but it is not a solution for final documentation.

You didn't understand what I was trying to say. See my response to Michael.

That is the probably reaon why people are e.g. now documenting the entire Pascal list of reserved words on the wiki rather than in fpdoc.

Reply by email