True, L_vLao is a terrible choice. thx El jueves, 12 de octubre de 2017, 21:56:06 (UTC+2), Justin Israel escribió: > > > > On Fri, Oct 13, 2017, 8:40 AM Rudi Hammad <[email protected] > <javascript:>> wrote: > >> >> >>> On another note, does Pep8 warn about your choice of method and variable >>> naming? ;-) >>> >> >> oooh yes...pep8 complain about that as well...¬¬ I told him to not warn >> me about that. >> >> PEP8 says no camelCase in variables. All lower case with underscoreY. >> L_vLao is ugly i know. stands for left vertical layout. I wrote capital "L" >> because in my rigs I do L_arm_jnt, >> According to PEP8 it should be left_vertical_layout...come on! PEP8 >> variable naming convention would make variables name too long. How would >> you name it? >> About the method name I tied to name it with according to the action that >> it does. I thought create_mainLayout was ok. >> >> I try not be to obsessed with PEP8, but please, I am happy to hear how to >> name better variables and methods. >> > > > I'm not too fussed about camelCase vs snake_case but I do believe you > should be consistent for readability. Also, upper case is a convention > usually reserved for classes and globals. You have chosen to mix all of > those in multiple combinations. It hurts readability. > >> -- >> 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] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/python_inside_maya/90354788-78f7-4949-a850-3580bbf373d7%40googlegroups.com >> >> <https://groups.google.com/d/msgid/python_inside_maya/90354788-78f7-4949-a850-3580bbf373d7%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> >
-- 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/00b5b37d-9f09-4037-b89d-bb7ac29df4f1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
