Fork me on GitHub
#clojure-uk
<
2017-07-27
>
thomas07:07:56

morning 😼 mogge

jasonbell07:07:00

@yogidevbear bruce is a state of mind.

yogidevbear07:07:50

@jasonbell then question my is... Can you define the bruce state of mind?

jasonbell07:07:13

@yogidevbear It’s written in parchment (probably), “Reduce WIP”

jasonbell07:07:36

@yogidevbear bruce is also my Heckler As a Service (HaaS)

thomas07:07:27

it is a higher level of consciousness that enlightens the mind with hugs. Or something like that.

thomas07:07:38

that is my take on it

yogidevbear07:07:48

Thanks for the illumination simple_smile

agile_geek07:07:37

Morning...and that's it from me for the rest of the day until after 6pm

maleghast08:07:18

Morning All :-)

thomas08:07:25

@mccraigmccraig if only you hadn't thought about it 😉

thomas08:07:15

just the mere thought of thinking about caused it! that is my theory at least! ( and you can't proof me wrong 😉 )

chrjs09:07:00

@maleghast 🌟 chinking sound

yogidevbear09:07:34

@mccraigmccraig I sense a butterfly effect coming... speculatively thinking about how much thinking is too much...

maleghast09:07:16

I am going to actively think about serendipitous “good things” to balance out all this doom… 😉

mccraigmccraig09:07:33

@yogidevbear i'm not serious - i don't think there is such a thing as too much thinking - if the thinking isn't working then you aren't doing enough!

mccraigmccraig09:07:30

there is perhaps such a thing as too much low-entropy thinking, but i would say if the thinking isn't high-entropy then it's not really thinking, it's psychological fidgeting

dominicm09:07:42

Why do people link to tweets as "evidence", I'm sorry but the 140 chars you used only states your position, not WHY.

yogidevbear09:07:39

@dominicm any particular tweet you're thinking about here?

yogidevbear09:07:57

(a.k.a. linky linky simple_smile)

dominicm09:07:08

I'm sure I need to read through the discussion to find the nugget of information that I require

maleghast09:07:30

That and I am seriously considering playing minecraft all day (and not billing anyone for anything, clearly).

dominicm09:07:14

I mean, you can bill for that

dominicm09:07:27

(this is how you bill for playing minecraft all day)

maleghast09:07:39

Yeah, you did - I need to investigate it more properly than the initial look… I will admit to having not properly prioritising it 😉

glenjamin09:07:47

spending a day playing and not billing it is one of the perks of being a contractor

maleghast09:07:47

Indeed. Sadly it’s not how today is going to go in truth, but I did give it serious consideration there for a while…

dominicm09:07:17

https://github.com/docker/dockercraft I mean, you're building this so that you're webscale

maleghast09:07:30

Oh Hello! 😉

maleghast09:07:15

@dominicm Have you looked at integrating Clojure with Forge, so that you can use Clojure to mod more recent version(s) of Minecraft..?

dominicm11:07:33

Someone else did that I believe. I've not taken much interest in writing mods myself, there was a lot more money in bukkit integrations when I was into that stuff 🙂

maleghast12:07:04

@dominicm - Fairy snuff 😉

dominicm12:07:01

I feel like I'm being daft, is there an inverse of condp? Provide a value, and test against a list of predicates/expressions (of which only 1 will be true) to see which code path to take.

dominicm12:07:11

Alternatively: case which works on expressions

dominicm12:07:53

I've ended up with a let/cond combination for now. But this feels redundant.

bronsa12:07:26

use #(% %2) as your predicate to condp

bronsa12:07:17

(condp #(% %2) 1 neg? -1 zero? 0 pos? 1) @dominicm

dominicm12:07:52

@bronsa I didn't realise you could pass aconstant to condp like that, nice! Thanks

dominicm12:07:42

Superior alternative solution:

(case #?(:clj (Long/signum -10)
         :cljs (js/Math.sign -10))
  1 :left
  0 :neutral
  -1 :right)

megakorre13:07:47

([:left :neutral :right]
 (inc #?(:clj (Long/signum -10)
         :cljs (js/Math.sign -10))))

maleghast15:07:55

Er, @dominicm and @megakorre your two forms give different answers in my REPL…

maleghast15:07:21

@dominicm ‘s one returns “:right” while @megakorre ‘s returns :left.

maleghast15:07:49

(unless I am “doing something wrong”)

dominicm15:07:03

I think I got my values swapped