Fork me on GitHub
#clojure-uk
<
2019-03-03
>
alexlynham09:03:13

> “Tasks that take more than a day and that have value to the employer beyond testing the applicant usually attract the National Minimum Wage according to the Government’s guidance,” says Andrew Gray founder of Truth Legal, a law firm specialising in employment law and personal injury.

alexlynham09:03:53

This is interesting from that revolut article, I didn't know there was that solid a legal basis for not doing tasks such as that

3Jane09:03:23

Yeah, I saw that

3Jane09:03:28

but it’s “government guidance”

3Jane09:03:19

Unfortunately software industry seems to be based on signing away your right currently, starting with the thing about working overtime (although we’re gonna be out of EU soon, so that’ll go away), and with the employer owning everything you come up with in your free time

otfrom13:03:12

I've refused to sign an opt-out of the working time directive before and gotten explicit clauses to protect my out of work IP when working places. It is much easier to do as a contractor tho.

3Jane09:03:35

It’s not that they force you to do so, it’s just that you won’t get a job otherwise.

alexlynham09:03:37

Yeah but there's a good chance you'd win a court case based on guidance

alexlynham09:03:12

A friend used govt guidance to take the independent to court over not being paid for articles as an intern and won

3Jane09:03:33

UK courts ftw 😄

alexlynham09:03:10

They said they'd never employ him after that but he went and wrote for other people and he's been doing it professionally for a decade now

alexlynham09:03:29

And as for contracts, I always make sure I own whatever I do in my free time. A lot of the wording of contracts is 'directly related to the business of the company' or something which usually means if it's not directly applicable to the business it's not easy for them to claim, it's more of a no compete clause

alexlynham09:03:49

Although I have had to ask for a contract to be changed before when the wording was more severe

alexlynham09:03:32

When I was at the large retailer I had to clarify one point with my hr contact before I signed, but no big deal

alexlynham09:03:04

But then, I'm happy to walk away if the contract isn't reasonable, and I might be very unusual in that

3Jane09:03:58

It’s always a tradeoff

3Jane09:03:09

Google / Amazon / Facebook can probably do it on the strength of their brand

💯 5
alexlynham09:03:17

As long as you're polite it hasn't been an issue so far - that said, I think you are right in that Google or another big technology Co would want to own yr organs

alexlynham09:03:36

That's why I have zero interest in working for them

3Jane09:03:49

Again, it’s a trade-off

3Jane09:03:38

if you’re not doing anything significant (starting your own business) in your spare time, then why not?

jasonbell09:03:34

Most people know I come with “startup baggage”, so I make sure it’s discussed up front and openly.

3Jane09:03:28

Startup baggage? 😄

3Jane09:03:47

I’m imagining someone with a suitcase full of nerf guns

yogidevbear09:03:48

Morning friends 😊

jasonbell09:03:50

@lady3janepl As coined by a former employer CEO. Side projects are more a case of honesty and trust and not taking the p**s out of anyone.

👍 5
yogidevbear09:03:23

Nice description

jasonbell09:03:26

If you need me outside of my usual hours then call me and I’ll be there (assuming I’m not out). Employer comes first, always.

3Jane09:03:06

Guys, since you’re all here :]

jasonbell09:03:21

I was just about to make tea…..

jasonbell09:03:35

…I will be back though @lady3janepl so what can I do to help you?

3Jane09:03:51

it’s more of a pointing in the right direction

3Jane09:03:07

I’m gluing the website part of the “I only have a week for this” project

3Jane09:03:45

started with compojure and its example that also uses lein ring plugin https://github.com/weavejester/compojure-example

3Jane10:03:32

…but the example is a bit out of date, and I found that they’re recommending ring-defaults over compojure.handler

3Jane10:03:11

…which I couldn’t get to work until I found an example that runs http-kit directly out of main https://learnxinyminutes.com/docs/compojure/

3Jane10:03:35

…so what’s the recommended way to run a webserver (without having a giant pile of extras that I don’t currently need?)

3Jane10:03:20

What I liked about lein ring server was that I could reload the page and it’d recompile, whereas with this example I have to restart it every time I change something, which is a pain when fiddling with templates.

jasonbell10:03:20

Ha, I’m the wrong person to ask. I just used luminus and compojure-api to get mvp out.

3Jane10:03:45

Yeah, I’m beginning to think I should have just used luminus

3Jane10:03:25

I’m suffering from “oh this will be simple” with this thing, I spent the whole day faffing around with grep (well rg) and sed like an animal rather than write normal code

jasonbell10:03:52

Yeah I know what you mean.

jasonbell10:03:29

I’m more about getting things done and out of the door. So if there’s something that fits 80% of the bill then I’ll use it.

jasonbell10:03:56

Yada is nice too but I’m in no major needs of async like things.

3Jane10:03:23

