Closed (fixed)
Project:
Address
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2015 at 20:42 UTC
Updated:
21 Nov 2015 at 21:24 UTC
Jump to comment: Most recent
When we were starting Commerce and Address we decided to break Drupal's coding standard in regards to variable naming, by mandating camelCase everywhere, instead of snake_case. The argument was that the library interfaces already imposed too many camelCase variables, giving us a very inconsistent end result.
Since then we've reduced the essential library interfaces for entities to getters only.
The Drupal interfaces are the ones that provide the setters now.
That means our argument is gone, and we should switch back. The resulting code will be uglier, but personal opinions are no basis for going against the ecosystem here.
Comments
Comment #2
bojanz commentedDone. That was a lot of search&replace.