Also, is there any documentation generator that can check whether in-line code examples (Swift, C++) would actually compile? Likely by letting me provide “invisible” extra code as a test harness? (It doesn’t have to run the code, compiling would be enough)

Is there a documentation generator that lets you basically write Markdown, and will create a nice web site from that? Needs support for anchors, per-page table of contents, “information” and “warning” boxes and source code highlighting.

Seems like Gitbook USED to be like that?

I’m slowly getting used to drinking insanely bitter tea.

Wish I’d just get used to setting a timer to take out the teabag after a few minutes instead.

Anyone else familiar with the TV show “Photon” ?

It was basically “LaserTag, the TV series”.

I love Netflix’s “The Toys that made us” documentary.

I didn’t know that Power Rangers was basically recycled footage from a Japanese show mixed with new connecting scenes shot in the US.

I knew they were based on a Japanese show, but thought it was a remake or dub.

Just stumbled over the “GitHub Packages” tab. What problem does that solve? Auto-update cached NPM packages/Docker images and make it easier for Github to optimize serving them than if they’re just a Release, or what?

Will have to read up on that.

I have a new Xcode 11.2 EXC_BAD_ACCESS code=1 addr=0 in my iOS unit tests I can’t explain:

#0 0x000000000 in 0x00000000 ()
#1 0x10613e9d9 in dispatch thunk of MyClass.myMethod(name:type:flags:) ()
#3 0x105d5b43a in MyTest.setUp()
#4 0x105d5b4eb in @objc MyTest.setUp() ()


What is a “dispatch thunk” in Swift? I mean, I know a thunk is code added around or at the start/end of a function, so I’m assuming it’s some sort of adapter function?

Getting a crash in one trying to call 0x00 and have no idea why.

So many friends are doing betas of their new products/releases right now. I wish I had the bandwidth to try them.

“made from a freshly infusion of black tea” is wrong, isn’t it? Or is a “freshly infusion” (not “fresh infusion”) some special technical term in food chemistry?

Would be neat if Swift actually showed the value of constants in the headers generated from C API (like errno.h) Sometimes you just get the raw value and want to know which constant it corresponds to.

Me: OK, SwiftLint, last try, I’ll define a typeAlias for the long type in this function
SwiftLint: Types mustn’t be nested deeper than 1 level
Me: // swiftlint:disable opening_brace

SwiftLint: That line is too long break it up
Me: Breaks it up
SwiftLint: No, you can’t put a closure’s { on a new line
Me: Puts only arguments on new line
SwiftLint: No arguments should be on the { line
Me: That’s how it was when you said it was too long!

FYI: The way US/German keyboards are arranged, it’s very easy to mistype “face” as “dave” or “ios” as “ups”.

TIL that XCTest of course has no idea about availability macros on test methods, and therefore will happily run tests for a newer OS version when running on an older one. Had to add if () around the method body to ensure we just don’t run those tests on older systems.

Is there something like C++’s placement new in Swift? Or an “unsafe” assignment operator?

Trying to use Array.init(unsafeUninitializedCapacity:, initializingWith:) but it tries to deinit the un-initialized memory before assigning a value when used with classes.

I think Swift should stop using () to mean Void and just use Void in all error messages. It makes it look like a closure every time and is just confusing when the other name exists.

I love that you can have additional parameters after variadic arguments in Swift.

Show more
Mastodon for Tech Folks

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!