U++ framework
Do not panic. Ask here before giving up.

Home » Developing U++ » U++ Developers corner » Documentation and Topic++
Documentation and Topic++ [message #12713] Tue, 13 November 2007 19:41 Go to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
Mindtraveller wrote on Tue, 13 November 2007 08:33

OK. I started making new articles.

For now, two things impedes the most:
1) Unnatural division of package docs by "src" and "srcdoc". After some learning it seems like one stands for index while other stands for manual.
I would refuse such a division because index must be one for all packages (smth. like MSDN where I type first letters and got functions starting with them). So all we need in the package docs tree is articles (I would refuse treeview of structure too - as described in forum messages).



Well, first of all, the idea behind Topic++ is that it should serve as tool for documenting both the program structure (sources), but also the application being developed (help, application manual).

That is the original idea behind documentation groups.

Now "predefined" groups are

src - this should contain a straight *reference* to the code *interface*. Note that theide is able to bind documents to the code. We have big plans on improving on this. (think "reference" part of MSDN API documents).

srcdoc - this should be for other programming documents - guides, explanations etc...

srcimp - this is intended to contain the comments about code implementation.

app - application documents - help, manuals etc...


Quote:


2) Inexistence of first common page. I think there must be root page, and this page must be default (but when we click some package` article, it shows in help window).

For now this root article is finished and I started writing inner articles, which were linked from root.


"index" page is considered "first common". Obviously, there is a little problem as this really works well only for single group in single package...

Mirek
Re: Documentation and Topic++ [message #12720 is a reply to message #12713] Wed, 14 November 2007 04:32 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

I think this is of course great to have one help engine for development docs and user (not programmer) documentation on application developed. So I vote for the original idea.

Next, from the design point of view, treeview-control guiding system as well as "predefined groups" seems to me not very optimal.

I`ll try to make suggestions how to increase usability. Of course, everything below is my point of view and a subject for discussion:

1) Leving behind any "magical words" line "srcdocs","srcimp". We simply don`t need that kind of magic. We need simple things to concentrate attention to the help text itself - without user`s brain guiding through magical labyrinths.

2) Information on package must be concentrated in one articles-tree. Each article has index-tags. So user has 3 ways to look at docs: manual view mode, index and full-text-search modes. Last two modes I`d like to be as MSDN ones.

This approach seems to me little more general. General enough to handle with programmers` manual as easy as user help.

3) src* groups are presented as:
src - number of articles, generated by TheIDE (and linked from some other articles if necessary). I`d prefer some package article to have these links listed by logical or functional groups (alphabetic access is available through Index mode).

srcimp and srcdoc articles are represented as links from (or part of) articles about respective subjects.
The general approach is the same: different kinds of information about subject must be in easy reach from parent article about subject. It seems very obvious way of making things user-oriented.

4) Fimally, general view of help system with approach suggested will be something like this:
index.php?t=getfile&id=832&private=0

5) Thoughts about root article I`ll try to write later, as all ideas about it come in order.

[Updated on: Wed, 14 November 2007 04:35]

Report message to a moderator

