Fork me on GitHub

I am hacking on a learning project where I’m doing some data processing on fantasy baseball data 🙂 I’m currently thinking I can kind emulate a database by using some sort of ref to a map and just writing it to disk on updates - is this a total disaster? this will be used potentially as a web app by like 1-4 people, never real traffic. I’m trying to avoid the rdbms dance because it just doesn’t seem important at this point. thanks for any insight! does this approach work for anyone?


For 4 people it sounds totally fine


You can even use something like this to make your life easier:


I’ve done this before on smaller apps too! Just reading/writing JSON or CSV data to the disk is totally fine for something like that.


awesome, thanks all!


will check these projects out..


@seancorfield Oof. Just heard I should have at least Win 10 v2004 (I have Win 10 Pro v1909) in order to use WSL2. Guess it'll have to wait until next year!


@factorhengineering You should have had the free update by this point...


2004	Semi-Annual Channel	2020-05-27
-- v2004 has been available for seven months.


(that's build 19041.685 -- I'm on 20279.1 via Insider builds... and 21277.1000 just became available!)


(ah, that's a prerelease of the next main Windows update -- 20279.1 must be close to the upcoming release version)

Harley Waagmeester02:01:08

is datomic only useful as a cloud service ?


@codeperfect You can run it on-prem as well, I believe. And for development, there's a fully local free version.

seancorfield02:01:08 is where you can request a link for dev-local Datomic (and REBL).


(there's a #datomic channel if you want detailed info)


Hi guys, I just managed to make a simple quote fetcher from bible-gateway by scrapping the site using enlive I did a fair bit of refactoring and ended up with this Any suggestions on how might I want to refactor bible-quote? Or any other comments ?


@zackteo I normally see the lower-arity versions expressed in terms of the higher-arity ones, not the other way around. you may try this

(defn search-string [book chapter verse]
  (str book "+" chapter
       (when verse (str "%3A" verse)))))

(defn bible-quote
  ([book chapter version]
   (bible-quote book chapter nil version)
  ([book chapter verse version]
   (-> (search-string book chapter verse)
       (bible-gateway-url version)
which is not a huge win, but it does remove some duplication


str will output nothing for nil , btw


anyone know if the exercism clojure is active so when I submit a challenge I do not have to wait too long for a mentor


You can start working on the side challenges too! But realistically exercism will require some waiting. But yes it is active - not sure if the holiday session has made it more or less active


oke, maybe I try that too to get some more xp in clojure. Just begin with the brave book


You can honestly target an exercism question a day - you will also get a lot of feedback and the mentors usually guide you on how to improve your solutions step by step. So sitting down and understanding that might be equally if not more important than getting the solution


If you want quick things to test out your knowledge, clojure (/script) koans would be better


And 4clojure will be where don't get feedback but you can follow a few who have completed it and compare your solutions with theirs after


If you haven't seen this, you might want to take a look!


maybe someone who knows how to solve this :

clojure -Sdeps '{:deps {nrepl/nrepl {:mvn/version "0.8.3"} cider/cider-nrepl {:mvn/version "0.25.5"} clj-kondo/clj-kondo {:mvn/version "2020.04.05"}}}'  -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]"
/bin/sh: 1: clojure: not found
Jack-in process exited. Status: 127


I have lein installed and it seems that this project uses clojure clj


I use vscode with calva


@roelof which OS are you on?


WSL2 , so ubuntu


should be good then with the linux installer script


im trying it right now


oke, it seems to work, thanks


Just FYI: even on Linux, I use brew (linuxbrew) to install the Clojure CLI because it's easier to remember to keep it up-to-date and it also means it's easy to test against older versions that you've installed as well.


oke, so leiningen is not the tool anymore ?

Matthew Curry17:01:11

New stuff seems to be deps now; although this is just installing clojure right? A project can still use leiningen


This is the Clojure CLI that I'm talking about -- separate from Clojure-as-a-library.


The CLI is the official stuff, and relatively new. Folks can still use Leiningen (or Boot). But I've been using just the Clojure CLI since some time in 2018 I think was when I switched.


@seancorfield My Windows Update reads 'up to date' but it also refers to ' 'feature update' I could manually trigger to go to Version 20H2. 'winver' tells me my current version is 1909. What is Windows Update doing?


I'm saving all kinds of open work and then going to trigger the update. (Restarting my computer is such a pain. It will take me ages to re-open all the things I have open now.)


Windows has an option to reopen everything automatically after a restart -- that's what I rely on.


TIL about linuxbrew… #beginners is always a treasure trove of knowledge 🙂

❤️ 3

@seancorfield I have seen it re-open my file explorer windows under certain conditions, like a forced restart maybe, but how can you be sure it will do it?


Also, can it reopen other things, like text files (I am not an Emacs wizard yet) and command prompt windows (with history??)?