Fork me on GitHub
#clojure-uk
<
2017-06-08
>
thomas07:06:29

morning 😼 mogge

thomas07:06:52

Please, please, please... UK do the right thing today!

agile_geek07:06:22

@thomas I like your spirit but I suspect the UK will disappoint you again.

agile_geek07:06:20

I would at least plead, please, please, please UK - use your vote, don't squander it!

thomas07:06:28

well... I keep on hoping regardless

agile_geek07:06:48

My youngest daughter gets to vote for the first time and she's very confused about the messages she's been receiving from the different parties so I told her that if she really can't bring herself to vote for anyone then at least show up and spoil her ballot, even a protest vote counts.

thomas07:06:46

good point.

yogidevbear08:06:37

>she's been receiving from the different parties She's not the only one 😆

reborg08:06:57

Morning people! I still don't have a speaker for the next PWL (PapersWeLove) meetup next Thursday. If you happen to have a favourite paper (not necessarily Clojurish) and don't mind sharing with a group of nice people, please get in touch 🙂

agile_geek08:06:07

@reborg I am trying, and failing, to read "The part-time Parliament" atm https://www.microsoft.com/en-us/research/wp-content/uploads/2016/12/The-Part-Time-Parliament.pdf. However, as I only understand one word in three I don't think I'll be standing up in fron of someone and talking about it! #regretsNotReallyHavingMathematicsBackground

reborg08:06:38

What?!/ It starts to easy with the problems of Paxos... Just stop at the first two pages 🙂 Joking, it sound interesting. Any other time @agile_geek

thomas08:06:09

@agile_geek and you trust the Royal Mail?

agile_geek08:06:48

@thomas yes but not much choice as I'm 280 miles away from my constituency atm!

yogidevbear08:06:18

Someone in one of my other slack groups: >Never voted ever - for fear of jury duty - that and always living in never-been-anything-but-conversatives areas Seriously?! WTAF?!

thomas08:06:22

fair enough

agile_geek08:06:55

No not fair enough. BTW I've been registered to vote since I was 18 and voted in every General Election (and half the council elections) since and NEVER been called up for jury duty.

agile_geek08:06:34

and remember 18 was a looooong time ago (longer than some of you have been alive!)

thomas08:06:18

my fair enough was directed at you living 280 miles from your constituency @agile_geek not the not voting one.

thomas08:06:32

and that is quite a lame reason, I agree. (for not voting that is)

otfrom08:06:18

only half the council elections?

glenjamin08:06:55

Every seat around here is basically safe Labour or Lib Dem

glenjamin08:06:07

so there’s not a lot I can do to fight the tories

thomas09:06:43

@glenjamin there might not be a lot you can do... but you can do your bit!!!

mccraigmccraig09:06:46

i've been registered to vote for a not too dissimilar amount of time as you @agile_geek , and i have never been called up for jury service either - though my wife was called up last month

agile_geek09:06:47

@otfrom I know...disgraceful eh! I've voted in more in the last 15 years

agile_geek09:06:56

missed a few though

Rachel Westmacott09:06:42

😮 CompilerException java.lang.RuntimeException: Can't specify more than 20 params

bronsa09:06:37

i'm hoping you're doing code gen to get to that limit :)

bronsa09:06:44

btw the workaround is to use varargs and destructuring

bronsa09:06:05

(defn foo [..... 19th & [20th 21st ...])

agile_geek09:06:44

I tend to pass more complex context as a map anyway as I find it hard to hold more than 5 args in my head!

keeds09:06:25

agile_geek: On the measures we are currently using to judge MP’s/PM’s, how can you possibly call yourself a developer!!! 😉

agile_geek09:06:45

I'm not sure we have measures to judge MP's/PM's?

thomas09:06:51

5 sounds like a max to me... I would most like use a map in that case.

thomas09:06:23

btw... re election.. is that very sexist Tory MP up for election again?

thomas09:06:25

(can't remember his name or which constituency)

minimal10:06:49

@thomas there are several

minimal10:06:01

but maybe you mean Philip davies

minimal10:06:09

south yorkshire i think

thomas10:06:32

the guy that did a filibuster not that long ago.

minimal10:06:40

yeah that’s him

thomas10:06:08

must be great being the female boss/leader of such people....

thomas10:06:59

so... who decides who is the candidate for a party in a certain constituency?

mccraigmccraig10:06:24

traditionally there is a morris battle @thomas

thomas10:06:55

...... hhmmm that explains a lot on why there are certain candidates....

practicalli-johnny10:06:32

@peterwestmacott I suggest that a function would be more composable with a single map than 20+ arguments. A map as an argument also would not have to be concerned about order or arguments, as you simply pull the relevant keys. If there are missing arguments your function would still call and you can define how the function responds, e.g. default values, rather than the call failing. You can also define a spec for your arguments as a map.

Rachel Westmacott10:06:37

true - its a single use test support function with a very specific use-case, so I'm not in fact that worried about it.

practicalli-johnny10:06:00

Maybe not today, maybe not tomorrow, but one day and for the rest of the life of your codebase :)

Rachel Westmacott10:06:47

I've changed it to destructure a list, as I can't have 20+ args - but it's mocking out a 3rd party library function that receives a list of data so I'm not sure that there is a better way.

glenjamin11:06:08

is there a core function / common approach for partially applying map arguments?

mccraigmccraig11:06:23

dunno about common approach - i've used both of these - https://gist.github.com/d9c7da2e296a4c4538c2b30200582166

dotemacs12:06:58

Hey @jr0cket, are the videos from the meetup up online ? Thanks

dotemacs14:06:33

Yea, the guy who manages the event went on holiday

dotemacs14:06:47

But it’s good to bug them because sometimes they delay them for a while…

yogidevbear13:06:46

Time to go :ballot_box_with_ballot:

dotemacs14:06:27

Did you vote for Tories ? troll

weavejester15:06:39

May’s push to backdoor encryption really won me over :face_with_rolling_eyes:

otfrom21:06:50

you whaaaaaa?!?!?!?!

seancorfield21:06:28

We’ll have to wait a few more hours to see whether the exit polls are accurate tho’…

otfrom21:06:58

yeah, I need to go to sleep now (v early start tomorrow). I'll enjoy it while I can

seancorfield21:06:13

But, yeah, a likely hung parliament… with Labour probably not able to get enough other parties together to form a majority…

seancorfield21:06:02

I think the biggest shocker for me in that exit poll is that SNP may lose 20 seats…

otfrom21:06:42

yeah, there is "something technical" in that bit apparently, but we've not been told what. We're just getting "ooh, look" in Scotland atm