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

This is basic object orientation: You pass in an object that corresponds to the desired interface. "Facade pattern" if you need something to Google, but this is really basic language-agnostic OO stuff.

Another reason to dislike the Java cruft; it successfully hides the simple things going on behind immense machinery and complicated terminology.




So this is what confuses me about claims that in Python you don't need all this extra cruft, because the language makes these things possible:

if you are using the Facade pattern in Python for this example, you'd be using the same pattern in Java.

So then, what exactly is different here?




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

Search: