際際滷

際際滷Share a Scribd company logo
煙 : SMILECAT
煙 : 2 0 1 5 - 0 6 - 1 5
觚 襦 蠏 : E G A O N E K O . G I T H U B . I O
Coding Conventions
1. Coding Conventions
Coding Conventions企?
 Coding conventions are a set of guidelines
for a specific programming language that recommend
programming style, practices and methods for each
aspect of a piece program written in this language.
 貊 貉覯れ 襦蠏碁 貊襯 燕  襦
蟠ロ 螳企 殊語企.
 襯 る int a = 3 蟆曙一 a 3 覿企 襷
螳 蟆 伎.
豢豌 : Wekipedia  Coding conventions
Coding conventions   蟇瑚?
 PEP-8(Python)
 Yes:
 x = 1
 y = 2
 long_variable = 3
 No:
 x = 1
 y = 2
 long_variable = 3
Coding conventions   蟇瑚?
 No:
 x = 1
 y = 2
 long_variable = 3
  螳 螻給葦 伎伎 = 襷豢る 覲願鍵 ク.
讌襷 襷 long_variable 覲企  蠍 覲螳 豢螳る,
螻給葦 讌蠍  覿 覲蟆曙 .
 More than one space around an assignment (or other)
operator to align it with another.
Coding Conventions レ
 貊 ろ殊 譴, 蠏 手
襦蠏碁  螳
  譴 貊 螳
 蟲譟一朱 覈
 る 覦讌
JAVA CODING
CONVENTIONS
2. Coding Conventions 螳
Java Coding Conventions
豢豌 : 蠏碁
Java Coding Conventions
豢豌 : 蠏碁
Java Coding Conventions
豢豌 : 蠏碁
Java Coding Conventions 蟯 覓語
 Sun  Coding Conventions
 http://www.oracle.com/technetwork/java/codeconvtoc-136057.html
 蠍
 http://blog.naver.com/hyowong/80000631451
 http://blog.naver.com/jeany4u/20003876157
 蠍壱
 http://g.oswego.edu/dl/html/javaCodingStd.html
 http://www.chimu.com/publications/javaStandards/part0003.html
 http://www.ambysoft.com/javaCodingStandards.html
NHN CODING
CONVENTIONS
2. Coding Conventions 螳
NHN Coding Conventions
 貊 貉覯れ 
襷 螳覦 壱- 伎 蠍磯蓋 螻蟆 燕蠍 覓語 , 觚殊一,
ろ襴渚, 燕, 蠏殊 炎骸 蠍企 蟯螻螳 . 讀, 襷 螳覦  伎 覈
觚殊一 貊豸襯  , 觜襯願 所 蟆   . 貊
貉覯れ 企 譟郁唄 襷譟煙り鍵  襷 螳覦螳 讌貅  譴
.
, 讌覲伎  覦 豕蠍  旧朱 貊 焔 .
貊襯 豕豐襦 燕  蟾讌 讌覲伎 襯 . 磯殊, 豕豐 螳覦螳
  貊襯 觜襯願 蟆 危危  襦 燕 蟆 貊
譯殊覲伎 觜 螳螻 覓  企  蟆一  .
企  襦語 襷 貊 螳 貊 貉覯れ 磯 燕伎 . 貊
貉覯れ 譴覃 襦 覃る 螳 貊 螻旧 讌螻, 手 蟆 貊襯
燕  . 企 貊 貉覯れ 螳 譴 蟆 , 旧朱
蠍一朱  貊襯 燕 蟆 譴.
NHN Coding Convention, p12
NHN Coding Conventions 蟲
 れ企 蠏豺
 れ企 蠏豺 伎, 螳豌, 企語, 启, 殊 企
燕 蠏豺
 HTML 貊  蠏豺
 れ郁鍵, 觜 譴, DTD 覦 語, 譯殊  貊  蠏豺
 HTML 襴襾狩  蠏豺
 HTML 襴襾狩  蠏豺 覦 誤伎 
碁Μ觀壱語   螳ロ 碁Μ觀壱語  伎
蠍一螻  襯  貊 讌 讌
NHN Coding Conventions 蟲
 CSS 貊  蠏豺
 れ郁鍵, 螻給葦, 觜 譴, 譴 覦蠖, 語, , , z-index, ,
CSS  , 譯殊  貊  豺
  蠏殊 覲伎 覦覯
 覈  蟆曙    貊豸 蠏狩  襦
覲伎ロ 襷 覦覯 蠍一
 誤 伎
 http://nuli.navercorp.com/sharing/fe/coding
3. Secure Coding
Secure Coding企?
朱 語 螳覦 覲危
蟲豢 -> り -> 蟲(螳覦)
-> ろ -> 襴企Μ讀
朱 企 讌.  貊  蟲(螳覦)
螻 危 煙 螻糾鴬 覦 螳レ煙 
 覲伎 豬曙  蟇壱, 碁
