Skip to content

box types not named consistently #220

Open
@julie777

Description

@julie777

I always prefer class/type naming to be "adjective noun" as opposed to "noun adjective", which some prefer because filenames group together. "Adjective noun" matches normal speech, such as "hand me the blue pen".

When I first looked at box types I had to take time to understand what they meant, because my first reaction what "what is different to name one camel_killer_box and another box_dots".

I suggest that names be change to:

  • conversion_box
  • default_box
  • dots_box
  • camel_killer_box
  • frozen_box
  • recast_box
  • intact_types_box
    and allow previous names as synonyms for a time, marked with a deprecated warning.

However, I wonder why you didn't subclass box instead. You are calling the above type arguments.
Sub-classing Box would also have the benefit of

  • making it more explicit that it is a different type with some additional behavior
  • allow parameters specific to the sub-class to be specific to the init for that class
    • it is clear from the documentation that supplemental box arguments are specific to the type of box

Would you accept a pull request for this?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions