Haikus from WWDC session transcripts

So, a lot of you

I'm sure are familiar with

Grand Central Dispatch

- Hidden Gems in Cocoa and Cocoa Touch, WWDC Session 228

At ReignDesign we're a big fan of AsciiWWDC, a great resource for reading and searching the full-text transcripts of Apple's Worldwide Developer Conference session videos.

And there's something a little poetic about the way the transcripts are listed. This inspired some late-night hacking creating wwdc-haiku, a simple Python script which, given a session number, attempts to scan the transcript of a single session for possible haikus (that is, sentences with a 5-7-5 syllable pattern).

$ ./wwdc-haiku 228

And what happens is 
you choose that and you see a 
window like this pop 

So, it's going to 
look very similar to 
the last example 

And actually 
I'm backing it this time by 
a dictionary 

So, a lot of you 
I'm sure are familiar with 
Grand Central Dispatch 

It's just one of those 
things that it takes a while to 
get into your head 

I think the two most 
useful and interesting 
ones are max and min 

It's returning a 
Boolean whether or not 
it was successful 

So, was that that was 
pretty fast, but I think we 
hit everybody 

Yes, we know our haikus won't pass muster with any Japanese poetry scholars... but do clone the code from Github and have fun!

What can you do with

these? Well, in Jay's Donut Shop

I had this problem

- What’s New in Core Location, WWDC Session 307

Matt Mayer

Matt Mayer is a founder at ReignDesign. Matt is from the UK and was based in Shanghai for ten years. He is now living in Bangkok, Thailand.

Leave a Reply

Your email address will not be published. Required fields are marked *