Category Archives: Sideblog

Sideblog posts. Usually links to news stories with a quick comment by me.

On Adding Applescript

On adding Applescript support to your app. (HT: Brent Simmons) I wish, wish, wish more apps added Applescript support. It makes things so much easier. If you’re doing small business software you absolutely should do this. Not because your clients will write Applescript but because they’ll get people to do it for them for automation. Especially to do repetitive actions with Keyboard Maestro. (I wish Daylite has better scriptability)

Swift in Flux

Nice list of what’s changing in Swift. (HT: Michael Tsai) I don’t think most changes will affect people’s existing code, but even so I’d be cautious about using it until things settle down a mite. And of course there are lots of improvements needed in Swift — especially in strings. The biggest flaw I see is the ambiguity about float sizes. The biggest change in beta 3 that will affect existing code is the change of the token for half-closed range operator. However that was so bad I’m still glad they changed it.

Reactive Cocoa in Swift

Could have sworn I’d linked to this before. But I guess not. It’s well worth reading. Reactive Cocoa in Swift. The biggest issue right now is that Swift can’t see macros in ObjC/C. Given some of the problems that introduces I’ll hold off until things get more mature. The linked article goes through workarounds but it’d be nice to have a Swift interface done for you. There’s at least one being worked on. An other post discussing Reactive Cocoa in Swift is here. For those just curious about Reactive programming this is a good defense.

Hashbanging Swift

Hashbanging Swift. Using Swift at the command line. I had enough issues trying to replace Python with Swift that I went back to Python.

Related Posts

  • 55
    I’d mentioned in passing in one of my Swift posts about using it as a scripting language. Someone on Twitter asked me if I’d convert from using Python to Swift for my scripts. It’s an excellent question that I really can’t answer fully at this stage. The language is still very beta. Most of the…
    Tags: swift, python