螻糾鴬朱覿  語企ゼ 螳覦 蠍磯
襷.
豢豌 : wisedog 觚襦蠏
Secure Coding企?
 襴企Μ讀 伎 語 豬曙 50% 譴企,
豺伎螻  觜 75% 螳  Gartner
 92% 覲伎 豬曙 ろ語螳  危襴貅伎
覦蟆  NIST
 襴企Μ讀 危 る襯 蠍 伎  $30,000 
觜 , 讌襷 螳覦 譴 る襯 蠍 伎 
$5,000 覃 豢覿  NIST
 襴企Μ讀 危 る襯 螻  蟆曙 り 螻覲企
100覦 讀螳  IBM
豢豌 : wisedog 觚襦蠏
Secure Coding企?
覲伎 豬曙 譴願鍵 伎 覓伎覲企 語
螳覦 豐蠍 螻 蟲 螻  蟆 螳
所 觜  豸°伎 螳 譬.
豢豌 : wisedog 觚襦蠏
覿  貊
4. Secure Coding 螳
覿  貊
覿 2012 5  貊 覓危 覯
覦覃伎 麹 12覿 螳覦觜 40  伎 覲危
  貊  覓危 . 磯殊
2012 12 危 螳覦觜 40旧 伎 覲危 
豢讌 覈 螻糾概蠍郁  貊 譴
危伎 .  覯 螻朱 螳 2014
1 覿磯 20旧 伎 覈 螻糾概蠍郁 覲危
 覃, 2015 1覿磯 螳襴 
 伎 .
豢豌 : wisedog 觚襦蠏
覿 伎  
語
 Java
 C
 襦企
 SQL 曙(SQL Injection)
 襦れ危語ろ襴渚(Cross Site Script)
 蠍壱
 43螳 覲伎 豬曙
豢豌 : wisedog 觚襦蠏
覲伎 豬曙 蟇壱蠍
 螳覦螳 貊襯  譴  譴 蟆 覦覯
 襷  貊 蠍 
 朱 貊襯 蟆蠍 覓語 襤一煙 伎
 襭(覿蟲) 
 觜襯願 
  貊訖襷  れ   る 讌
 襤一 レ
豢豌 : wisedog 觚襦蠏
覿  貊 螳企
 覿  貊 螳企
http://www.mogaha.go.kr/frt/bbs/type001/commonS
electBoardArticle.do?bbsId=BBSMSTR_0000000000
12&nttId=42152
thank you

More Related Content

