Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Just one of many reasons that Scala is such an attractive option for Java developers:

// There is only one object DatabaseConnectionConnor {}



It's true that other languages often don't require certain patterns. Strategy and Visitor are often unnecessary when a programming language has functions as first class citizens.

I found that it often helps to remember that the GoF book was written about object oriented patterns with C++.




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

Search: