Fork me on GitHub
#clojure-uk
<
2018-10-15
>
agile_geek07:10:05

FYI anyone interested in, or who has already submitted a talk or bought a ticket to, Build IT Right Conference in Newcastle. Due to unforeseen circumstances we had to move dates from November 2018 to 4th April 2019. https://bitrconf.org/

guy08:10:50

Morning!

maleghast08:10:28

Morning Everybody

alexlynham09:10:22

morrrrrrrning!

alexlynham09:10:35

how's everybody doing?

alexlynham09:10:51

any winter day it's not raining is a good day 🙂 🚲

danm09:10:09

On the tram today to make Lambda Lounge easier 🙂

danm09:10:30

It was... not pleasant. There was a very stinky dude right in front of me. I felt quite ill 🙂

alexlynham09:10:33

I cycled, which I will regret if the weather turns 😕

mccraigmccraig10:10:14

i cycled yesterday. the weather turned mid-ride - going home over the south downs was soggy and miserable

alexlynham10:10:17

where do you cycle to/from? I grew up in guildford so the surrey hills was my daily cycle to/from college/school

danm10:10:48

I did take advantage of a brief gap in the weather on Sunday to clean and relube my chain, and oil my nipples

danm10:10:28

But I was waiting for the dog to get dropped off and some friends to come over, so I couldn't get out on it

mccraigmccraig10:10:04

@U79NZHC6A i live in ditchling, on the north side of the south downs... i generally go all over the nearish bits of the south downs - stanmer park is a favourite though, for it's network of singletrack in nice woods

alexlynham10:10:02

Ahhh that sounds nice. I get very nostalgic about that part of the world. Spent a lot of time carrying mountain bikes over fences and stiles around there

alexlynham10:10:35

@U6SUWNB9N same, replaced my rear brake and cleaned my chain and today was a lot more pleasant

danm10:10:55

