Fork me on GitHub
#clojuredesign-podcast
<
2020-01-15
>
dharrigan08:01:03

Just listened to your first episode of the Web Series - looking forward to the next

dharrigan08:01:09

I use reitit as my choice of framework. My use case is receiving GraphQL requests (just normal RESTful requests) as JSON, doing parsing etc.., business logic.

dharrigan08:01:37

I'm quite a newbie at Clojure so it was quite a learning experience (I'm coming from (still use) Spring Boot with Kotlin, and that's super easy))

nate20:01:20

Very interesting. I'm curious as to why it is easier in Kotlin. Are there fewer choices? Does the community rally around one stack?

dharrigan20:01:32

Not sure, but with Spring Boot it's as simple as adding a dependency at annotating one class. Writing a RESTful controller is again just annotating one class (with one annotation).

dharrigan20:01:37

Create a Resource Controller

dharrigan20:01:09

That's actually quite long winded, with Kotlin, it's a lot smaller codebase.

dharrigan20:01:36

Here's an example I put together in 5 minutes

dharrigan20:01:58

That is all that is required.

nate21:01:16

thanks for this example, I'll check it out and see if I can understand it

nate21:01:25

I've only read the main kotlin website page

nate21:01:56

but I have been meaning to learn it more thoroughly to understand why people like it

dharrigan07:01:39

There is another library that we are looking to use

dharrigan07:01:53

This is even more lightweight that Spring (a lot!)

dharrigan08:01:00

So, yes, a barrier, but not an insurmountable barrier