Overheard in iChat: Part 6

Me: Erin found some baby clothes that said something on the front in PHP.

Me: Like: <?php “baby();”> or something like that.

Me: So that made me think: “Python onesie”.

class Baby(Human):
   def __init__(self):
       return self

Gregg: Isn’t that a singleton?

Me: I don’t know what a “singleton” is… at least how it relates to programming.

Gregg: A class that only exists to return a single object.

Me: Then, yes, it would be.

Gregg: Technically, I guess it should test if other instances exist and either kill them or refuse to create.

Gregg: But it’s a fucking baby thing, there’s not enough space on the child’s front for real design patterns.

Gregg: Looking over those last few lines, I now know why I never get invited to parties.

Me: You wouldn’t want to imply that the baby kills other instances of Baby which subclass Human.

Me: Not yet, anyway.

Me: You could always subclass differently to imply it.

class Baby(Cthulu):

One thought on “Overheard in iChat: Part 6

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s