Monday, December 6, 2021

Now that I have accepted SwiftUI into my heart, I find SwiftUI Lab to be a great resource.

Now that I have accepted SwiftUI into my heart, I find SwiftUI Lab to be a great resource.


Advanced animation, advanced Views, the Lab specializes in the little bits that make an App polished.


https://swiftui-lab.com/


Sunday, December 5, 2021

A detailed analysis of issues using SwiftUI’s EnvironmentObject keyword.

A detailed analysis of issues using SwiftUI’s EnvironmentObject keyword.


Thanks to Riccardo Cipolleschi for his explanation of the two common, if faulty, methods to deal with dependencies.


Comments: I understand Riccardo Cipolleschi points, but will have to spend time working with EnvironmentObject to decide. I like SwiftUI simplicity of using keywords.  That said, I am leaning towards Type Erasers. While I do not have a solution for better testing with SwiftUI, I dislike his solution of “explicitly defining the dependencies and to pass them in the View initializers”. For more than one or two dependencies, this becomes messy very quickly.


https://betterprogramming.pub/why-you-shouldnt-use-environmentobject-in-swiftui-a527d5c2bd


Liskov Subsitution Principle (mentioned in the article): https://en.wikipedia.org/wiki/Liskov_substitution_principle

Saturday, December 4, 2021

Now the Animations are battling classic Arcade characters. Who will win? Lose? Get their quarters back?

Now the Animations are battling classic Arcade characters. Who will win? Lose? Get their quarters back?


In 2006, Alan Becker did a short animation where the drawing took over the paint program.  17.4 subscribers later, he is still at it.


https://www.youtube.com/watch?v=-kCePEEBjvc


Alan’s Youtube Channel: https://www.youtube.com/c/noogai89


Original Animator vs. Animation: https://www.youtube.com/watch?v=npTC6b5-yvM


Saturday Tech Humor

He’s making a database.


He’s sorting it twice.


SELECT * FROM CONTACTS WHERE BEHAVIOR = “NICE”


SQL Claus is coming to town!


Happy Holidays!

Friday, December 3, 2021

Well used Callbacks, Combine or Swift’s Async/await, how should you implement your Apple network code?

Well used Callbacks, Combine or Swift’s Async/await, how should you implement your Apple network code?

Thanks to Riccardo Cipolleschi for this in depth article about using each approach.


https://betterprogramming.pub/how-to-convert-your-ios-network-layer-to-work-with-combine-or-async-await-869364313bd3


Thursday, December 2, 2021

Adam Rush starts his blog with a handful of posting, including this tidbit about new features of the future Swift 5.6.

Adam Rush starts his blog with a handful of posting, including this tidbit about new features of the future Swift 5.6.


Inferring the type of a collection and improved availability condition checking, both very useful.


https://www.swiftlyrush.com/whats-new-in-swift-5-6/


Wednesday, December 1, 2021

An IBM Ad from 1988, that show if you don’t want to explain your product, just throw celebrities at it.

An IBM Ad from 1988, that show if you don’t want to explain your product, just throw celebrities at it.


Yes, that is Hawkeye, Radar and Col. Potter from M.A.S.H. hawking the IBM Application Sysrtem/400.


https://www.youtube.com/watch?v=LKZ34h1sT24