I name all of my protocols as active very in the first tense/descriptions of 
what they do. Rather than ‘Find’ I would have ‘IFindThings’. It takes a bit of 
getting used to and it was a suggestion in something I read a while ago (one of 
Steve Yeggies’ posts maybe?) but it really makes you think, which is the real 
value. I admit I started this in Java land so it might not be as relevant 
here...

> On 16 Jun 2015, at 03:40, Dru Sellers <d...@drusellers.com> wrote:
> 
> I am creating a protocol for my entity management and I was going to use the 
> name 'find' but that is a well known core lib function as is 'get'. I was 
> curious if it is common practice to still use those methods or if the 
> collective group have settled on other names for the common 'crud' type 
> methods
> 
> I'm building something akin to:
> 
> (defprotocol Database
>     (get [id] "Get the row at id")
>     (find [query] "find the row")
>     (delete [id] "etc")
>     (save [data] "etc")
>     ;etc
>     )
> 
> 
> Thanks! 
> 
> -d
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en 
> <http://groups.google.com/group/clojure?hl=en>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to clojure+unsubscr...@googlegroups.com 
> <mailto:clojure+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to