Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

Some time ago I've read some article (or it was a chapter in some book, cannot remember) about naming method prefixes, that reflect method behaviour like addFoo(), setFoo(), removeFoo() etc

Could anyone point me to that article? Cannot google it and it makes me sad panda :-(

share|improve this question
    
You mean the correct verbs to use? –  alex Jun 2 '11 at 10:58
    
@alex: yes, that article (or chapter) was about correct semantics of that verbs in development context. –  zerkms Jun 2 '11 at 10:59
    
@zerkms: "semantics of verbs"? That's odd. Verbs in your language of choice have well-defined semantics. What more do you need to know? Verbs are just words. You just use them. What's the problem? –  S.Lott Jun 2 '11 at 11:26
    
@S.Lott: the problem is to remember where I read about that ;-) Given my answer. –  zerkms Jun 2 '11 at 11:31
    
@S.Lott: Consistent choice of verbs adds value to the API design. –  Tamás Szelei Jun 2 '11 at 11:39
show 5 more comments

1 Answer

up vote 2 down vote accepted

Got it! It is "code complete" by S. McConnell, chapter 7.3 (in second edition)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.