coding-style 300

  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. What was the strangest coding standard rule that you were forced to follow?
  37. Are there any coding standards for JavaScript?
  38. Why are dashes preferred for CSS selectors / HTML attributes?
  39. Why do some scripts omit the closing PHP tag, '?>'?
  40. Good or bad practice? Initializing objects in getter
  41. return statement vs exit() in main()
  42. Using “super” in C++
  43. Why is it considered a bad practice to omit curly braces?
  44. Getter and Setter?
  45. String output: format or concat in C#?
  46. Is there a valid reason for enforcing a maximum width of 80 characters in a code file, this day and age?
  47. Unique ways to use the Null Coalescing operator
  48. A free tool to check C/C++ source code against a set of coding standards?
  49. Why rename synthesized properties in iOS with leading underscores?
  50. Why declare a struct that only contains an array in C?