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
}
Dont ever let anyone tell you that you are nerds. ;-)
I:\>python bliss.py
Traceback (most recent call last):
File "bliss.py", line 1, in ?
ignorance = bliss
NameError: name 'bliss' is not defined
StateOfMind = (StateOfMind) Class.forName("Ignorance").newInstance();
I'm sure that if I could understand your post, I'd think you're brilliant ;-)
if u have read brave new world it makes u wonder whether or not ignorance is bliss...gettin a lil deep now :)
class Ignorance extends Bliss
{
//...
}
you nerds have burnt your brains...