Laura was doing a big tidy of all her paperwork on the floor of the office in prep for actually using it as more of an office for her new business, and unearthed a bluster pack with 2 completely worn rim brake pads in (and I've had discs on my bike for 2 years) and another with 2 partially worn but I think contaminated disc pads in

danm10:10:05

No idea what I was thinking when I took them up there...

mccraigmccraig10:10:01

i've been using this for the last few months - it's ace - i think there's a road version too - https://www.merlincycles.com/rock-n-roll-extreme-lv-lube-56873.html

mccraigmccraig10:10:59

(you run a mostly dry chain, so it doesn't get gunked up)

danm10:10:57

Oh interesting

danm10:10:26

I had the shop de-gunk my chain and rear sprocket while they were sorting the new wheels, because mine gets horribly gunked up in Manchester weather

danm10:10:36

I guess there's no reason you can't use the Extreme stuff on road bikes though. The road version seems to be https://www.merlincycles.com/rock-n-roll-absolute-dry-lube-56875.html

alexlynham10:10:18

nice. I've been running the chain through a wet sponge with cleaner when I get the chance and that's worked okay

alexlynham10:10:29

this new shimano 105 rear brake is great though

alexlynham10:10:42

much better stopping power (granted it's dryish today)

danm10:10:28

New brake, or just new pads?

alexlynham10:10:03

new brake entirely

3Jane09:10:10

muggy 😑

danm10:10:50

moist. The worst of words

🍰 4
😬 4
3Jane10:10:12

it’s like wet sand or salt stuck under fingernails

😱 8
rhinocratic10:10:38

Anyone familiar with "The Meaning of Liff"? Always shuddered a little at "Skibbereen" (the sound of a sunburned thigh leaving a plastic chair) and "Scramoge" (to cut one's tongue whilst licking an envelope).

3Jane10:10:22

thank you for the nightmares during the weeks ahead.

danm10:10:27

That's a Douglas Adams isn't it?

rhinocratic10:10:21

Douglas Adams and John Lloyd, I think.

rhinocratic10:10:17

@U82DUDVMH no problem - glad to assist. 🙂

Conor11:10:40

That's anti-Irish propaganda, Skibbereen and Scramoge are perfectly pleasant towns

Conor11:10:56

Well, Skibbereen is anyway, Scramoge is somewhere in the wilds of Roscommon

rhinocratic11:10:46

If it's of any consolation, England, Wales and Scotland are roundly abused too, plus several US locations.

danm10:10:38

I also may regret not grabbing any type of hoodie or similar by the time I get home tonight. It's possibly not short-sleeved-shirt weather out there...

yogidevbear11:10:21

Does anyone have an email address for @jr0cket? Please can you DM me if you do. Asking for a friend.

practicalli-johnny13:10:53

Thanks for reaching out, details sent separately

3Jane12:10:13

incidentally, a friend sent me an interesting talk over the weekend: https://www.youtube.com/watch?v=rnmcRTnTNC8

alexlynham13:10:18

that looks good

dominicm13:10:20

One of the sticking stories in my memory was of a locked door, and those ceiling panels that most offices have. Elevated themselves and dropped in.

mccraigmccraig13:10:17

ha, i remember at school when we had an occasional unsupervised "study period" it was a thing to climb from the cupboard into the ceiling space and over to an adjacent classroom to see what was going on - which required a number of planks and great care

mccraigmccraig13:10:47

surprisingly we neither got caught, nor fell through the polystyrene ceiling panels

rickmoynihan08:10:13

Reminds me of my favourite Simpsons moment: https://www.youtube.com/watch?v=iMwI2D1hJd0

danm13:10:08

You can get a long way with a high vis vest and acting like you're supposed to be there

danm13:10:29

Someone nicked about 5 £10k projectors from Lancaster using that tactic

danm13:10:49

And the number of times I didn't get stopped or questioned when I probably should have been...

3Jane13:10:22

This is mostly about actual physical intrusion

3Jane13:10:17

but I used to work at a personal-data-processing company which meant we had some great security trainings from companies actually doing varieties of pentesting; one of the things they stressed was the importance of not treating unknown people as “oh, new hire from sales”

3Jane13:10:14

Places that hire intensively can get really awkward on the “Excuse me, who are you?” “We’ve been introduced last week…” routine

😆 8
practicalli-johnny14:10:45

after a thousand times of trying to figure out if I have met someone before, I think I have become numb to most of the embarrassment. One side benefit(?) of running so many events and doing public speaking.

alexlynham15:10:18

I stop people every day that just start walking into our office as I walk out

alexlynham15:10:27

"I'm sorry, who are you?"

alexlynham15:10:41

people get angry - but if you've not got a keycard, and I don't know you....

Conor15:10:29

I like to stop people I do know if they don't have their badge

alexlynham15:10:40

there's about 150 people in digital so I know most by eye or by name

3Jane16:10:08

have watching the entire mr robot be a required point during onboarding -.-

yogidevbear19:10:24

What is the most idiomatic way to test for something like every? (not (nil?)) coll?

mccraigmccraig19:10:03

@yogidevbear are you looking for some?

bronsa19:10:08

(every? some? coll)

yogidevbear19:10:21

Sounds about right

yogidevbear19:10:46

I should be able to use this in conjunction with a let and if-let binding yes? So something like

(let [v (if-let (every? some?) coll
            do stuff with data here
            set a default)]

yogidevbear19:10:20

Feels a bit convoluted

bronsa19:10:25

how would that work

bronsa19:10:30

every? returns a boolean

bronsa19:10:44

you'd bind your local to either true or false, not to the coll

bronsa19:10:07

unless I misunderstood what you meant

yogidevbear19:10:08

Let me try this again

yogidevbear19:10:41

(let [v (if-let (every? some? coll)
            do stuff with data here to set v
            set a default for v)]
  continue with functionality based on let)

bronsa19:10:24

I still don't understand why you want to use if-let there, instead of just if

bronsa19:10:44

if-let works like (if-let [a cond] a default)

yogidevbear19:10:47

Fair point :face_palm:

yogidevbear19:10:19

Thanks for the sanity check @bronsa 👍

mccraigmccraig22:10:42

slightly surprising: (clojure.set/union #{} [:foo]) => [:foo]

bronsa22:10:45

clojure.set is famous for being one of the worse offenders of GIGO

danielneal08:10:23

one could say it reaches a new GIGO low

mccraigmccraig23:10:48

i have a protocol which i extend to clojure.lang.IPersistentList in clojure - in cljs do i have to implement it on both cljs.core/EmptyList and cljs.core/List ?

bronsa23:10:55

it is really annoying that cljs doesn't have a hierarchy of interfaces like clojure does

bronsa23:10:07

and I think it's symptomatic of a missing abstraction in clojure and clojurescript

mccraigmccraig23:10:39

is there some doc somewhere detailing which types i have to implement on in cljs for lists, vectors, sets, maps etc ?

bronsa23:10:43

clojure cheats by using the host-level interfaces but cljs is forced to extend all the available concrete classes

bronsa23:10:52

not that I'm aware of

mccraigmccraig23:10:57

yeah, my extend-protocol is butt ugly now 😞

mccraigmccraig23:10:09

ah well, worse things happen at sea

mccraigmccraig23:10:50

huh, looks like there are quite a lot of concrete classes to think about: https://github.com/zcaudate-me/brahmin/blob/master/src/brahmin/category/monoid.cljs#L10