This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # aws (4)
- # beginners (81)
- # boot (65)
- # cljs-dev (10)
- # cljsjs (1)
- # cljsrn (12)
- # clojure (26)
- # clojure-austin (2)
- # clojure-dusseldorf (2)
- # clojure-russia (123)
- # clojure-spec (23)
- # clojure-uk (12)
- # clojurescript (36)
- # cursive (11)
- # datomic (39)
- # events (1)
- # hoplon (25)
- # incanter (4)
- # leiningen (3)
- # off-topic (5)
- # om (31)
- # re-frame (24)
- # reagent (13)
- # ring-swagger (2)
- # rum (10)
- # untangled (3)
- # yada (10)
@meeli Sorry. What I meant is that i have a dim recollection that some browsers are stricter about SVG tags appearing in the correct XML namespace. When I was working on that part of the program, Hoplon wasn’t awesome about getting the namespace correct. Maybe for that reason, I switched to using the DOM API to create some of my SVG elements. But it has been too long for me to remember clearly. My app does work correctly in Firefox.
@jumblerg I think someone asked this but are you updating clojars as you go or should we down load UI from github and use a local jar ?
Does anyone know a resource that provides enough java knowledge to be able to understand java interop from books like living clojure, joy of clojure, etc..? All those books assume knowledge of java. I'm trying to start a database and the instructions to start the server are in java. I've acted like a pattern generator to try and convert it to clojure, but trial and error leads me nowhere. I seem to lack knowledge of methods, classes, static members. And CIDERs autocompletion just suggests that I'm far off. For a H2 database I need the following incantation to start the server. I already did a (import org.h2.tools.Server) and CIDER autocompletion provides me with some clues.. But this: server = Server.createTcpServer().start(); I don't know how to do. (def shizzle (Server)) lead to something, but that just gave me an object I can't seem to use. Thanks in advance
@xssive220 don't start the server for h2, I only refer to a file. You want clojure.java.jdbc to connect to the db.
@mynomoto I know, but that gives me embedded mode. I want server mode, since I'll have multiple clients. using tcp however, seems to require the database to be started first.
My first hoplon/New Year project is a Klondike/Solitaire game https://wasserspiegel.github.io/hoplon-demos/klondike/
@mynomoto I now run the server jar from the cli with -tcpAllowOthers, and then my project connects happily to port 9092. Getting it to run on the same jvm requires a java incantation 😞
@xssive220 That expression can be written as
(.start Server/createTcpServer). Note: fewer parens than Java. 🙂
But the trick there is that
(ClassName/methodName …) is how you invoke a static method.
As far as resources, I believe Eric Normand has or is working on a class at http://purelyfunctional.tv that is Java ideas for Clojure programmers.
Sorry - hope that didn’t come across as “It’s easy!” It’s not, clearly. But the hopeful thing is that the number of concepts to master is not huge.
@candera Thank a lot. There's methods, static methods, static fields, instance fields. I don't understand when to use a dot a slash or dot-slash. And the fact that I'm shoving my first production application out the door and I can't do it without learning about those is honestly kind of frustrating. Up till now I was never bothered by clojure being a hosted language. I'll find out what a static member is and such, because this is going to bite me in the b*tt in the future. I need some recipe for browsing javadocs and translating what I read into clojure incantations. Thanks for the help. On the number of concepts thing: Books like the joy of clojure showed me the underlying simplicity and it's all remarkably elegant. After you enlightened me, I guess I should have a talk with my REPL 🙂
@xssive220 sorry for the distraction 🙂 I thought it is a nice addition to the demos, I probably should have read something about card game development first...
@wasserspiegel Nope... this is great. Especially if you didn't read up first. I found it's easy to throw things together in hoplon. Smooth sailing (almost) all the way 🙂