Live data from Hacker News

Using Clojure for Web Apps

github.com

11–20 of 122 posts

Re: Using Clojure for Web Apps

#12
post #5
post #3

Pretty simple Webapp that you could have done 7 years ago. That not necessarily a bad thing but I wouldn't develop a webapp with those tools. Specifically the 'Component' library. I really didn't enjoy working with it and it one of the most complex to understand parts of our web application. So while this seems like a fun set of slides (I have not watched the presentation yet), it's not what I would call a great intr…

You do have alternatives to the `component` library. This new library, `clip`, might sit better with you: https://github.com/juxt/clip

Clip looks interesting, although my favourite 'component' alternative is Integrant[1] -- your config can be just EDN and your start/stop functions are added as multimethods. Its beautifully little ceremony. Incidentally, the Duct[2] framework which builds on top of Integrant is my favourite way to get complex applications running. Currently using it for a number of different services and its a very pleasant experience. (I'm sure clip is too, Juxt do good work)

[1] https://github.com/weavejester/integrant

[1] https://github.com/duct-framework

Re: Using Clojure for Web Apps

#14
post #3

Pretty simple Webapp that you could have done 7 years ago. That not necessarily a bad thing but I wouldn't develop a webapp with those tools. Specifically the 'Component' library. I really didn't enjoy working with it and it one of the most complex to understand parts of our web application. So while this seems like a fun set of slides (I have not watched the presentation yet), it's not what I would call a great intr…

What a surprise that the stateful edges of the application are the most complex! I didn't mind component in the past but we just started a project with mount and I really dislike working with that. Seems like there are a lot of ways to shoot your own foot with any of these libraries because there is no "one true way" to integrate them into an application. I haven't tried integrant yet but everyone and their dog seeme…

Out of curiosity - what are the pain points related to Mount?

Re: Using Clojure for Web Apps

#16
post #15

If anyone is interested, there is an up and coming Clojure web framework called Coast, https://coastonclojure.com/ For those that aren’t as familiar with Clojure - there isn’t a rails or Django for web apps, so Coast is trying to fill that void.

I've used Luminus to fill that space, and I gotta say I don't think that's the best way to go for Clojure.

Getting started with Luminus was fine, but it was often very confusing and I didn't understand a lot, whereas when I added things as I needed them and checked out a couple libraries, I had a lot easier time debugging what was wrong.

What's going to make Coast different?

Re: Using Clojure for Web Apps

#17
post #15

If anyone is interested, there is an up and coming Clojure web framework called Coast, https://coastonclojure.com/ For those that aren’t as familiar with Clojure - there isn’t a rails or Django for web apps, so Coast is trying to fill that void.

I've used Luminus to fill that space, and I gotta say I don't think that's the best way to go for Clojure. Getting started with Luminus was fine, but it was often very confusing and I didn't understand a lot, whereas when I added things as I needed them and checked out a couple libraries, I had a lot easier time debugging what was wrong. What's going to make Coast different?

IMO languages like Clojure (or Go) don’t need a fully powered batteries included web framework like Rails or Django. The approach to pick together what you actually need (router, db bits and pieces, etc) with composable libraries works really great

Re: Using Clojure for Web Apps

#18
We use pedestal+fulcro3+pathom

om.next was before that, but it seems to be almost abandoned, also fulcro author have solved a lot of depressing pain points of om.next.

Those three work like a perfect Lego.

Re: Using Clojure for Web Apps

#20
I've been slowly learning Lisp to hack on Emacs, org-mode and org-babel. Main goal being to turn AWS JSON data into org-mode headings and org-babel data to do further work on.

Very much a side project and I'm a bear of very little brain, so it's taking me a long long time.

Seeing Clojure and other Lisp stuff in the wild gives me hope that I can lean on enough people's documentation and source that I can eventually learn what I need.

I know some folks sneer a little at Lisp, but I really enjoy trying to learn it. I haven't felt as motivated to learn a coding language since about ten years ago when I used Perl to transfer/munge data from different LDAP systems into Zimbra.

So, thank you for sharing, this is fascinating stuff.

Post reply on HN