Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    John Stevenson
    @jr0cket
    Hello all, if you have any questions about the Clojure Practical.li books I am writing or questions about Clojure itself I will try and help.
    I am also interested in discussing how to learn and to teach Clojure to others...
    nonidentity2
    @nonidentity2

    (def current-date (new java.util.Date))

    (defn task-complete [task-name completed-date]
    (str "Setting task " task-name " completed on " completed-date))

    (print current-date)

    (task-complete "hack clojure" current-date)

    nonidentity2
    @nonidentity2
    (as-> "a" x
    (list 1 x)
    (list 2 x)
    (list 3 x)
    (list 4 x)
    (list 5 x))
    Perhaps the above is not "starter" material
    John Stevenson
    @jr0cket
    Thanks for the feedback @nonidentity2, I have updated the book with your suggestions. I have also made a small change to the way I call task-complete, calling it with the java.util.Date. function directly.
    Colin St. George
    @colinstgeorge
    Yo @jr0cket -- Thank you for the great content -- Ripped through the clojure-webapp book today, great primer for clojure coming from Python/Flask ... I understand it is a work in progress, but I am getting stuck at the refactoring part -- trying to break out into the handler namespace(s)? ... I came across this article as well: http://blog.mattgauger.com/blog/2014/04/13/clojure-data-science-refactoring-and-cleanup/ and have been trying to cobble it all together.. I think my namespaces are worked out, but now I'm getting: Unable to resolve var: base-routes in this context ... idk what my actual question is :) Thanks again!!
    Colin St. George
    @colinstgeorge
    ahh got it after some staring... need to refactor (defroutes app to (defroutes base-routes for the routes to still exist then you send that over to routes. Thanks again
    John Stevenson
    @jr0cket
    Thanks @colinstgeorge for the feedback. I do need to finish quite a few bits off, happy to hear you worked it out pretty quickly.
    Ivar Vasara
    @ivar
    question: aside from the command to Jack in, all the commands on https://practicalli.github.io/spacemacs/why-spacemacs/cider-overview.html seem to involve Emacs specific keybindings. Does the spacemacs clojure layer not provide mappings for evil mode ?
    Ivar Vasara
    @ivar
    btw - I'm a newbie to clojure. I've been experimenting with spacemacs for a while now at work (migrating from vim) and I have to say - Thank you @jr0cket for your guide!
    Ivar Vasara
    @ivar
    this looks pretty sweet - https://practicalli.github.io/spacemacs/evaluating-clojure/inspect.html .. again though, I'm curious as to whether there are spacemacs keybindings (ie: SPC - m ...)
    Ivar Vasara
    @ivar
    ah, the documentation for the spacemacs clojure layer looks pretty up to date - https://github.com/syl20bnr/spacemacs/tree/master/layers/%2Blang/clojure#cider-and-clj-refactor - how exciting!
    John Stevenson
    @jr0cket
    @ivar thanks for the feedback. Yes, there is still much to do with the guide, especially for vim keybindings. Hopefully you have seen that , gives you the Clojure mode (or any mode specific) menu in Spacemacs. So to evaluate you can use , e e
    I will be writing more on the guide over July & August.
    strongunit
    @strongunit
    Hello, i would like to see Electron part in https://practicalli.github.io/clojurescript/figwheel-project/
    how can i help with it?
    John Stevenson
    @jr0cket

    @strongunit sorry for the slow reply. Any pull requests are welcome to the ClojureScript guide content, or raise issues with content you would like to see added. I've added a note to the Gitbook project to add content about Cljs and Electron apps https://github.com/practicalli/clojurescript-content/projects/1
    I also start a guide using Atom and ProtoREPL, although didnt get very far, at https://github.com/practicalli/atom-protorepl if that is something you are also interested in.

    If you are still interested in contributing, all you need is a bit of basic markdown syntax. I use Gitbook to generate the published content from markdown source and to view a local build of the guilde. See install instructions here https://github.com/GitbookIO/gitbook/blob/master/docs/setup.md

    Let me know if you have any questions.

    aebadian
    @aebadian
    @ivar same here, Spacemacs and orgmode has transformed my life. But I must say, its a little slow in my windows box (which is my work OS)
    Jesús Gómez
    @jgomo3

    Hello!
    What command is , undef in spacemacs/cider? Is it right: https://practicalli.github.io/spacemacs/evaluating-clojure/undefine.html ?

    I suppose it is the command cider-undef, that looks like my Spacemacs has not it mapped to any keybinding. Probably that is the reason I don't have it, but in any case, I doubt it was , u n d e f :D