POV-Ray : Newsgroups : povray.off-topic : Signs you're doing it wrong... Server Time
5 Sep 2024 13:15:08 EDT (-0400)
  Signs you're doing it wrong... (Message 1 to 8 of 8)  
From: Darren New
Subject: Signs you're doing it wrong...
Date: 30 Jul 2009 13:50:15
Message: <4a71dd57$1@news.povray.org>
When you have a C macro more than 300 lines long...
... that takes no arguments
... that you invoke only once

When the only documentation for your library is sample code...
... that doesn't work
... and for which you don't supply source code

When the sample code for doing a conceptually simple operation...
... takes 6000 lines of code
... and 300 global status variables

-- 
   Darren New, San Diego CA, USA (PST)
   "We'd like you to back-port all the changes in 2.0
    back to version 1.0."
   "We've done that already. We call it 2.0."


Post a reply to this message

From: Mike Raiford
Subject: Re: Signs you're doing it wrong...
Date: 30 Jul 2009 13:51:12
Message: <4a71dd90@news.povray.org>
Darren New wrote:

> When you have a C macro more than 300 lines long...
> ... that takes no arguments
> ... that you invoke only once
> 
> When the only documentation for your library is sample code...
> ... that doesn't work
> ... and for which you don't supply source code
> 
> When the sample code for doing a conceptually simple operation...
> ... takes 6000 lines of code
> ... and 300 global status variables
> 

I don't envy you ...

-- 
~Mike


Post a reply to this message

From: Warp
Subject: Re: Signs you're doing it wrong...
Date: 30 Jul 2009 14:03:29
Message: <4a71e071@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> When the only documentation for your library is sample code...
> ... that doesn't work
> ... and for which you don't supply source code

  What really grinds my gears is the phenomenon during recent years of
libraries appearing on the net which have no documentation, no introductions,
no tutorials and no sample code. The sole "documentation" the library offers
is a doxygen-generated listing of all classes and functions (hundreds of
them), in no logical order (except alphabetical, which is useless) and
usually completely uncommented.

  Probably nobody but the author himself knows how to use the library.

  What's the point?

-- 
                                                          - Warp


Post a reply to this message

From: clipka
Subject: Re: Signs you're doing it wrong...
Date: 30 Jul 2009 14:45:00
Message: <web.4a71e971a76a3e68a13874630@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
>   What really grinds my gears is the phenomenon during recent years of
> libraries appearing on the net which have no documentation, no introductions,
> no tutorials and no sample code. The sole "documentation" the library offers
> is a doxygen-generated listing of all classes and functions (hundreds of
> them), in no logical order (except alphabetical, which is useless) and
> usually completely uncommented.
>
>   Probably nobody but the author himself knows how to use the library.
>
>   What's the point?

Same as with contesting for American Idol, or publishing the 1,225,526th Cute
Kitty video on YouTube: Everyone can be a superstar / film maker / library
programmer. Or at least make a fool of himself trying to.

And after all, isn't that the idea of Free Software, that you give back to the
community all code you develop - no matter how useless or redundant it is? :P


Post a reply to this message

From: Darren New
Subject: Re: Signs you're doing it wrong...
Date: 30 Jul 2009 16:09:25
Message: <4a71fdf5$1@news.povray.org>
Warp wrote:
>   What's the point?

Yes. Yet when you point this out, the answer is invariably "hey, it's free, 
stfu." :-)

Sadly, this is commercial software I'm working with, too.  Bleh!

-- 
   Darren New, San Diego CA, USA (PST)
   "We'd like you to back-port all the changes in 2.0
    back to version 1.0."
   "We've done that already. We call it 2.0."


Post a reply to this message

From: Le Forgeron
Subject: Re: Signs you're doing it wrong...
Date: 30 Jul 2009 16:11:17
Message: <4a71fe65$1@news.povray.org>
Le 30/07/2009 20:03, Warp nous fit lire :
> Darren New <dne### [at] sanrrcom> wrote:
>> When the only documentation for your library is sample code...
>> ... that doesn't work
>> ... and for which you don't supply source code
> 
>   What really grinds my gears is the phenomenon during recent years of
> libraries appearing on the net which have no documentation, no introductions,
> no tutorials and no sample code. The sole "documentation" the library offers
> is a doxygen-generated listing of all classes and functions (hundreds of
> them), in no logical order (except alphabetical, which is useless) and
> usually completely uncommented.
> 
>   Probably nobody but the author himself knows how to use the library.
> 
>   What's the point?
> 
Doxygen can be good enough, if used at least correctly.
Beginning the code with a LONG introduction documenting the concepts in use...
You can even embed pictures for doxygen!

But slappy programmers just hope Doxygen will understand the code for them.
Writing with doxygen in mind is easy, but usually it's written without anything on
mind,
and adding doxygen later is just a quick documentation patch, too bad.

Hopefully, the class names are meaning full... (or worse: classes are named with
numbers
or silly name: My_Class_0234 ... hum! Jose_Class_44B Yummy!)


Post a reply to this message

From: Invisible
Subject: Re: Signs you're doing it wrong...
Date: 31 Jul 2009 04:52:00
Message: <4a72b0b0$1@news.povray.org>
>>   What's the point?
> 
> Yes. Yet when you point this out, the answer is invariably "hey, it's 
> free, stfu." :-)

In Haskell circles, the usual reply is "patches welcome".

In other words, "why don't you do it for me?" (The obvious answer being 
"I'd have to understand how it myself works before I could document it!")

> Sadly, this is commercial software I'm working with, too.  Bleh!

OK, that sucks far more...


Post a reply to this message

From: Invisible
Subject: Re: Signs you're doing it wrong...
Date: 31 Jul 2009 04:54:26
Message: <4a72b142@news.povray.org>
> Doxygen can be good enough, if used at least correctly.

Never heard of Doxygen, but if it's anything like Javadoc and Haddock... 
Far too many Haskell libraries have Haddock listings which are useless. 
You know, the kind where the tool produces a list of what functions are 
available, but can't tell you any more than that because nobody has 
written any, you know, *documentation*.

> But slappy programmers just hope Doxygen will understand the code for them.

Slappy programmers? Is that the kind of programmers that make you want 
to slap them? I'll have to remember that one... :-D


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.