NZ Herald
  • Home
  • Latest news
  • Herald NOW
  • Video
  • New Zealand
  • Sport
  • World
  • Business
  • Entertainment
  • Podcasts
  • Quizzes
  • Opinion
  • Lifestyle
  • Travel
  • Viva
  • Weather

Subscriptions

  • Herald Premium
  • Viva Premium
  • The Listener
  • BusinessDesk

Sections

  • Latest news
  • New Zealand
    • All New Zealand
    • Crime
    • Politics
    • Education
    • Open Justice
    • Scam Update
  • Herald NOW
  • On The Up
  • World
    • All World
    • Australia
    • Asia
    • UK
    • United States
    • Middle East
    • Europe
    • Pacific
  • Business
    • All Business
    • MarketsSharesCurrencyCommoditiesStock TakesCrypto
    • Markets with Madison
    • Media Insider
    • Business analysis
    • Personal financeKiwiSaverInterest ratesTaxInvestment
    • EconomyInflationGDPOfficial cash rateEmployment
    • Small business
    • Business reportsMood of the BoardroomProject AucklandSustainable business and financeCapital markets reportAgribusiness reportInfrastructure reportDynamic business
    • Deloitte Top 200 Awards
    • CompaniesAged CareAgribusinessAirlinesBanking and financeConstructionEnergyFreight and logisticsHealthcareManufacturingMedia and MarketingRetailTelecommunicationsTourism
  • Opinion
    • All Opinion
    • Analysis
    • Editorials
    • Business analysis
    • Premium opinion
    • Letters to the editor
  • Politics
  • Sport
    • All Sport
    • OlympicsParalympics
    • RugbySuper RugbyNPCAll BlacksBlack FernsRugby sevensSchool rugby
    • CricketBlack CapsWhite Ferns
    • Racing
    • NetballSilver Ferns
    • LeagueWarriorsNRL
    • FootballWellington PhoenixAuckland FCAll WhitesFootball FernsEnglish Premier League
    • GolfNZ Open
    • MotorsportFormula 1
    • Boxing
    • UFC
    • BasketballNBABreakersTall BlacksTall Ferns
    • Tennis
    • Cycling
    • Athletics
    • SailingAmerica's CupSailGP
    • Rowing
  • Lifestyle
    • All Lifestyle
    • Viva - Food, fashion & beauty
    • Society Insider
    • Royals
    • Sex & relationships
    • Food & drinkRecipesRecipe collectionsRestaurant reviewsRestaurant bookings
    • Health & wellbeing
    • Fashion & beauty
    • Pets & animals
    • The Selection - Shop the trendsShop fashionShop beautyShop entertainmentShop giftsShop home & living
    • Milford's Investing Place
  • Entertainment
    • All Entertainment
    • TV
    • MoviesMovie reviews
    • MusicMusic reviews
    • BooksBook reviews
    • Culture
    • ReviewsBook reviewsMovie reviewsMusic reviewsRestaurant reviews
  • Travel
    • All Travel
    • News
    • New ZealandNorthlandAucklandWellingtonCanterburyOtago / QueenstownNelson-TasmanBest NZ beaches
    • International travelAustraliaPacific IslandsEuropeUKUSAAfricaAsia
    • Rail holidays
    • Cruise holidays
    • Ski holidays
    • Luxury travel
    • Adventure travel
  • Kāhu Māori news
  • Environment
    • All Environment
    • Our Green Future
  • Talanoa Pacific news
  • Property
    • All Property
    • Property Insider
    • Interest rates tracker
    • Residential property listings
    • Commercial property listings
  • Health
  • Technology
    • All Technology
    • AI
    • Social media
  • Rural
    • All Rural
    • Dairy farming
    • Sheep & beef farming
    • Horticulture
    • Animal health
    • Rural business
    • Rural life
    • Rural technology
    • Opinion
    • Audio & podcasts
  • Weather forecasts
    • All Weather forecasts
    • Kaitaia
    • Whangārei
    • Dargaville
    • Auckland
    • Thames
    • Tauranga
    • Hamilton
    • Whakatāne
    • Rotorua
    • Tokoroa
    • Te Kuiti
    • Taumaranui
    • Taupō
    • Gisborne
    • New Plymouth
    • Napier
    • Hastings
    • Dannevirke
    • Whanganui
    • Palmerston North
    • Levin
    • Paraparaumu
    • Masterton
    • Wellington
    • Motueka
    • Nelson
    • Blenheim
    • Westport
    • Reefton
    • Kaikōura
    • Greymouth
    • Hokitika
    • Christchurch
    • Ashburton
    • Timaru
    • Wānaka
    • Oamaru
    • Queenstown
    • Dunedin
    • Gore
    • Invercargill
  • Meet the journalists
  • Promotions & competitions
  • OneRoof property listings
  • Driven car news

