3 ms·
This article resonates very strongly with me. My job involves writing Java. Having really gotten into Python and Clojure over the past few years, as well as dab
by chris_j 16y ago
This article resonates very strongly with me. My job involves writing Java. Having really gotten into Python and Clojure over the past few years, as well as dabbling with Haskell, it really frustrates me when I have to write certain things in Java that I know could be done more elegantly/safer/quicker in a more expressive language. Like the author, I often find that I am not satisfied with Java code that I write. There is always a temptation to try to use functional techniques in Java. Experience has taught me, like the author, that this usually makes the code hard to read.
Does anyone have any advice for a Python/Clojure nut who has to write Java from time to time?
- Ingaz 16y agoUse python for prototyping and code generation. It works for me with C#. I do frequently: copy-paste fields from specification, make namedtuples from it, write/debug logic, and then: generate C# classes, rewrite logic in C#. Rewriting in C# is not annoying for me. I just can't play with different ideas in C# as in python. (And I can't imagine how I can write SQL without python!)