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

morning 😼 mogge

thomas07:06:42

@seancorfield We did 7-in-7 a few years ago at work in a reading group and that was quite useful, even though I only managed to do the Clojure exercises. Maybe I should pick it up again some.

jasonbell08:06:36

Morning friends

guy08:06:31

morning!

yogidevbear08:06:36

That cup of coffee barely touched the sides

yogidevbear08:06:50

And now I'm on a train into londontown

guy08:06:56

oh nice where from?

yogidevbear08:06:10

Have a feeling it's going to be a taxing day 😂

yogidevbear08:06:17

From Horsham (West Sussex)

yogidevbear08:06:42

Only into Clapham Junction fortunately 🙂 No underground or transfers required

seancorfield08:06:20

What takes you to delightful London @yogidevbear ?

yogidevbear08:06:49

Day in the "office"

yogidevbear08:06:03

(read "The pub")

yogidevbear08:06:21

we're a group of nomad devs

yogidevbear08:06:41

Oh, Sean, have you seen The Leftovers?

yogidevbear08:06:04

We just finished season 2 last night. Really enjoyed it.

seancorfield08:06:29

Nope. Might put it on my list. Yeah, 1:30am here. Been working on reducible queries for clojure.java.jdbc tonight. Hard to find the right solution that works well across Clojure 1.5-1.9!

yogidevbear08:06:04

Good luck. I know you're smart enough to work it out

Sam H13:06:38

jonpither: Shouldn’t “We will be able to hire?” => “Will we be able to hire?”

jonpither13:06:19

Good spot @U0DPX8ZQB will fix thanks

agile_geek13:06:29

@jonpither interesting but TBH I can't see many CTO's jumping to take a punt on Clojure when they have FP in the form of Java 8 and Scala. I'm not saying they're right but if I was spending my own money on building a web based product right now I'd probably go for Rails or Node.js as they've just proved themselves to be more productive and less risky.

agile_geek13:06:26

My cynical conclusion in the enterprise space is that most ppl at 'C' level have no idea what the cost/benefit trade off is for programming languages. They just want a large pool of cheap people to recruit from. And TBH I can see their point when I see them struggling to recruit good people or retain them (even with Clojure) I can see why they would say "I can get Java, Rails or Node.js programmers by the score and if one leaves I can easily replace them". They most often don't take account of the opportunity cost but even if they did my experience of Clojure dev's is that retention is no higher than any other language and they're harder to recruit so why?

glenjamin13:06:56

why do we even tell them which language we use?

glenjamin13:06:01

in those scenarios

agile_geek13:06:05

This equation is completely different in innovative and/or start ups

agile_geek13:06:46

@glenjamin I'd agree whole heartedly, if you're selling a SaaS platform or product but if it's their IP and they need to maintain it they're going to think as I've outlined above.

glenjamin13:06:08

someone should, but in an “enterprise” i don’t think it should be C-level

glenjamin13:06:36

I’m looking forward to the day when more people realise “enterprise” is a synonym for “too big to be any good”

agile_geek13:06:00

and TBH I'm not sure they do care what the language is but they do ask "How do I recruit, retain and how do I reduce costs"

agile_geek14:06:40

I think a lot of this 'treat developers as a resource' thinking is why we're seeing large companies/government depts move from Scala back to Java 8 and also why those sticking with Scala are using it almost exclusively with OOP paradigm. It's hard to find good developers regardless of the paradigm and even harder to keep them so why not just get sh*t done with whatever I can get. This means no FP and frameworks to do the heavy lifting and fiscally this makes sense especially when you're rewarded for delivering over 3-6 months and move on so you don't live with the cost. One of my clients boasted that they delivered £220 Million worth of software a year...in fact they delivered £200K of s/w but paid £220M for it...but they were ignorant of value vs cost so they didn't know and were happy to spend that and more.

agile_geek14:06:56

I think a lot of those large orgs will be a lost cause in terms of a discussion of value which is why when I was CTO of a consultancy I kept trying to get the sales ppl and the MD to go after the medium sized companies where efficiency matters.

agile_geek14:06:41

As I once heard on a lean start up course "Go after the Deer, not the Elephant or the Mouse"

mccraigmccraig14:06:04

we can all be thankful that there are many organisations out there consistently delivering £200k of value for their £200m investment - it's the principal reason we aren't all owned by a single globe-spanning corporate oligarchy

dominicm15:06:20

Doing what?

mccraigmccraig15:06:38

swipe gesture support - everything comes down to a couple of small cljs files and there is immediate visual feedback

dominicm15:06:34

I remember having a hard time doing that, and being really lazy and not giving immediate feedback :thinking_face: This was for a personal fun thing ofc.

mccraigmccraig16:06:57

the trick is to use the translate3d css transform to move things around in response to the touch events @dominicm - you get hardware acceleration and avoid expensive re-laying-out

otfrom16:06:19

@mccraigmccraig is this some code we'll be able to see?

mccraigmccraig16:06:40

it's not in an open-sourced lib atm @otfrom, but i'm happy to show some gists if you want... it's only time and laziness which prevent it being open-source

glenjamin16:06:47

requestAnimationFrame can help too

otfrom16:06:45

gists are always good. If you build up too much I'll just ask for a talk. 😉

mccraigmccraig16:06:42

here you go: first some general touch event handling (and a tap recognizer): https://gist.github.com/mccraigmccraig/8e3ebae474e9913d21049d3fb46e1ffa then swipe recognition: https://gist.github.com/mccraigmccraig/bc1d0e8180b74c0817c46c65d389c4e9 finally a reagent component which has main content and swipe-revealed-content: https://gist.github.com/mccraigmccraig/05637d98213988ff577e2d533966a292

dominicm16:06:02

I thought translate3d wasn't the only HA anymore...

mccraigmccraig16:06:23

oh, dunno - last i read you have translate3d or transparency iirc, but that may have changed