File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Clojure and the fly likes Advices to build my own Clojure framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Languages » Clojure
Bookmark "Advices to build my own Clojure framework" Watch "Advices to build my own Clojure framework" New topic
Author

Advices to build my own Clojure framework

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Hi,
I want to start building my own minimal Clojure web framework, no it is not the next Rails or Django, just a minimal one to use.
But I want to provide some Rails and Django features:
1. The ability to change lines of the code and make it immediate in the browser.
2. Specific shell that deals with the project's specific artifacts (like controllers and domain records).
3. Should be deployable as WAR files.
I may be wrong but I feel there a lot of custom class loader are in the scene, right?
Do you have any advices and warning you would like to share?
Any recommended readings?
Thanks for help and time.
Sean Corfield
Ranch Hand

Joined: Feb 09, 2011
Posts: 252
    
    5

Out of curiosity, have you already played with Ring and Compojure?
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Sean Corfield wrote:Out of curiosity, have you already played with Ring and Compojure?

Please correct me if I'm wrong but Compojure is like Ruby Sinatra.
I want to create something much more Rails or Django, not to mention it will be a massive Clojure spike.
Sean Corfield
Ranch Hand

Joined: Feb 09, 2011
Posts: 252
    
    5

Ring is the base framework for most of the Clojure web framework efforts (as I understand it). I haven't actually tried any of them yet so I was sort of suggesting trying them to get a feel for how they work - and perhaps you can build middleware on top of Ring to jump start your own effort (since it is designed to be extended like that).
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

That is exactly what I'm going to do, build upon Ring project and other Clojure projects.
Michael Fogus
author
Greenhorn

Joined: Feb 07, 2011
Posts: 12

John Todd wrote:That is exactly what I'm going to do, build upon Ring project and other Clojure projects.


You might also want to explore Conjure, it's a Rail-like framework for Clojure.
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

I checked it:
https://github.com/macourtney/Conjure
But it looks it is not under active development.
Sean Corfield
Ranch Hand

Joined: Feb 09, 2011
Posts: 252
    
    5

Consider that a great opportunity to reach out to the project owner and say you're interested in contributing - and, since it's github, fork the project yourself and continue work on it. Definitely better to collaborate if possible and build on an existing framework!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Advices to build my own Clojure framework
 
Similar Threads
How to use other languages in ruby on rails
Define Constants
Migrating from Java
RAILS: Why should I?
What is Rails ?