Puzzles & Quizzes

  • Puzzles
    • All Puzzles
    • Sudoku
    • Code Cracker
    • Crosswords
    • Cryptic crossword
    • Wordsearch
  • Quizzes
    • All Quizzes
    • Morning quiz
    • Afternoon quiz
    • Sports quiz

Regions

  • Northland
    • All Northland
    • Far North
    • Kaitaia
    • Kerikeri
    • Kaikohe
    • Bay of Islands
    • Whangarei
    • Dargaville
    • Kaipara
    • Mangawhai
  • Auckland
  • Waikato
    • All Waikato
    • Hamilton
    • Coromandel & Hauraki
    • Matamata & Piako
    • Cambridge
    • Te Awamutu
    • Tokoroa & South Waikato
    • Taupō & Tūrangi
  • Bay of Plenty
    • All Bay of Plenty
    • Katikati
    • Tauranga
    • Mount Maunganui
    • Pāpāmoa
    • Te Puke
    • Whakatāne
  • Rotorua
  • Hawke's Bay
    • All Hawke's Bay
    • Napier
    • Hastings
    • Havelock North
    • Central Hawke's Bay
    • Wairoa
  • Taranaki
    • All Taranaki
    • Stratford
    • New Plymouth
    • Hāwera
  • Manawatū - Whanganui
    • All Manawatū - Whanganui
    • Whanganui
    • Palmerston North
    • Manawatū
    • Tararua
    • Horowhenua
  • Wellington
    • All Wellington
    • Kapiti
    • Wairarapa
    • Upper Hutt
    • Lower Hutt
  • Nelson & Tasman
    • All Nelson & Tasman
    • Motueka
    • Nelson
    • Tasman
  • Marlborough
  • West Coast
  • Canterbury
    • All Canterbury
    • Kaikōura
    • Christchurch
    • Ashburton
    • Timaru
  • Otago
    • All Otago
    • Oamaru
    • Dunedin
    • Balclutha
    • Alexandra
    • Queenstown
    • Wanaka
  • Southland
    • All Southland
    • Invercargill
    • Gore
    • Stewart Island
  • Gisborne

Media

  • Video
    • All Video
    • NZ news video
    • Herald NOW
    • Business news video
    • Politics news video
    • Sport video
    • World news video
    • Lifestyle video
    • Entertainment video
    • Travel video
    • Markets with Madison
    • Kea Kids news
  • Podcasts
    • All Podcasts
    • The Front Page
    • On the Tiles
    • Ask me Anything
    • The Little Things
  • Cartoons
  • Photo galleries
  • Today's Paper - E-editions
  • Photo sales
  • Classifieds

NZME Network

  • Advertise with NZME
  • OneRoof
  • Driven Car Guide
  • BusinessDesk
  • Newstalk ZB
  • Sunlive
  • ZM
  • The Hits
  • Coast
  • Radio Hauraki
  • The Alternative Commentary Collective
  • Gold
  • Flava
  • iHeart Radio
  • Hokonui
  • Radio Wanaka
  • iHeartCountry New Zealand
  • Restaurant Hub
  • NZME Events