Re: Documentation and Topic++ [message #12724 is a reply to message #12720] Wed, 14 November 2007 11:46 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
Mindtraveller wrote on Tue, 13 November 2007 22:32

I think this is of course great to have one help engine for development docs and user (not programmer) documentation on application developed. So I vote for the original idea.

Next, from the design point of view, treeview-control guiding system as well as "predefined groups" seems to me not very optimal.



Yep, I agree. The help page definitely needsd an improvement.

Quote:


I`ll try to make suggestions how to increase usability. Of course, everything below is my point of view and a subject for discussion:

1) Leving behind any "magical words" line "srcdocs","srcimp". We simply don`t need that kind of magic. We need simple things to concentrate attention to the help text itself - without user`s brain guiding through magical labyrinths.



Mostly agree, but I think medium advanced user will need to know those magic words too, so that he can use Topic++ to write docs...

Considering other points, the only thing I would like to add is the vision that the future ide will provide much better code/documentation integration.

One of ideas is that browsing the .h file, you will have small icons in left bar (when breakpoints usually are) for each code element (e.g. method declaration); moving the mouse over that icon will popup documentation for the item.

If documentation is not available for item, icon will look differently and clicking it will move you to topic++, generating the text template to document the method.

Similar capabilities should be available in new class browser too.

In .cpp, the idea is that instead of "src", these will lead to "srcimp".

Mirek
Re: Documentation and Topic++ [message #12727 is a reply to message #12724] Wed, 14 November 2007 13:24 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

Quote:

Mostly agree, but I think medium advanced user will need to know those magic words too, so that he can use Topic++ to write docs...

One of ideas is that browsing the .h file, you will have small icons in left bar (when breakpoints usually are) for each code element (e.g. method declaration); moving the mouse over that icon will popup documentation for the item.

If documentation is not available for item, icon will look differently and clicking it will move you to topic++, generating the text template to document the method.

Similar capabilities should be available in new class browser too.

In .cpp, the idea is that instead of "src", these will lead to "srcimp".
Could you please describe why exactly is it needed to use these words? I think it is way too hard for understanding "by default". Yes, user may learn manual on that subject, but what for?
It`s nothing prevents us from adding these comments simply by clicking left icon and typing docs in the same window, without any additional identifiers. For me it is so natural, that I have to think of arguments to make this thought clear.

[Updated on: Wed, 14 November 2007 13:33]

Report message to a moderator

Re: Documentation and Topic++ [message #12728 is a reply to message #12727] Wed, 14 November 2007 13:41 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
Mindtraveller wrote on Wed, 14 November 2007 07:24

Quote:

Mostly agree, but I think medium advanced user will need to know those magic words too, so that he can use Topic++ to write docs...

One of ideas is that browsing the .h file, you will have small icons in left bar (when breakpoints usually are) for each code element (e.g. method declaration); moving the mouse over that icon will popup documentation for the item.

If documentation is not available for item, icon will look differently and clicking it will move you to topic++, generating the text template to document the method.

Similar capabilities should be available in new class browser too.

In .cpp, the idea is that instead of "src", these will lead to "srcimp".
Could you please describe why exactly is it needed to use these words? I think it is way too hard for understanding "by default". Yes, user may learn manual on that subject, but what for?
It`s nothing prevents us from adding these comments simply by clicking left icon and typing docs in the same window, without any additional identifiers. For me it is so natural, that I have to think of arguments to make this thought clear.


Well, if nothing else, groups are important if you are importing Topic++ into your code - you do so by package-group quantities.

So perhaps for documenting the code, you could do without it, but for using Topic++ as application document resources, understanding of groups is unavoidable.

Mirek
Re: Documentation and Topic++ [message #12777 is a reply to message #12728] Fri, 16 November 2007 01:36 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

luzr, I temporarily lost all the words and arguments to tell that simple things are better than complex ones. Smile Just need time to collect arguments for the thing I feel subconciously. )
This strong subconcious feeling tells (actually, sreams when I think of usability) me this (see below). And I`m just looking for formal and constructive words to express all that feeling...
Re: Documentation and Topic++ [message #12778 is a reply to message #12777] Fri, 16 November 2007 01:37 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

index.php?t=getfile&id=843&private=0
  • Attachment: tht1.gif
    (Size: 31.15KB, Downloaded 1524 times)
Re: Documentation and Topic++ [message #12779 is a reply to message #12778] Fri, 16 November 2007 01:40 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

index.php?t=getfile&id=844&private=0
Just think: the most important thing as finding an answer is packed into 1/5 of window filled with ugly small uniform text.

Why? Or, is it OK for programmers to find anything in a hard way? Very Happy
  • Attachment: tht2.gif
    (Size: 24.09KB, Downloaded 1462 times)

[Updated on: Fri, 16 November 2007 01:45]

Report message to a moderator

Re: Documentation and Topic++ [message #12780 is a reply to message #12779] Fri, 16 November 2007 01:42 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

index.php?t=getfile&id=845&private=0
  • Attachment: tht3.gif
    (Size: 41.68KB, Downloaded 1475 times)
Re: Documentation and Topic++ [message #12781 is a reply to message #12780] Fri, 16 November 2007 01:54 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

index.php?t=getfile&id=846&private=0
  • Attachment: tht4.gif
    (Size: 20.47KB, Downloaded 1489 times)
Re: Documentation and Topic++ [message #12789 is a reply to message #12781] Fri, 16 November 2007 12:05 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
Well, frankly, if I am about to find info about Win32 API, I always use google Smile

IMO, the most useful thing to evolve in help is therefore such full-text search navigation.

I know that the tree sucks, anyway, it is there as the "low-level" navigational tool. I guess it should be tabbed with fulltext search or something like that.

Plus, perhaps index documents should really behave as introduction/guide/sumarry pages.
Re: Documentation and Topic++ [message #13000 is a reply to message #12713] Tue, 04 December 2007 16:21 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

Excuse my little vacation.
Mirek, I think that at least a part of documentation is to be done as some guide to writing specific applications. M$ tried to slve this problem by adding "How do I" topics, but their relization made them totally unusable.

So I propose some kind of well-structured manual, as you could see in google page above.


For example
:
GUI
-One-window applications
--Applications with main dialog window


OR
:
CORE
-Working with collections of objects
--NTL containers
---How and where to use Vector class


How you think? Is it good solution?
Of course it is tabbed with fulltext search.

P.S. Message #13000 Cool

[Updated on: Tue, 04 December 2007 16:25]

Report message to a moderator

Re: Documentation and Topic++ [message #13001 is a reply to message #13000] Tue, 04 December 2007 17:10 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
Mindtraveller wrote on Tue, 04 December 2007 10:21

Excuse my little vacation.
Mirek, I think that at least a part of documentation is to be done as some guide to writing specific applications. M$ tried to slve this problem by adding "How do I" topics, but their relization made them totally unusable.

So I propose some kind of well-structured manual, as you could see in google page above.


For example
:
GUI
-One-window applications
--Applications with main dialog window


OR
:
CORE
-Working with collections of objects
--NTL containers
---How and where to use Vector class


How you think? Is it good solution?
Of course it is tabbed with fulltext search.

P.S. Message #13000 Cool


Well, that should be the role of these "tutorials" in getting started.

Anyway, my plan was and is: Better some documentation than none. Priority is to get reference documentation and "fast paced" tutorials. When there is a good mass of documentation available, consider better structuring.

Sort of bottom-up - experiment - refactor approach we like to use when programming U++/with U++...

Mirek
Re: Documentation and Topic++ [message #13002 is a reply to message #12713] Tue, 04 December 2007 19:25 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

What do you mean by "fast paced tutorials"?
Re: Documentation and Topic++ [message #13003 is a reply to message #13002] Tue, 04 December 2007 23:32 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
Mindtraveller wrote on Tue, 04 December 2007 13:25

What do you mean by "fast paced tutorials"?


Well, it is more about my general view of how I like to learnin things.

Usually, if am about to learn some programming issue or API, I like to see the code and minimum explanation. That is why I have introduced those reference examples and that is why tutorials contain a lot of code and relatively low amount of explanation.

Mirek
Re: Documentation and Topic++ [message #13025 is a reply to message #12713] Wed, 05 December 2007 18:19 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

Ok.
I suggest having 2 types of docs: autogenerated from sources and manual. Manual articles may hypelink to source-autogenerated articles. All these docs are accessible by 3 tabs:

1. Index
indexed source-autogenerated articles;

2. Manual
manual docs, something like site with hyperlinks;

3. Search
full-text search within source and manual docs;
user may check areas for search: source, manual, or both.

Only tabs, no magic words. Plain and simple.

Is it OK, any corrections?

[Updated on: Wed, 05 December 2007 18:19]

Report message to a moderator

Re: Documentation and Topic++ [message #13027 is a reply to message #13025] Wed, 05 December 2007 19:18 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
Mindtraveller wrote on Wed, 05 December 2007 12:19

Ok.
I suggest having 2 types of docs: autogenerated from sources and manual. Manual articles may hypelink to source-autogenerated articles. All these docs are accessible by 3 tabs:

1. Index
indexed source-autogenerated articles;

2. Manual
manual docs, something like site with hyperlinks;

3. Search
full-text search within source and manual docs;
user may check areas for search: source, manual, or both.

Only tabs, no magic words. Plain and simple.

Is it OK, any corrections?


Sure, but I am not sure whether something like such plan is very important right now.

I mean, yes, we plan to produce more docs. We plan to implement better ways how to access it.

IMO, both 1. and 3. are already "initiated".

Mirek
Re: Documentation and Topic++ [message #13038 is a reply to message #13025] Thu, 06 December 2007 20:05 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1431
Registered: December 2006
Ultimate Contributor
Mindtraveller wrote on Wed, 05 December 2007 12:19



Is it OK, any corrections?


Documentation in source code would be very handy.

One line per method (at least).



Regards,
Novo

[Updated on: Thu, 06 December 2007 20:05]

Report message to a moderator

Re: Documentation and Topic++ [message #13041 is a reply to message #13038] Thu, 06 December 2007 21:05 Go to previous messageGo to next message
zsolt is currently offline  zsolt
Messages: 702
Registered: December 2005
Location: Budapest, Hungary
Contributor
Novo wrote on Thu, 06 December 2007 20:05

Mindtraveller wrote on Wed, 05 December 2007 12:19



Is it OK, any corrections?


Documentation in source code would be very handy.

One line per method (at least).




Current (separated) type of reference docs is very useful, I think. Some time ago I prefered doxygen docs of sources, but now, I don't care about it. The only problem is this tabbed help. Previous (windowed) version was better for me (using Alt+TAB is more easy, than clicking mouse). So I'm using online HTML docs currently.

Maybe it would be useful, to create a separate help viewer window or application with an "Edit" button, to allow editing topics, like in a wiki.
Re: Documentation and Topic++ [message #13042 is a reply to message #13038] Thu, 06 December 2007 21:10 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
Novo wrote on Thu, 06 December 2007 14:05

Mindtraveller wrote on Wed, 05 December 2007 12:19



Is it OK, any corrections?


Documentation in source code would be very handy.

One line per method (at least).




Planned de facto equivalent of what you want.

Mirek
Re: Documentation and Topic++ [message #13045 is a reply to message #13042] Thu, 06 December 2007 21:49 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1431
Registered: December 2006
Ultimate Contributor
luzr wrote on Thu, 06 December 2007 15:10

Novo wrote on Thu, 06 December 2007 14:05

Mindtraveller wrote on Wed, 05 December 2007 12:19



Is it OK, any corrections?


Documentation in source code would be very handy.

One line per method (at least).




Planned de facto equivalent of what you want.

Mirek


Do you mean "indexed source-autogenerated articles accessed via Topic++"?

No real documentation in source code, documentation is dynamically generated by Topic++?


Regards,
Novo
Re: Documentation and Topic++ [message #13116 is a reply to message #12713] Wed, 12 December 2007 23:20 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

Writing "manual" help pages in current TheIDE version, what package should I add them to? I`d like these articles in the future to be "standalone" help articles accessible through "Manual" tab of new version of help system. Of course, after approval and changing of U++ authors.

For now, I`ve made different .tpp file, but didn`t find the way to open it not in view mode (not edit) and don`t know if it will be possible to move these articles to "manual" help mode.

[Updated on: Thu, 13 December 2007 02:19]

Report message to a moderator

Re: Documentation and Topic++ [message #13121 is a reply to message #13116] Thu, 13 December 2007 18:27 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
Mindtraveller wrote on Wed, 12 December 2007 17:20


For now, I`ve made different .tpp file, but didn`t find the way to open it not in view mode (not edit) and don`t know if it will be possible to move these articles to "manual" help mode.


I do understand "open it not in view mode (not edit)" part..

Mirek
Re: Documentation and Topic++ [message #13124 is a reply to message #12713] Fri, 14 December 2007 05:57 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

I misspelled. That should read as: "in view mode, not in edit".
Re: Documentation and Topic++ [message #13128 is a reply to message #13124] Fri, 14 December 2007 17:17 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
Mindtraveller wrote on Thu, 13 December 2007 23:57

I misspelled. That should read as: "in view mode, not in edit".


In that case, it should not matter. As soon as you place it to src or srcdoc group, you should be able to see it in view mode. (somewhere in the tree...)

Mirek
Re: Documentation and Topic++ [message #15265 is a reply to message #13128] Mon, 14 April 2008 11:27 Go to previous messageGo to next message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
Is there currently any way to have TheIDE create a structured src documentation file for a class/package. i.e. a file with all the methods and parameters listed in Upp style with only the comments missing?

[Updated on: Mon, 14 April 2008 12:05]

Report message to a moderator

Re: Documentation and Topic++ [message #15266 is a reply to message #15265] Mon, 14 April 2008 14:26 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
mrjt wrote on Mon, 14 April 2008 05:27

Is there currently any way to have TheIDE create a structured src documentation file for a class/package. i.e. a file with all the methods and parameters listed in Upp style with only the comments missing?


Yes , if I understand well the question...:

http://www.ultimatepp.org/app$ide$Topic$en-us.html

Mirek
Re: Documentation and Topic++ [message #15267 is a reply to message #15266] Mon, 14 April 2008 14:40 Go to previous messageGo to next message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
Perfect! Thanks.
Re: Documentation and Topic++ [message #16360 is a reply to message #15267] Tue, 10 June 2008 17:13 Go to previous messageGo to next message
cbpporter is currently offline  cbpporter
Messages: 1428
Registered: September 2007
Ultimate Contributor
Since we are getting pretty close to 2008 release, do you think it's time to reopen the discussion about a new Topic++ and documentation? Do you think this is going to be a focus area before the release of the first 8xx dev?
Re: Documentation and Topic++ [message #16361 is a reply to message #16360] Tue, 10 June 2008 18:35 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
Well, yes, for me, assist++ and topic++ are now in focus Smile

Mirek
Re: Documentation and Topic++ [message #16391 is a reply to message #16361] Thu, 12 June 2008 13:02 Go to previous messageGo to next message
cbpporter is currently offline  cbpporter
Messages: 1428
Registered: September 2007
Ultimate Contributor
Well, I propose something like this:

index.php?t=getfile&id=1235&private=0


What can not be seen from this mock-up, is that all parts except the class description, the see also section and the logical grouping of methods should be auto generated. Also future auto generatations would not destroy available documentation.
  • Attachment: untitled2.PNG
    (Size: 22.54KB, Downloaded 1070 times)
Re: Documentation and Topic++ [message #16395 is a reply to message #16391] Thu, 12 June 2008 17:36 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
Well, this sounds good - for class browser.

Anyway, the goal I am currently pursuing is to show topic++ related to regular code editing. The idea is that in the left bar area, where breakpoints are, all lines with items with existing or even *potential* Topic++ entry will have an icon. Moving the mouse over that will display tooltip (rather big one Smile with help, clicking it will move you to the entry in Topic++ - if does not exist, it will create one.

Another issue is related to the need of community provided docs, so that we will finally start moving here... I guess it it will be very useful to be able to split source tree and topic tree (as option), so that all U++ docs can be kept and maintained separately (I think tha topic++ repository can have more relaxed access).

Mirek
Re: Documentation and Topic++ [message #16401 is a reply to message #16395] Thu, 12 June 2008 20:25 Go to previous messageGo to next message
zsolt is currently offline  zsolt
Messages: 702
Registered: December 2005
Location: Budapest, Hungary
Contributor
luzr wrote on Thu, 12 June 2008 17:36

Well, this sounds good - for class browser.

Anyway, the goal I am currently pursuing is to show topic++ related to regular code editing. The idea is that in the left bar area, where breakpoints are, all lines with items with existing or even *potential* Topic++ entry will have an icon. Moving the mouse over that will display tooltip (rather big one Smile with help, clicking it will move you to the entry in Topic++ - if does not exist, it will create one.

Another issue is related to the need of community provided docs, so that we will finally start moving here... I guess it it will be very useful to be able to split source tree and topic tree (as option), so that all U++ docs can be kept and maintained separately (I think tha topic++ repository can have more relaxed access).

Mirek

I think, this is a very very good idea.
Re: Documentation and Topic++ [message #16402 is a reply to message #16395] Thu, 12 June 2008 22:46 Go to previous messageGo to next message
cbpporter is currently offline  cbpporter
Messages: 1428
Registered: September 2007
Ultimate Contributor
luzr wrote on Thu, 12 June 2008 18:36

Well, this sounds good - for class browser.


Well this was more of an idea for the main documentation presentation, a replacement for the current structure of the Topic++ articles.

This is something of a solution to what I perceive as the tree main disadvantages of the current system:
1. It is far from complete (as in coverage of the API) and quite selective. Some parts are explained in great detail, while others are barely mentioned. It is also not uniform, neither as formating or style.
2. It is not that cross referenced. For example, when I'm browsing the SetStyle function for a class, I would like to have the definition of that style and a srcdoc style article related to what is Chameleon and how to use it, at my fingertips, both only a click way. When I'm browsing the documentation for String, I want to have a list will all the stand alone functions that work on string, preferably ordered by category. For example, I had often had a self written Join function, before I found out that there was one already implemented.
3. The current documentation for classes are hard to read because the text follows every method. This is daunting for someone new to the framework, who is trying to find something and has at least to skim through all that text. And is annoying for someone familiar with the framework, because these persons really don't need to have text displayed for the methods they already know.

But my idea and your approach are anyway not auto-exclusive. Both can use the same information, only the presentation is different. And the analogy with a browser is logical, since I was thinking of extending a browser window with an editor to enter a description for each item and a category for it. This meta information would them be used for the auto generated pages and could also allow atomic commits to that repository you talked about. When someone is using the normal browser, an icon could show that it has no documentation attached, and somebody might be willing to fill it out, submit it and not have to worry about formating or ruining something in a larger document.

Anyway, my ideas are heavily influenced by three really good help systems (IMHO): Delphi help files, PHP documentation and JavaDoc.
Re: Documentation and Topic++ [message #16403 is a reply to message #16402] Thu, 12 June 2008 23:35 Go to previous messageGo to next message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
I'll contribute some documenting once you guys have figured out how it's going to work Smile

My only suggestion is that instead of just saying 'submit some documentation', what would make contributing easier is a list of all (or many) of the things (classes, features, genrenal areas whatever) that need docs. That way people could look at the list and say to themselves 'I know about that, I'll write some docs', rather than not knowing where to start. IMHO obviously, but it's one of the things that has stopped me so far.
Re: Documentation and Topic++ [message #16407 is a reply to message #16403] Fri, 13 June 2008 09:36 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
mrjt wrote on Thu, 12 June 2008 17:35

I'll contribute some documenting once you guys have figured out how it's going to work Smile

My only suggestion is that instead of just saying 'submit some documentation', what would make contributing easier is a list of all (or many) of the things (classes, features, genrenal areas whatever) that need docs.



Actually, the main point of my above idea is that you will see what methods are not documented while editing the code.. (with different icon in the left bar).

Mirek
Re: Documentation and Topic++ [message #16408 is a reply to message #16402] Fri, 13 June 2008 09:45 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
cbpporter wrote on Thu, 12 June 2008 16:46

luzr wrote on Thu, 12 June 2008 18:36

Well, this sounds good - for class browser.


Well this was more of an idea for the main documentation presentation, a replacement for the current structure of the Topic++ articles.

This is something of a solution to what I perceive as the tree main disadvantages of the current system:
1. It is far from complete (as in coverage of the API) and quite selective. Some parts are explained in great detail, while others are barely mentioned. It is also not uniform, neither as formating or style.
2. It is not that cross referenced. For example, when I'm browsing the SetStyle function for a class, I would like to have the definition of that style and a srcdoc style article related to what is Chameleon and how to use it, at my fingertips, both only a click way. When I'm browsing the documentation for String, I want to have a list will all the stand alone functions that work on string, preferably ordered by category. For example, I had often had a self written Join function, before I found out that there was one already implemented.
3. The current documentation for classes are hard to read because the text follows every method. This is daunting for someone new to the framework, who is trying to find something and has at least to skim through all that text. And is annoying for someone familiar with the framework, because these persons really don't need to have text displayed for the methods they already know.

But my idea and your approach are anyway not auto-exclusive. Both can use the same information, only the presentation is different. And the analogy with a browser is logical, since I was thinking of extending a browser window with an editor to enter a description for each item and a category for it. This meta information would them be used for the auto generated pages and could also allow atomic commits to that repository you talked about. When someone is using the normal browser, an icon could show that it has no documentation attached, and somebody might be willing to fill it out, submit it and not have to worry about formating or ruining something in a larger document.

Anyway, my ideas are heavily influenced by three really good help systems (IMHO): Delphi help files, PHP documentation and JavaDoc.


Well, I have to say that I have had "internal fight" between the two concepts for years - I mean, more database like concept of documentation as you suggest, where each method has its own entry, and document like approach like we have now.

In fact, a couple of years before, the first Topic++ iteration worked like database.

In the end, I prefer current model because of several tiny advantages (if they are advantages):

- you have little bit more flexible ways to organize docs. E.g. quite often it is nice to document a group of methods with single description.

- you have all formating capabilities of RichEdit, so you can put in pictures etc (well, this might be possible with some DB schemes as well I guess)

- and I think you are not really loosing the possiblity to present documentation in class browser JUST LIKE YOU SUGGEST - the topics++ are marked with code labels, so in fact existing topics can act as database too.

Mirek

P.S.: 2. - that is only a matter of putting these links into the text Smile

[Updated on: Fri, 13 June 2008 09:47]

Report message to a moderator

Re: Documentation and Topic++ [message #16437 is a reply to message #16408] Sun, 15 June 2008 14:59 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

I would like to see more manual-oriented docs. It seems much more effective than simple listing of classes (which is very useful in a number of cases). I like it because knowing all the methods doesn`t guarantee knowing how to use them effectively.
This is especially actual for U++ which introduces innovative and uncommon approach in many aspects of C++ programming.
These two doc types - reference and manual, should be tightly connected and crosss-referenced.
So, agreeing with words above about making big list of all planned classes tipics, I`d add that we should plan the general structure of manual-type docs. That is the thing I mensioned some time ago and now I put it into discussion again.
Re: Documentation and Topic++ [message #16440 is a reply to message #16437] Sun, 15 June 2008 19:03 Go to previous messageGo to next message
mdelfede is currently offline  mdelfede
Messages: 1310
Registered: September 2007
Ultimate Contributor
I agree... IMHO the actual document structure isn't enough.
I'd prefere too a different approach, borland's user guides were very effective and comfortable to read... I think that could be a good example. Good old Microsoft guides in chm format were not bad at all too.

Maybe a good stuff would be to have a good underlying doc structure (maybe xml ?) ,separate viewer/browser AND separated doc editor.
We could even have more viewers, to accomodate user's preferences.

But, in my opinion, documents should be cathegorized, indexed and cross-referenced. Looking to a function/class should provide some "see-also" stuff, some examples, link to one or more main topics and so on.
And we should have cathegorized indexes.

Another good point would be to separate (as it was proposed sometimes) documentation from code, and give a more relaxed access to main repository's docs, allowing users to contribute more effectively.

We could even start a new sf project (with its svn repository) to hold just documentation for upp....

Max
Re: Documentation and Topic++ [message #16443 is a reply to message #16440] Sun, 15 June 2008 21:26 Go to previous messageGo to previous message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

I think it is time to create topic where we discuss manual docs structure.
Classes and functions reference should be another one parallel topic.
Previous Topic: Task: How to read GTK/Gnome settings
Next Topic: U++ infrastructure server...
Goto Forum:
  


Current Time: Sun Apr 26 06:18:15 GMT+2 2026

Total time taken to generate the page: 0.01456 seconds