Hacker News new | past | comments | ask | show | jobs | submit login

Another interesting side-effect of tight code, is that you become a lot less attached to it. When I worked in Java, it would often take 100s of lines of code to solve a simple problem, and once I wrote that code I'd be very hesitant to throw away or refactor it.

With Clojure, it often takes 10 lines or less to solve problems that take 100s of lines of Java. This encourages a lot more experimentation and refactoring in my experience.

Also, since you're always working in the REPL, you can always run the code after you change it and see that it's doing what you want immediately.




The functional nature helps with the lack of fear of refactoring. Your Java code may have side effects reaching across the code base.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: