Fork me on GitHub
#beginners
<
2017-05-13
>
grounded_sage05:05:32

Hey does anyone know where I can find a tutorial which runs through creating my own library and installing it locally. Want to use a branch of a library.

dominicm07:05:27

grounded_sage: depending on how the project is set up, I suspect boot build install will work

grounded_sage05:05:36

This seems like the best thing I can find online.

jumar06:05:31

@grounded_sage yes, you can just use lein install as described in the tutorial. You can also look at checkout dependencies in case you want a quicker turnaround during the development: https://github.com/technomancy/leiningen/blob/master/doc/TUTORIAL.md#checkout-dependencies

grounded_sage06:05:48

I'm not sure what the checkout dependencies provides at a glance. Probably not suited to me anyways as I am a 100% boot user. The branch I am using is a major version bump of a library which I will be using for every project so just looking to do a local build and install.

noisesmith12:05:46

checkout deps allow conveniently reloading a library's namespaces as you edit them without having to reinstall and restart the repl

vitruvia21:05:01

is there a way to format nil so it shows as a blank string or a space? For example if the author is still alive I want (format "%s (%d - %d)" name birth death) to show an empty space after -

alexmiller23:05:10

You could use (or death "")

alexmiller23:05:35

Although I don't know if that works with %d

matan23:05:46

um how do you document the meaning of a variable on a let form?

matan23:05:02

unlike fn there's no room for a docstring, I think

vitruvia23:05:17

thanks, I will try

john23:05:07

@matan just a source code doc? or something stays with the function?

john23:05:45

obviously ; but #_ "comment here" works too

john23:05:05

if what you're trying to do is trace values, you might be interested in: https://github.com/dgrnbrg/spyscope