SubscribeSign In
Advertisement
Advertise with NZME.
Home / New Zealand

Flawed code served as icing on the cake for Prime Minister's social agency launch

David Fisher
By David Fisher
Senior writer·NZ Herald·
6 Sep, 2017 04:52 AM4 mins to read

Subscribe to listen

Access to Herald Premium articles require a Premium subscription. Subscribe now to listen.
Already a subscriber?  Sign in here

Listening to articles is free for open-access content—explore other articles or learn more about text-to-speech.
‌
Save

    Share this article

The launch of the Social Investment Agency saw cake with R code on the icing served in celebration of a data-based, geek-guided future.

The launch of the Social Investment Agency saw cake with R code on the icing served in celebration of a data-based, geek-guided future.

When Prime Minister Bill English put geeks in the driver's seat for social change, it seemed only fitting that the icing on the cake would literally be icing with computer code on a cake.

So there it was, a chocolate cake with elaborate computer code icing at the centre of the launch of the Government's Social Investment Agency in early July.

Only, it turned out the code-on-the-cake made no sense and an internet-of-nerds let them know.

The agency's corporate general manager Kirsten Stephenson confirmed the carefully-iced $360 cake from the Royal Icing Academy made no sense.

"As an agency that uses a data-driven approach, the SIA utilised coding language to highlight the new name, remit and workstreams of the SIA," she wrote, in response to an Official Information Act request for details.

Advertisement
Advertise with NZME.
Advertisement
Advertise with NZME.

Stephenson acknowledged there had been comments that the "coding iced on to the cake was not usable code".

She said this was an exception.

"While the SIA has a robust review and analysis process to ensure the integrity and accuracy of our data and coding, the same stringent review is not applied to cakes."

Advertisement
Advertise with NZME.

The open-source coding language is known as "R" and was initially developed at the University of Auckland.

Details released through the OIA revealed the cake "was delicious", although the agency - which is all about data-driven proof - was only able to provide anecdotal reports on this.

The SIA released further details of its launch function, which also saw Social Investment Minister Amy Adams in attendance, along with press gallery journalists and a host of bureaucrats.

The $360 cake cost was about a third of the $1108 spent on the morning tea, which also included $64 worth of sausage rolls, fruit ($110), baguettes ($220) and some of those funny little quiches which always turn up at these things ($64).

Discover more

Business

$321m boost for social invitiatives

03 May 12:03 AM
New Zealand

Toby Manhire: English's cunning plan

04 May 05:00 PM
Opinion

Jenesa Jeram: What social investment means

22 May 05:00 PM
New Zealand|politics

Bill English meets crash test dummy on campaign trail

07 Sep 04:36 AM

Not all cake was eaten with "some leftover slices" sent to other tenants in the agency's building.

It is understood this included sending some to the secretly-funded NZ Taxpayers' Union, which campaigns against government handouts.

In this case, director Jordan William's enthusiastic online acceptance showed he could have his cake and eat it too, although if he had returned calls he might argue the NZTU also campaigns against government waste and eating the cake reduced it.

Leftover cake was passed to the NZ Taxpayers' Union which campaigns against government handouts - but also against waste.
Leftover cake was passed to the NZ Taxpayers' Union which campaigns against government handouts - but also against waste.

The Social Investment Agency was born out of the Social Investment Unit and crunches data to provide seer-like guidance for other government departments with the aim of improving life for all New Zealanders.

University of Auckland statistics professor Thomas Lumley said the coding language "R" was one of the two leading data-science programming languages in the world.

"In particular, it's in a recent data-flow style of code that has been popularised by another Kiwi, Hadley Wickham, who works for the US company RStudio."

Advertisement
Advertise with NZME.

