@JohanLarsson oh, then why doesn't the app have a language property which you can just change, and relevant parties just subscribe to notifications - like UI events with bubbling and delegation?
That way, you inject the culture info but also notify it of changes if it subscribed to notifications and you don't have global state everywhere but rather hierarchal state
Language setting isn't always global, there are tons of cases (like multiuser apps, or apps with partial translations, or setting a document's setting and not the app's)
Right, but why force that fact into your design? In just as much work you could make the dependency explicit through DI and when you move things around less things will break and users will find out what it needs more obviously.
@JohanLarsson It's not about the technical ability to test it, in fact it's never about that. I always get upset when people imply DI has to do with testing... It's about having explicit and clear dependencies in your code base.
@JohanLarsson when you don't have globals everything you pass around is well... passed around. A class can't access Global.Instance and that's very nice for reading code.
@JohanLarsson no, mocking is not the most important feature the fact dependencies are explicit is. You always know what the object needs in order to work. Testing being enabled is a language limitation of some languages - it's certainly not the point of it all it's a plus that you get nice syntax and automatic wiring through a DiC is just added sugar.
> After a quick search in draft N4296, I could not find any example of a name in the C++ Standard Library for which two possible spellings exists (BrE vs. AmE).
uninitialized_copy would seem to set a precedent for the US variant. (Although the "z" is technically correct, if abominable, in English). — Mike Seymour2 hours ago
I was wondering about names in the library since I could not find any name with potentially ambiguous spelling, but you're right, I didn't look very well
After you install haskell platform:
git clone github.com/bananu7/Hate.git
cd Hate
cabal sandbox init
cabal install --dependencies-only
cabal run sample_shapes
See this question: Trying to decode a virus
This page is blocked - it loads and then the page removed by ESET Endpoint Secuirty on my Laptop. The AntiVirus software states it has found code for PHP/Agent.NEH Trojan on the page.
This may be code that the question originator has put on the page...
@orlp Because it's counter-intuitive to real language.
But the semicolon makes more sense mechanically because it's not as used as much as a period and is eye-catching enough to signify the end of a statement.