kernel support for non-English user messages
Quoted 4 lines
I thought you might be seriously in need of some mental evaluation when you claimed that users "liked looking up error numbers in manuals".
Not the looking up part, but that fact that the explanation
for every single message the software could emit was available.
Today it's all HTML documents or PDFs or something, but it's still
a staggering amount of information. I have ~300MB of Oracle documentation on one desktop, 6 of it server error messages alone. Every possible message is explained to some extent, except this one:
-----------------------------------------------------------------------
ORA-00600 internal error code, arguments: [string], [string], [string],
[string], [string], [string], [string], [string]
Cause: This is the generic internal error number for Oracle program exceptions. It indicates that a process has encountered a low-level, unexpected condition.
<SNIP>
The first argument is the internal message number. Other arguments are various numbers, names, and character strings. The numbers may change meanings between different versions of Oracle.
Action: Report this error to Oracle Customer Support after gathering the following information:
<SNIP>
Note: The cause of this message may manifest itself as different errors at different times. Be aware of the history of errors that occurred before this internal error.
-----------------------------------------------------------------------
which is currently pretty much the only explanation available for a whole lot of Linux error messages. I can go read the source when e.g. the md driver splats its internal status dumps all over the console during array rebuild, but that doesn't help much.
Quoted 1 line
Whee. April first is long gone, but the jokers stay around.
Our kind knows no season.
--
"Let's fight till six, and then have dinner," said Tweedledum.
--Lewis Carroll, _Through the Looking Glass_
Quoted 5 lines
Quoted 3 lines
I thought you might be seriously in need of some mental evaluation when you claimed that users "liked looking up error numbers in manuals".
Quoted 7 lines
Not the looking up part, but that fact that the explanation
for every single message the software could emit was available.Today it's all HTML documents or PDFs or something, but it's still
a staggering amount of information. I have ~300MB of Oracle documentation on one desktop, 6 of it server error messages alone. Every possible message is explained to some extent, except this one:
IMHO, it'd be better to just make the kernel error messages meaningful. Keeping a large pile of documentation in sync with the source is a PITA.
M.
Quoted 8 lines
Quoted 4 lines
Today it's all HTML documents or PDFs or something, but it's still
a staggering amount of information. I have ~300MB of Oracle documentation on one desktop, 6 of it server error messages alone. Every possible message is explained to some extent, except this one:IMHO, it'd be better to just make the kernel error messages meaningful. Keeping a large pile of documentation in sync with the source is a PITA.
You don't have to keep it in sync with the source - just make sure that any documentation always mentions which versions it relates to.
If the documentation gets outdated, and everybody is aware of that, we are no worse off than we are now.
John.
Quoted 11 lines
Quoted 3 lines
I thought you might be seriously in need of some mental evaluation when you claimed that users "liked looking up error numbers in manuals".
Not the looking up part, but that fact that the explanation
for every single message the software could emit was available.Today it's all HTML documents or PDFs or something, but it's still
a staggering amount of information. I have ~300MB of Oracle documentation on one desktop, 6 of it server error messages alone. Every possible message is explained to some extent, except this one:
[SNIP]
Quoted 4 lines
which is currently pretty much the only explanation available for a whole lot of Linux error messages. I can go read the source when e.g. the md driver splats its internal status dumps all over the console during array rebuild, but that doesn't help much.
/Documentation could be a lot better than it is... Some of it is very out of date.
John.
Quoted 4 lines · Chuck Ebbert
Today it's all HTML documents or PDFs or something, but it's still
a staggering amount of information. I have ~300MB of Oracle documentation on one desktop, 6 of it server error messages alone. Every possible message is explained to some extent, except this one:
-snip-
Quoted 4 lines
which is currently pretty much the only explanation available for a whole lot of Linux error messages. I can go read the source when e.g. the md driver splats its internal status dumps all over the console during array rebuild, but that doesn't help much.
I imagine keeping Oracle docs in shape is itself a huge task. And frankly, it does not always help.
OTOH "I can go read the source" is the ultimate documentation which we have for zero extra effort.
--
vda
Quoted 2 lines
OTOH "I can go read the source" is the ultimate documentation which we have for zero extra effort.
Anybody who doesn't document their code is wasting an opportunity to improve their work.
John.
Quoted 3 lines · John Bradford
Anybody who doesn't document their code is wasting an opportunity to improve their work.
Some people care about documentation, some people don't. That's a fact, and spouting platitudes about "improving their work" just doesn't _matter_. The whole open source idea is that people do what they care about and what they are good at, and exactly because they aren't forced to deal with issues they don't have a heart for they take more pride and interest in the stuff they _do_ do.
Personally, I don't write documentation. I don't much even write comments in my code. My personal feeling is that as long as functions are small and readable (and logical), and global variables have good names, that's all I need to do. Others - who do care about comments and docs - can do that part.
And you know what? That _lack_ of comments and documantation improves my work. Not because documentation is bad, but because I DO NOT CARE. So I concentrate on the stuff I do care about.
So no, people are _NOT_ "wasting an opportunity".
Linus
Quoted 6 lines · Linus Torvalds
Some people care about documentation, some people don't. That's a fact, and spouting platitudes about "improving their work" just doesn't _matter_. The whole open source idea is that people do what they care about and what they are good at, and exactly because they aren't forced to deal with issues they don't have a heart for they take more pride and interest in the stuff they _do_ do.
Newbies as me do care about documentation ;-) The Linux kernel is getting more complex over time, and I appreciate some kind of architectural docs to know more about the inner workings. Personally, I don't have all the time I would like to explore and investigate, so a 50,000-feet-point-of-view and some detailed documentation about VM, scheduler and net are welcome.
Kernel experts as you (Linus, Andrew, Alan, Russell, Jeff and many others whose names I must leave out as I don't have space to name them all) probably know the inner workings better than anyone as they work with it every day, but people new to kernel hacking need some starting point.
Quoted 5 lines
Personally, I don't write documentation. I don't much even write comments in my code. My personal feeling is that as long as functions are small and readable (and logical), and global variables have good names, that's all I need to do. Others - who do care about comments and docs - can do that part.
Well, some functions and variable names may seem readable and logical to some, but it takes time for me to decipher some of them :-)
Signature · 3 lines
Please AVOID sending me WORD, EXCEL or POWERPOINT attachments. See http://www.fsf.org/philosophy/no-word-attachments.html Linux Registered User #287198
Quoted 6 lines
Quoted 2 lines
Anybody who doesn't document their code is wasting an opportunity to improve their work.
Some people care about documentation, some people don't. That's a fact, and spouting platitudes about "improving their work" just doesn't _matter_.
[snip]
Quoted 5 lines
And you know what? That _lack_ of comments and documantation improves my work. Not because documentation is bad, but because I DO NOT CARE. So I concentrate on the stuff I do care about.
So no, people are _NOT_ "wasting an opportunity".
You are right on this one, I appologise.
Substitute 'indenting' for 'comments and documentation' and I could have written that last paragraph myself.
John.
On Mon, 2003-04-14 at 10:29, Linus Torvalds wrote:
Hi Linus,
I hope Im not being a nerd..
Quoted 4 lines
The whole open source idea is that people do what they care about and what they are good at, and exactly because they aren't forced to deal with issues they don't have a heart for they take more pride and interest in the stuff they _do_ do.
I thought the whole open source idea was that people could share quality software that is free to view and modify. :)
Quoted 2 lines
Personally, I don't write documentation. I don't much even write comments in my code.
Maybe Im too naive but I really believe that good commenting style should be the default way for _all_ opensource developers to opperate simply because the practise of "being free to view and modify code" is helped by good comments.
However I do understand that unpaid volunteers will tend to focus on the things they enjoy more so than things they do not, and I dont have any problems with that.
The Learning curve with a project this big is hellishly steep though, so young ones such as myself can use all the code comments we can get. I know it seems rather obnoxious to be telling you this, sorry.
Best Regards.
Signature · 4 lines
Alex Combas <[email protected]> This message is digitally signed. The public decryption key for my signature is available at pgp.mit.edu Secure email is preferred.
Quoted 5 lines · Linus Torvalds
Personally, I don't write documentation. I don't much even write comments in my code. My personal feeling is that as long as functions are small and readable (and logical), and global variables have good names, that's all I need to do. Others - who do care about comments and docs - can do that part.
This is true, even from a software engineering perspective.
If you find yourself having to write comments and documentation to explain your code, probably your identifiers are not well named, your functions are not short enough, and your code is not well structured enough.
Ideal code is completely self-documenting.
Eric
Quoted 6 lines · Eric Altendorf
If you find yourself having to write comments and documentation to explain your code, probably your identifiers are not well named, your functions are not short enough, and your code is not well structured enough.
Ideal code is completely self-documenting.
We have a lot of elegant small functions that require knowledge of the data structures and lock ordering, which is why I do go around sticking kernel-doc into stuff I touch.
Explaining the function is one thing, explaining the context in which it operates is another [IMHO]
Quoted 6 lines · Eric Altendorf
If you find yourself having to write comments and documentation to explain your code, probably your identifiers are not well named, your functions are not short enough, and your code is not well structured enough.
Ideal code is completely self-documenting.
That's true if documentation serves only to describe _what_ the code does. You've ignored the need to describe _why_ the code was written in this way. For example, documentation can note some feature of the hardware which requires special handling, or it can describe some emergent property which isn't obvious even if all the code is understood.
That's why local comments should explain non-obvious trickery used, perhaps the exploitation of a poorly documented side-effect of some instruction, and block comments or external documentation should help the reader understand why things are done some particular way. For instance, if the code implements some specific, well documented algorithm, it should reference the algorithm by name.
Signature · 2 lines
Randolph Bentson [email protected]
Quoted 8 lines · Randolph Bentson
That's true if documentation serves only to describe _what_ the code does. You've ignored the need to describe _why_ the code was written in this way. For example, documentation can note some feature of the hardware which requires special handling, or it can describe some emergent property which isn't obvious even if all the code is understood.
Quoted 6 lines
That's why local comments should explain non-obvious trickery used, perhaps the exploitation of a poorly documented side-effect of some instruction, and block comments or external documentation should help the reader understand why things are done some particular way. For instance, if the code implements some specific, well documented algorithm, it should reference the algorithm by name.
You're right; this is very true. I suppose I overlooked that due to my background in other kinds of code bases... In an "ideal" code base, written from scratch, you'd probably need very very few comments. If you're interfacing with buggy legacy code or problematic hardware, I can see there'd be a much greater need.
Eric
Quoted 2 lines · Denis Vlasenko
OTOH "I can go read the source" is the ultimate documentation which we have for zero extra effort.
The problem with this approach is that when the code has a bug, the documentation has a bug.
Signature · 1 line
Sean Neakums - <[email protected]>
Quoted 2 lines · Denis Vlasenko
OTOH "I can go read the source" is the ultimate documentation which we have for zero extra effort.
It's a non-zero extra effort for me to poke around in the source for drivers/video/riva/fbdev.c trying to find what parameters are legal to attach to 'video=rivafb' - at least one posting to LKML has listed append="video=rivafb,xres:1024,yres:768,bpp:8" but looking at the rivafb_setup() code that only checks for "forceCRTC", "flatpanel", and "nomtrr" - so even MORE digging is needed to find out who parses the xres, yres, bpp values, what other values are legal, etc etc.
Quoted 11 lines · On 14 April 2003 17:23, [email protected] wrote:
Quoted 2 lines · Denis Vlasenko
OTOH "I can go read the source" is the ultimate documentation which we have for zero extra effort.
It's a non-zero extra effort for me to poke around in the source for
drivers/video/riva/fbdev.ctrying to find what parameters are legal to attach to 'video=rivafb' - at least one posting to LKML has listed append="video=rivafb,xres:1024,yres:768,bpp:8" but looking at therivafb_setup()code that only checks for "forceCRTC", "flatpanel", and "nomtrr" - so even MORE digging is needed to find out who parses the xres, yres, bpp values, what other values are legal, etc etc.
I talked about entirely different matter: what happens when you read some doc and either it does not answer your question or is demonstrably wrong? In Linux, you say "Linux sucks" and go read the code. In Windows/Oracle/etc you say "Windows sucks" and start banging your head against the wall.
--
vda