resource / Front-End-Standards

Front-end development standards for Resource.
MIT License
23 stars 1 forks source link

JSON: The "items" collection standard should be reconsidered. #39

Closed Krxtopher closed 11 years ago

Krxtopher commented 11 years ago

One of the standards says to use "items" as the name for collections that "store sets of like-data". I think that's too prescriptive and - more importantly - goes against the earlier standard that says "use meaningful, semantic names". The word "items" is neither meaningful nor semantic.

In the example provided a better name for the "items" collection might be "associates" or "people" or "executiveTeamMembers", etc.

I recommend we remove this standard.

nicetransition commented 11 years ago

@LukeAskew, thoughts on why you wrote this?

LukeAskew commented 11 years ago

No idea. The example has been updated to a more semantic convention.