Fork me on GitHub
#clojure-uk
<
2016-03-22
>
otfrom09:03:59

👋 davidhumphreys

David09:03:55

Morning @otfrom, late to the UK party

otfrom10:03:14

davidhumphreys: don't worry. I don't think we're planning on declaring independence, so we'll not become that kind of party

afhammad10:03:55

@xlevus: @mccraigmccraig I tried out https://github.com/cerebris/jsonapi-resources on an internal rails project and significantly reduced our API code both on server and client. The schema guarantees we got made it much easier to turn a lot of the boilerplate into generic reusable functions that just generate the ajax requests and response handlers. This is all achievable without jsonapi of course but it just saved me ton of time. I’m not sure I would use it for a public facing API yet, still assessing.

afhammad10:03:55

morning peeps

mccraigmccraig10:03:02

@afhammad: that looks like a reasonable wrapper around json-api... i guess my thoughts were that, since i'm already sharing prismatic-schema between back and front-ends, and clojure/script is kick-ass at manipulating vanilla data-structures, then the imposition of a meta-model (which is what json-api seems to be at heart) wouldn't buy me a lot

mccraigmccraig10:03:41

in the absence of front/back code-sharing it would seem to make more sense

mccraigmccraig10:03:10

@rosado: are you using a different branch for your onyx changes ?

afhammad10:03:51

@mccraigmccraig: yes I see your point

mccraigmccraig10:03:46

tangentially related question someone asked me the other night and i couldn't answer - are there any other pairs of related langs like clj/cljs which allow front/back code-sharing ?

otfrom10:03:26

mccraigmccraig: you mean other than javascript?

afhammad10:03:39

i THINK its possible with Scala + Scala.js, just from what i’ve read but i’m not familiar with scala

afhammad10:03:05

see shared folder

mccraigmccraig10:03:29

yep, that def seems to share

otfrom10:03:08

👋 broquaint

yogidevbear12:03:10

Anyone here use boot-clj?

yogidevbear12:03:10

I'm trying to create a new project using boot new ... and I'm getting the following error: clojure.lang.ExceptionInfo: java.lang.IllegalArgumentException: No such task (new)

David12:03:35

Hi @yogidevbear, I’ve used it a bit. One of the main stumbling blocks is there is no quick-start. You need to start from scratch. I wrote a post on how to get the basics working in boot: https://blog.juxt.pro/posts/boot-parity.html

David12:03:44

go straight to the end for some sample code simple_smile

David12:03:39

To answer the original question, there is no task named new I assume you are trying to make a new project?

yogidevbear12:03:37

Yes. I was wanting to test out someone else's template and the instructions started with boot new ...

yogidevbear12:03:55

Will take a read through your article

yogidevbear12:03:22

@davidhumphreys: is there a way to start boot run on a particular port number?

David14:03:25

I’m not sure about that part. Maybe someone in #C053K90BR might know?

benedek14:03:14

@yogidevbear: re boot new I guess this is what you need for that: https://github.com/seancorfield/boot-new

yogidevbear14:03:14

@benedek: thanks - that's the missing piece I think

benedek14:03:29

no worries

yogidevbear14:03:25

@martinklepsch: Looks like it's a task definition within the project Benedek listed above

martinklepsch14:03:51

@yogidevbear: I don't think it's part of boot-new — probably a task defined in the template you used to scaffold your app?

yogidevbear14:03:22

I'm very new to Clojure

yogidevbear14:03:04

Coming from a CFML background where Sean created FW1 which is the framework I'm familiar with within that context

yogidevbear14:03:26

He's busy porting the content to Clojure so was taking a look at it

martinklepsch14:03:46

@yogidevbear: so what were you trying to achieve?

yogidevbear14:03:31

Was trying to follow his instructions for creating a new Clojure-based fw1 app from the template he's created

yogidevbear14:03:44

Got it working, but not using boot new

yogidevbear14:03:50

Ended up using the command in that readme boot -d seancorfield/boot-new new -t fw1 -n myfw1app

martinklepsch14:03:52

but if you used that command you used boot-new

yogidevbear14:03:07

True simple_smile Just not as elegantly as doing straight boot new fw1 myfw1app

xlevus21:03:57

ugh. Clojure's #1 problem from a beginners perspective: It's error messages