off-topic

https://github.com/clojurians/community-development/blob/master/Code-of-Conduct.md Clojurians Slack Community Code of Conduct. Searchable message archives are at https://clojurians-log.clojureverse.org/
lilactown 2020-09-01T01:17:24.245Z

I really like tailwind-css when I’ve used it for hobby projects

👍 1
lilactown 2020-09-01T01:17:52.245800Z

There’s a component library by the same authors, I think it’s commercial software tho

rgm 2020-09-01T04:31:40.246Z

I’m extremely happy to have discovered tailwind this year. I made a little library to make using it from Hiccup nice and easy: https://github.com/rgm/tailwind-cljs

rgm 2020-09-01T04:32:54.246300Z

Honestly setup sucks a bit, but I find it cuts really nicely with the grain of how I work. I had been using semantic-ui but it seems to be slowly rotting out.

rgm 2020-09-01T04:33:40.246500Z

The dead CSS elimination is so stupidly simple and effective.

rgm 2020-09-01T04:34:32.246700Z

I think what @lilactown is referring to is https://tailwindui.com/. I’ve bought it and it’s better to think of it as inspiration or a cookbook, rather than a library.

rgm 2020-09-01T04:35:02.247Z

The translation into cljs is usually pretty straightforward.

rgm 2020-09-01T04:36:19.247200Z

Also, an advantage of Tailwind I hadn’t thought of ahead of time is that it’s easy to keep things consistent across say server-rendered selmer and SPA components, because it’s just CSS directives. This kinda sucked with Semantic.

rgm 2020-09-01T04:38:44.247400Z

Anyway, YMMV. I work on things where it’s line-of-business so more workaday and less zing. Been finding that Tailwind has me hating CSS-related tasks a lot less than I had gotten to, with fighting SCSS/Bourbon/Bootstrap/Material/Semantic/Fomantic/… it’s direct and to the point.

borkdude 2020-09-01T13:56:44.250200Z

I'm trying to use http-kit with the sni client:

$ clj
Clojure 1.10.2-alpha1
user=> (require '[org.httpkit.client :as client])
nil
user=> (require '[org.httpkit.sni-client :as sni-client])
nil
user=> (alter-var-root #'org.httpkit.client/*default-client* (fn [_] sni-client/default-client))
#object[clojure.lang.Delay 0x2b289ac9 {:status :pending, :val nil}]
user=&gt; @(org.httpkit.client/get "<https://www.google.com>")
{:opts {:method :get, :url "<https://www.google.com>"}, :error #error {
 :cause nil
 :via
 [{:type java.lang.NullPointerException
   :message nil
   :at [sun.net.util.IPAddressUtil textToNumericFormatV4 "IPAddressUtil.java" 49]}]
My java version is AdoptOpenJDK 11. What's up here?

1
borkdude 2020-09-01T13:59:41.250400Z

It does seem to work on Java 1.8

alekcz 2020-09-01T16:48:41.252400Z

@borkdude not sure. Worked for me, but I'm using OpenJDK-GraalVM-11 Lemme grab a copy of AdoptOpenJDK and investigate

alekcz 2020-09-01T17:03:15.253100Z

@borkdude what version of JDK are using?

borkdude 2020-09-01T17:38:26.253700Z

GraalVM is what I need too

borkdude 2020-09-01T17:38:30.253900Z

It's for babashka

borkdude 2020-09-01T17:38:34.254100Z

Let's talk further in #babashka