程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> Delphi >> ProjectJEDIVCL組件編碼標准

ProjectJEDIVCL組件編碼標准

編輯:Delphi

 

編寫該標准的目的是統一組件代碼的書寫格式,以便於所有的Delphi程序員----無論是初學者還是高級開發人員---都能夠方便地維護和理解他們。對於某些並不完全符合標准,但是十分優秀並且已經加入到源代碼知識庫的組件,我們在審閱的時候會給予一定的靈活度。然而任何一個程序員在提交他們的代碼時,都應該附帶正確的題頭和說明文檔,並認真填寫,這一點極為重要。這項工作會讓你的代碼更容易被源代碼知識庫采用。


原則上,我們將遵循Charlie Calvert先生在Borland Techvoyage 站點中發表的 Delphi編碼風格指導中所采用的規范。


5.1 組件代碼必須包含的信息


5.1.1題頭(作者姓名/等,版本控制信息)


任何提交給知識庫的源碼文件的最開頭部分,都必須附有如圖1中所顯示的題頭格式,該格式對Borland Delphi 和 Borland C++Builder 均有效。

{-----------------------------------------------------------------------------
The contents of this file are subject to the Mozilla Public License
Version 1.1 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either expressed or implied. See the License for
the specific language governing rights and limitations under the License.
The Original Code is: XXX.PAS, released 2000-06-15.
The Initial Developer of the Original Code is Joe Doe <[email protected]>
Portions created by Joe Doe are Copyright (C) 1999 Joe Doe.
Portions created by Microsoft are Copyright (C) 1998, 1999 Microsoft Corp.
All Rights Reserved.
Contributor(s): ______________________________________.

Last Modified: 2000-mm-dd;
Current Version: X.XX
You may retrieve the latest version of this file at the Project JEDI home page, 
located at delphi-jedi.org">http://www.delphi-jedi.org
Known Issues: 
-----------------------------------------------------------------------------}

圖1 標准組件題頭


  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved