Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
14.979 Beiträge
 
#1

The Concise Delphi Coding Standard

  Alt 8. Feb 2018, 23:22
The Concise Delphi Coding Standard (2018)

1. Use the Delphi Source Code Formatter on New Units before you Check them In. When you touch a function keep its formatting style the same, or reformat the whole function with the Source Code Formatter. Only that one function you touched. Use your team's settings which are shared within your team.
2. Do Not Randomly Reformat Entire Files because of Coding Standards. If you need this point explained to you in detail, you need a lot of re-education about version control.

3. Avoid WITH

4. Avoid obfuscation, including unnecessary use of overload, reintroduce, when other names and ways of handling things can be used. There are places where overload should be used, maybe in an XML or JSON parser API component. It's out of place in the methods of a Form or Data Module in your application, and probably 99% of places you felt like you liked using it.

5. Do not start holy wars over spacing, indentation, and variable naming.




Weiterlesen...
  Mit Zitat antworten Zitat