Server side as a stateless service vs server-side rendering and REPL help developing a project


#1

Hi Everyone,

How are you?

I would like to understand more about the topics described below about types of server side uses, why Clojure cannot be used as SSR as other language frameworks, more work?

What’s more, does everybody uses the repl giving immediate feedback of code, on the fly, without the need to run the program/function(s)?
Do you know how do I set up this on Intellij / Cursive?
Is it with the port?


#2

It can: using Hiccup or Selmer to render HTML (from data structures or from HTML templates, respectively). For the most part, that’s how we use it at work. We have one customer-facing app built with React.js that has a stateless service on the back end written in Clojure. We have several apps written in Clojure that do server-side rendering (three are customer-facing, three are internal-facing).

The author was just saying that it’s fairly common with Clojure(Script) to write an SPA (Single Page Application) that manages state on the front end and uses a stateless back end service – so you have one language on the front and the back.

As for the REPL, yes, at work we do all our development in/with a REPL and we start/stop the components of the app from within the REPL. To be clear, we do not type into the REPL. We connect our editor to the REPL (we use a mix of Emacs/CIDER and Atom/Chlorine at work) and we type into the editor and use a hot key to evaluate forms into the REPL as we work. Watch Stuart Halloway’s presentations on REPL-Driven Development and Running With Scissors for more insight into that sort of workflow (I’ll leave it to you to Bing/Google those so you can choose whether to read the talk transcripts, read the slides, or watch videos of the talks, since all those options are available I believe).


#3

With SSR, easy??

Cool, I learnt how to do that on Intellij, kind of…not functions at the moment…with alt+shift+P.

I thought would be on the fly without any commands like on Nightcode and Light table.


#4

I’m not sure what you’re asking at this point.