Sunday, March 25, 2012

Coder classification part II (right coder)




leftcoder
  • sticks to the left of his editor window
  • word-wraps on 40 characters
  • believes that the true power is in simplicity
  • uses variables and functions that are short:
    • int i,j,x,y,a,b;
    • void fn_a2(int n);
  • the optimal program have average of zero characters per line
rightcoder
  • loves to make veeery loooong statements
  • does not have an editor with word wrapping
  • uses variables and functions according to the following scheme
    • for (int myVariableToIterateSimpleCycle=0; myVariableToIterateSimpleCycle < myNumberOfCycleIterations; MyVariableToIterateSimpleCycle++)
    • int calculateAverageOfSuppliedListOfNumbers(vector<int> suppliedListOfNumbers)
  • the example of an optimal program is one-line database server in C++
  • hates Python for not being able to put conditionals,cycles and loops on a single line
  • others fear if he says "that is one-liner"

No comments:

Post a Comment