POV-Ray : Newsgroups : povray.off-topic : All bow to the mighty Python Server Time
4 Sep 2024 13:16:56 EDT (-0400)
  All bow to the mighty Python (Message 65 to 74 of 84)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: scott
Subject: Re: All bow to the mighty Python
Date: 22 Apr 2010 03:05:55
Message: <4bcff553$1@news.povray.org>
> The *other* problem is that Haskell libraries tend not to be very 
> documented. :-(

As Darren said, even if you add no documentation to your code at all, you 
still get to see the parameter type and name that the library programmer 
used in the pop-up help, which usually is enough to figure out what to do - 
unless they did something stupid like "float Rotate(float a, float b)" :-)

Adding documentation to your code is really easy too, you can just type 
"///" before a function definition and it will automatically insert a 
template for you to add some text to say what the function does and add some 
help text for each parameter.  Obviously this then shows up in the 
auto-complete pop-up when you use that function.

There are also documentation builder programs that will scan all your code 
source files for these special "///" comments and automatically build one of 
the MS Help files for you.  I have never done this, but it if I was to 
release some library it would be a matter of seconds to generate the 
documentation file.


Post a reply to this message

From: scott
Subject: Re: All bow to the mighty Python
Date: 22 Apr 2010 03:25:15
Message: <4bcff9db$1@news.povray.org>
>> What you're saying is "Python using whitespace is stupid because a lot of
>> web sites don't treat whitespace as significant."  Sure, OK, that's an 
>> opinion.
>
>  I think it's a very valid opinion taking into account the amount of
> programming forums and blogs out there.

FWIW I've read and posted to loads of C++/C# blogs and forums, and I don't 
ever recall seeing the whitespace getting messed up (it would make C+/C# 
code look horrible).


Post a reply to this message

From: Invisible
Subject: Re: All bow to the mighty Python
Date: 22 Apr 2010 04:01:49
Message: <4bd0026d@news.povray.org>
scott wrote:
>> The *other* problem is that Haskell libraries tend not to be very 
>> documented. :-(
> 
> As Darren said, even if you add no documentation to your code at all, 
> you still get to see the parameter type and name that the library 
> programmer used in the pop-up help, which usually is enough to figure 
> out what to do - unless they did something stupid like "float 
> Rotate(float a, float b)" :-)
> 
> Adding documentation to your code is really easy too, you can just type 
> "///" before a function definition and it will automatically insert a 
> template for you to add some text to say what the function does and add 
> some help text for each parameter.  Obviously this then shows up in the 
> auto-complete pop-up when you use that function.
> 
> There are also documentation builder programs that will scan all your 
> code source files for these special "///" comments and automatically 
> build one of the MS Help files for you.  I have never done this, but it 
> if I was to release some library it would be a matter of seconds to 
> generate the documentation file.

Haskell too has a document autogen tool. Unfortunately, if the 
programmer didn't bother to write any comments, all you'll get is a list 
of function names and type signatures. Sometimes that really is all you 
need - but sometimes it isn't...

Also, all too often when trying to use a complex library, what you need 
is a high-level overview of the library's design before you start 
reading low-level documentation for individual functions. This is almost 
never available.


Post a reply to this message

From: Invisible
Subject: Re: All bow to the mighty Python
Date: 22 Apr 2010 04:03:03
Message: <4bd002b7$1@news.povray.org>
>> IBM still make mainframes?
> 
> Yes, they still make mainframes. Most large corporations
> still use them. It is a very profitable business for IBM.

Really? Wow. I thought people stopped making and using mainframes about 
20 years ago...


Post a reply to this message

From: Darren New
Subject: Re: All bow to the mighty Python
Date: 22 Apr 2010 11:37:32
Message: <4bd06d3c@news.povray.org>
scott wrote:
> if I was to release some library it would be a matter of seconds to 
> generate the documentation file.

And this, ladies and gentlemen, is why we have textbooks about libraries.

-- 
Darren New, San Diego CA, USA (PST)
   Linux: Now bringing the quality and usability of
   open source desktop apps to your personal electronics.


Post a reply to this message

From: Darren New
Subject: Re: All bow to the mighty Python
Date: 22 Apr 2010 11:38:38
Message: <4bd06d7e$1@news.povray.org>
Invisible wrote:
>>> IBM still make mainframes?
>>
>> Yes, they still make mainframes. Most large corporations
>> still use them. It is a very profitable business for IBM.
> 
> Really? Wow. I thought people stopped making and using mainframes about 
> 20 years ago...

Actually, they're suing open source mainframe emulator authors lately.

-- 
Darren New, San Diego CA, USA (PST)
   Linux: Now bringing the quality and usability of
   open source desktop apps to your personal electronics.


Post a reply to this message

From: Invisible
Subject: Re: All bow to the mighty Python
Date: 22 Apr 2010 11:52:45
Message: <4bd070cd$1@news.povray.org>
>> if I was to release some library it would be a matter of seconds to 
>> generate the documentation file.
> 
> And this, ladies and gentlemen, is why we have textbooks about libraries.

That and the fact that, like I said, sometimes you need an overview to 
describe how the pieces fit together before you can properly understand 
the nitty gritty of individual function descriptions and so on.


Post a reply to this message

From: Invisible
Subject: Re: All bow to the mighty Python
Date: 22 Apr 2010 11:53:18
Message: <4bd070ee@news.povray.org>
>> Really? Wow. I thought people stopped making and using mainframes 
>> about 20 years ago...
> 
> Actually, they're suing open source mainframe emulator authors lately.

OK, wow. I had no idea that such things even existed. o_O


Post a reply to this message

From: Darren New
Subject: Re: All bow to the mighty Python
Date: 22 Apr 2010 12:45:21
Message: <4bd07d21$1@news.povray.org>
Invisible wrote:
>>> if I was to release some library it would be a matter of seconds to 
>>> generate the documentation file.
>>
>> And this, ladies and gentlemen, is why we have textbooks about libraries.
> 
> That and the fact that, like I said, sometimes you need an overview to 
> describe how the pieces fit together before you can properly understand 
> the nitty gritty of individual function descriptions and so on.

That's exactly what I was referring to. :-)

-- 
Darren New, San Diego CA, USA (PST)
   Linux: Now bringing the quality and usability of
   open source desktop apps to your personal electronics.


Post a reply to this message

From: Warp
Subject: Re: All bow to the mighty Python
Date: 22 Apr 2010 13:33:47
Message: <4bd0887b@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> Actually, they're suing open source mainframe emulator authors lately.

  On what grounds?

-- 
                                                          - Warp


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

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