Hi All,
This remark brings us back to the earier discussion about Coding
Standards and Naming Conventions (or Nomenclature for the Latin
inclined reader).
As I stated in a previous post about these standards:
> I have always found it a very positive experience if the frameworks:
> - stick to the coding standards of the environment that they live in
> - have a consistent naming convention
As we 'live in' the environment of Apple, iPhone and CoreLocation, I
would prefer the use of CLLocationCoordinate2D above the use of LatLon
or LatLong.
Yes, LatLon would be easier, I do not know what Apple was thinking
when they chose CLLocationCoordinate2D but ..., Persnally, I might
even go for RMCoordinate but ...
CoreLocation gives me a CLLocationCoordinate2D, so I want to send that
variable with that type straight through to Route Me, without casting,
renaming or converting.
But ... whichever choice we make ... it is better than making no
choice at all and continue on the path we are on now ...
As this is the second thread in a week or so where the subject of
Coding Standards and Naming Conventions, maybe we should give this a
bit more attention ...
The problem with this is that renaming fields, types and methods will
break a lot of running projects ...
BTW ... I love the suggestion to make the RMMapViewDelegate a bit like
existing delegates ...
Regards,
Wouter
Op 27 feb 2009, om 21:20 heeft Hal Mueller het volgende geschreven:
> Better choices for the method names would, IMO, mirror the
> UIScrollviewDelegate nomenclature (copied below). And we should also
> start moving to a common term of reference for latitude/longitude.
>
> That would leave us with -mapViewDidEndDecelerating:, -
> mapViewWillBeginDecelerating:, -mapViewDidMoveToLatLon:, etc.
>
> Hal
>
> UIScrollViewDelegate Protocol ReferenceResponding to Scrolling and
> Dragging
> • – scrollViewDidScroll: optional method
> • – scrollViewWillBeginDragging: optional method
> • – scrollViewDidEndDragging:willDecelerate: optional method
> • – scrollViewWillScrollToTop: optional method
> • – scrollViewDidScrollToTop: optional method
> • – scrollViewWillBeginDecelerating: optional method
> • – scrollViewDidEndDecelerating: optional method
> Managing Zooming
> • – viewForZoomingInScrollView: optional method
> • – scrollViewDidEndZooming:withView:atScale: optional method
> Responding to Scrolling Animations
> • – scrollViewDidEndScrollingAnimation: optional method
>