AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

The Concise Delphi Coding Standard

Ein Thema von DP News-Robot · begonnen am 8. Feb 2018
Antwort Antwort
Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
14.956 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
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 14:47 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