๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

โœ”๏ธ Etc.

ํ”„๋กœ๊ทธ๋žจ ๋„ค์ด๋ฐ ๊ทœ์น™(Naming Convention)

๋ณ€์ˆ˜๋ช…์„ ์ž‘๋ช…ํ•˜๋Š” ๊ณ ํ†ต์„ ๋œ์–ด์ฃผ๋Š” ํ”„๋กœ๊ทธ๋žจ ๋„ค์ด๋ฐ ํ‘œ๊ธฐ๋ฒ•์ž…๋‹ˆ๋‹ค.
ํšจ์œจ์ ์ธ ์œ ์ง€๋ณด์ˆ˜๋ฅผ ์œ„ํ•ด์„œ๋Š” ๊ฐœ๋ฐœ์ „ ํ˜‘์—…์ž๋“ค๊ณผ ๋„ค์ด๋ฐ ๊ทœ์น™์„ ์„ ์–ธํ•˜๋Š” ๊ฒƒ์€ ํ•„์ˆ˜๋ผ๋Š” ๊ฒƒ,,,, ์˜ค๋Š˜๋„ ๊นจ๋‹ซ๊ณ  ์ž‘์„ฑํ•˜์˜€์Šต๋‹ˆ๋‹ค๐Ÿ˜Š


 

๐Ÿ”ฅ Camel Case(์นด๋ฉœ ์ผ€์ด์Šค, =Lower Camel Case)

โœ”๏ธ ๋‚™ํƒ€์˜ ์Œ๋ด‰๊ณผ ๊ฐ™์ด ๋ฌธ์ž์—ด์˜ ์ฒซ ๋ฌธ์ž๋ฅผ ์ œ์™ธํ•˜๊ณ  ๋‹จ์–ด์˜ ์ฒซ ๊ธ€์ž๋งˆ๋‹ค ๋Œ€๋ฌธ์ž๋กœ ํ‘œํ˜„ํ•˜๋Š” ๋ฐฉ์‹์ž…๋‹ˆ๋‹ค.
๋งŽ์€ ํ”„๋กœ๊ทธ๋žจ ์–ธ์–ด์—์„œ ์ปจ๋ฒค์…˜์œผ๋กœ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.

โœ”๏ธ ์šฉ๋„ : ์˜ค๋ธŒ์ ํŠธ, ํ•จ์ˆ˜ ๊ทธ๋ฆฌ๊ณ  ์ธ์Šคํ„ด์Šค

โœ”๏ธ ๋ณ€ํ™˜ ์ „ : My Visitor Count
โœ”๏ธ ๋ณ€ํ™˜ ํ›„ : myVisitorCount


๐Ÿ”ฅ Pascal Case(ํŒŒ์Šค์นผ ์ผ€์ด์Šค, =Upper Camel Case)

โœ”๏ธ ์นด๋ฉœ ์ผ€์ด์Šค์™€ ์œ ์‚ฌํ•˜์ง€๋งŒ ์ฒซ ๋ฌธ์ž๋„ ๋Œ€๋ฌธ์ž๋กœ ํ‘œํ˜„ํ•ฉ๋‹ˆ๋‹ค.

โœ”๏ธ ์šฉ๋„ : OOP ํ”„๋กœ๊ทธ๋ž˜๋ฐ์˜ ํด๋ž˜์Šค๋‚˜ constructor๋ช…

โœ”๏ธ ๋ณ€ํ™˜ ์ „ : My Visitor Count
โœ”๏ธ ๋ณ€ํ™˜ ํ›„ : MyVisitorCount


๐Ÿ”ฅ Kebab Case(์ผ€๋ฐฅ ์ผ€์ด์Šค)

โœ”๏ธ ์ƒ๊ฐํ•˜์‹œ๋Š” ๊ทธ ๋จน๋Š” ์ผ€๋ฐฅ์ด ๋งž์Šต๋‹ˆ๋‹ค. ์นด๋ฉœ ์ผ€์ด์Šค์™€ ๋‹ฌ๋ฆฌ ๋ชจ๋‘ ์†Œ๋ฌธ์ž๋กœ ํ‘œํ˜„ํ•˜๋ฉฐ ๋‹จ์–ด์™€ ๋‹จ์–ด ์‚ฌ์ด๋ฅผ ๋Œ€์‹œ(-)๋ฅผ ์ด์šฉํ•˜์—ฌ ๊ตฌ๋ถ„ํ•ฉ๋‹ˆ๋‹ค. ์Šคํ”„๋ง์˜ ymlํŒŒ์ผ์ด๋‚˜ url์ฃผ์†Œ์—์„œ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.

โœ”๏ธ ์šฉ๋„ : CSS์˜ class๋ช…, WEB URL

โœ”๏ธ ๋ณ€ํ™˜ ์ „ : My Visitor Count
โœ”๏ธ ๋ณ€ํ™˜ ํ›„ : my-visitor-count


๐Ÿ”ฅ Snake Case(์Šค๋„ค์ดํฌ ์ผ€์ด์Šค, =Pothole Case)

โœ”๏ธ์ผ€๋ฐฅ์˜ ๋Œ€์‹œ(-)์™€ ๋‹ค๋ฅด๊ฒŒ ์–ธ๋”์Šค์ฝ”์–ด(_)๋ฅผ ๊ตฌ๋ถ„์ž๋กœ ํ•ฉ๋‹ˆ๋‹ค. ๋ชจ๋“  ๋ฌธ์ž๋ฅผ ๋Œ€๋ฌธ์ž๋กœ ๋‚˜ํƒ€๋‚ด๋Š” ๋ฐฉ์‹๋„ ์‚ฌ์šฉ๋˜๋ฉฐ ์ฃผ๋กœ ์ƒ์ˆ˜ ํ‘œํ˜„ ์‹œ์— ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.

โœ”๏ธ ์šฉ๋„ : DataBase์˜ Table๋ช…๊ณผ Column๋ช…

โœ”๏ธ ๋ณ€ํ™˜ ์ „ : My Visitor Count
โœ”๏ธ ๋ณ€ํ™˜ ํ›„ : my_visitor_count
โœ”๏ธ ๋ณ€ํ™˜ ํ›„ : MY_VISITOR_COUNT

 

 



swift ๋„ค์ด๋ฐ ํ• ๋•Œ ์ฐธ๊ณ ํ•˜๋ฉด ์ข‹์€ ์‚ฌ์ดํŠธ

 

Swift ๊ฐœ๋ฐœ์ž์ฒ˜๋Ÿผ ๋ณ€์ˆ˜ ์ด๋ฆ„ ์ง“๊ธฐ · Soojin Ro

1979๋…„์— ๋ฐœ๊ฐ„๋์ง€๋งŒ ์—ฌ์ „ํžˆ ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์ž…๋ฌธ์„œ๋กœ ์œ ๋ช…ํ•œ Structures and Interpretation of Computer Programs์˜ ๋„์ž…๋ถ€์— ์ด๋Ÿฐ ๋ง์ด ์žˆ๋‹ค. Programs should be written for people to read, and only incidentally for machines to execut

soojin.ro

 

728x90
๋ฐ˜์‘ํ˜•