Skip to content

Booleans without Prefixes #32

Answered by travisgosselin
nateklaiber asked this question in Q&A
Discussion options

You must be logged in to vote

@nateklaiber - great question. I too have often used these types of prefixes in the past in some APIs I have built. In putting together these standards with our working group, and looking for consistency of usage in our terminology, we found that usage of such prefixes often were shortcuts to more fundamental questions we should be asking about our API contract.

If wanting a field like "is_owner", it's often a bit ambiguous in terms of what this owner is (obviously context is important and difficult to talk about in examples without some). If not including the actual "owner" complex object, then including a property name in the contract that more fundamentally describes the owner is encou…

Replies: 4 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ca0abinary
Comment options

@travisgosselin
Comment options

@nateklaiber
Comment options

Comment options

You must be logged in to vote
6 replies
@ca0abinary
Comment options

@travisgosselin
Comment options

@nateklaiber
Comment options

@nateklaiber
Comment options

@travisgosselin
Comment options

Answer selected by travisgosselin
Comment options

You must be logged in to vote
2 replies
@travisgosselin
Comment options

@JamesStauffer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants