Fork me on GitHub
Pablo Fernandez07:07:50

How do I upgrade all the dependencies in a lein project?

Pablo Fernandez07:07:07

Ah, lein-ancient.

Pablo Fernandez07:07:39

Ah, version 2.22.0 is gone. Nvm.


Is there a good Clojure/cljs story for making websites (web-apps?) with progressive enhancement?

Pablo Fernandez08:07:57

Oh my, hiccup doesn't escape strings by default. Does it have a mode where it escapes them by default that I can enable?


@pupeno: no. there is a method for escaping them though. escape is planned to be turned on by default in 2.0 (iirc). but it's been a long time coming


anyone into CRDTs ...


@timgluz I like your fork of the Mallet wrapper Was thinking about doing a PR and now I don't know where to go. 😉


Oh, nice — I work with mallet regularly, either directly through it's Java API or by running command-line scripts.


jrychter: but now I'm torn between that fork and the original


@otfrom: well, I hope it will all shake itself down soon. Especially as I'll be using mallet much more in the near future.


@escherize seems to be a good place to start. I think progressive enhancement is pretty platform agnostic. That pretty much comes down to how the (compiled) html, css and js play on the client side. I copied much of the boilerplate from the guestbook app that they use as a sample, and it seems to give me most of the tools that I’m used to from Rails, but without any magic (whether that’s good or bad is a personal opinion).


Hmm, with Luminus (which I am a fan of) it would appear the only way to do p.e. is to write javascript which is fine, I just want to confirm there isn't something I'm not aware of in this space

Pablo Fernandez11:07:26

What’s the appropriate way to get a full URL when calling redirect in a luminus/compojure app?


@escherize: there is this blog post about rendering react components on the server side, if you want to do some lifting yourself simple_smile


@escherize: I’m not exactly sure what you’re looking for wrt progressive enhancement. I know Luminus has the option to use ClojureScript if that’s what you prefer


Thanks @magnars that's very interesting.


@otfrom hi, i once wanted refactor that mallet-lda library and make PR to original resource. But sadly project i needed it for was cancelled. you're welcome to use my fork, but i recommend to use original as it may be newer


timgluz: they are more different at the moment. Some features are in yours, some in Marco's. I'll look at porting stuff over to Marco's as needed. Thx for the clarification! 😄


@otfrom: everything clearly points to you as the person who has do to the merge 😄


jrychter: OH TEH NOES! 😱


@otfrom: well, we all saw you standing next to that repo. With both pieces (forks) in your hands, in fact. I guess I could add some more code — but I'm not sure what the focus of the library is. It's called "mallet-lda", but I'm using mallet for LDA and for CRFs.


What is a good beginners (Clojure; not programming) tutorial to get going with Clojure? Things that should be touched: namespaces, Leiningen, directory structure, conventions, etc.


and if the learner is already proficient in programming, I suggest Programming Clojure :


@val_waeselynck I’m more looking for something in the scope and length of the classing Rails “make a blog” tutorial. Going through books is a big upfront investment and doesn’t work for everyone. Should have mentioned that in my initial message though :thumbsup:


hmk I'm afraid I don't know a similar Clojure resource. Web development for Clojure is a hands-on tutorial in which you build a website, but... it's a book.


@martinklepsch: I’d suggest checking out the Luminus Guestbook application -


It walks you through the creation of a Guestbook application


Explains the reasoning


And in most cases where there is a library decision, gives a few options besides the default


@surreal.analysis: thanks I’ll take a look simple_smile


Seems you can’t re-define a defmulti in the REPL. Between this and Clojure spitting out Map$Entry vs. PersistentArrayMap which have incompatible command structures... oy.


Hah. Apparently you have to (def [whatever] nil) and then you can redef the whole thing.


@akiva: yeah, defmulti behaves like defonce. You can also use ns-unmap


Any benefit to doing one over the other?


not really, except ns-unmap is slightly cleaner, conceptually


@jrychter: what are you using CRFs for?