This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-14
Channels
- # beginners (74)
- # boot (1)
- # cider (6)
- # clj-kondo (8)
- # cljs-dev (30)
- # clojure (195)
- # clojure-ecuador (1)
- # clojure-europe (2)
- # clojure-italy (51)
- # clojure-nl (47)
- # clojure-spec (9)
- # clojure-sweden (27)
- # clojure-uk (63)
- # clojurescript (84)
- # cursive (41)
- # datascript (17)
- # datomic (16)
- # docker (1)
- # emacs (10)
- # events (2)
- # graalvm (2)
- # graphql (37)
- # juxt (2)
- # nrepl (20)
- # nyc (2)
- # off-topic (26)
- # onyx (3)
- # pedestal (4)
- # perun (19)
- # planck (1)
- # reagent (9)
- # reitit (4)
- # shadow-cljs (208)
- # spacemacs (6)
- # tools-deps (4)
morning!
@dharrigan I use the features of my editor (Spacemacs) to show me the docs and source of a function that is not defined in my project (i.e) anything in clojure.core or other libraries).
For function definitions in the current project I jump to the definition, as @benedek mentioned. This shows the function definition with doc string and source of course 😀
I only use (clojure.repl/doc)
and (clojure.repl/source)
when teaching/coaching or the rare occasion I use a repl buffer directly (evaluation of code in the editor I find faster and more useful).
The classic repl approach is to stay in the user
namespace and include your application namespaces as you wish to use them. The user
namespace includes the clojure.repl
namespace so you can use doc
and source
directly.
As a side note, the use
function is generally discouraged as it can cause conflicts with libraries, versions and functions. use
is a very blunt tool for making functions available. require library-namespace :as alias
or require library-namespace :refer [specific-function another-function]
is safer and recommend approach.
One day I will find time to put all these kind of tips into my books (which are still work in progress... https://practicalli.github.io/
This is why I havent finished any of them, I am writing several online books/workshops/extremely large tutorials all at once. Will try to focus in the next few months and get some of them more complete...
Any reason why practicalli (which I assume is run by yourself) uses gitter over slack?
History... In both senses of the word. I used Giiter before slack became popular. Gitter also keeps the history of the conversations longer. I have also created a Practicalli slack community, but not updated the books 😁 I will probably just add a #practicalli channel in the Clojurians slack community for audience reach (and now there is a the log and zulip that keeps history.
Lots of work to do 😁
You mean intern? https://clojure.github.io/clojure/clojure.core-api.html#clojure.core/intern
Ah, yes, my bad. I think of itern as including a function from another namespace, as if it had been written (defined) in this current namespace. As you have seen in the doc its got a much more specific description 🙂
I've spent the morning writing C# code - now it is lunchtime! I can do 1 hour or so of clojure stuff
Oh @maleghast you bit….
YOu know what, C# ain't that bad of language, it has some really nice things. It's the environment that I feel lost in. I rarely use Windows. I do C# in order to support a 3rd party library (that only released an interface to their thing using C++))
Yeah C# is ok… just java with a few warts removed and not as good a VM
morning
@carr0t congrats! what’s the new gig?
ah are you going to be working with the data science team then?
you might meet a former colleague of mine if so
Salford?
rather than Glasgow?
I assume so as Dan’s solidly part of the manc massive
@alex.lynham Yes, they are part of this group. Who's the former colleague?
Is Scottish fudge somehow better? I prefer Scottish fudge to other local fudges in England.
(west country) clotted cream fudge is pretty nice iirc @dominicm
A big +1 for that type of fudge, yeah.
[Event] Celebrating tech inclusion on May 28th with Bridges (ClojureBridge etc) foundation. Details in the #events channel
I would suggest trying https://en.wikipedia.org/wiki/Kr%C3%B3wki but I’m biased that way 😉