News for hackers. Stuff that matters.
Re:Evolution of a Python programmer by alrex021 on Friday January 29, 2010 @03:40PM (#1087497)
Java programmer:

  class FactorialCommand(object):
      def set_num(self, num):
          self.__num = num

      def get_num(self):
          return self.__num

      def execute(self):
          result = 1
          i = 2
          while i <= self.get_num():
              result = result * i
              i = i + 1
          return result

  cmd = FactorialCommand()
  cmd.set_num(6)
  print cmd.execute()
Re:Evolution of a Python programmer by elai on Friday January 29, 2010 @04:27PM (#1087601)
I thought the 'enterprise' programmer was the java programmer.
Re:Evolution of a Python programmer by jbooth on Friday January 29, 2010 @05:41PM (#1087748)
No, that's the crappy java programmer
Re:Evolution of a Python programmer by rbanffy on Friday January 29, 2010 @08:08PM (#1088013)
So... The FactorialCommand one was the good Java programmer?
Re:Evolution of a Python programmer by bfung on Friday January 29, 2010 @11:49PM (#1088256)
More like C# programmers. Java programmers would either not know how to solve this problem (the majority), or write the 3 line static method.

Sarcasm based on interviewing experience =P