Java Effective - VIII
90 points to make your coffee

8. General

57. Minimize scope of local variables

58. Use for-each over for loops

59. Understand and use libraries

60. Avoid float or double when you need exact values

61. Primitive types to boxed primitives

62. Avoid strings when other types are more appropriate

63. Be aware of string concat performance costs

64. Refer to objects by their Interfaces

65. Prefer interfaces to reflection

66. Use native methods judiciously

67. Optimize judiciously

We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil.

  • Don Knuth

68. Adhere to generally accepted naming conventions

-

*****
Written by Martin on 13 June 2019