Pics of my first city in Townscaper, my favorite new meditative city builder. ๐คท๐ปโโ๏ธ
Author: patmcg
The Smile NYC
The Smile looks like a great place to visit next time I’m hungry in New York. This “cozy, subterranean cafรฉ” is located under a downtown Manhattan 1830’s townhouse. ๐คฉ
I heard about it from a celebrity. ๐คท๐ปโโ๏ธ
Kinney & Lamar Sky
Sublime sunset yesterday. ๐คฉ #sunset #sign #austin #texas #atx #shotoniphone #sky #clouds #retro #nofilterneeded via Instagram https://instagr.am/p/COd6oUAFEOm/

Introducing Swift Collections
Swift Collections is out with some new collection-oriented extensions on the Swift language as a companion to Swift Algorithms and Swift Numerics.
๐ Introducing Swift Collections | github
Swift Collections gives you hybrid collection types like Deque, which is an array with “efficient insertions and removals at both ends”, OrderedSet, which is a “powerful hybrid of an Array and a Set”, and OrderedDictionary (like the actual dictionary).
And of course, they’re efficient. Now go forth and collect in new ways!
The Singleton Pattern – When There Can Only Be One โ๏ธ
Like so many smart and courageous people, the Singleton design pattern is often misunderstood.
Whether it is attacked as an anti-pattern, maligned as untestable, or misused as a global convenience, singletons take a lot of ๐ฉ for just being what they are: a way to enforce that there is only ever one of something. I think they should call this pattern “The One”.
A real life example of a singleton is The President of the United States. We only ever have one president at a time. That’s a key part of the concept. It’s not just a convenience.
In software terms, singletons make sense in many cases such as the one and only instance of the current app running on the current iPhone.
With all this in mind, this quick post provides some nice context about singletons (aka the President) versus just a shared instance (hey, let’s all share this one bike) in Swift.
๐ Whatโs the difference between a singleton and a shared instance in Swift?
Thanks to iOS Dev Weekly for calling out the ongoing confusion on this topic. ๐




