Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   The Concise Delphi Coding Standard (https://www.delphipraxis.net/195180-concise-delphi-coding-standard.html)

DP News-Robot 8. Feb 2018 23:22

The Concise Delphi Coding Standard
 
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...


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:23 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz