- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Admin
I love how everyone comments on Alex's usage of the 2x4 but fails to notice that he mentions 'less planning' which I'm sure translates to 'less planing' and means *is 2x4, then planed'. Hence 1.5x3.5 ... of course drying comes into play to end up with the final measurement.
He was right for the most part, if you correct the errant spelling.
Admin
Also, calm down. Seriously. Reading religious texts is how you make atheists. Most "religious" folk have never even read their own scripture, let alone anyone else's.
Admin
So next week, no TDWTF on Friday. Got it.
Captcha: similis - Simian syphilis
Admin
why does akismet think this is spam?
Admin
This motivated me to finally sign up so I can comment with a stable identity.
I generally agree with this article, and I completely agree with the overall philosophy. But I think there's one very important type left out: domain documentation.
I write and maintain programs to support a domain that programmers inherently know next to nothing about, in an industry programmers inherently know absolutely nothing about. I've found the most useful documentation I can produce is some which describes the processes that my programs are trying to support.
The single most useful document I have ever written is probably my glossary of industry jargon. I can verify that most of my co-workers have never gone anywhere near my attempts to document my library code, but I see every new programmer we hire keeping that glossary handy for their first few weeks.
Admin
That actually sounds super useful. Thanks for sharing.
Admin
Admin
!
Admin
Plus, of course, nowhere is it actually specified that this is describing a piece of wood.
Admin
And "bus number" is a catchier way to talk about it than "Buddhist epiphany number".
I'm not sure it's that specific risk that's being managed, but rather the more general (and hence somewhat higher) risk of someone with critical knowledge becoming suddenly and unexpectedly unavailable.And as long as it's a conscious decision, ignoring that risk is a perfectly valid way to manage it.
Admin
Admin
I have several issues with Alex's text. Firstly, if you need to do database documentation you're not using the right tool for the job. Good database management systems allow you to view and edit your table relationships and descriptions in the database management interface itself, which in practice more or less guarantees it stays up-to-date. Secondly, the implication that the program itself can substitute for documentation, however clumsy, is flawed. Software contains bugs and hard decisions. When the program doesn't do what it should do, it cannot be used as documentation. When a program does something counter-intuitive future coders will be tempted to ‘fix’ it, so some documentation will be necessary to prevent that, often in the form of a comment, but sometimes a comment simply will not do, for example when it has something to do with the architecture of the program. Thirdly, as someone who sometimes has to jump head-first into code, I find the worst annoyance the total lack of general design documentation. You know, things like how classes relate, what the general control flow is, what happens when WM_RANDI gets handled (substitute whatever the program does fairly often). If you want to fix or replace something, you don't want to first pore through msrvr.cpp, mclnt.cpp, mappmain.cpp, mapp.cpp, widgetbase.cpp, ... on the hunt for the right class or method. Yet, such documentation is often completely absent, and some of the kinds of documentation that are most valuable here are exactly the kind of stuff that Alex tells us to let rot. In that spirit, let me highlight what may be the best post in the entire thread:
This is the first time I read about this, and although it is highly indebted to ideas by Ken Perlin, I think that software is a wonderful application of the principle. This needs to be in every IDE.Admin
If you can't modify it then you can substitute anywhere, but if you can modify it then you could add invalid objects to the collection of base-class
Admin
Wrong. The only thing important about documentation is consistency. You know, like actually doing daily postings to a site called "The Daily"...
Admin
I know exactly what you mean. It can be time-consuming and tedious to keep software documentation up-to-date and can sometimes seem fruitless if it is potentially never going to get used.
We developed Code Rocket to provide automated documentation based on the code and comments around it - so it never gets out of date because you can just generate it again from the code. Being automated, you can produce documentation only when you need it... Check it out if you are interested - there is a free trial available.
Thanks Alex for the great article.
Admin
I first read on this on Lambda the ultimate (a blog you should read!). In the comments to the post you'll also see a reference to a code bubbles post which is somewhat related and also very interesting IDE wise ...
Admin
Cue diabolical laughter and intense musical chord.
FTFY
CAPTCHA acsi: character set for dyslexics
Admin
I believe the saying is: Measure twice, cut once.
Admin
internets++
Admin
maaate, in 'strya we barbie - you sound like a pommie baastard
Admin
In 'straya we barbie as well. I didn't realise it was quite so popular over there in Austria.
Admin
Admin
Admin
Completely accurate & detailed documentaion is completely useless... it's just the program.
http://en.wikipedia.org/wiki/Map%E2%80%93territory_relation
Another basic quandary is the problem of accuracy. In "On Exactitude in Science", Jorge Luis Borges describes the tragic uselessness of the perfectly accurate, one-to-one map:
Admin
Or, from Getting Real:
http://gettingreal.37signals.com/ch11_Theres_Nothing_Functional_about_a_Functional_Spec.php
and
http://gettingreal.37signals.com/ch11_Dont_Do_Dead_Documents.php
Admin
Exactly. No, no one except you may ever look at the Databse Table Design sheet again. But writing the Database Table Design sheet forces you to put some hard thought into the design of your database tables. Likewise, the Requirements list forces you to decide what your project's requirements are. Some documentation is for the benefit of those reading it, while other documentation is for the benefit of those writing it.
Admin
Why are you talking about this so much? Documentation is EASY.
Admin
One other class of documentation worth keeping up to date is the instructions on how to set up the dev environment. The worst cases have a ton of 'secret scripts' that every new developer has to waste time finding out about. Builds should be standard, of course, but that doesn't mean they are.
Admin
Admin
Seriously?! You've got a manager dogging your heels to finish off defect fix #1 today cause you have to start on defect fix #2 (on a different system) tomorrow and defect fix #3 (on a 3rd system) and you tell them, "Sorry, but I have to finish reading 1000s of lines of source code"
Admin
Admin
Admin
Why can't we do it and still admit it's probably not ethical? Our society isn't perfect. I certainly hope that some day we can come up with a better solution than capital punishment, but first we have to stop bickering about it.
Also, congrats on taking this even further off-topic, people. Capital punishment? I didn't see it going there.
Admin
Admin
I had to smile about "write-only documentation" - so true! A lot of documentation was just written because the project required it to be compliant with ISO9001, CMMI, ITIL, <feel free to include any other buzzwords>. Or even worse, just in order to tick off the documentation requirement.
The scope and the extent of the documentation should be already defined in a project plan:
I work in an environment which supports 100s of applications - the support staff relies heavily on documentation as nobody will ever have a complete picture of the application landscape. Some general thoughts about how people can work efficiently with documentation:
Organize documentation DONT: Just put all documentation in a shared folder. DO: Categorize documentation and provide a structured approach which reflects the use case. Check with the target audience how fast they find the information they need.
Keep documentation up to date. Always. DONT: Introduce new releases and tell people that the documentation will be updated soon (read: never) DO: Realize that the documentation is an integral part of the application. A new release is only signed off when the documentation has been updated too. Think of automating documentation (we create network drawings automatically using homemade scripts)
Assign responsibility to a Doc master. DO: Make somebody responsible for the accuracy of documentation. DO: Doc Master reviews documentation on regular basis. DO: when team members find a mismatch in the documentation, they forward the problem to the Doc Master. He is the problem owner.
Make sure your documentation is usable DONT: assume that documentation is ok if you are finished DO: make sure there is somebody in the target audience who will check and sign-off the documentation. Ask questions like: do the docs help you to do your job? would you use the documentation? if not: why?
Admin
Strange that nobody mentioned it yet, but there's a significant error in the article. You can not understand any code. If we assume that human brain is a Turing-compatible machine, the Rice's theorem states: For every programmer ther's code they won't understand.
Admin
Clearly you've never had to deal with government or legal requirements. : )
About 1/3rd of my job as a global projects technical architect has devolved to the production of insanity-inducing documentation as required by a phone-book sized batch of laws and regulations. For example, I have to follow Food and Drug Administration doc requirements intended for documenting design decisions for nuclear medicine and x-ray machines, simply to deploy email scanning appliances and laptop antivirus software.
It got so bad, that the company instituted separate documentation processes - one for the regulatory work, and 'work instructions' for people who actually need to learn what it does. : )
Admin
"Documentation is like sex: when it is good, it is very, very good; when it is bad, it is better than nothing." - Dick Brandon
Admin
Documentation should be threefold,
Hit by a train documentation:- This is documenting what you were last working on so that someone less competent/not familiar with your code base can have a starting point. Usually called an issue tracker.
Getting a better job documentation:- This is documentation in code that generates class diagrams so that everyone knows what your functions are supposed to do. Then you or anyone else can find leverage points to put their own code in to make new features/products. Usually use Doxygen, or other autogen docs generators.
Thinking ahead documentation:- This is designing how things should roughly work before writing any code. So you know where you are going and not forced down crappy code paths. This generally is a pitfall of the "I'm good a building Lego I don't need no plan." type of programmer. Usually a whiteboard and marker, or paper and pen, or any other drawing combination.
In the company I work for the 2 other developers do the following: 1) Never happens, why? "Issue tracker, whats an issue tracker? surly thats what excel is for." 2) Never happens, why? "Comments? they make the code difficult to read.", "Diagrams? what have they got to do with code?", and "My code is self documenting" 3) Never happens, why? "I am great with Lego!", and "look I drew a cock on the whiteboard!"
For f*** sake they have a config file parser that is made up of 18 different dll, most with just 4 class in one c# file.
I think it might be time for a new job...
Admin
I think I get it now!
This type of off-topic banter regarding spelling or semantic details and the real meaning of words is like a running schtick here on TDWTF - isn't it? Isn't it?
Its like a Abbot and Costello routine constantly running in the background in order to break our train of thought as we read the thread!
And I'll bet, I'll just bet you guys AREN'T REALLY HUMAN AT ALL -- YOUR ALIEN CYBORGS WHO HAVE HACKED OUR INTERWEBS FROM OUTER SPACE AS PART OF YOUR PRE-INVASION PLAN TO BREAK OUR MORALE AND DRIVE US CRAZY!
I knew it, I fuckin knew it! No way would humans do this to each other, no way.
Admin
are you sure you work in IT?