Skip to content

CamelCase vs. underscore notation #682

Closed

Description

@karussell

We should allow both or migrate to just under_score notation. E.g. prepare.ch.weightings vs. prepare.chWeightings or prepare.minNetworkSize vs. prepare.min_network_size

Also check CH properties for better naming in general:

  • routing.ch.heading.force instead of force_heading_ch
  • prepare.ch.weightings instead of prepare.chWeightings

Others:

  • a bit ugly: alternative_route.max_paths vs. algorithm=alternativeRoute
  • make all routing options with or without a routing. prefix. See alternative_route vs. routing.flexMode.xy
  • what about the names in storableproperties
  • names in measurement properties result
  • translation keys

Activity

  1. devemux86 commented on Mar 10, 2016

    @devemux86
    Contributor

    In long term it'd be probably better to have only one notation.
    But what about API current compatibility?

  2. karussell commented on Mar 10, 2016

    @karussell
    MemberAuthor

    At the moment I tend to create converter code that converts all get and put calls with camelCase to under_score and rewrite all put requests and the config to use under_score. This way we always use one notation internally, but keep compatibility.

  3. added this to the 0.7 milestone on Apr 24, 2016
  4. karussell commented on May 13, 2016

    @karussell
    MemberAuthor

    I'll soon implement this where all of the old settings should work as before (except maybe rarely used like force_heading_ch) or other options introduced in 0.7-SNAPSHOT

    The plan is to

    • switch all properties to under_score
    • use parameters without routing.

    for all the areas mentioned above.

    What do you think?

  5. devemux86 commented on May 13, 2016

    @devemux86
    Contributor

    I think it's a good plan. 👍

  6. karussell commented on May 13, 2016

    @karussell
    MemberAuthor

    Please have a look into #719

  7. added 2 commits that reference this issue on May 14, 2016
  8. changed the title [-]CamelCase vs. under_score notation[/-] [+]CamelCase vs. underscore notation[/+] on May 27, 2016
  9. added a commit that references this issue on May 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions