We are considering options for converting CamelCase to camel-case and underline hyphens and hope that someone can offer some compelling examples. (Using hyphens for SEO reasons).
In particular:
Working with MMORPG in Catalyst and tired of having to write things like this:
sub travel_to ( $self, $c, $star ) : Path('travel-to') Args(1) { ... }
Or that:
package Veure::Controller::Area::StorageLocker { .... sub index ( $self, $c ) : Path('/area/storage-locker') { ... } }
Update: due to some confusion, I meant that we would prefer developers to write this:
Or that:
package Veure::Controller::Area::StorageLocker { .... sub index ( $self, $c ) { ... } }
This is important because for an SEO perspective, underscores instead of hyphens can significantly improve your SEO. Doing too much grumbling work to always force hyphens, the developers forget to do this, and we continue to spend money returning and rewriting the code where this warning was forgotten. This is what we should do automatically.
source share