Well, that was the idea, I just thought I’d be able to do it even simpler

3Jane10:03:27

#learnings

dominicm10:03:30

@lady3janepl can't look closely now, but there is a way to do what you want :)

dominicm10:03:36

Is the question that you want lein ring to run a different middleware?

dominicm10:03:15

Sorry, I'm struggling to exactly figure out what you're after

3Jane10:03:39

The problem is I don’t actually know in detail what all the components are meant to do, so I don’t know how to ask a question

3Jane10:03:04

I was hoping to paste some examples together (developer life hey!) and concentrate on the parts that are actually interesting, but without having to use a framework that asks you to make upfront decisions on “do I want to later add clojurescript” or advanced routing, or any such thing

3Jane10:03:39

I have ~3 server side generated pages, and want to run this on my laptop with an integrated web server, so configuring pretty much anything else is an overkill to begin with.

3Jane10:03:41

(otoh I may be shooting myself in the foot by not learning enough first. it’s just that I had a week of time now, and didn’t want to spend it all on reading docs with nothing to show at the end of it)

jasonbell10:03:12

Today’s uphill struggle: consuming, analysing and responding to Instagram, Linkedin and Twitter posts when they match a certain criteria.

3Jane10:03:18

Once you’re done, you can probably sell this to Signal 😄

3Jane10:03:49

incidentally, how are you responding to them? I thought instagram closed its apis

jasonbell10:03:50

Well Instagram API is useless garbage now.

jasonbell10:03:25

Yup, Insta has to be manual. I did an experiment yesterday with a paid ad. Learned A LOT.

dominicm10:03:58

Lein ring is convenient, but it won't get you into production.

dominicm10:03:27

Unless you run via lein in production I guess,

dominicm10:03:29

I've done it, can't say it was a problem

jasonbell10:03:09

I’ve done it in the past, wouldn’t look to do it now. still happy to run as java -jar under tmux

dominicm10:03:47

I think I'd be quite happy to use clj, and take advantage of m2 caching on the host.

dominicm10:03:58

Clj is a pretty light wrapper.

3Jane10:03:12

It’s a demo I’m doing on company time (10%), it’s never going to be a paid product, or in actual production because I don’t own the rights to it 🙂

3Jane10:03:55

no, and thank you! (I tried doing something similar and things stopped working at the time … not sure if I remember what broke but I’ll try once again >_> )

dominicm10:03:32

Let us know what you try and what breaks

3Jane10:03:38

it forces https redirect

3Jane10:03:56

even though I’m not using secure-site-defaults

dominicm10:03:59

I see, must be part of the new defaults.

dominicm10:03:19

Which ring version are you using?

3Jane10:03:00

it doesn’t look like it (I’m looking at the source code now) but … eh

3Jane10:03:42

:dependencies [[ring/ring-defaults "0.3.2"]] and :plugins [[lein-ring "0.12.5"]]

3Jane10:03:25

I’ll take a break and then attempt to hybridize what I’ve already got with luminus 🙂 Thanks for the help and all the links guys!

dominicm10:03:43

You're right, that is unusual. I would suspect that something else is at play :thinking_face: or that you are using the secure defaults without realising. Have you tried a fresh clone and checking whether it does that with the above patch?

3Jane11:03:41

This is all handcrafted, I didn’t start from an example clone 🙂 But I have applied the above patch changes, which is what caused things to start failing on https. (It also doesn’t use port 3000 as it used to with original compojure example settings)

flefik11:03:49

i had the same problem before

flefik11:03:22

i just needed to remove :secure from the cookie that i had set and it worked

otfrom13:03:12

I've refused to sign an opt-out of the working time directive before and gotten explicit clauses to protect my out of work IP when working places. It is much easier to do as a contractor tho.

alexlynham13:03:33

mmm I can imagine

alexlynham13:03:01

I guess for me I’ve been writing for much longer than I’ve been programming and as a freelance writer you have to be pretty savvy about what rights you give away and making sure you can write for whoever you feel like (or indeed yourself)

👍 4
rickmoynihan15:03:23

FWIW my last three jobs had standard clauses in the contracts about owning everything you do outside of work too - and I just asked for them to be removed. There was never an argument about it; they just took them out — and I’m pretty sure they removed them from the future contract templates. Most contracts are just a template from a lawyer; designed to protect the company from every eventuality. IIRC there may have been some non-compete don’t run away with clients kinda clauses anyway - I didn’t mind too much about them.

rickmoynihan15:03:30

It really depends on how much the employer views hiring as a negotiation/agreement.

seancorfield18:03:57

Yeah, I've always had such clauses removed. Only one employer argued and I got them to narrow it to exclude any OSS I produced within a specific organization on GitHub (since they wouldn't accept an individual account -- so I just produced all my OSS in that organization for the short while I was employed there 🙂 ).

👍 5