Fork me on GitHub
#beginners
<
2019-05-31
>
johnjelinek04:05:52

so, I'm trying to figure out what to pass as inputs to a library that's rather undocumented ... what's your workflow to piece things together when libs aren't using spec?

gklijs05:05:45

I try to google for an example using the library, or see if they have any tests. If that fails have a look at the source code, and as last resort you can just trying out things I guess.

johnjelinek05:05:05

yikes ... so, step 1: prefer alternative libraries with specs?

1
gklijs10:05:07

It's sometimes unclear if a library is good. Especially with Clojure. No recent commits could just mean it's 'done' and there has not been a reason to change anything for some time because it keeps working. Few issues could been it's also almost not used. Things like https://github.com/razum2um/awesome-clojure could make it more easy.

Coffey13:05:07

Every-time I try to post my project to Github it says : “Cannot push these commits as they contain an email address marked as private on GitHub” --- I have been using Github for 2yrs and this is the first time this has ever happen to me, when I Google the issue I only find this to be a problem w/ private repositories — but I am trying to make this a public repository (as I am learning React).

Henry13:05:28

https://github.com/settings/emails is the private email option checked?

Coffey13:05:13

oops. I never even knew that page was there. Sorry. I am an idiot.

Roger Amorin Vieira17:05:21

Hi, I'm developing a application that uses with a database, for that I am using two libraries: [clojure.java.jdbc :as jdbc] [java-jdbc.sql :as sql] In the sql I'm trying to do a where with an operator "<" but I had tried many things and isnt working: My code (jdbc/query database (sql/select * table-name (sql/where conditions))) conditions -> {:id ["<" 50]} Someone can help me how I pass the arguments for the sql/where?

ballpark18:05:00

@contato509 I'm not too familiar with the java-jdbc.sql library, but there's also a #sql channel that you might try

sooheon19:05:41

Is there an equivalent to (:require [… :as …]) for importing java packages? I want to use two different packages that contain classes with the exact same name like the following (which doesn’t work)

(:import
   (org.locationtech.jts.geom Point)
   (org.postgis Point))

sooheon19:05:05

Is the best thing just to use fully qualified names for one of them?

noisesmith19:05:45

that's pretty much the option, yeah

noisesmith19:05:39

luckily import is never needed - just using a class by name ensures it's loaded

drewverlee22:05:05

is there a way to produce a lazy sequence other then using the lazy-seq macro? for example, is loop recur naturally lazy?

drewverlee22:05:44

the answer seems to be no.

drewverlee22:05:46

right, yea. thats probably more directly what i need in this case to. thanks!

johnj23:05:52

most collection functions produce lazy seqs

Michael Stokley23:05:59

anyone have a great way of using map in thread first expressions?