Fork me on GitHub
#beginners
<
2017-06-05
>
lepistane12:06:30

why is it that clojure community uses postgre db so much? a lot of resources regarding web development i saw/found online usually use postgre.

lepistane12:06:52

what db should i choose for the project where tables wont be fixed, i might wanna change the tables extend them etc?

dominicm12:06:11

@lepistane it entirely depends. If you always know what will be in those tables, fairly consistently. I'd still recommend postgres. You can do alter. If you need to have lots of columns added at random, you might find a document database such as couchdb to be useful.

nmax19:06:35

Hi, Does anybody build their project with gradle? I have a couple of problems: 1. Build failed because of the limit on windows. I can work around it with ugly solutions like http://tuhrig.de/gradles-bootrun-and-windows-command-length-limit/ 2. On mac I can run build, but I get the following error: "Exception in thread "main" java.io.FileNotFoundException: Could not locate clojure/tools/nrepl/server__init.class or clojure/tools/nrepl/server.clj on classpath"

seancorfield20:06:05

nmax: Pretty much everyone uses either Leiningen or Boot for Clojure projects.

nmax05:06:35

Thanks, I think I should have tried them in the first place

nmax19:06:52

for example this repo: https://github.com/ReactiveX/RxClojure also suffers from the same problems

grzm22:06:50

Good afternoon! I'm trying to learn how to extend Java classes. I'm having issues figuring out how to use gen-class in Cider. Here's my example:

(ns ex.Example
  (:gen-class))

(defn -toString
  [this]
  "Hello, World!")
I'm using https://kotka.de/blog/2010/02/gen-class_how_it_works_and_how_to_use_it.html as a guide. I get a ClassNotFoundException when I try to instantiate it via (ex.Example.). I get "java.lang.ClassCastException: java.io.File cannot be cast to java.lang.String" when I try to compile it via (compile 'ex.Example). I'm probably missing something basic. Any pointers to better references most welcome!