Re: Using :refer 'sparingly'

2015-05-27 Thread Akiva
I've been using :refer [...] exclusively but I've been growing increasingly disenchanted with it; it's just a nuisance when you're interrupted by having to address the ns to add a command you didn't previously know you needed. On the other hand, not using :as can become just as much of a nuisan

Re: Using :refer 'sparingly'

2015-05-17 Thread Akiva
paign=reach> Just like the rest of the article, it's about readability. With `:refer` you don't know where a symbol came from when you encounter it in the middle of the code. --S On Sunday, May 17, 2015 at 4:05:14 PM UTC+1, Akiva Schoen wrote: -- You received this message bec

Using :refer 'sparingly'

2015-05-17 Thread Akiva
dious when you want to use a function from a namespace that hasn't been already explicitly referred. Are there no benefits other than possibly excluding function names that might otherwise suffer a namespace clash (assuming their namespace isn't being aliased already)? Thanks, Ak

Re: Better outputs produced by the REPL

2015-03-12 Thread Akiva Schoen
Oops. Missed the bit about not using println. Ignore my last email. On Thu, Mar 12, 2015 at 10:19 AM Akiva Schoen wrote: > (println) does the trick for me. > On Thu, Mar 12, 2015 at 8:30 AM Cecil Westerhof > wrote: > >> 2015-03-12 13:51 GMT+01:00 Alex Miller : >> >&

Re: Better outputs produced by the REPL

2015-03-12 Thread Akiva Schoen
(println) does the trick for me. On Thu, Mar 12, 2015 at 8:30 AM Cecil Westerhof wrote: > 2015-03-12 13:51 GMT+01:00 Alex Miller : > >> Try print-str and println-str. >> > > ​I am not the OP, but I tried that and it does not work. At the moment the > only thing that I got working is: > (print

Re: Diagnosing a figwheel error

2015-03-07 Thread Akiva Schoen
Unless I'm misunderstanding, this sounds like a routing issue. If you're going directly through Figwheel without a Ring server, you'll need something like Secretary to do the routing. Otherwise, you can configure Figwheel to interact with the Ring server's port and simply not use 3449 at all. This

Re: Diagnosing a cljsbuild error

2015-03-07 Thread Akiva Schoen
now, > but I'm trying to understand the cause of the error to begin with. > > > On Saturday, March 7, 2015 at 4:13:56 PM UTC-5, Akiva Schoen wrote: > >> Could it be because of the :runner keyword you have in the vector? >> > On Sat, Mar 7, 2015 at 2:20 PM Jonathon

Re: Diagnosing a cljsbuild error

2015-03-07 Thread Akiva Schoen
Could it be because of the :runner keyword you have in the vector? On Sat, Mar 7, 2015 at 2:20 PM Jonathon McKitrick wrote: > > Any thoughts as to why `lein cljsbuild test` would generate an error like > this? > > Invalid :test-command, contains non-string value: [phantomjs :runner > resources/e

Re: Has anyone seen this error with weasel/piggieback?

2015-03-07 Thread Akiva Schoen
I have but ended up giving up on it and moving to using figwheel's REPL. You might want to reply to the topic I started over on clojure-tools: https://groups.google.com/forum/#!topic/clojure-tools/8C93CstHqpU. :A. On Sat, Mar 7, 2015 at 12:17 PM Jonathon McKitrick wrote: > > Can't change/establ

Re: :reload does not always work correctly in leiningen

2015-03-03 Thread Akiva Schoen
I normally use a set utility functions to reload individual namespaces so I don't lose state. This almost always suffices for day-to-day work. But, if the REPL is still acting shady, then I'll use refresh. Anything is better than having to wait out a REPL reboot. On Sat, Feb 28, 2015 at 10:43 AM J