1. Quick assertion to check if you are on a proper queue ❤️
Rony Fadel@ronyfadel#iostipschallenge day 7
I call `dispatchPrecondition` in my codebase to control on which queues methods and callbacks are executed.
Doc: developer.apple.com/documentation/…
e.g. to make sure a callback is executed on the main queue:15:24 PM - 14 Nov 2021
Now the only thing I need is an equivalent of this for testing - something like XCTAssertDispatch(condition: .onQueue(.main))
2. A GUI driven scripting tool in Swift 🛠
https://underplot.com/light
Writing scripts and automating things is a great way to improve your workflow - with this tool it would be a breeze to whip up something ad-hoc, especially with this instant and interactive feedback loop ❤️
Originally seen in this tweet
3. Floating point number math is hard(er) 🤔
https://discourse.julialang.org/t/array-ordering-and-naive-summation/1929
Floating point math has always been tricky, and you should never use it for critical things - it's way better to use Decimal
if you care about precision. That being said, I always assumed that associativity of addition was preserved here. As it turns out - its not 🤯
4. VSCode bracket guides 🔁
🤯I found out today that VS Code has bracket pair guides. You can enable this by adding the following line to your settings.json file:
"editor.guides.bracketPairs": true17:05 PM - 18 Nov 2021
VSCode is such a powerful editor that keeps on giving - after all these years using it as a supercharged notepad, I think I should finally at least try to setup the environment for iOS development outside of Xcode to try it out - seems it's not that complicated, and there are many guides out there, like this first result from a quick search
iOS Development on VSCode. Using an IDE other than Xcode for iOS… | by Foti Dim | The Startup | Medium
Foti Dim ・ ・
Medium
What this is:
A subjective list of links I found interesting during last week, mainly to keep them around.
Top comments (0)