code_junkie

How “self-documenting” can code be without being annoying?

Nov 11th, 2011
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. def initialize_report_template()
  2. end
  3.  
  4. class ReportTemplate
  5. def initialize()
  6. end
  7. end
  8.  
  9. StringBuilder sb = ...
  10. sb.append(...
  11. sb.append(...
  12. return sb.toString();
  13.  
  14. ( 1 + 5 ) * 3 = 18
  15.  
  16. three multiplied by the sum of one and five equals eighteen
Add Comment
Please, Sign In to add comment