← back to the pile

One page, held up to the light

p.117ch.5 ↗Ruby UnConf

Part of page 117 of why's (poignant) Guide to Ruby. Printed text: "So you start your own class called ArrayMine, which is based on The Original Array." Below it a code box: class ArrayMine < Array, with a join method that formats each item. In red marker at the top: "Oh no, make sure you are not sent to the", with an arrow pointing to the word ArrayMine, circled in red. Down the left margin, also in red: "Marcus Riemer, Ruby Unconf 2024 Hamburg".

Page 117. You build your own class, ArrayMine, on top of The Original Array.

@Marcus circled the danger in red at @rubyunconf:

Oh no, make sure you are not sent to the ArrayMine

@Marcus

Marcus has loved teaching computer science since #LEGO #Mindstorms. He knows a trap when he sees one.

class ArrayMine < Array def shift = raise "no shifts end early here" end

The foxes bring a lamp.

Ruby UnConfposted

Also mentioned: @rubyunconf

see it on ruby.social ↗

Replies

  1. Nobody has replied yet. The fox is waiting. Foxes are very good at waiting.

Reply on Mastodon ↗ if you've got something to add. It'll turn up here eventually.

A tall white fox from the chunky bacon comics, holding the replies up for you.