This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-08
Channels
- # aleph (5)
- # announcements (3)
- # aws-lambda (16)
- # babashka (17)
- # beginners (59)
- # calva (168)
- # clerk (4)
- # clj-kondo (62)
- # clojure (77)
- # clojure-belgium (4)
- # clojure-brasil (10)
- # clojure-ecuador (3)
- # clojure-europe (41)
- # clojure-losangeles (2)
- # clojure-nl (2)
- # clojure-norway (24)
- # clojure-uk (2)
- # clojurescript (44)
- # clr (21)
- # community-development (7)
- # conjure (1)
- # cursive (3)
- # datalevin (15)
- # datomic (1)
- # deps-new (12)
- # emacs (45)
- # events (1)
- # fulcro (8)
- # funcool (7)
- # graphql (5)
- # hugsql (15)
- # jobs (2)
- # matcher-combinators (17)
- # meander (14)
- # membrane (31)
- # pathom (28)
- # pedestal (6)
- # practicalli (6)
- # re-frame (12)
- # releases (1)
- # remote-jobs (1)
- # shadow-cljs (32)
- # tools-deps (8)
- # vim (16)
I've been playing around with rewrite-clj more, since it's built in, and I wrote a script to count lines of code and also show lines of docstrings / comment forms.
If anyone wants to try it out, the following one-liner should work, but https://github.com/matthewdowney/linesofcode-bb has more elegant ways as well:
bb -Sdeps '{:deps {io.github.matthewdowney/linesofcode-bb {:git/tag "v0.0.1" :git/sha "4dbee31"}}}' \
-x com.mjdowney.loc/breakdown --root "src/"


Nice!
| File | LOC | Docs | Comment Forms | Lines |
|---------------------------------------------------+-------+------+---------------+-------|
| src/clj_kondo/impl/analyzer.clj | 2726 | 15 | 2 | 2966 |
| src/clj_kondo/impl/var_info_gen.clj | 2400 | 1 | 0 | 2408 |
...
huh, a friend is working through my deps-new template that uses babashka, and noted this…
looks like his “developer machine” was missing some crucial tooling
okay, can’t complain about that, any CLI tool would do that
sorry for the noise!
Perhaps brew
is the culprit there?
The brew
team are very opinionated that everything should always be updated to the very latest version so a "simple" brew install
of one tool can end up downloading updates to the entire world 😞
talk about annoying, I’ve noticed that too!
I don't think that's enough to solve unexpected "brew hangs". My env includes:
HOMEBREW_NO_ANALYTICS=1
HOMEBREW_NO_AUTO_UPDATE=1
HOMEBREW_NO_INSTALL_UPGRADE=1
HOMEBREW_NO_INSTALL_CLEANUP=1
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
I think the default homebrew setup should just show Monty Python's "Spanish Inquisition" meme whenever you try to run something.
@U05476190 wow, brew
is fast (kind of) again with this