yes, this is a specific example extracted from my last post

https://pastebin.com/te0EEAeC

So in the example, the main comments are the ones beginning with *# // The 
main comment*
I feel that I can visualize better the body of the code with *# // The main 
comment*
And then the sub comments would be the ones just like *# The subcomment*

For me, it helps reading the code, but I guessI should not create my own 
comment symbol..

Marcus, usually I do the doc string comment after the methods. But again, 
it might be completely irrelevant but instead of using """ """ I use ''' 
''' and I don´t jump a line.
It looks more compact. But I guess I should follow PEP event if I have 
other point of view.


Justin, I read once that if you need to do the kind of comments that I do, 
or put inside the code a divider like # 
-------------------------------------------# it is because you should be 
using
more functions, and not putting everything inside of the same function.
I have seen codes like that, with 25 functions or more. But many of those 
functions had inside 10 or less lines of code. Doesn´t it make it more 
confusing with so many functions?


Also, I recently started studying c++, and it seems that they don´t care as 
much about all this kind of things. 


-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/39a72965-9d40-45d9-a66c-5eb5b049253c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to