|
|
|
|
|
by mavelikara
2987 days ago
|
|
> If the easiest way to do that in your language is some kind of magical reflection-based framework, something is very wrong with your language. Languages have strengths and weaknesses. Certain tasks are easy in some languages, and certain other tasks are not. Throwing ones hands up and saying "something is very wrong with your language" because one is not familiar with a technique or tooling popular in another language is immature, IMO. For example, if you explain how Debug.Trace works in Haskell to programmers familiar with Java, and they'd call it crazy. |
|
Agreed, but we mustn't fall into the fallacy of assuming that means no language can ever be better or worse than another. There are good and bad language design choices, and "an implementation of interface foo that returns bar when called with baz" is not some obscure specialized feature, it's the basics of general-purpose programming.
> Throwing ones hands up and saying "something is very wrong with your language" because one is not familiar with a technique or tooling popular in another language is immature, IMO.
I'm very familiar with the techniques and tooling of mocking frameworks. I do not make these claims lightly.