Lumley was able to interpret the message in the code on the cake.

"The code wouldn't run as-is; it's a kind of literary pastiche for statisticians.

"The most politically-interesting content in the cake's code is the chunk defining the Social Investment Agency as a modified version of the existing Social Investment Unit, but with the addition of data-driven policy."

NZ Herald data editor Harkanwal Singh says:

The SIA code cake is meant to be bit nerdy because being a nerd is cool nowadays.

However, it is not as easy even when you are just writing pseudo-code.

Advertisement
Advertise with NZME.

It wasn't long before Twitter started reviewing the code and discussing the demerits of the code.

The pseudo-code written in traces of R, the statistical programming language created at University of Auckland in early 90s, is meant to convey the purpose of Social Investment Agency and it's transformation from Social Investment Unit.

It is meant to be a press release in the guise of pseudo-code.

Of course, like all press releases it hides the important bits. The function (packaged code) 'dataDriven' is meant to translate policy into policy_decisions.

It remains to be seen how much weightage ethics get in that execution and how the Social Investment Agency approaches transparency - that'll tell us how healthy the social investment cake turns out to be for democracy.

Save

    Share this article

Latest from New Zealand

Premium
New Zealand

Magic man: Meet the one psychiatrist approved to prescribe magic mushrooms

18 Jun 07:09 AM
New Zealand

Police use drone in search for missing woman in Christchurch

18 Jun 07:00 AM
New ZealandUpdated

'Angel of a fireman': 87kg St Bernard saved by sandwich in house fire tragedy

18 Jun 07:00 AM

Jono and Ben brew up a tea-fuelled adventure in Sri Lanka

sponsored
Advertisement
Advertise with NZME.

Latest from New Zealand

Premium
Magic man: Meet the one psychiatrist approved to prescribe magic mushrooms

Magic man: Meet the one psychiatrist approved to prescribe magic mushrooms

18 Jun 07:09 AM

Minister David Seymour says no 'reefer madness' over psilocybin because it works.

Police use drone in search for missing woman in Christchurch

Police use drone in search for missing woman in Christchurch

18 Jun 07:00 AM
'Angel of a fireman': 87kg St Bernard saved by sandwich in house fire tragedy

'Angel of a fireman': 87kg St Bernard saved by sandwich in house fire tragedy

18 Jun 07:00 AM
Woman's 'unexplained' death in hospital was unrelated to assault days earlier

Woman's 'unexplained' death in hospital was unrelated to assault days earlier

18 Jun 06:56 AM
Help for those helping hardest-hit
sponsored

Help for those helping hardest-hit

NZ Herald
  • About NZ Herald
  • Meet the journalists
  • Newsletters
  • Classifieds
  • Help & support
  • Contact us
  • House rules
  • Privacy Policy
  • Terms of use
  • Competition terms & conditions
  • Our use of AI
Subscriber Services
  • NZ Herald e-editions
  • Daily puzzles & quizzes
  • Manage your digital subscription
  • Manage your print subscription
  • Subscribe to the NZ Herald newspaper
  • Subscribe to Herald Premium
  • Gift a subscription
  • Subscriber FAQs
  • Subscription terms & conditions
  • Promotions and subscriber benefits
NZME Network
  • The New Zealand Herald
  • The Northland Age
  • The Northern Advocate
  • Waikato Herald
  • Bay of Plenty Times
  • Rotorua Daily Post
  • Hawke's Bay Today
  • Whanganui Chronicle
  • Viva
  • NZ Listener
  • Newstalk ZB
  • BusinessDesk
  • OneRoof
  • Driven Car Guide
  • iHeart Radio
  • Restaurant Hub
NZME
  • About NZME
  • NZME careers
  • Advertise with NZME
  • Digital self-service advertising
  • Book your classified ad
  • Photo sales
  • NZME Events
  • © Copyright 2025 NZME Publishing Limited
TOP