thanks so much *Laurens Van Houtven, *appreciate the quick response

On Sat, Feb 10, 2018 at 11:20 AM, Laurens Van Houtven <_...@lvh.io> wrote:

> Hi,
>
>
> In order to use functions from another namespace, that namespace must be
> available on the Java Classpath. If you & your coworker are working on the
> same project, this problem usually resolved via version control. If you're
> working on separate projects, that's usually fixed by having the projects
> other projects depend upon create releases and upload them to a repository
> where other projects can consume them. One such example of a public
> repository is clojars.org. Another alternative is to "vendor" your
> dependency, which means you have a local copy in your project instead of
> depending on a released artifact. A final option is to manipulate your
> classpath directly. While it involves slightly more overhead, usually
> consuming proper artifacts (the first option) is the right thing to do.
>
> so, to answer your specific questions:
>
> ;1) what will joe need to do so that I can read his function in mine since
> we both are working in our local?
>
> Create a release and upload the resulting jar somewhere where you can
> consume it, or upload their source somewhere so you can consume it.
>
> ;2) what will I need to do once joe is completed?
>
> add the arrtifact as a dependency to your project; or otherwise include it
> on the classpath
>
> ;3) is there a link somewhere I can refer to for this type of information
>
> While there are a few options for build tools, Leiningen is popular; its
> tutorial mostly covers this type of thing: https://github.com/
> technomancy/leiningen/blob/master/doc/TUTORIAL.md#what-
> this-tutorial-covers
>
>
> lvh
>
>
> On Sat, Feb 10, 2018 at 11:00 AM, Nadeen Kurz <kurznad...@gmail.com>
> wrote:
>
>> https://repl.it/repls/ZanyHoarseZebratailedlizard
>>
>>
>> ; Dependency between two people
>> ;assume I am working with Joe on a project, Joe is responsible for the
>> functions in
>> ;(ns map.core)  which he creates in his local branch.
>> ;I am responsible for the functions (ns mine.core) and I am dependent on
>> Joe's inpu-file function
>> ;based on what I read, to use fuctions from other namespaces I will need
>> to use the :require as shown below. everthing I have read shows one
>> project, with multple clj in src, I could not find between people/projects
>> ;Question
>> ;I would like to test that my functions are working, but to do so
>> successfully, I need joe's function in my local
>> ;1) what will joe need to do so that I can read his function in mine
>> since we both are working in our local?
>> ;2) what will I need to do once joe is completed?
>> ;3) is there a link somewhere I can refer to for this type of information
>>
>> ;Joe's project
>> (ns map.core)
>> (def input-file [{:st_abbrev "AZ", :firstname "john", :lastname "smith"}
>>                       {:st_abbrev "FL", :firstname "roy", :lastname
>> "wills"}
>>                        {:st_abbrev "OH", :firstname "jay", :lastname
>> "louis"}])
>> ;-----------------------------------------------------------------------
>>
>> ;my project
>> (ns mine.core
>>     (:require [map.core :refer [input-file]))
>> (def state-names
>>     {"AZ" "Arizona", "FL" "Florida", "OH" "Ohio"})
>>
>>  (defn state-desc3 [input-file]
>>     (assoc input-file :state (state-names (:st_abbrev input-file))))
>>
>> (map state-desc3 input-file)
>>
>> --
>> 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.
>

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