@nicklockwood@mastodon.social avatar

nicklockwood

@nicklockwood@mastodon.social

iOS. 3D graphics. Retro games. He/Him.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

nicklockwood, to random
@nicklockwood@mastodon.social avatar
nicklockwood, to random
@nicklockwood@mastodon.social avatar

@metin thought I'd try out this hot new puzzle game I keep hearing about

nicklockwood, to random
@nicklockwood@mastodon.social avatar

I'm wondering if anyone will recognize what this is

nicklockwood, to random
@nicklockwood@mastodon.social avatar

Wtf? Somebody registered a domain name for SwiftFormat with blurb that they seem to have written themselves, and no actual link to the tool?!

https://swiftformat.com

nicklockwood, to random
@nicklockwood@mastodon.social avatar

I am "the earliest links in my Safari reading list now mostly return 404s" years old

nicklockwood, to random
@nicklockwood@mastodon.social avatar

I briefly considered using this image to illustrate the concept of "progressive disclosure" in my Swift talk but ultimately thought better of it 😅

nicklockwood, to random
@nicklockwood@mastodon.social avatar

Does anyone know of a really nice tool for doing presentations with a lot of code in them (including transitions, etc)?

I generally use Deckset because it takes care of syntax highlighting at least, but otherwise it's very limited.

Keynote can do anything, but only with a huge amount of fiddly effort put into each code sample and animation.

I ideally just want something that takes a markdown document as input and "magic moves" all the transitions for you automatically with minimal effort 😅

nicklockwood, to random
@nicklockwood@mastodon.social avatar

In a fit of madness I've agreed to give an internal talk about advanced Swift at my company. Has anybody got any favorite Swift tricks they'd like to share?

nicklockwood, to random
@nicklockwood@mastodon.social avatar

Me (as the sole swiftformat maintainer) filing an invoice against the swiftformat opencollective project to reimburse myself, and then (as the sole swiftformat opencollective project administrator) approving the invoice

nicklockwood, to random
@nicklockwood@mastodon.social avatar

Whoever designed this church spire must have studied at the school of '90s FPS architecture

nicklockwood, to random
@nicklockwood@mastodon.social avatar

My daughter had an anxiety dream that we went on vacation somewhere with bad wifi and she lost her duolingo streak 🤣

nicklockwood, to random
@nicklockwood@mastodon.social avatar

Had a blast meeting up with some of the old gang at NSLondon tonight. It was like a high school reunion but if I'd actually liked the people I went to high school with

nicklockwood, to random
@nicklockwood@mastodon.social avatar

I have on more than one occasion used the phrase "don't cross the streams" to refer to mixing potentially incompatible friend groups (e.g. work colleagues and university mates).

I thought this was a standard use of the idiom, but I can't find any reference to it online (Urban dictionary has some very unpleasant definitions, but not that one) and I'm now wondering if anyone knew what the hell I was talking about when I said it 😅

nicklockwood, to random
@nicklockwood@mastodon.social avatar

In Swift, it's possible to define an optional readwrite property on an objc protocol as follows:

@objc protocol Foo {
@objc optional var bar: Bool { get set }
}

But it's unclear how you can ever set this property?

When trying to get the value it just returns an optional (which makes sense), but there's no obvious way to unwrap it in order to set the value. The bar?() syntax used for calling optional methods doesn't work for property setters.

nicklockwood, to random
@nicklockwood@mastodon.social avatar

My favorite (as in the only ones that aren't irritating) April Fools are the ones where someone spends a load of effort to actually build an absurd-but-cool thing that has no reason to exist except to make you laugh

Jokes about pretending you made an absurd-but-cool thing but actually you didn't - not funny

Jokes about pretending you did something bad or sad but actually you didn't - also not funny

Jokes that something either good or bad happened but actually it didn't - again, never funny

nicklockwood, to random
@nicklockwood@mastodon.social avatar

Can someone ELIF this SwiftUI behavior for me? I have a List with a cell containing two buttons in a VStack. If I tap anywhere in the cell, both button actions fire. Whether I tap on or near a particular button seems to make no difference.

nicklockwood, to random
@nicklockwood@mastodon.social avatar

I don't think I'm seeing any additional contact info appearing for developer/app pages in the UK App Store. Is the UK store exempt from this requirement? Or has it just not rolled out yet?

nicklockwood, to random
@nicklockwood@mastodon.social avatar

I'm getting real cognitive dissonance from the latest developments in AI. I love technology, and it's not like ethics in computer science is a novel concern, but the impact of tech advances over the last few decades seemed slow enough that society was mostly able to adjust and keep up.

In the last few years though it really feels like tech bros are going all in on shipping incredibly dangerous tools with absolutely zero thought put into preventing harm.

From: @nixCraft
https://mastodon.social/@nixCraft/112184244041786437

nicklockwood, to random
@nicklockwood@mastodon.social avatar

Whoever set up our Jira seems to have thought "in PR" meant "Peer Review" instead of "Pull Request" but like … maybe that's better actually?

nicklockwood, to random
@nicklockwood@mastodon.social avatar

Apple has an example project for how to build "desktop class" apps on iPad that specifically mentions Mac Catalyst in the associated WWDC video and includes a Mac Catalyst target, but doesn't actually work on Mac Catalyst (creating a new document throws an error).

Is this the new normal? Frameworks so hard to use correctly and/or poorly tested that even Apple's own example code doesn't work?

nicklockwood, to random
@nicklockwood@mastodon.social avatar

An explanation for why people in general seem to become more conservative as they get older: https://brilliant.org/lesson/the-overton-paradox/

tl;dr; people actually tend to become more liberal as they age, but the political center of society as a whole shifts to the left faster than people do.

What was a liberal, left-of-center viewpoint in 1970 is considered very conservative by today's standards, so those kids who would have called themselves liberals now identify as conservative, even if their views haven't changed

nicklockwood, to random
@nicklockwood@mastodon.social avatar

Swift tip: if you print a multiline string in the console using po myString then newlines get printed as \n, which can be hard to read.

If you instead write po myString as NSString then the output will be spread over multiple lines.

nicklockwood, to random
@nicklockwood@mastodon.social avatar

Super Mario Wonder seems very competently done, but I'm struggling to muster any enthusiasm to play it. I think maybe I'm just done with the genre? Or maybe with games in general - I've not really played anything in months.

nicklockwood, to random
@nicklockwood@mastodon.social avatar

I had a bunch of improvements I wanted to make to a couple of my iOS apps but tbh this trader thing has killed all enthusiasm I have for ever updating any of my apps again 😞

Does anyone know if it also applies to the Mac App Store?

nicklockwood, to random
@nicklockwood@mastodon.social avatar

My web development journey:

1999: self-taught, hand-coded HTML 3 tables and exported slices from Photoshop (CSS? What's that?)

2007: fully XHTML-compliant hand-coded accessible, semantic HTML, CSS, progressive enhancement with jQuery

2008: iOS happens

2015: I'll just use an off-the-shelf Wordpress template

2020: a github pages site will be fine, right?

2024: fuck it, here's a link to a gist

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • rosin
  • thenastyranch
  • GTA5RPClips
  • tester
  • InstantRegret
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • everett
  • Youngstown
  • mdbf
  • slotface
  • kavyap
  • JUstTest
  • cisconetworking
  • khanakhh
  • normalnudes
  • osvaldo12
  • cubers
  • tacticalgear
  • Durango
  • ethstaker
  • modclub
  • anitta
  • provamag3
  • Leos
  • lostlight
  • All magazines