Ignorance is Bliss

August 18, 2004 2:22 PM

Alan:

It's times like this I wish I'd never learnt Python. I'd be a much happier Java programmer.

Charles:

ignorance.equals(bliss)

Alan:

StateOfMind bliss = new Ignorance();

Alan:

StateOfMind bliss = StateOfMindFactory.createIgnorance();

Charles:

<bean id="mind" class="com.example.brain.Mind">
   <property name="state">
     <ref local="bliss"/>
  </property>
</bean>

<bean id="bliss" class="com.example.brian.states.Ignorance"
  autowire="true"/>

Alan:

try {
  MindState bliss = new Ignorance()
} catch (RealityException e) {
  LOGGER.error("The users are wising up");
}

Charles:

try {
  MindState bliss = new Ignorance();
} catch (Throwable t)
  // TODO: exception handling
}

Previously: alt.cred

Next: Music to Code By