TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Noir - The Clojure web framework

145 点作者 abp将近 14 年前

11 条评论

vetler将近 14 年前
The examples uses Clojure as the language for defining the HTML. I've also seen Common Lisp examples (such as in Practical Common Lisp, <a href="http://goo.gl/CuUZQ" rel="nofollow">http://goo.gl/CuUZQ</a>) that use CL for the same purpose. In frameworks built for other languages, it is most common to have a separate template language for defining the HTML.<p>It seems much easier to use the same language when using a Lisp dialect compared to for instance Java, which would be a lot more verbose, but it is also done this way to separate logic from presentation, and because it's (supposedly) easier for front-end developers. Coming from non-CL frameworks, it was natural for me to choose a template framework for my small (and now outdated) tutorial on writing a blog in CL (<a href="http://goo.gl/YHCw" rel="nofollow">http://goo.gl/YHCw</a>).<p>However, I'm wondering if anyone has any experience developing web applications using a Lisp-dialect for generating the HTML (as Noire and the example in Practical Common Lisp), and if this is scalable to a team where front-end developers might not be used to or familiar with Lisp.<p>The syntax seems easy on the eyes, so perhaps it's not such a big problem once they get over the unfamiliarity.
评论 #2682351 未加载
评论 #2682398 未加载
评论 #2683227 未加载
评论 #2682578 未加载
rix0r将近 14 年前
Looks promising!<p>One question: form rendering, validation and handling are the most important as well as the most annoying things you have to do while writing a web application. Do you plan to incorporate something for that into the framework?
timclark将近 14 年前
Why would I use Noir instead of compojure or ring + moustache?
评论 #2682483 未加载
评论 #2682374 未加载
elevenE将近 14 年前
I don't know Clojure (not sure how expressive it is), but for a framework isn't the code too less? I have seen other frameworks, but they are quite large (in terms of LOC.) Is it that they contain more functionality?
评论 #2682838 未加载
评论 #2683129 未加载
akuzi将近 14 年前
One of the cool things about using a functional language for web development is the potential to use continuation-passing style (CPS) to make http look like a stateful protocol, which makes implementing chains of user interactions a lot simpler.<p>I know Clojure doesn't support first-class continuations, but does anyone know whether is it possible to use Clojure Noir to program in this style?
评论 #2686434 未加载
dusklight将近 14 年前
Hey I really liked the syntax highlighting color scheme you used in the webpage, is there an emacs theme for that?
评论 #2684499 未加载
IvarTJ将近 14 年前
While making a simple web application in Chicken Scheme, I used SXML transformations. From the code samples, that doesn’t appear to be the convention with this web framework. Is there a good reason to use alternatives to SXML? Or is it just preferences?
MatthewPhillips将近 14 年前
Very nice, I've been wanting to get into Clojure, but not having a functional background I've found it hard to jump into anything. This looks easy enough that I could transition in slowly, I think I'll give it a try.
评论 #2682897 未加载
评论 #2682678 未加载
评论 #2682691 未加载
评论 #2684789 未加载
ZeSmith将近 14 年前
I'm surprised that there's no large "Fork me on Github!" link at the top right corner of the screen.<p>Still, looks very interesting.
评论 #2683587 未加载
va_coder将近 14 年前
Here's what I don't get about Clojure fans: I don't see what problems you are solving. A simple Hello World program is made in Clojure and it gets upvoted all day. On the other hand Ruby on Rails folks are solving real problems today, making strides in integrating CoffeeScript and cleaning up javascript directories.<p>It's like someone showing off a new garbage collection library built in C. The problem's been solved. Show me something new.
评论 #2684498 未加载
评论 #2683987 未加载
评论 #2683961 未加载
iLie将近 14 年前
Way to go, webnoir! 502 Bad Gateway screen!<p>Level of confidence instilled in me because of this: 0% Chance I'll come back later to check it out: 0% Probability I'll go visit Enlive right now: 100%<p>Can't help but suspect you're choking on your own dog food here. Or crapping out a corn-studded loaf, take your pick.<p>Well done!