This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-12
Channels
- # beginners (36)
- # boot (11)
- # cider (10)
- # cljs-dev (10)
- # cljsrn (3)
- # clojure (103)
- # clojure-greece (1)
- # clojure-italy (16)
- # clojure-nl (3)
- # clojure-spec (59)
- # clojure-uk (129)
- # clojurescript (125)
- # data-science (29)
- # datomic (30)
- # emacs (12)
- # events (5)
- # fulcro (61)
- # graphql (5)
- # keechma (3)
- # leiningen (9)
- # luminus (7)
- # onyx (26)
- # re-frame (3)
- # reagent (56)
- # reitit (25)
- # ring-swagger (16)
- # shadow-cljs (44)
- # spacemacs (4)
- # specter (2)
- # tools-deps (7)
- # vim (8)
Mornin'
\o -< morning >
Good morning all.. In the past a few days we replaced existing logging with log4j 2 in one of our spring projects. Just now, I saw another discussion in the beginners channel related to logging. As per the spring documentation, we need to exclude LogBack while including log4j2. Do we have any prescriptions in clojure world, on how to use logging effectively and also how to watch out for quirks of logging used in legacy code
@manas.marthi we've been using ptaoussanis/timbre
, along with slf4j-timbre
and the various ->slf4j adapters - which keeps all the log-config in clojure-land, and seems to work ok
thank you!
Bore da
+1 for timbre
@manas.marthi @mccraigmccraig
doing a class rename in emacs usually isn't too bad (you can automate something using keyboard macros on top of grep)
Unfortunately nothing works very well. etags stuff doesn’t even work. Java refactoring needs language aware IDEs cos a symbol may coincidentally clash with class names elsewhere. Context is everything.
yeah, etags isn't great w/OO languages generally. Changing class names is mostly just search and replace though. Others are harder. Java is definitely very IDE dependent.
An opinion I once heard and I tend to agree with about large Java projects (and similar) is that one of the reasons they become so large and hard to manage is because editors like eclipse make it easy. If you only had a simple editor from the start you would have started to break it down at the point that you could no longer manage it in your editor.
I've found that with the java I've done from the ground up in emacs (which is a reasonable bit)
@U0694C7V3 it’s an interesting proposition, I tend to think you may have a point.
Saw this the other week, it might be an improvement, or worth keeping an eye on; though haven’t used it myself: https://github.com/emacs-lsp/lsp-mode
anyone tried these? https://github.com/emacs-lsp/lsp-java & https://github.com/eclipse/eclipse.jdt.ls
@agile_geek totally. Java and Emacs are just a horrible combination.
@guy those scary red sausages you see in the chippy
i'm a southerner by birth and i'm sure I encountered saveloys even before I moved up north
mmmm braiinnnsss
i had sheep brains once, long ago before everyone got worried about CJD... they were pretty bland, like a savoury deep-fried mousse iirc

I used to love saveloy and pease pudding stotties when I first moved to North East! P.S. if you know what I’m talking about you get your Geordie badge.
all sausages are an abomination. That is why they taste so good (I include veggie sausage here too)
let us not forget black pudding, the most abominably tasty abomination of all
no @guy , it's made from blood and fat
I have to say, even tho it sounds gruesome, i'm quite impressed people used to eat practically all the animal
Have to admit that my uncle owned the local tripe works, so I was accustomed to a variety of organs that are seldom eaten nowadays (perhaps with good reason). As a child, one of my favourite treats was what my mother euphemistically referred to as "Lamb's Fries". It was years before I discovered that she'd been feeding me testicles. :face_with_rolling_eyes:
Black pudding is OK, but I prefer the scottish sliced fat with fruits in stuff. Fruit pudding?
You slice it and fry it like black pudding, but it's got less blood and more sultanas and spices in
ooo that sounds good @carr0t
One of my old colleagues on a work Christmas do had mashed potato and thought it was amazing, asked what the little black flecks were
of course mince pies used to be made with ‘minced beef’, hence the name.
@mccraigmccraig That's the stuff!
how do I tell lein to read maven settings file where I configured my company artifactory repo urls?
resolved it
I’ve been considering writing something that creates an annoying pop up every 15 minutes and appends whatever I put in the box into a csv along with a timestamp, but maybe someone’s already done that 😄
(livin’ the life at a startup: you wake up at 7pm with a blank stare and the thing you started on in the morning still not done, but a vague feeling that you’ve done a lot of other stuff in the meantime)
@lady3janepl lazier solution, use notify-send to tell you to jrnl
I have a thing that does “rest your eyes” popups, but I’ve developed a bad habit of clicking it away
but yeah, it’s something I’ve thought about. having a dialog with a text box removes decisions though, which i would prefer as a behavioural hack.
https://clojuredocs.org/clojure.core/condp#example-542692d2c026201cdc326f6c <- I needed something that’d test the same value against various predicates, done 🙂
One advise I read from some consultant was to always plan a working day of 4 hours..
The rest of the 4 hours go into interrupts, emails, chat, etc
You seem to be putting more than 8 hours though
I’m on Central line, if I don’t skip rush hour I get squashed in a red tin like a sardine 🙂
@lady3janepl There used to be an app for the Mac that tracked how much time you spent in each app (tracking focus of apps). I found that quite useful for giving me some idea of how much time was eaten away by email, chat, etc.