Hacker News new | ask | show | jobs
by lpetit 5933 days ago
Challenge yourself by thinking whether you could write better java code, in the light of your new knowledge from the clojure side. Straightforward example: produce far more orthogonal java code by using composition and the strategy pattern more, programming more to interfaces and delegating more some "general" work on interfaced objects to static methods in helper classes, etc.

That is, don't throw the baby with the bath water. Though coming with more "boilerplate" (as in "more ceremony"), there are still ways of programming in java that can make you happy at the end of the day: when you feel that your code is more DRY (which does not necessarily mean less code, BTW), and more orthogonal (more interfaces -e.g. callback interfaces- are generally a step in the right direction, though not necessarily a general rule).