Coding Conventions & Secure Coding

  • 1. 煙 : SMILECAT 煙 : 2 0 1 5 - 0 6 - 1 5 觚 襦 蠏 : E G A O N E K O . G I T H U B . I O Coding Conventions
  • 3. Coding Conventions企? Coding conventions are a set of guidelines for a specific programming language that recommend programming style, practices and methods for each aspect of a piece program written in this language. 貊 貉覯れ 襦蠏碁 貊襯 燕 襦 蟠ロ 螳企 殊語企. 襯 る int a = 3 蟆曙一 a 3 覿企 襷 螳 蟆 伎. 豢豌 : Wekipedia Coding conventions
  • 4. Coding conventions 蟇瑚? PEP-8(Python) Yes: x = 1 y = 2 long_variable = 3 No: x = 1 y = 2 long_variable = 3
  • 5. Coding conventions 蟇瑚? No: x = 1 y = 2 long_variable = 3 螳 螻給葦 伎伎 = 襷豢る 覲願鍵 ク. 讌襷 襷 long_variable 覲企 蠍 覲螳 豢螳る, 螻給葦 讌蠍 覿 覲蟆曙 . More than one space around an assignment (or other) operator to align it with another.
  • 6. Coding Conventions レ 貊 ろ殊 譴, 蠏 手 襦蠏碁 螳 譴 貊 螳 蟲譟一朱 覈 る 覦讌
  • 11. Java Coding Conventions 蟯 覓語 Sun Coding Conventions http://www.oracle.com/technetwork/java/codeconvtoc-136057.html 蠍 http://blog.naver.com/hyowong/80000631451 http://blog.naver.com/jeany4u/20003876157 蠍壱 http://g.oswego.edu/dl/html/javaCodingStd.html http://www.chimu.com/publications/javaStandards/part0003.html http://www.ambysoft.com/javaCodingStandards.html
  • 13. NHN Coding Conventions 貊 貉覯れ 襷 螳覦 壱- 伎 蠍磯蓋 螻蟆 燕蠍 覓語 , 觚殊一, ろ襴渚, 燕, 蠏殊 炎骸 蠍企 蟯螻螳 . 讀, 襷 螳覦 伎 覈 觚殊一 貊豸襯 , 觜襯願 所 蟆 . 貊 貉覯れ 企 譟郁唄 襷譟煙り鍵 襷 螳覦螳 讌貅 譴 . , 讌覲伎 覦 豕蠍 旧朱 貊 焔 . 貊襯 豕豐襦 燕 蟾讌 讌覲伎 襯 . 磯殊, 豕豐 螳覦螳 貊襯 觜襯願 蟆 危危 襦 燕 蟆 貊 譯殊覲伎 觜 螳螻 覓 企 蟆一 . 企 襦語 襷 貊 螳 貊 貉覯れ 磯 燕伎 . 貊 貉覯れ 譴覃 襦 覃る 螳 貊 螻旧 讌螻, 手 蟆 貊襯 燕 . 企 貊 貉覯れ 螳 譴 蟆 , 旧朱 蠍一朱 貊襯 燕 蟆 譴. NHN Coding Convention, p12
  • 14. NHN Coding Conventions 蟲 れ企 蠏豺 れ企 蠏豺 伎, 螳豌, 企語, 启, 殊 企 燕 蠏豺 HTML 貊 蠏豺 れ郁鍵, 觜 譴, DTD 覦 語, 譯殊 貊 蠏豺 HTML 襴襾狩 蠏豺 HTML 襴襾狩 蠏豺 覦 誤伎 碁Μ觀壱語 螳ロ 碁Μ觀壱語 伎 蠍一螻 襯 貊 讌 讌
  • 15. NHN Coding Conventions 蟲 CSS 貊 蠏豺 れ郁鍵, 螻給葦, 觜 譴, 譴 覦蠖, 語, , , z-index, , CSS , 譯殊 貊 豺 蠏殊 覲伎 覦覯 覈 蟆曙 貊豸 蠏狩 襦 覲伎ロ 襷 覦覯 蠍一 誤 伎 http://nuli.navercorp.com/sharing/fe/coding
  • 17. Secure Coding企? 朱 語 螳覦 覲危 蟲豢 -> り -> 蟲(螳覦) -> ろ -> 襴企Μ讀 朱 企 讌. 貊 蟲(螳覦) 螻 危 煙 螻糾鴬 覦 螳レ煙 覲伎 豬曙 蟇壱, 碁 螻糾鴬朱覿 語企ゼ 螳覦 蠍磯 襷. 豢豌 : wisedog 觚襦蠏
  • 18. Secure Coding企? 襴企Μ讀 伎 語 豬曙 50% 譴企, 豺伎螻 觜 75% 螳 Gartner 92% 覲伎 豬曙 ろ語螳 危襴貅伎 覦蟆 NIST 襴企Μ讀 危 る襯 蠍 伎 $30,000 觜 , 讌襷 螳覦 譴 る襯 蠍 伎 $5,000 覃 豢覿 NIST 襴企Μ讀 危 る襯 螻 蟆曙 り 螻覲企 100覦 讀螳 IBM 豢豌 : wisedog 觚襦蠏
  • 19. Secure Coding企? 覲伎 豬曙 譴願鍵 伎 覓伎覲企 語 螳覦 豐蠍 螻 蟲 螻 蟆 螳 所 觜 豸°伎 螳 譬. 豢豌 : wisedog 觚襦蠏
  • 20. 覿 貊 4. Secure Coding 螳
  • 21. 覿 貊 覿 2012 5 貊 覓危 覯 覦覃伎 麹 12覿 螳覦觜 40 伎 覲危 貊 覓危 . 磯殊 2012 12 危 螳覦觜 40旧 伎 覲危 豢讌 覈 螻糾概蠍郁 貊 譴 危伎 . 覯 螻朱 螳 2014 1 覿磯 20旧 伎 覈 螻糾概蠍郁 覲危 覃, 2015 1覿磯 螳襴 伎 . 豢豌 : wisedog 觚襦蠏
  • 22. 覿 伎 語 Java C 襦企 SQL 曙(SQL Injection) 襦れ危語ろ襴渚(Cross Site Script) 蠍壱 43螳 覲伎 豬曙 豢豌 : wisedog 觚襦蠏
  • 23. 覲伎 豬曙 蟇壱蠍 螳覦螳 貊襯 譴 譴 蟆 覦覯 襷 貊 蠍 朱 貊襯 蟆蠍 覓語 襤一煙 伎 襭(覿蟲) 觜襯願 貊訖襷 れ る 讌 襤一 レ 豢豌 : wisedog 觚襦蠏
  • 24. 覿 貊 螳企 覿 貊 螳企 http://www.mogaha.go.kr/frt/bbs/type001/commonS electBoardArticle.do?bbsId=BBSMSTR_0000000000 12&nttId=42152