我的公司刚刚要求我在 Clojure 重写一个很大的 Java 应用程序(50000行代码)(一个使用 JSP 和 servlet 的 web 应用程序)。还有谁知道我该注意什么吗?
请记住,我对 Java 和 Clojure 都很熟悉。
我重写了剧本,然后投入了制作。这是相当奇怪的,因为重写结束了如此之快,它完成了大约6个星期。因为很多功能都是不需要的,所以它最终只有3000行 Clojure 代码。
I hear they are happy with the system and its doing exactly what they wanted. The only downside is that the guy maintaining the system had to learn Clojure from scratch, and he was dragged into it kicking and screaming. I did get a call from him the other day saying he loved Lisp now though.. funny :)
Also, I should give a good mention to Vaadin. Using Vaadin probably accounted for as much of the time saved and shortness of the code as Clojure did.. Vaadin is still the top web framework I have ever used, although now I'm learning ClojureScript in anger! (Note that both Vaadin and ClojureScript use Google's GUI frameworks underneath the hood.)