An Internet of things

Musings on iOS and PHP development, IOT and other bits and pieces

Automatically Generating your Swift API Client with Swagger and Swagger Codegen

At the April 2017 Melbourne CocoaHeads meetup I presented on using Swagger Codegen to automatically generate a Swift 3 API client based on a Swagger spec.

I started with an introduction to Swagger using a spec for the Melbourne CocoaHeads Events API spec and implemented a basic CocoaHeads iOS project.

At the September “Swift 4” meetup I presented a quick five minute demo generating Swift 4 code from swagger codegen. The main purpose was to show the reduction in the amount of boilerplate code generated for Swift 4.

Localising Cocoa Apps - Melbourne Cocoaheads August 2012

/* No comment provided by engineer. */
"Next" = "Next";

If your Localizable.strings file looks like this then you’re probably doing it wrong…

Back in August I presented some best practices for localising your cocoa apps. The presentation centred around my experiences localising my own apps and the realestate.com.au app. I highlighted how using NSLocalizedString properly (or it’s more useful cousin NSLocalizedStringFromTable) can make localisation a lot easier and logical.

Localising Cocoa Apps - Melbourne Cocoaheads August 2012

The first part of the presentation touched on something most people in the audience could relate too… the most notorious misuses of NSLocalizedString that I’ve seen.

I then went onto explain how NSLocalizedString works.

Towards the end I touched on a custom implementation of NSLocalizedString I had been working on aptly named JCLocalizedString that had a compatible interface with NSLocalizedString but would allow switching the active localisation at run time. JCLocalizedString exists on github in it’s early stages.

The presentation slides are up on github and the video is on vimeo. The presentation notes are included with the slides and may be a good reference.

Localising iOS Apps - Jesse Collis from Melbourne Cocoaheads on Vimeo.

CATiledLayer - Melbourne Cocoaheads February 2012

I put my hand up to do a talk at the February 2012 Melbourne Cocoaheads meet up on CATiledLayer. It was a great start to the year with an attendance of about 80 people at RMIT in the CBD.

My presentation was a reflection on my own experiences implementing a CATiledLayer backed UIScrollView, highlighting some of finer points of that didn’t seem immediately obvious. During the presentation I introduced the a new open source project JCTiledScrollView that hopes to be a best case implementation of a CATiledLayer backed scroll view.

The keynote presentation and presentation outline are available on github. A video of the presentation is up on Vimeo.

Photo by Jeff Tan-Ang

CATiled Layer - Jesse Collis from Melbourne Cocoaheads on Vimeo.

'Epic refactorings' - Melbourne Cocoaheads June 2011

Luke Cunningham (@icaruswings) and I presented a talk at the June 2011 Cocoaheads meet up titled “Epic refactorings and patterns to make your code awesome!”.

Luke and Jesse's lightbulb moment

The topic was inspired by a number of design patterns we employed while developing the new realestate.com.au iPad application. We highlighted some of shortcomings we found with UIViewController and demonstrated our end result - ViewCoordinator

The book highlighted in the presentation is Agile Software Development. Principles, Patterns, and Practices by Bob Martin. The two design patterns we highlight form the book were single responsibility and Interface segregation.

Melbourne Cocoaheads 06/2011 - Talk 2 - Luke Cunningham & Jesse Collis from Oliver Jones on Vimeo.

The slides are available on Slide Share.

Note: the video’s audio is quite average.

Xcode 4 Shortcuts - Melbourne Cocoaheads April 2011

Stewart Gleadow (@StewGleadow) and I did a quick presentation at Cocoaheads this month highlighting some of our favourite (or more obscure) Xcode 4 shortcuts.

The Control, Option, Shift and Command symbols

The main take away of the whole exercise for me was finally memorising the shortcut symbols. This has vastly improved my ability to remember new shortcuts. I suggest you do the same!

Stew has posted answers to some of the questions over on his blog.

Cocoaheads 04/2011 - Talk 2 - Xcode 4 Keyboad Shortcuts from Oliver Jones on Vimeo.

Integrating Apple iAds - Melbourne CocoaHeads November 2010

I’m presenting a talk tonight at Melbourne CocoaHeads on implementing Apple’s iAd framework. I’ll be going over how to add the iAd framework to your project, a handful of things to remember about using iAds and an overview my first hand experiences with Seoul City Metro as an iAd supported app.

I will be showing some code I have recently sourced a named JCAdSupportedNavController that provides a good way to implement iAds in a UINavigationController. You can check it out on github.

The sides for the presentation are up on slideshare