coding-style 330

  1. Should a function have only one return statement?
  2. Single quotes vs. double quotes in Python
  3. How do you return multiple values in Python?
  4. What is a clean, pythonic way to have multiple constructors in Python?
  5. Are PHP short tags acceptable to use?
  6. What is the purpose of wrapping whole Javascript files in anonymous functions like “(function(){ … })()”?
  7. What is the standard Python docstring format?
  8. Python `if x is not None` or `if not x is None`?
  9. Is there a better way of writing v = (v == 0 ? 1 : 0);
  10. Order of items in classes: Fields, Properties, Constructors, Methods
  11. typeof !== “undefined” vs. != null
  12. C++: “std::endl” vs “\n”
  13. Styling multi-line conditions in 'if' statements?
  14. Why use def main()?
  15. Vim 80 column layout concerns
  16. Why do most fields (class members) in Android tutorial start with `m`?
  17. Good Haskell source to read and learn from
  18. What is the most effective way to get the index of an iterator of an std::vector?
  19. What's the purpose of using braces (i.e. {}) for a single-line if or loop?
  20. What's the best way to convert a number to a string in JavaScript?
  21. What open source C++ static analysis tools are available?
  22. Should Python import statements always be at the top of a module?
  23. Tabs versus spaces in Python programming
  24. Declaring Multiple Variables in JavaScript
  25. Should methods in a Java interface be declared with or without a public access modifier?
  26. #pragma once vs include guards?
  27. android set style in code
  28. 80-characters / right margin line in Sublime Text 3
  29. When do you use the “this” keyword?
  30. Coding Conventions - Naming Enums
  31. How do you tell someone they're writing bad code?
  32. 'AND' vs '&&' as operator
  33. When is JavaScript's eval() not evil?
  34. What does 'foo' really mean?
  35. Which comment style should I use in batch files?
  36. JSON Spec - does the key have to be surrounded with quotes?
  37. What was the strangest coding standard rule that you were forced to follow?
  38. Are there any coding standards for JavaScript?
  39. Why are dashes preferred for CSS selectors / HTML attributes?
  40. Why do some scripts omit the closing PHP tag, '?>'?
  41. Good or bad practice? Initializing objects in getter
  42. return statement vs exit() in main()
  43. Using “super” in C++
  44. Why is it considered a bad practice to omit curly braces?
  45. Getter and Setter?
  46. String output: format or concat in C#?
  47. Internal typedefs in C++ - good style or bad style?
  48. codestyle; put javadoc before or after annotation?
  49. C++ code in header files
  50. Is there a valid reason for enforcing a maximum width of 80 characters in a code file, this day and age?