Implicit initialization is EVIL!

Chris Angelico rosuav at
Sun Jul 3 18:21:48 EDT 2011

On Mon, Jul 4, 2011 at 8:11 AM, rantingrick <rantingrick at> wrote:
> A new user should learn from day one the hierarchy of a GUI.
> -root window
> -optional widgets
> --optional sub windows
> ---optional widgets
> ---and on and on

You're forgetting all the other crucial parts of the hierarchy. A new
user should be forced to declare a Desktop that s/he wants the window
on, and a Screen, and choose which video driver to use too! Implicit
acceptance of defaults is EVIL!  Oh, and while you're at it, Python's
habit of letting you skip variable declarations is EVIL too. A new
user should learn from day one that variables need to be stored
somewhere, so Python should stop coddling its newbies and actually get
them to do things right:

var(0x14205359) x   # Don't forget to provide an address where the
object will be located

After all, everyone's gotta learn about segfaults some day!

Chris Angelico

More information about the Python-list mailing list