Show more

Why do comics makers feel the need to turn one character into another? Give Jane Foster her own name. No need to make her Valkyrie in the comics. We had a perfectly fine Valkyrie already!

I hear people complaining about complexity in Swift …

I’ve seen 2 kinds of languages:
1. Complex ones
2. Simple ones with complex behaviors tacked on using add-on libraries or conventions to make them useful

I think Swift is coping pretty well with the demands, overall.

Have decided I’ll try to hold out buying my next MacBook until USB 4 hits. Given the “12in MacBook nothing” is dead and I’d get a clunkier one anyway, I should get more out of it if I don’t get the last model of the USB 3 generation.

One of these days I’ll get around to filing a bug to make each OpaquePointer its own distinct type in Swift so I can’t accidentally pass the wrong thing into a function <_<

So apparently I can’t read the clock and went home from work an hour earlier than intended <_<

I want to add new parameters to functions at compile-time, not at runtime. I.e. in my library have

func foo(name: String)

then in a later release add a parameter

func foo(name: String, age: Int = 0)

and have it auto-generate

func foo(name: String) { foo(name: name, age: 0) }

Would be nice for API design if prog. languages let you add a parameter to a function in a binary stable way. I.e. right now you always need to define an adapter with the signature of the old version that calls the new version to ensure linkage is correct. Y U no autogenerate?

Some Asshole: humans are just naturally inclined to selfish behavior because of evolution

Humans: *form social bonds with strangers*
Humans: *form social bonds with animals*
Humans: *form social bonds with plants*
Humans: *form social bonds with robots*

Does it make sense to allow division by zero in a programming language?

In a general purpose language? Probably not. When dealing with aspect ratios? Maybe.

It’s common to have a pane collapse to 0 on one side, and a sensible behavior is the constrained box to also be 0x0.

Whoever invented orange juice: You’re awesome.

Let me know if you come up with anything else, I’m sure it’ll rock.

Ist dieser „Leberkäsjunkie“- Film eigentlich außerhalb Bayerns auch so groß plakatiert? Oder ist das ein lokales phänomen?

Random thought of the day: If I ever go into game development and get business cards, I want the job title to read “Game Mechanic”.

Is there any way to give Swift‘s Set a custom comparator? I‘d like to keep a list of objects based on a particular property, so I can‘t use Comparable because that looks at all properties.

Anyone have any good rules-of-thumb for naming Swift methods? Particularly if there are any tricks to include constraints in the name without the whole method call becoming un-English?

db.setPrimaryKey(of: record, to: key)
db.setPrimaryKeyIfPresent(of: record, to: key) ← weird.

Nice little glitch in Assassin’s Creed: Odyssey: The NPCs on the road and your horse use the same pathfinding algorithm, which means when you tell it to take you to a map location, it will mow down any and all pedestrians on its way XD

I really wish a resettable lazy property was a thing in Swift.

Forgot to remember a result in C++ and realized that couldn’t have happened in Swift three times over: 1. The method would have needed @ discardableResult, 2. init would have complained about the un-initialized property, 3. using the property would have complained about NIL.

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!