On further reflection, in most cases you can avoid defmulti and
defprotocol, and write functions that accept data and return data to
implement most of your logic. In that case a "stub" is simply a data
literal of the appropriate shape. Start with some conventions about how the
data should be structured, then write code that knows how to handle that
data.

On Sat, Feb 10, 2018 at 10:06 AM Justin Smith <noisesm...@gmail.com> wrote:

> One approach to this sort of parallel development is having each developer
> code against the interface of other modules, while implementing the
> interface of their own module, so that their code can use stubs of
> interfaces before the production versions are available.
>
> Perhaps in Clojure this could be done with defprotocol or defmulti in a
> bare bones shared namespace, calling methods from that namespace to
> implement your own functionality, while implementing some of the methods
> for others.
>
> On Sat, Feb 10, 2018 at 9:57 AM Alex Miller <a...@puredanger.com> wrote:
>
>> There are other options to manage multiple projects without creating jars
>> using either local or git deps in clj. Don’t have time to give a full
>> example atm but just wanted to mention it.
>>
>> https://clojure.org/guides/deps_and_cli
>>
>> --
>> 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.
>>
>

-- 
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