Hey Alok,
Yes, there is no rule about the amount of arguments. It just that according to 
programmer like uncle Bob, with more that 40 years of experience, if yo have 
more than 3 args maybe you are going something wrong. He says that 3 is already 
a lot, and 4 is the devil work ( unless really really justified). Also he says 
that a function should never have a book arguments because that would probably 
mean that the code is not respecting the single responsibility principle. But 
that's a complete different topic.

My goal here is to avoid having to wright multiple lines to set a widget. So 
instead of using .setColor() then .setTitle() then .setObjectName() etc... Have 
it all in on call that works with any type of widget.

So I am just thinking about a way to abstract it, or maybe create just a 
wrapper. I don't know yet what would be a clean approach

-- 
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/031b2b01-9ec0-4ae0-b870-95e569e1bc3b%40googlegroups.com.

Reply via email to