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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Clojure at a Real Estate Portal

156 点作者 dodders超过 9 年前

6 条评论

hackbinary超过 9 年前
If anyone is interested, he&#x27;s talking about onthemarket.com.<p><a href="https:&#x2F;&#x2F;www.onthemarket.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.onthemarket.com&#x2F;</a><p>Not sure why he just didn&#x27;t say it, that information is available elsewhere anyway.<p><a href="https:&#x2F;&#x2F;juxt.pro&#x2F;" rel="nofollow">https:&#x2F;&#x2F;juxt.pro&#x2F;</a><p><a href="http:&#x2F;&#x2F;blog.juxt.pro&#x2F;posts&#x2F;otm.html" rel="nofollow">http:&#x2F;&#x2F;blog.juxt.pro&#x2F;posts&#x2F;otm.html</a>
dmichulke超过 9 年前
I use an eerily similar stack with clojure, ring&#x2F;compojure, http-kit, java.jdbc + c3p0, timbre and I have to say it&#x27;s fantastic.<p>I created a kind of a template with how to organize namespaces around that and how to address and automatically parse the URL&#x2F;form parameters depending on the URL and send a &quot;missing param&quot; or &quot;malformed param&quot; back in the appropiate cases. It also deals with optional params<p>The app basically only abstracts away the HTTP Server stuff and calls the appropriate call in an API namespace (where someone else could hook in if he wants to use his own server).<p>Also, I now save all DDL in a separate resources&#x2F;SQL folder and parse it if I need to rewrite the DB from clojure (e.g., at initialization after deploy). In the folder there is a schema.sql in which all other DDL is called via \ir.<p>Checking whether the current version is the most up to date I still do manually (so if I add an index to some table in the DB, I add checking for this index via postgres native tables in the migrated? function) but this will be automated as well some time in the future.<p>The reason why I use org.clojure&#x2F;java.jdbc is because I can use all native postgres features (arrays, jsonb, tsvector, ...) without using the very weird java.sql constructors. This is also one of the major points against any current library.
评论 #10732063 未加载
pwm超过 9 年前
Semi off-topic, but might helps others as well: What should an experienced OO dev read to better understand how dynamic FP languages, like Clojure, alleviate the aforementioned cons of OO in the architecture of large-scale agile projects? In other words: I know from experience what&#x27;s the downside of OO, but I don&#x27;t know how dynamic FP languages would help without sacrificing the benefits of OO?
评论 #10732338 未加载
评论 #10731239 未加载
评论 #10731361 未加载
评论 #10730973 未加载
评论 #10731193 未加载
pka超过 9 年前
How did you handle refactorings? Like, changing userAddress&#x27;s &quot;type&quot; from Address to Maybe Address?<p>This is what scares me the most in Clojure and all other dynamic languages - that early on in the project, I&#x27;d make an unfortunate decision which I wouldn&#x27;t be able to go back on once the project goes over 2-3kloc... without introducing hundreds of potential runtime errors, that is.
评论 #10730691 未加载
评论 #10730689 未加载
donjigweed超过 9 年前
The &quot;Clojurians don&#x27;t like testing&quot; meme probably has more to do with Rich Hickey&#x27;s famous &quot;guard rail programming&quot; [1] comment than anything else. Of course, even at the time, the joke within the community was, &quot;Yes, <i></i>Rich Hickey<i></i> doesn&#x27;t need to write tests....you do!&quot;<p>[1] <a href="http:&#x2F;&#x2F;www.infoq.com&#x2F;presentations&#x2F;Simple-Made-Easy" rel="nofollow">http:&#x2F;&#x2F;www.infoq.com&#x2F;presentations&#x2F;Simple-Made-Easy</a> (15:30)
评论 #10734071 未加载
khgvljhkb超过 9 年前
Thanks for the write-up! Juxt seems like a cool bunch - I&#x27;m not London-based (Berlin) but would not hesitate one minute given the chance to join them.
评论 #10731374 未加载