4 ms·
Man that seems like an awful lot of ceremony for a trivial web app. Surely the language known for macros and building your own DSLs has a more concise way to g
by jimbokun 2y ago
Man that seems like an awful lot of ceremony for a trivial web app. Surely the language known for macros and building your own DSLs has a more concise way to get a web app up and running?
- nomilk 2y agoThis is a pretty great tutorial using common lisp libraries: https://www.youtube.com/watch?v=A4PzSsOD-CQ https://www.youtube.com/watch?v=A4PzSsOD-CQ (also, the top comment is gold)
- silcoon 2y agoJosh Betts is a good bloke!
- anonzzzies 2y agoIs it? This translates fairly exactly to things like nodejs/express implementing the same thing?
- silcoon 2y agoAuthor here: You're right! I did that in the article. First I showed how to use the modern libraries, then wrote a quick custom library that compressed my original app in 29 LOC[0]. [0]: It came out shorter than the guestbook demo in Python-Flask.
- vindarel 2y agoyeah the author does too much (and un-necessary stuff). To keep his stack just use the Caveman library has he does: (defparameter *web* (make-instance '<app>)) @route GET "/" (defun index () (render #P"index.tmpl")) https://github.com/fukamachi/caveman/ https://github.com/fukamachi/caveman/ (I like Mito and Djula, I'd go with Hunchentoot rather than Clack which is famously undocumented)