"Battleship" style game

Shawn Milochik Shawn at Milochik.com
Wed Feb 25 11:50:18 EST 2009


On Wed, Feb 25, 2009 at 11:38 AM, Marco Mariani <marco at sferacarta.com> wrote:
>
> Yes it's in Python alright, but it's not Pythonese yet. You could try
> avoiding the getter/setter stuff, and camelCase method naming, things like
> that, for a start.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>


What do you mean avoiding the getter/setter stuff? If I understand
correctly, you're saying to directly access the attributes, which I
specifically want to avoid because I may want to enforce some rules
(such as not changing a ship length after it's created).

The camel-case thing I get -- I use that and this_type quite a bit,
probably because of the inconsistency of the languages I use
regularly, and standards at work and conventions in my hobby
programming.



More information about the Python-list mailing list