Skip to content

Conversation

seanhandley
Copy link
Owner

@seanhandley seanhandley commented Jul 28, 2019

Addresses #58

Some of the method names could be simplified, in keeping with the Ruby naming conventions.

Changes

Still thinking about some of these 🤔

  • h3_to_parent => parent
  • max_h3_to_children_size => max_children
  • h3_to_children => children
  • h3_resolution => resolution
  • h3_base_cell => base_cell
  • string_to_h3 => from_string
  • h3_pentagon? => pentagon?
  • h3_res_class_3? => class_3_resolution?
  • h3_valid? => valid?
  • h3_to_string => to_string
  • h3_faces => faces
  • geo_to_h3 => from_geo_coordinates
  • h3_to_geo => to_geo_coordinates
  • h3_to_geo_boundary => to_boundary
  • num_hexagons => hexagon_count
  • res_0_index_count => base_cell_count
  • res_0_indexes => base_cells
  • h3_distance => distance
  • h3_line_size => line_size
  • h3_line => line
  • h3_indexes_neighbors? => neighbors?
  • h3_unidirectional_edge_valid? => unidirectional_edge_valid?
  • h3_unidirectional_edge => unidirectional_edge
  • h3_indexes_from_unidirectional_edge => origin_and_destination_from_unidirectional_edge
  • h3_unidirectional_edges_from_hexagon => unidirectional_edges_from_hexagon
  • h3_unidirectional_edge_boundary => unidirectional_edge_boundary

@seanhandley seanhandley self-assigned this Jul 28, 2019
@seanhandley seanhandley force-pushed the deprecate_h3_prefix_methods branch from 0ca1ab8 to f81c399 Compare July 28, 2019 09:05
@seanhandley seanhandley changed the title Deprecate methods prefixed with h3_ Deprecate longwinded method names Jul 28, 2019
@seanhandley seanhandley force-pushed the deprecate_h3_prefix_methods branch 8 times, most recently from 14a79ea to 090a0d7 Compare July 28, 2019 16:34
@seanhandley seanhandley marked this pull request as ready for review August 3, 2019 06:52
@seanhandley seanhandley requested a review from fxn August 3, 2019 06:53
@seanhandley seanhandley force-pushed the deprecate_h3_prefix_methods branch from 090a0d7 to ccb1626 Compare August 3, 2019 06:55
@seanhandley seanhandley force-pushed the deprecate_h3_prefix_methods branch from ccb1626 to ebd69a7 Compare August 4, 2019 20:57
fxn
fxn previously approved these changes Aug 5, 2019
Copy link
Contributor

@fxn fxn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More idiomatic!

@seanhandley
Copy link
Owner Author

Rebasing with master and merging 🚀

@seanhandley seanhandley merged commit 8e06f14 into master Aug 5, 2019
@seanhandley seanhandley deleted the deprecate_h3_prefix_methods branch August 5, 2019 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants