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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Web Application Development with Clojure

56 点作者 rohshall将近 13 年前

7 条评论

eggsby将近 13 年前
This series is nice in that it shows working with databases (and schema migrations!), using the ring http abstraction, and hooking the two together. That said, I think that clojure is one of the worst platforms you could choose for building a blog (at least if you did it the way described in this article rather than the approach taken by things like jekyll).<p>I understand the choice to build a blog was arbitrary, but as a clojure dev looking at this it just looks an immensely painful process for something that should be one of the simplest things to do on the web.<p>I've found clojure to be a fantastic language for managing data transformations (we're using it for continuous delivery stuff at work and it's been remarkable). For static content like a blog it just seems remarkably burdensome.<p>There is probably a reason most clojure developers don't use blogs written in clojure.
评论 #4405469 未加载
andrewcooke将近 13 年前
why do you need a database for static text? at the very least why doesn't your site have basic caching so that multiple requests for one page don't take it down?<p>i'm not just aiming at this post (the series of articles here look good). but web pages are not new tech these days. blog sites particularly. why do we still see so many go down once they have more than zero load?<p>especially when the article is supposed to be teaching about web dev...<p>cache: <a href="http://webcache.googleusercontent.com/search?q=cache:C6RrQdORJN8J:www.vijaykiran.com/2012/01/11/web-application-development-with-clojure-part-1/+&#38;cd=3&#38;hl=en&#38;ct=clnk&#38;gl=cl" rel="nofollow">http://webcache.googleusercontent.com/search?q=cache:C6RrQdO...</a> (first page only)<p>[edit: there are lots of ways of caching to static files. wordpress has plugins that do it. more recently github has popularised jekyll. you can have comments through javascript and a 3rd party - i've set up a jekyll based blog with discuss comments on bitbucket and it was easy to do. it's not even hard to write your own (my own blog is nothing exciting, sure, but for years was generated as static pages from email using just a few bash scripts).]
评论 #4404404 未加载
评论 #4404170 未加载
评论 #4404175 未加载
vijaykiran将近 13 年前
Author here - Didn't see that someone posted this to HN - and my I was wondering why my puny VPS kept on dying - rescaling it now :)
评论 #4404711 未加载
评论 #4404434 未加载
akurilin将近 13 年前
Glad more folks are posting up-to-date tutorials for these core basics! The more, the merrier.<p>Any thoughts on using vim for slime/swank-like development? I hear Nailgun can be quite rough to get working.
italophil将近 13 年前
Unfortunately not working: Error establishing a database connection.
评论 #4404169 未加载
pestaa将近 13 年前
I just got started in functional programming. How is web development different with Clojure than, let's say, Haskell? What are the trade-offs between the two?
评论 #4405038 未加载
franzus将近 13 年前
Great. I perceive webdev as pretty boring. I hope using an exotic language like clojure will make it a little more interesting for me.