News for hackers. Stuff that matters.
Re:Go 2 Draft Designs by marcosdumay on Tuesday August 28, 2018 @05:13PM (#17862940)
> What makes one language sprout AbstractSingletonProxyFactoryBeans and another not?

On this case, it's the lack or availability of alternatives. You can't take away every feature that isn't the strictest possible OOP and expect people to create expressive and simple code. Remember that those things were created by the best professionals around, and won the selection of best practices and standard open source tools.

People do not write singletons in Python because it has actual static variables. Any moderately complex Python code is full of factories, but people don't even notice because they are actually just a function declaration around the same code that would be there anyway. There is a lot of "writing too the interface" that Java people do with abstract classes, but it comes nearly automatically with duck typing. And for the "bean" part people just use dictionaries.

Go people seem to be taking the wrong lesson from those things.

There are no comments on this comment yet.