Re: [Maya-Python] pep 8 nameing convention for packages and modules

2016-09-25 Thread Marcus Ottosson
I agree too. Based on limited knowledge of what you’re up to, here’s how I might have expected it to look. from rigbuilder import skeleton skeleton.build() - No acronyms - package and modules are included in how you read the code - functions for verbs (classes for names of things) Per

Re: [Maya-Python] pep 8 nameing convention for packages and modules

2016-09-25 Thread Rudi Hammad
wow, I am so glad I asked. It very interesting your points of view, and very clarifying. Let me be a little more specific, because that might change some things. I set my maya environment root to a folder called --> rigbuilder. So this is just a folder, no package. Then inside, I have 3 packages:

Re: [Maya-Python] pep 8 nameing convention for packages and modules

2016-09-25 Thread Rudi Hammad
wow, I am so glad I asked. It very interesting your points of view, and very clarifying. Let me be a little more specific, because that might change some things. I set my maya environment root to a folder called --> rigbuilder. So this is just a folder, no package. Then inside, I have 3 packages:

Re: [Maya-Python] pep 8 nameing convention for packages and modules

2016-09-25 Thread Marcus Ottosson
Consider how it would affect the readability of your project if you: a) removed the rb prefix and b) made each class into a module At the moment, rb is used as a namespace. In languages such as C, you need those to avoid nameclashes and to make your code look readable. But Python has a nicer way

[Maya-Python] generate hair curves between guide curves

2016-09-25 Thread Arjun Thekkummadathil
Hi Folks Am trying to make a maya plugin node which can generate bunch of curves between input curves. Say like i have guide curves and I need to generate high density curves between them. Am wondering if there is already some existing solution for this, if not do any of you have any s

Re: [Maya-Python] pep 8 nameing convention for packages and modules

2016-09-25 Thread Rudi Hammad
yes, the rb prefix is annoying. I think it makes more cense put all the modules together intead of diferent packages. So the main package would be rigbuilder, and the modules would be guides and skeleton. I will maintain solutions as a package tough. (I can' t remove classes because the code is

Re: [Maya-Python] pep 8 nameing convention for packages and modules

2016-09-25 Thread Marcus Ottosson
About style, that is all fine. But if you're in a team, maybe try to think less about what you prefer, and consider the preference of those reading, and potentially maintaining your code.​ Even amazing programmers will appreciate having their preference considered. -- You received this message b

Re: [Maya-Python] pep 8 nameing convention for packages and modules

2016-09-25 Thread Alok Gandhi
> > The 80 characters per line, is definitely crazy When I started programming in python (and that was about 10 years ago) I thought the same. More so, when we have four spaces per indent. But then, now I am completely comfortable with 80 characters per line. There are ways to get your code to loo

Re: [Maya-Python] pep 8 nameing convention for packages and modules

2016-09-25 Thread Rudi Hammad
Your explanation is very reasonable. I try to write code in a beautiful and readable way always, This is a test to compare. PEP-8 3. Inside strings too: class MyClass(object): def someMethod( some_big_argument_name, another_big_argument, and_yet_another_huge_argumen

Re: [Maya-Python] pep 8 nameing convention for packages and modules

2016-09-25 Thread Rudi Hammad
Your explanation is very reasonable. I try to write code in a beautiful and readable way always, This is a test to compare. PEP-8 class MyClass(object): def someMethod( some_big_argument_name, another_big_argument, and_yet_another_huge_argument_name ):

Re: [Maya-Python] pep 8 nameing convention for packages and modules

2016-09-25 Thread Marcus Ottosson
I like strawberry. I think strawberry is the best flavour. It tastes good, has the right nutrition and makes every dish I make taste good too. For my family of 10, I will make strawberry meals all day because it is what I prefer. I don't care about what the others like, because they don't share

Re: [Maya-Python] pep 8 nameing convention for packages and modules

2016-09-25 Thread Alok Gandhi
> > Strawberry isn't wrong. But tastes differ, and best you can do is cook > something that the largest amount of family members will like. @marcus: My apologies but I fail to get the point. Is it for or against the use of PEP-8? On Sun, Sep 25, 2016 at 10:35 PM, Marcus Ottosson wrote: > I lik

Re: [Maya-Python] pep 8 nameing convention for packages and modules

2016-09-25 Thread Alok Gandhi
> > And I don´t think it is uglier Both are readable for sure, I agree, 120 is not bad at all. It is good to see that you put some thought not only what your code does but also how does it look. Just another piece of advise - For the perspective of version control system in particular, there is

Re: [Maya-Python] pep 8 nameing convention for packages and modules

2016-09-25 Thread Marcus Ottosson
If you have chosen the style, such as strawberry, preferred by the highest percentage of your family, then you are doing it right. :) strawberry: 7/10 <- winner! pear: 2/10 marmite: 1/10 ​ -- You received this message because you are subscribed to the Google Groups "Python Programming for Aut

Re: [Maya-Python] pep 8 nameing convention for packages and modules

2016-09-25 Thread Rudi Hammad
Thanks Alok. See, some people think that, because they have a lot experience and talent(like marcus, and obviously he is very talented), they have they right to insult, using sarcastic comments, the people who are learning and asking questions. ( or maybe it is just with me, who knows). I am ve

Re: [Maya-Python] pep 8 nameing convention for packages and modules

2016-09-25 Thread Justin Israel
Hey Rudi On Mon, 26 Sep 2016, 4:45 AM Rudi Hammad wrote: > Thanks Alok. > > See, some people think that, because they have a lot experience and > talent(like marcus, and obviously he is very talented), they have they > right to insult, using sarcastic comments, the people who are learning and >

Re: [Maya-Python] pep 8 nameing convention for packages and modules

2016-09-25 Thread Alok Gandhi
> > Thanks Alok. > See, some people think that, because they have a lot experience and > talent(like marcus, and obviously he is very talented), they have they > right to insult, using sarcastic comments, the people who are learning and > asking questions. > ( or maybe it is just with me, who knows

Re: [Maya-Python] pep 8 nameing convention for packages and modules

2016-09-25 Thread Justin Israel
On Mon, Sep 26, 2016 at 11:53 AM Alok Gandhi wrote: > Thanks Alok. >> See, some people think that, because they have a lot experience and >> talent(like marcus, and obviously he is very talented), they have they >> right to insult, using sarcastic comments, the people who are learning and >> aski