Page 1 of 1

Content Management System

Posted: Tue Mar 22, 2011 12:16 pm
by jstoddard
I threw together a minimalist content management system in Common Lisp using Hunchentoot and CLSQL. If interested you can find it at http://www.jeremiahstoddard.com/Project ... ntent.html.

It consists of a few hundred lines of not-so-elegant Lisp code -- give me a bit of a break there: It takes time to get over the non-lispy habits I picked up from C and the bad habits I picked up from PHP (as an aside, I didn't realize just how badly PHP was destroying my programming style until I started playing around with Lisp; the language almost seems designed to encourage badly written code). In any case, it works reasonably well. It's powering my website, which formerly used software way too big for the task. I only really need to be able to create/edit pages, categorize them, and upload files.

Next, I guess I need to brush up on my math in order to be able to do anything worthwhile related to my interest in computational physics. Meanwhile I suppose I'll play around with lispbuilder-sdl and perhaps some other graphics libraries to see what I can do for visualization for my some-day-to-be-written physics tools...

Re: Content Management System

Posted: Fri Apr 01, 2011 2:07 am
by Cantheman
Thanks for sharing, it's really nice to have real live code besides studying the language.
Btw what environment are you using for dev? I am using Lispbox for now which is pretty ok. Need to learn Emacs better though.

Re: Content Management System

Posted: Fri Apr 01, 2011 8:32 am
by jstoddard
Emacs with SLIME, which is the same thing Lispbox gives you, I guess. As far as needing to learn Emacs better, I've been using Emacs for at least 13 years and I still need to learn it better. :D You can learn just what you need to get your work done, or you can try to experience more of what it has to offer. Slowly I'm trying to move from the former category to the latter; I just wrote my first ELisp function a week or two ago, for example...

Re: Content Management System

Posted: Sat Jun 04, 2011 6:47 am
by findinglisp
You can always learn something more in Emacs.

Re: Content Management System

Posted: Fri Jun 24, 2011 5:01 am
by denis
I have an idea to make CMS in newlisp...
But it won't follow MVC model, I prefer a model that consists of components on a page, where "view" is handled by client-side (javascript), controller is ajax listener (snippets of code on server-side, linked to the components in the browsers page). First time "a loader" will send a page to the browser, and then all the changes will happen with components, with no reloading of the whole page.
Also I would like to have opportunity to add listeners and views code straight to the editing window of components (that will be instead of traditional back-end of classic CMSes).
Thats my vision, let's see how it can be implemented..