Fork me on GitHub
#yada
<
2016-07-18
>
lmergen09:07:28

are there any examples of large projects that are based on yada ?

malcolmsparks09:07:51

it depends what you mean by large - http://juxt.pro runs off yada pretty much exclusively - @mccraigmccraig has a largish project in production, there are others

malcolmsparks09:07:46

but yada is a new library, relatively speaking, so doesn't have anywhere near the footprint of Liberator and Pedestal

mccraigmccraig09:07:25

as malcolm said, my project uses yada for it's api - i'm happy to answer any questions you have @lmergen

lmergen09:07:48

ok, thanks

lmergen09:07:09

i'm the kind of person who always lurks a lot of other big projects to get some inspiration

lmergen09:07:22

edge helps a lot in this regard, though

lmergen09:07:42

is it correct that yada projects are usually small enough that a separate routes/ directory / namespace makes no sense ?

malcolmsparks10:07:42

If you have a really big project, I would suggest separating routes out into each module and composing them together into a single route structure. Having one big route structure in a project would become a kind of 'god object' eventually

malcolmsparks10:07:27

compojure/bidi/pedestal purposely supports this kind of recursive composition

malcolmsparks10:07:50

data is so easy to compose, that's part of its attractoin

lmergen10:07:45

furthermore, what is the best approach to testing yada ? just use the same test tools as you would use for testing a ring app ?

lmergen10:07:14

response-for, for example, only returns the body as a string, you have to manually coerce it

imre10:07:58

@lmergen: YMMV but I use 2 layers of tests - unit tests against my business usecases which don't include yada at all and api integration tests that fire up the server using the dev namespace and use clj-http to perform the actual http queries against it

imre10:07:57

using these I can test drive just about anything and as most of my tests go directly against the domain I get good execution times

lmergen11:07:44

that was the approach i was going to take

lmergen13:07:49

how up to date is the yada base structure there ? should i be using edge instead ?

dominicm13:07:25

I'd suggest edge.