hooovahh Posted September 3, 2010 Report Share Posted September 3, 2010 It's text based, but I found it funny. s = 7 "We're allowed to have multi-character variable names now, you know." slots = 7 "Okayyy... Isn't that 7 sort of hard-coded?" SEVEN = 7 ... slots = SEVEN "Very funny." SLOTS_PER_WIDGET = 7 ... slots = SLOTS_PER_WIDGET "Getting there." import widgetConstants ... slots = widgetConstants.SLOTS_PER_WIDGET "Okay, that's..." widgetModelFactory = WidgetModelFactory.getInstance() widgetModel = widgetModelFactory.getWidgetModel() slots = widgetModel.getSlotsPerWidget() "Sure, okay, that's..." context = Context.getCurrentContext() serviceDirectoryFactory = ServiceDirectoryFactory.getServiceDirectory(context) serviceDirectory = serviceDirectoryFactory.getServiceDirectory(context) serviceDescriptor = ServiceDescriptorFactory.getDescriptor("widgetModelFactory") widgetModelFactoryServiceLocator = serviceDirectory.getServiceLocator(serviceDescriptor,context) widgetModelFactory = (WidgetModelFactory)widgetModelFactoryServiceLocator.findService(context) widgetModel = widgetModelFactory.getWidgetModel(context) slots = widgetModel.getSlotsPerWidget() "I'm not sure you've really got this whole Object-Oriented thing down quite right..." slots = thisWidget.getSlotCount() "Thank you." Source 2 Quote Link to comment
ShaunR Posted September 3, 2010 Report Share Posted September 3, 2010 We should have a jokes/humour section Quote Link to comment
Val Brown Posted September 3, 2010 Report Share Posted September 3, 2010 It's text based, but I found it funny. Source and, of course, from a legal perspective the proper response is: I object! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.