DesignGuidelines/ko

From Free Pascal wiki
Revision as of 05:44, 25 November 2008 by Oranke (talk | contribs) (→‎라자루스를 위한 코딩 가이드라인)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Deutsch (de) English (en) español (es) français (fr) 日本語 (ja) 한국어 (ko) português (pt) русский (ru)

라자루스를 위한 코딩 가이드라인

코딩 스타일
  • 코딩스타일의 통일은 코드의 가독성을 향상시킵니다. 라자루스는 볼랜드 코딩 스타일 가이드라인을 준수하고 있습니다. 물론 몇몇 부분에서는 그렇지 않은 곳이 있을 수도 있겠지만, 뭐 괜찮습니다. 적어도 90% 이상이 이 규칙을 따른다면 상관 없다고 봅니다.
  • 원형참조, 또는 순환참조를 피하십시오. 이렇게 함으로써 이후 유니트의 크기가 커졌을 때 그 기능을 쉽게 분리할 수 있습니다. (역자주: 유니트 A가 B를 참조하고 다시 B가 A를 참조하는 상태를 피하라는 의미로 보입니다.)
  • Minimize the number of calls from Interfaces to LCL, when performing an action requested by the LCL. The interfaces only notify the LCL, never forces something. The LCL decides.
  • 이름 붙이기 규칙은 이 곳을 봐 주세요.
  • All code must work with all checks (range, io, overflow, stack) on. Besides that this helps debugging, some users put these checks into their fpc.cfg, so they are applied to whole lazarus. Including packages and examples.


New files
  • 모든 파일의 첫 부분에는 라이센스를 기록하고, 적당한 설명을 붙여주세요.
  • 파스칼 소스는 소문자로 기록되어야 합니다. (.pas, .pp, .inc, .lfm, .lrs)


Include files
  • {%MainUnit } 지시자로 시작되어야 합니다.


Packages
  • should have an .lpl entry in packager/globallinks/


Dialogs (modal forms)
  • Close on Escape (if key not used otherwise)
  • Define default button and Return activates it (if key not used)
  • Medium to complex dialogs should be resizable and size is stored


Main Menu Items
  • Should have a key in keymapping.pp



Authoritive version can be found in svn. Proposals for improvement can be added to talk page (discussion).