'java'에 해당되는 글 11건
06. Javadoc :: 2021/11/17 17:50
개발자를 위한
Java Programming Style Guide (ref. Google style guide)
7. 문서화 (javadoc)
7.1 서식(formatting)
1. 일반 서식 (General form)
Javadoc 블록의 기본적인 형식은 다음 예제에서 보는 것과 같습니다.
/**
* Multiple lines of Javadoc text are written here,
* wrapped normally...
*/
public int method(String p1) { ... }
또는 다음과 같은 하나의 라인으로 작성할 수 있습니다.
/** An especially short bit of Javadoc. */
기본적인 형식(basic form)은 항상 허용됩니다. Javadoc 블록 전체(주석 표시 포함)가 하나의 라인으로 작성할 수 있는 경우는 한 줄 형식으로 대체될 수 있습니다. @return과 같은 블록 태그가 없는 경우에만 해당됨을 유의하세요.
2. 단락(Paragraphs)
정렬된 선행 별표(aligned leading asterisk:’*’)만 포함하고 있는 하나의 빈 줄은 단락 사이와 블록 태그 그룹이 있을 경우 태그 그룹 앞에 나옵니다. 첫번째 단락을 제외한 각 단락은 첫번째 단어 바로 앞에 <p> 태그가 있고, 뒤에는 공백이 없습니다.
3. 블록 태그(Block tags)
코드에 사용하는 표준 “블록 태그(block tags)”는 @param, @return, @throws, @deprecated 순서로 사용되며, 이 4가지 유형은 설명이 비어 있으면 안 됩니다. 블록 태그가 한 줄에 맞지 않으면 @위치에서 4개 이상의 스페이스로 들여쓰기를 합니다.
7.2 요약 단편(the summary fragment)
각 Javadoc 블록은 간단한 요약 단편으로 시작합니다. 이 단편적인 요약은 매우 중요합니다. 클래스나 메서드 인덱스처럼 특별한 컨텍스트(context)에서 나타나는 텍스트의 유일한 부분입니다.
이 단편은 완전한 문장이 아니라 명사구나 동사 구절입니다. A {@code Foo}처럼 시작하지도 않고, “This method returns…”로 시작하지도 않고, “Save the rcord..”와 같은 완전한 명령형 문장의 형태로 시작하지도 않습니다. 하지만, 요약 단편에는 완전한 문장인 것처럼 대문자와 구두점이 있습니다.
Tip : 일반적으로 /** @return the customer ID */와 같이 Javadoc을 작성하는 실수를 하게 됩니다. 이것은 잘못된 것입니다. /** Returns the customer ID */처럼 변경해야 합니다.
7.3 Javadoc 사용처(where javadoc is used)
최소한, Javadoc은 모든 public class와 그 클래스에 있는 public, protected 멤버에 관해 존재하지만, 아래 언급된 몇 가지 예외가 있습니다.
아래 3번 Non-required Javadoc에 설명되어 있는 것처럼, 추가적인 Javadoc 컨텐츠가 있을 수 있습니다.
1. 예외(Exception) : 자체 서술적인 메서드 (self-explanatory methods)
getFoo와 같이 “단순하고 분명한(simple, obvious)” 메서드에 대해서 Javadoc을 작성하는 것은 선택 사항입니다. 이 경우처럼, “Returns the foo”라고 말하는 것 이외 아무것도 말할 가치가 없는 경우도 있습니다.
중요(important) : 일반적으로 독자가 알 필요가 있는 관련 정보를 생략하는 것을 정당화하기 위해 위에 언급된 예외를 적용하는 것은 적합하지 않습니다. 예를 들어, getCanonicalName의 메서드의 경우, 일반 독자가 “표준 이름(canonical name)”이라는 용어가 무엇을 의미하는지 모를 경우 해당 Javadoc 문서(단지 /** Returns the canonical name. */만을 말하고자 하는 이유일지라도)를 생략하면 안 됩니다.
2. 예외(Exception) : 재정의(override)
상위 유형(supertype) 메서드를 재정의하는 경우에는 항상 Javadoc이 존재하는 것은 아닙니다.
3. 불필요한 경우 (Non-required Javadoc)
다른 클래스와 멤버의 경우, 필요에 따라 Javadoc이 있습니다.
구현 주석(implementation comments)이 클래스나 멤버 전체의 목적이나 동작에 대해 정의하는데 사용되는 경우, 해당 주석은 Javadoc으로 작성될 수 있습니다. (/** 사용)
불필요한 경우의 Javadoc(non-required javadoc)은 위에서 정리한 단락(Paragraphs)이나 블록 태그(Block tags), 요약 단편(Summary fragments)의 형식을 따르도록 엄격하게 요구되지는 않지만, 될 수 있으면 정해진 형식을 따르기를 권고합니다.
-
Heated Dog Bowl
Tracked from Heated Dog Bowl | 2023/02/23 04:35 | DELGreat Architect & Artist -
-
dog slow feeder Bowl
Tracked from dog slow feeder Bowl | 2023/03/05 05:34 | DELGreat Architect & Artist -
-
a video about wifi extender
Tracked from a video about wifi extender | 2023/03/18 07:08 | DELGreat Architect & Artist -
-
Classic Ceramic dog Bowl
Tracked from Classic Ceramic dog Bowl | 2023/03/18 07:38 | DELGreat Architect & Artist -
-
81.staikudrik.com
Tracked from 81.staikudrik.com | 2023/03/30 14:42 | DELGreat Architect & Artist -
-
www.bruederli.com
Tracked from www.bruederli.com | 2023/03/31 10:01 | DELGreat Architect & Artist -
-
energotransbank.com
Tracked from energotransbank.com | 2023/04/01 14:21 | DELGreat Architect & Artist -
-
freecycle4U.com
Tracked from freecycle4U.com | 2023/04/10 15:31 | DELGreat Architect & Artist -
-
boost Internet speed
Tracked from boost Internet speed | 2023/04/12 02:23 | DELGreat Architect & Artist -
-
ergworkout.com
Tracked from ergworkout.com | 2023/04/12 08:14 | DELGreat Architect & Artist -
-
wifi Photos
Tracked from wifi Photos | 2023/04/14 23:56 | DELGreat Architect & Artist -
-
tv antenna
Tracked from tv antenna | 2023/04/15 02:11 | DELGreat Architect & Artist -
-
Bali hotels
Tracked from Bali hotels | 2023/04/15 13:22 | DELGreat Architect & Artist -
-
https://influence.co/balitourpackages
Tracked from https://influence.co/balitourpackages | 2023/04/21 00:59 | DELGreat Architect & Artist -
05. Practice :: 2021/11/17 17:49
개발자를 위한
Java Programming Style Guide (ref. Google style guide)
6. 프로그래밍 실습 (Programming practices)
6.1 @Override: always used
메서드(method)는 합법적일 때마다 @Override 어노테이션(annotation)으로 표시됩니다. 여기에는 슈퍼클래스(super class)의 메서드를 재정의(override)하는 클래스 메서드, 슈퍼인터페이스(super interface)의 메서드를 재지정(respecifying)하는 인터페이스 메서드를 포함합니다.
예외(Exception) : @Deprecared일 경우에는 @Override를 생략할 수 있습니다.
6.2 Caught exceptions: not ignored (예외가 발생했을 때, 무시하지 말 것)
아래 언급된 경우를 제외하고, 예외가 발생했을 때(caught exception) 아무런 응답을 하지 않는 것은 매우 드문 경우입니다. (일반적으로 응답(response)은 기록해야 합니다. 만약 기록이 불가능(“impossible”)하다고 여겨지는 경우에는 AssertionError를 다시 발생(rethrow)시킵니다.)
Catch 블록에서 아무 조치도 취하지 않는 것이 정말 적합할 경우, 정당화되는 이유가 코멘트로 설명되어 있습니다.
try {
int i = Integer.parseInt(response);
return handleNumericResponse(i);
} catch (NumberFormatException ok) {
// it's not numeric; that's fine, just continue
}
return handleTextResponse(response);
예외(Exception) : 테스트에서 발견된 예외는 이름이 기대되는 예외일 경우, 주석없이 무시될 수 있습니다. 다음 코드는 예상되는 예외를 확인하기 위한 아주 일반적인 관용구이기 때문에 주석이 필요하지 않습니다.
try {
emptyStack.pop();
fail();
} catch (NoSuchElementException expected) {
}
6.3 정적 멤버(static members): 클래스를 사용하여 한정(qualified using class)
정적 클래스 멤버(static class member)에 대한 참조(reference)가 규정되어야 하는 경우, 클래스 유형(class type)의 참조나 표현식이 아니라 해당 클래스 이름으로 규정되어야 합니다.
Foo aFoo = ...;
Foo.aStaticMethod(); // good
aFoo.aStaticMethod(); // bad
somethingThatYieldsAFoo().aStaticMethod(); // very bad
6.4 종료자(finalizers) : 사용하지 않음(not used)
Object.finalize를 재정의(override)하는 것은 극히 드문 경우입니다. 사용하지 않습니다.
Tip : 사용하지 마십시오. 반드시 사용해야 할 것 같으면, 먼저 Effective Java 항목 7 “종료자 피하기(Avoid Finalizers)”를 매우 주의 깊에 읽고 이해한 다음에 사용하지 마세요.
-
immediate profit erfahrungen
Tracked from immediate profit erfahrungen | 2023/03/01 15:16 | DELGreat Architect & Artist -
-
kraken2trfqodidvlh4aa337cpzfrhdlfldhve5nf7njhumwr7instad.onion
Tracked from kraken2trfqodidvlh4aa337cpzfrhdlfldhve5nf7njhumwr7instad.onion | 2023/03/02 14:30 | DELGreat Architect & Artist -
-
skin moles pics
Tracked from skin moles pics | 2023/03/03 16:56 | DELGreat Architect & Artist -
-
hemorrhoids oil
Tracked from hemorrhoids oil | 2023/03/03 18:24 | DELGreat Architect & Artist -
-
mole removal tips
Tracked from mole removal tips | 2023/03/03 19:33 | DELGreat Architect & Artist -
-
Best Crypto ranking platform
Tracked from Best Crypto ranking platform | 2023/03/04 19:00 | DELGreat Architect & Artist -
-
Cryptocurrency list
Tracked from Cryptocurrency list | 2023/03/05 00:19 | DELGreat Architect & Artist -
-
Best Crypto ranking platform
Tracked from Best Crypto ranking platform | 2023/03/05 03:11 | DELGreat Architect & Artist -
-
new cryptocurrencies
Tracked from new cryptocurrencies | 2023/03/05 03:59 | DELGreat Architect & Artist -
-
LuckyCrush
Tracked from LuckyCrush | 2023/03/07 17:16 | DELGreat Architect & Artist -
-
sumseltoto
Tracked from sumseltoto | 2023/03/07 21:18 | DELGreat Architect & Artist -
-
maltipoo puppies for sale in canada
Tracked from maltipoo puppies for sale in canada | 2023/03/08 19:36 | DELGreat Architect & Artist -
-
alpilean reviews
Tracked from alpilean reviews | 2023/03/10 14:39 | DELGreat Architect & Artist -
-
alpilean customer reviews
Tracked from alpilean customer reviews | 2023/03/10 20:18 | DELGreat Architect & Artist -
-
twitter trend saudi
Tracked from twitter trend saudi | 2023/03/10 23:26 | DELGreat Architect & Artist -
-
Supplements
Tracked from Supplements | 2023/03/11 17:15 | DELGreat Architect & Artist -
-
SEO 악성 스팸 백링크 제거 서비스
Tracked from SEO 악성 스팸 백링크 제거 서비스 | 2023/03/16 10:50 | DELGreat Architect & Artist -
-
teak outdoor table
Tracked from teak outdoor table | 2023/03/16 14:34 | DELGreat Architect & Artist -
-
Ark 2 Release date
Tracked from Ark 2 Release date | 2023/03/19 18:40 | DELGreat Architect & Artist -
-
Utah Real Estate
Tracked from Utah Real Estate | 2023/03/20 23:53 | DELGreat Architect & Artist -
-
Skiing In Utah
Tracked from Skiing In Utah | 2023/03/21 00:23 | DELGreat Architect & Artist -
-
Have you thought about moving to Utah?
Tracked from Have you thought about moving to Utah? | 2023/03/21 01:02 | DELGreat Architect & Artist -
-
Female private yoga teacher Cape Town
Tracked from Female private yoga teacher Cape Town | 2023/03/21 04:45 | DELGreat Architect & Artist -
-
Yoga personal trainer Cape Town
Tracked from Yoga personal trainer Cape Town | 2023/03/21 05:56 | DELGreat Architect & Artist -
-
Have you thought about moving to Utah?
Tracked from Have you thought about moving to Utah? | 2023/03/21 10:28 | DELGreat Architect & Artist -
-
Skiing In Utah
Tracked from Skiing In Utah | 2023/03/21 12:25 | DELGreat Architect & Artist -
-
Utah Real Estate
Tracked from Utah Real Estate | 2023/03/21 14:42 | DELGreat Architect & Artist -
-
Things to do in Utah
Tracked from Things to do in Utah | 2023/03/21 15:38 | DELGreat Architect & Artist -
-
Hawaii liveview
Tracked from Hawaii liveview | 2023/03/21 17:47 | DELGreat Architect & Artist -
-
Have you thought about moving to Utah?
Tracked from Have you thought about moving to Utah? | 2023/03/22 09:09 | DELGreat Architect & Artist -
-
The Real Estate Blvd
Tracked from The Real Estate Blvd | 2023/03/22 17:38 | DELGreat Architect & Artist -
-
Experiences
Tracked from Experiences | 2023/03/25 15:29 | DELGreat Architect & Artist -
-
cyber security service
Tracked from cyber security service | 2023/03/31 16:29 | DELGreat Architect & Artist -
-
Wordpress Designer
Tracked from Wordpress Designer | 2023/04/03 09:19 | DELGreat Architect & Artist -
-
home nursing services port st lucie
Tracked from home nursing services port st lucie | 2023/04/06 17:04 | DELGreat Architect & Artist -
-
home care nursing port st lucie
Tracked from home care nursing port st lucie | 2023/04/06 17:31 | DELGreat Architect & Artist -
-
Best Social Media automation tool
Tracked from Best Social Media automation tool | 2023/04/08 18:35 | DELGreat Architect & Artist -
-
images about tv antenna,
Tracked from images about tv antenna, | 2023/04/08 23:00 | DELGreat Architect & Artist - 05. Practice
-
podcast hosting
Tracked from podcast hosting | 2023/04/11 21:18 | DELGreat Architect & Artist -
-
Vape disposable
Tracked from Vape disposable | 2023/04/12 23:54 | DELGreat Architect & Artist -
-
poltartoto
Tracked from poltartoto | 2023/04/14 18:15 | DELGreat Architect & Artist -
-
blacksprut2rprrt3aoigwh7zftiprzqyqynzz2eiimmwmykw7wkpyad.onion
Tracked from blacksprut2rprrt3aoigwh7zftiprzqyqynzz2eiimmwmykw7wkpyad.onion | 2023/04/14 19:23 | DELGreat Architect & Artist -
-
Residual income opportunities
Tracked from Residual income opportunities | 2023/04/16 04:35 | DELGreat Architect & Artist -
-
link alternatif racuntoto
Tracked from link alternatif racuntoto | 2023/04/17 00:34 | DELGreat Architect & Artist -
-
daman game
Tracked from daman game | 2023/04/17 20:09 | DELGreat Architect & Artist -
-
skip hire bendigo
Tracked from skip hire bendigo | 2023/04/17 21:04 | DELGreat Architect & Artist -
-
dumpster rental
Tracked from dumpster rental | 2023/04/17 21:21 | DELGreat Architect & Artist -
-
franna crane
Tracked from franna crane | 2023/04/17 21:36 | DELGreat Architect & Artist -
-
Real Estate
Tracked from Real Estate | 2023/04/19 16:25 | DELGreat Architect & Artist -
-
crane hire
Tracked from crane hire | 2023/04/20 07:19 | DELGreat Architect & Artist -
-
all-terrain crane
Tracked from all-terrain crane | 2023/04/20 08:51 | DELGreat Architect & Artist -
-
matelas percko prix
Tracked from matelas percko prix | 2023/04/22 07:24 | DELGreat Architect & Artist -
-
https://erd-bd.org/2023/04/22/the-completely-different-types-of-on-line-betting-exploring-your-options/
Tracked from https://erd-bd.org/2023/04/22/the-completely-different-types-of-on-line-betting-exploring-your-options/ | 2023/04/22 20:44 | DELGreat Architect & Artist -
-
https://printforum.com.au/community/profile/halleyprada4638/
Tracked from https://printforum.com.au/community/profile/halleyprada4638/ | 2023/04/22 21:43 | DELGreat Architect & Artist -
-
https://easternfuzz.com/how-one-can-keep-safe-and-secure-when-betting-on-line/
Tracked from https://easternfuzz.com/how-one-can-keep-safe-and-secure-when-betting-on-line/ | 2023/04/22 22:18 | DELGreat Architect & Artist -
-
https://dfiestayaccesorios.com.mx/how-one-can-win-big-on-sportsbook-strategies-for-advanced-bettors-2/
Tracked from https://dfiestayaccesorios.com.mx/how-one-can-win-big-on-sportsbook-strategies-for-advanced-bettors-2/ | 2023/04/22 22:23 | DELGreat Architect & Artist -
-
Investing in the stock market
Tracked from Investing in the stock market | 2023/04/24 03:33 | DELGreat Architect & Artist -
-
Residual income
Tracked from Residual income | 2023/04/24 05:45 | DELGreat Architect & Artist -
-
earn passive income
Tracked from earn passive income | 2023/04/24 06:04 | DELGreat Architect & Artist -
-
Multiple streams of income
Tracked from Multiple streams of income | 2023/04/24 08:53 | DELGreat Architect & Artist -
-
Residual income
Tracked from Residual income | 2023/04/24 09:15 | DELGreat Architect & Artist -
-
How much is Justin Guerra (aka Jus Secure The Bag) worth? Find out how Justin Guerra the entrepreneur and influencer made his fortune and what he spends it on.
Tracked from How much is Justin Guerra (aka Jus Secure The Bag) worth? Find out how Justin Guerra the entrepreneur and influencer made his fortune and what he spends it on. | 2023/04/25 18:14 | DELGreat Architect & Artist -
-
bit index ai official site
Tracked from bit index ai official site | 2023/04/26 14:35 | DELGreat Architect & Artist -
-
Online businesses
Tracked from Online businesses | 2023/04/27 16:48 | DELGreat Architect & Artist -
-
Dividend-paying stocks
Tracked from Dividend-paying stocks | 2023/04/27 17:29 | DELGreat Architect & Artist -
-
Multiple streams of income
Tracked from Multiple streams of income | 2023/04/27 18:45 | DELGreat Architect & Artist -
-
Online businesses
Tracked from Online businesses | 2023/04/27 21:52 | DELGreat Architect & Artist -
-
togel online
Tracked from togel online | 2023/05/03 08:05 | DELGreat Architect & Artist -
-
massage therapy school course program near me
Tracked from massage therapy school course program near me | 2023/05/04 18:28 | DELGreat Architect & Artist -
-
Side hustle
Tracked from Side hustle | 2023/05/05 06:02 | DELGreat Architect & Artist -
-
passive income app
Tracked from passive income app | 2023/05/05 06:36 | DELGreat Architect & Artist -
-
gox scooters
Tracked from gox scooters | 2023/05/06 04:54 | DELGreat Architect & Artist -
-
go x scooters san francisco
Tracked from go x scooters san francisco | 2023/05/06 08:05 | DELGreat Architect & Artist -
-
Hormone balancing
Tracked from Hormone balancing | 2023/05/06 19:43 | DELGreat Architect & Artist -
-
women’s fashion collection
Tracked from women’s fashion collection | 2023/05/08 21:17 | DELGreat Architect & Artist -
-
inspire your wardrobe
Tracked from inspire your wardrobe | 2023/05/09 00:25 | DELGreat Architect & Artist -
-
Trendy Women’s Fashion
Tracked from Trendy Women’s Fashion | 2023/05/09 00:54 | DELGreat Architect & Artist -
-
Featuring a Variety Of Fashionable Styles
Tracked from Featuring a Variety Of Fashionable Styles | 2023/05/09 01:53 | DELGreat Architect & Artist -
-
Junk Car Removal Scarborough
Tracked from Junk Car Removal Scarborough | 2023/05/10 00:31 | DELGreat Architect & Artist -
-
Scrap car removal Oakville
Tracked from Scrap car removal Oakville | 2023/05/10 00:55 | DELGreat Architect & Artist -
-
Daycare Richmond Hill Ontario
Tracked from Daycare Richmond Hill Ontario | 2023/05/10 16:11 | DELGreat Architect & Artist -
-
Cash For Cars Mississauga
Tracked from Cash For Cars Mississauga | 2023/05/10 16:47 | DELGreat Architect & Artist -
-
Cash for scrap cars Scarborough
Tracked from Cash for scrap cars Scarborough | 2023/05/11 02:15 | DELGreat Architect & Artist -
-
extra long drapery rods
Tracked from extra long drapery rods | 2023/05/11 02:42 | DELGreat Architect & Artist -
-
Junk Car removal Etobicoke
Tracked from Junk Car removal Etobicoke | 2023/05/11 04:12 | DELGreat Architect & Artist -
-
Cash For Scrap Cars Scarborough
Tracked from Cash For Scrap Cars Scarborough | 2023/05/11 04:40 | DELGreat Architect & Artist -
-
Scrap car removal Etobicoke
Tracked from Scrap car removal Etobicoke | 2023/05/11 08:22 | DELGreat Architect & Artist -
-
Scrap Yard Brampton
Tracked from Scrap Yard Brampton | 2023/05/11 08:55 | DELGreat Architect & Artist -
-
Cash For Scrap Cars Markham
Tracked from Cash For Scrap Cars Markham | 2023/05/11 09:51 | DELGreat Architect & Artist -
-
Scrap Yard Mississauga
Tracked from Scrap Yard Mississauga | 2023/05/11 13:10 | DELGreat Architect & Artist -
-
Junk Car Removal Mississauga
Tracked from Junk Car Removal Mississauga | 2023/05/11 15:39 | DELGreat Architect & Artist -
-
island life hawaii
Tracked from island life hawaii | 2023/05/12 15:32 | DELGreat Architect & Artist -
-
island life hawaii
Tracked from island life hawaii | 2023/05/15 06:29 | DELGreat Architect & Artist -
-
hawaii guide
Tracked from hawaii guide | 2023/05/15 06:46 | DELGreat Architect & Artist -
-
hawaii guide
Tracked from hawaii guide | 2023/05/15 07:03 | DELGreat Architect & Artist -
-
island life hawaii
Tracked from island life hawaii | 2023/05/15 07:32 | DELGreat Architect & Artist -
-
Performance with CSS Animations
Tracked from Performance with CSS Animations | 2023/05/15 18:45 | DELGreat Architect & Artist -
-
need information
Tracked from need information | 2023/05/15 22:31 | DELGreat Architect & Artist -
-
Пересадка бровей
Tracked from Пересадка бровей | 2023/05/16 23:01 | DELGreat Architect & Artist -
-
пересадка волос грузия
Tracked from пересадка волос грузия | 2023/05/16 23:20 | DELGreat Architect & Artist -
-
one-year limited warranty
Tracked from one-year limited warranty | 2023/05/18 02:01 | DELGreat Architect & Artist -
-
خرید پکیج تصفیه فاضلاب صنعتی
Tracked from خرید پکیج تصفیه فاضلاب صنعتی | 2023/05/19 03:58 | DELGreat Architect & Artist -
-
animation studio malaysia
Tracked from animation studio malaysia | 2023/05/19 15:35 | DELGreat Architect & Artist -
-
mehndi design
Tracked from mehndi design | 2023/05/20 19:51 | DELGreat Architect & Artist -
-
situs togel mudah jp
Tracked from situs togel mudah jp | 2023/05/20 21:19 | DELGreat Architect & Artist -
-
landgoed het grote zand
Tracked from landgoed het grote zand | 2023/05/22 06:40 | DELGreat Architect & Artist -
-
roompot callantsoog
Tracked from roompot callantsoog | 2023/05/22 06:59 | DELGreat Architect & Artist -
-
Kansas City Estate Sale Companies
Tracked from Kansas City Estate Sale Companies | 2023/05/23 18:52 | DELGreat Architect & Artist -
-
Documentación reagrupación familiar Suiza
Tracked from Documentación reagrupación familiar Suiza | 2023/05/24 17:00 | DELGreat Architect & Artist - 05. Practice
-
commercial locksmith services
Tracked from commercial locksmith services | 2023/05/26 20:14 | DELGreat Architect & Artist -
-
garage door repair
Tracked from garage door repair | 2023/05/26 20:26 | DELGreat Architect & Artist -
-
Locksmith Wicker Park IL
Tracked from Locksmith Wicker Park IL | 2023/05/26 22:26 | DELGreat Architect & Artist -
-
Leading creative product photographer in Bangalore
Tracked from Leading creative product photographer in Bangalore | 2023/05/26 23:13 | DELGreat Architect & Artist -
-
Creative Advertising photographer in delhi
Tracked from Creative Advertising photographer in delhi | 2023/05/26 23:52 | DELGreat Architect & Artist -
-
Chicago Locksmith
Tracked from Chicago Locksmith | 2023/05/27 00:00 | DELGreat Architect & Artist -
-
Locksmith Roscoe Village IL
Tracked from Locksmith Roscoe Village IL | 2023/05/27 00:30 | DELGreat Architect & Artist -
-
Pop A Lock
Tracked from Pop A Lock | 2023/05/27 00:34 | DELGreat Architect & Artist -
-
Key Duplication
Tracked from Key Duplication | 2023/05/27 00:36 | DELGreat Architect & Artist -
-
locked keys in car
Tracked from locked keys in car | 2023/05/27 03:37 | DELGreat Architect & Artist -
-
New Locks Installation
Tracked from New Locks Installation | 2023/05/27 05:29 | DELGreat Architect & Artist -
-
importacion de obras de arte esculturas
Tracked from importacion de obras de arte esculturas | 2023/05/28 15:25 | DELGreat Architect & Artist -
-
LEGALIZAR BARCO
Tracked from LEGALIZAR BARCO | 2023/05/28 16:02 | DELGreat Architect & Artist -
-
LEGALIZAR BARCO
Tracked from LEGALIZAR BARCO | 2023/05/28 17:48 | DELGreat Architect & Artist -
-
DOCUMENTACION DUA
Tracked from DOCUMENTACION DUA | 2023/05/28 21:16 | DELGreat Architect & Artist -
-
زیرساخت مرکزداده
Tracked from زیرساخت مرکزداده | 2023/05/29 19:55 | DELGreat Architect & Artist -
-
Hypnotherapy Brisbane
Tracked from Hypnotherapy Brisbane | 2023/05/30 18:19 | DELGreat Architect & Artist -
-
Brisbane Hypnotherapist
Tracked from Brisbane Hypnotherapist | 2023/05/30 18:41 | DELGreat Architect & Artist -
-
Brisbane Hypnotherapy
Tracked from Brisbane Hypnotherapy | 2023/05/30 19:50 | DELGreat Architect & Artist -
-
Best Hypnotherapist Brisbane
Tracked from Best Hypnotherapist Brisbane | 2023/05/30 21:36 | DELGreat Architect & Artist -
-
đồ chơi xe hơi Hà Nội
Tracked from đồ chơi xe hơi Hà Nội | 2023/06/03 14:05 | DELGreat Architect & Artist -
-
kediri toto
Tracked from kediri toto | 2023/06/03 15:06 | DELGreat Architect & Artist -
-
login kampoengtoto
Tracked from login kampoengtoto | 2023/06/05 14:03 | DELGreat Architect & Artist -
-
link alternatif dvttoto
Tracked from link alternatif dvttoto | 2023/06/07 11:03 | DELGreat Architect & Artist -
-
Art 27 Miami
Tracked from Art 27 Miami | 2023/06/07 12:12 | DELGreat Architect & Artist -
-
dvd distribution
Tracked from dvd distribution | 2023/06/08 09:56 | DELGreat Architect & Artist -
04. Naming :: 2021/11/17 17:48
개발자를 위한
Java Programming Style Guide (ref. Google style guide)
5. 네이밍(naming)
5.1 모든 식별자에 적용되는 공통 규칙(rules common to all identifiers)
식별자(identifier)는 ASCII 문자와 숫자만 사용하며, 아래에 언급된 소수의 경우에만 밑줄(underscore)를 사용합니다. 따라서, 각 유효한 식별자 이름은 정규식(regular expression) \w+ 와 일치합니다.
(구글 스타일에서는) 특수한 접두사나 접미사를 사용하지 않습니다. 예를 들어, name_, mName, s_name, kName과 같은 이름은 (구글) 스타일이 아닙니다.
5.2 식별자 유형별 규칙(rules by identifier type)
1. 패키지 명 (Package names)
패키지 명은 모두 소문자이며, 연속된 단어는 간단하게 서로 연결됩니다. (밑줄 없음) 예를 들어, com.example.deepSpace나 com.example.deep_space가 아니라 com.example.deepspace로 패키지명을 작성합니다.
2. 클래스 명 (Class names)
클래스 이름은 UpperCamelCase(단어가 시작되는 맨 앞 한글자를 대문자로 작성하는 유형)로 작성합니다. 클래스 이름은 일반적으로 명사나 명사구입니다. 예를 들어, Character 나 ImmutableList와 같습니다. 인터페이스(Interface) 이름은 명사나 명사구(예를 들면, List)일 수도 있지만, 때로 형용사나 형용사구가 될 수도 있습니다. (예 : Readable)
어노테이션 유형의 명명(naming annotation type)에 대해서는 특정 규칙이나 잘 정립된(well-established) 규정(convention)은 없습니다.
테스트 클래스(Test class)는 테스트 중인 클래스 이름으로 시작하여 Test로 끝나는 이름으로 명명합니다. 예 : HashTest 또는 HashIntegrationTest
3. 메서드 명 (Method names)
메서드 이름은 lowerCamelCase(맨 앞 한글자는 소문자로, 다음 단어의 맨 앞 한글자는 대문자로 작성하는 유형)로 작성합니다. 메서드 이름은 일반적으로 동시 또는 동사구로 작성합니다. 예를 들면 다음과 같습니다.
Ex) sendMessage 또는 stop
밑줄은 lowerCamelCase로 작성된 각 컴포넌트와 이름을 논리적으로 구분하기 위해 JUnit 테스트 메서드에 나타날 수 있습니다. 한가지 일반적인 패턴은 <methodUnderTest>_<state>의 형태입니다. (예: pop_emptyStack). 테스트 메서드의 이름을 지정하는 단 한가지의 완벽한 방법은 없습니다.
4. 상수 명 (Constant names)
상수 명은 CONSTANT_CASE와 같은 유형을 사용합니다. 상수 명은 모두 대문자이며, 각 단어는 하나의 밑줄로 다음 단어와 구분됩니다. 하지만, 정확하게 상수가 무엇일까요?
상수는 내용이 변경되지 않고(immutable), 메서드에 부작용(side effect)이 전혀 없는 static final field 입니다. 여기에는 기본형(primitives), 스트링형(Strings), 불변 유형(immutable type), 불변 유형의 불변 컬렉션(immutable collection)이 포함됩니다. 만약 인스턴스의 관찰 가능한 상태가 변경될 수 있다면, 그것은 상수가 아닙니다. 객체를 변경하지 않으려는 의도만으로는 충분하지 않습니다.
예를 들면 다음과 같습니다.
// Constants
static final int NUMBER = 5;
static final ImmutableList<String> NAMES = ImmutableList.of("Ed", "Ann");
static final ImmutableMap<String, Integer> AGES = ImmutableMap.of("Ed", 35, "Ann", 32);
static final Joiner COMMA_JOINER = Joiner.on(','); // because Joiner is immutable
static final SomeMutableType[] EMPTY_ARRAY = {};
enum SomeEnum { ENUM_CONSTANT }
// Not constants
static String nonFinal = "non-final";
final String nonStatic = "non-static";
static final Set<String> mutableCollection = new HashSet<String>();
static final ImmutableSet<SomeMutableType> mutableElements = ImmutableSet.of(mutable);
static final ImmutableMap<String, SomeMutableType> mutableValues =
ImmutableMap.of("Ed", mutableInstance, "Ann", mutableInstance2);
static final Logger logger = Logger.getLogger(MyClass.getName());
static final String[] nonEmptyArray = {"these", "can", "change"};
이러한 이름은 일반적으로 명사나 명사구입니다.
5. 비상수 필드 명 (Non-constant field names)
상수가 아닌 필드 명(non-constant field name)은 (static이든 아니든) lowerCamelCase로 작성됩니다.
이러한 이름은 일반적으로 명사 또는 명사구로 작성됩니다.
예를 들면 다음과 같습니다.
Ex) computedValues 또는 index
6. 파라미터 명 (Parameter names)
파라미터(매개변수 : parameter) 명은 lowerCamelCase로 작성됩니다.
Public 메서드에서 단일 문자 파라미터 이름은 피해야 합니다.
(다른 사람이 변수 명을 이해할 수 없습니다.)
7. 지역 변수 명 (Local variable names)
지역 변수 명은 lowerCamelCase로 작성합니다. final이나 immutable의 경우에도, 지역 변수는 상수로 간주하지 않으며 상수 스타일로 코드를 작성하면 안 됩니다.
8. 유형 변수 명 (Type variable names)
각 유형 변수 명은 다음 2가지 스타일 중 하나로 작성합니다.
- 단일 대문자, 선택적으로 뒤에 단일 숫자 추가 (ex. E, T, X, T2)
- 클래스에 사용되는 형태의 이름 뒤에 대문자 T (ex. RequestT, FooBarT)
5.3 카멜 케이스(camel case : defined)
“IPv6”이나 “iOS”와 같이 두문자어나 특이한 구조가 있는 경우처럼 영어 구문을 Camel Case(영어 대소문자로 변환)로 변환하는 합리적인 방법이 한가지 이상 있습니다. 예측 가능성을 개선하기 위해서 Google Style 표준에서는 다음과 같은 (거의) 결정적인 스키마를 지정합니다.
산문형 이름으로 시작 :
1. 어구를 ASCII로 변환하고 Apostrophe(‘)를 제거하세요. 예를 들어, “Müller's algorithm”는 “Muellers algorithm”으로 변환됩니다.
2. 이 결과를 공백과 나머지 구두점(punctuation)으로 (일반적으로 hypen: ‘-‘)으로 분할하여 나눕니다.
- 권장(Recommended) : 이미 전통적인 Camel Case를 일반적으로 사용하고 있다면, 구성요소로 분할합니다. (예 : AdWord는 ad word로 분할됨) 하지만, “iOS”와 같은 경우는 Camel Case가 아니기 때문에 어떤 규칙에도 위배됩니다. 따라서 이 권장사항은 적용되지 않습니다.
3. 모든 항목(약어 포함)을 소문자로 만든 다음, 첫번째 문자만 대문자로 합니다.
- … 각 단어를 Upper Camel Case로 사용하거나, (각 단어의 첫글자를 대문자로)
- … 각 단어의 첫번째 글자를 제외하고, Lower Camel Case로 사용합니다. (첫 단어의 첫글자 소문자, 다른 단어의 첫글자는 대문자로)
4. 끝으로, 모든 단어를 단일 식별자로 결합합니다.
원래 단어의 대소문자는 거의 대부분 무시되는 것에 유의하세요.
예:
Prose form | Correct | Incorrect |
"XML HTTP request" | XmlHttpRequest | XMLHTTPRequest |
"new customer ID" | newCustomerId | newCustomerID |
"inner stopwatch" | innerStopwatch | innerStopWatch |
"supports IPv6 on iOS?" | supportsIpv6OnIos | supportsIPv6OnIOS |
"YouTube importer" | YouTubeImporter YoutubeImporter* |
YoutubeImporter* : 수용 가능하지만, 권장하지 않습니다.
Note : 일부단어는 영어에서 모호하게 ‘-‘으로 연결됩니다. : 예를 들어, “nonempty”와 “non-empty”는 모두 정확하기 때문에 checkNonempty, checkNonEmpty도 모두 정확한 표현입니다.
-
kraken2trfqodidvlh4aa337cpzfrhdlfldhve5nf7njhumwr7instad.onion
Tracked from kraken2trfqodidvlh4aa337cpzfrhdlfldhve5nf7njhumwr7instad.onion | 2023/03/02 10:14 | DELGreat Architect & Artist -
-
kraken2trfqodidvlh4aa337cpzfrhdlfldhve5nf7njhumwr7instad.onion
Tracked from kraken2trfqodidvlh4aa337cpzfrhdlfldhve5nf7njhumwr7instad.onion | 2023/03/02 12:25 | DELGreat Architect & Artist -
-
digital out of home
Tracked from digital out of home | 2023/03/02 13:32 | DELGreat Architect & Artist -
-
Plumbing Seattle
Tracked from Plumbing Seattle | 2023/03/02 14:35 | DELGreat Architect & Artist -
-
warts vs skin tags
Tracked from warts vs skin tags | 2023/03/03 17:54 | DELGreat Architect & Artist -
-
containere sanitare
Tracked from containere sanitare | 2023/03/04 18:04 | DELGreat Architect & Artist -
-
containere santier
Tracked from containere santier | 2023/03/04 18:51 | DELGreat Architect & Artist -
-
dash kurs prognose
Tracked from dash kurs prognose | 2023/03/04 23:27 | DELGreat Architect & Artist -
-
market a crypto project
Tracked from market a crypto project | 2023/03/05 00:24 | DELGreat Architect & Artist -
-
exito bali
Tracked from exito bali | 2023/03/05 18:16 | DELGreat Architect & Artist -
-
janitorial Services
Tracked from janitorial Services | 2023/03/09 00:54 | DELGreat Architect & Artist -
-
is alpilean legit
Tracked from is alpilean legit | 2023/03/10 17:01 | DELGreat Architect & Artist -
-
saudi twitter trend
Tracked from saudi twitter trend | 2023/03/10 20:37 | DELGreat Architect & Artist -
-
alpilean reviews
Tracked from alpilean reviews | 2023/03/11 06:10 | DELGreat Architect & Artist -
-
alpilean customer reviews
Tracked from alpilean customer reviews | 2023/03/11 06:29 | DELGreat Architect & Artist -
-
alpilean scam
Tracked from alpilean scam | 2023/03/11 06:40 | DELGreat Architect & Artist -
-
ChatGPT Plus
Tracked from ChatGPT Plus | 2023/03/16 16:36 | DELGreat Architect & Artist -
-
software developer adelaide
Tracked from software developer adelaide | 2023/03/17 17:55 | DELGreat Architect & Artist -
-
Have you thought about moving to Utah?
Tracked from Have you thought about moving to Utah? | 2023/03/20 23:08 | DELGreat Architect & Artist -
-
Female private yoga teacher Cape Town
Tracked from Female private yoga teacher Cape Town | 2023/03/21 02:55 | DELGreat Architect & Artist -
-
Mysore Yoga Cape Town
Tracked from Mysore Yoga Cape Town | 2023/03/21 06:15 | DELGreat Architect & Artist -
-
Kumar Siteleri
Tracked from Kumar Siteleri | 2023/03/21 21:08 | DELGreat Architect & Artist -
-
Ashtanga Yoga South Africa
Tracked from Ashtanga Yoga South Africa | 2023/03/21 23:10 | DELGreat Architect & Artist -
-
Authorised Ashtanga teacher Cape Town
Tracked from Authorised Ashtanga teacher Cape Town | 2023/03/21 23:44 | DELGreat Architect & Artist -
-
port st lucie digital marketing company
Tracked from port st lucie digital marketing company | 2023/03/22 23:56 | DELGreat Architect & Artist -
-
giant media design port st lucie
Tracked from giant media design port st lucie | 2023/03/23 01:14 | DELGreat Architect & Artist -
-
Mobil Bahis Siteleri
Tracked from Mobil Bahis Siteleri | 2023/03/24 17:28 | DELGreat Architect & Artist -
-
Tembusu Grand Singapore
Tracked from Tembusu Grand Singapore | 2023/03/24 18:41 | DELGreat Architect & Artist -
-
data hongkong
Tracked from data hongkong | 2023/03/24 18:58 | DELGreat Architect & Artist -
-
네스프레소커피머신렌탈
Tracked from 네스프레소커피머신렌탈 | 2023/03/24 20:11 | DELGreat Architect & Artist -
-
situs slot online terpercaya
Tracked from situs slot online terpercaya | 2023/03/24 21:01 | DELGreat Architect & Artist -
-
london seo consultants
Tracked from london seo consultants | 2023/03/27 17:43 | DELGreat Architect & Artist -
-
chatalternative
Tracked from chatalternative | 2023/03/27 18:16 | DELGreat Architect & Artist -
-
Vero Beach Wordpress Developers
Tracked from Vero Beach Wordpress Developers | 2023/04/03 07:14 | DELGreat Architect & Artist -
-
Vero Beach Web Developers
Tracked from Vero Beach Web Developers | 2023/04/03 20:31 | DELGreat Architect & Artist -
-
SEO 악성 스팸 백링크 제거 서비스
Tracked from SEO 악성 스팸 백링크 제거 서비스 | 2023/04/05 16:14 | DELGreat Architect & Artist -
-
Landscape Companies Zionsville Indiana
Tracked from Landscape Companies Zionsville Indiana | 2023/04/06 03:28 | DELGreat Architect & Artist -
-
home caring port st lucie
Tracked from home caring port st lucie | 2023/04/06 20:21 | DELGreat Architect & Artist -
-
home care nursing port st lucie
Tracked from home care nursing port st lucie | 2023/04/06 22:29 | DELGreat Architect & Artist -
-
las vegas shuttle vip
Tracked from las vegas shuttle vip | 2023/04/06 22:58 | DELGreat Architect & Artist -
-
Landscape Companies Zionsville Indiana
Tracked from Landscape Companies Zionsville Indiana | 2023/04/06 23:58 | DELGreat Architect & Artist -
-
caregiving services port st lucie
Tracked from caregiving services port st lucie | 2023/04/07 00:10 | DELGreat Architect & Artist -
-
mindset training
Tracked from mindset training | 2023/04/07 17:36 | DELGreat Architect & Artist -
-
affiliate marketing
Tracked from affiliate marketing | 2023/04/07 18:37 | DELGreat Architect & Artist -
-
empty buildings for rent
Tracked from empty buildings for rent | 2023/04/07 18:55 | DELGreat Architect & Artist -
-
cheapest decaf k cups
Tracked from cheapest decaf k cups | 2023/04/08 19:54 | DELGreat Architect & Artist -
-
Best Social Media automation tool
Tracked from Best Social Media automation tool | 2023/04/08 20:27 | DELGreat Architect & Artist -
-
Sell my house in The Main Line
Tracked from Sell my house in The Main Line | 2023/04/08 22:04 | DELGreat Architect & Artist -
-
how to start a podcast
Tracked from how to start a podcast | 2023/04/11 17:24 | DELGreat Architect & Artist -
-
tattoo numbing cream tktx
Tracked from tattoo numbing cream tktx | 2023/04/11 18:35 | DELGreat Architect & Artist -
-
Investing in the stock market
Tracked from Investing in the stock market | 2023/04/13 17:38 | DELGreat Architect & Artist -
-
daman games
Tracked from daman games | 2023/04/15 17:02 | DELGreat Architect & Artist -
-
Investment
Tracked from Investment | 2023/04/16 01:29 | DELGreat Architect & Artist -
-
Investment
Tracked from Investment | 2023/04/16 04:56 | DELGreat Architect & Artist -
-
Side hustle
Tracked from Side hustle | 2023/04/16 06:30 | DELGreat Architect & Artist -
-
Residual income opportunities
Tracked from Residual income opportunities | 2023/04/16 06:51 | DELGreat Architect & Artist -
-
Investing in the stock market
Tracked from Investing in the stock market | 2023/04/16 08:50 | DELGreat Architect & Artist -
-
Commercial Real Estate
Tracked from Commercial Real Estate | 2023/04/19 16:02 | DELGreat Architect & Artist -
-
login amanbet88
Tracked from login amanbet88 | 2023/04/19 16:13 | DELGreat Architect & Artist -
-
waste removal
Tracked from waste removal | 2023/04/20 08:02 | DELGreat Architect & Artist -
-
rubbish removal
Tracked from rubbish removal | 2023/04/20 08:53 | DELGreat Architect & Artist -
-
dumpster rental
Tracked from dumpster rental | 2023/04/20 11:18 | DELGreat Architect & Artist -
-
all-terrain crane
Tracked from all-terrain crane | 2023/04/20 11:44 | DELGreat Architect & Artist -
-
matelas percko avis
Tracked from matelas percko avis | 2023/04/22 09:27 | DELGreat Architect & Artist -
-
judi slot online terpercaya
Tracked from judi slot online terpercaya | 2023/04/23 16:16 | DELGreat Architect & Artist -
-
Investing in the stock market
Tracked from Investing in the stock market | 2023/04/24 03:00 | DELGreat Architect & Artist -
-
ثبت نام وام ازدواج
Tracked from ثبت نام وام ازدواج | 2023/04/25 18:40 | DELGreat Architect & Artist -
-
Who is Justin Guerra? Learn more about the internet celebrity entrepreneur and actor here.
Tracked from Who is Justin Guerra? Learn more about the internet celebrity entrepreneur and actor here. | 2023/04/25 18:51 | DELGreat Architect & Artist -
-
Who is Justin Guerra? Learn more about the internet celebrity entrepreneur and actor here.
Tracked from Who is Justin Guerra? Learn more about the internet celebrity entrepreneur and actor here. | 2023/04/25 19:58 | DELGreat Architect & Artist -
-
shirt to match dunk
Tracked from shirt to match dunk | 2023/04/27 17:19 | DELGreat Architect & Artist -
-
เทียบ macbook pro ทุกสเปค
Tracked from เทียบ macbook pro ทุกสเปค | 2023/04/27 17:39 | DELGreat Architect & Artist -
-
Top AI Productivity Tools
Tracked from Top AI Productivity Tools | 2023/05/02 08:43 | DELGreat Architect & Artist -
-
situs judi slot online
Tracked from situs judi slot online | 2023/05/03 04:46 | DELGreat Architect & Artist -
-
situs slot online
Tracked from situs slot online | 2023/05/03 07:27 | DELGreat Architect & Artist -
-
live casino
Tracked from live casino | 2023/05/03 07:28 | DELGreat Architect & Artist -
-
slot deposit pulsa
Tracked from slot deposit pulsa | 2023/05/03 08:06 | DELGreat Architect & Artist -
-
mens clothing
Tracked from mens clothing | 2023/05/04 14:54 | DELGreat Architect & Artist -
-
go x scooter
Tracked from go x scooter | 2023/05/06 08:50 | DELGreat Architect & Artist -
-
go x scooters
Tracked from go x scooters | 2023/05/06 09:40 | DELGreat Architect & Artist -
-
Clean eating
Tracked from Clean eating | 2023/05/06 22:07 | DELGreat Architect & Artist -
-
Health Coach
Tracked from Health Coach | 2023/05/06 22:35 | DELGreat Architect & Artist -
-
women’s fashion collection
Tracked from women’s fashion collection | 2023/05/08 22:27 | DELGreat Architect & Artist -
-
Best preschool Montessori in Richmond Hill
Tracked from Best preschool Montessori in Richmond Hill | 2023/05/10 00:02 | DELGreat Architect & Artist -
-
Plombier Mons
Tracked from Plombier Mons | 2023/05/10 03:17 | DELGreat Architect & Artist -
-
Daycare Markham
Tracked from Daycare Markham | 2023/05/10 21:17 | DELGreat Architect & Artist -
-
Junk Car Removal Oakville
Tracked from Junk Car Removal Oakville | 2023/05/10 22:34 | DELGreat Architect & Artist -
-
Scrap car removal Oakville
Tracked from Scrap car removal Oakville | 2023/05/11 00:14 | DELGreat Architect & Artist -
-
custom window coverings
Tracked from custom window coverings | 2023/05/11 02:08 | DELGreat Architect & Artist -
-
custom window treatments near me
Tracked from custom window treatments near me | 2023/05/11 02:26 | DELGreat Architect & Artist -
-
Cash For Scrap Cars Scarborough
Tracked from Cash For Scrap Cars Scarborough | 2023/05/11 03:06 | DELGreat Architect & Artist -
-
Cash For Scrap Cars Markham
Tracked from Cash For Scrap Cars Markham | 2023/05/11 03:40 | DELGreat Architect & Artist -
-
Cash For Scrap Cars Etobicoke
Tracked from Cash For Scrap Cars Etobicoke | 2023/05/11 03:45 | DELGreat Architect & Artist -
-
Best preschool Montessori in Richmond Hill
Tracked from Best preschool Montessori in Richmond Hill | 2023/05/11 11:17 | DELGreat Architect & Artist -
-
Scrap car removal Markham
Tracked from Scrap car removal Markham | 2023/05/11 15:43 | DELGreat Architect & Artist -
-
hawaii guide
Tracked from hawaii guide | 2023/05/12 15:11 | DELGreat Architect & Artist -
-
Sarfatti 18
Tracked from Sarfatti 18 | 2023/05/12 16:10 | DELGreat Architect & Artist -
-
daftar slot gacor
Tracked from daftar slot gacor | 2023/05/14 17:24 | DELGreat Architect & Artist -
-
hawaii guide
Tracked from hawaii guide | 2023/05/15 09:25 | DELGreat Architect & Artist -
-
CSS Animation Examples
Tracked from CSS Animation Examples | 2023/05/15 21:21 | DELGreat Architect & Artist -
-
Android TV
Tracked from Android TV | 2023/05/18 03:15 | DELGreat Architect & Artist -
-
built-in microphone
Tracked from built-in microphone | 2023/05/18 04:02 | DELGreat Architect & Artist -
-
physical characteristics
Tracked from physical characteristics | 2023/05/18 05:22 | DELGreat Architect & Artist -
-
built-in microphone
Tracked from built-in microphone | 2023/05/18 06:25 | DELGreat Architect & Artist -
-
videographer malaysia
Tracked from videographer malaysia | 2023/05/19 03:25 | DELGreat Architect & Artist -
-
video production malaysia
Tracked from video production malaysia | 2023/05/19 04:01 | DELGreat Architect & Artist -
-
Camera Crew Malaysia
Tracked from Camera Crew Malaysia | 2023/05/19 16:55 | DELGreat Architect & Artist -
-
production house in malaysia
Tracked from production house in malaysia | 2023/05/19 18:28 | DELGreat Architect & Artist -
-
2d animation company in malaysia
Tracked from 2d animation company in malaysia | 2023/05/19 19:27 | DELGreat Architect & Artist -
-
video production malaysia
Tracked from video production malaysia | 2023/05/19 21:49 | DELGreat Architect & Artist -
-
Corporate video production Kuala Lumpur
Tracked from Corporate video production Kuala Lumpur | 2023/05/19 21:51 | DELGreat Architect & Artist -
-
mehndi design
Tracked from mehndi design | 2023/05/20 21:30 | DELGreat Architect & Artist -
-
how to write with AI
Tracked from how to write with AI | 2023/05/20 22:08 | DELGreat Architect & Artist -
-
Rtp Slot Garuda4D
Tracked from Rtp Slot Garuda4D | 2023/05/21 15:01 | DELGreat Architect & Artist -
-
boomhiemke
Tracked from boomhiemke | 2023/05/22 03:10 | DELGreat Architect & Artist -
-
vakantiepark hoenderloo
Tracked from vakantiepark hoenderloo | 2023/05/22 03:12 | DELGreat Architect & Artist -
-
sleepwagen trekkertrek huren
Tracked from sleepwagen trekkertrek huren | 2023/05/22 04:45 | DELGreat Architect & Artist -
-
OVARY AND BREASTS CANCER'S DIAGNOSIS AND TREATMENT in Surat
Tracked from OVARY AND BREASTS CANCER'S DIAGNOSIS AND TREATMENT in Surat | 2023/05/23 15:04 | DELGreat Architect & Artist -
-
slot gacor
Tracked from slot gacor | 2023/05/24 01:10 | DELGreat Architect & Artist -
-
fromthespot
Tracked from fromthespot | 2023/05/25 17:24 | DELGreat Architect & Artist -
-
Locksmith Wrigleyville IL
Tracked from Locksmith Wrigleyville IL | 2023/05/26 22:21 | DELGreat Architect & Artist -
-
24/7 emergency locksmith
Tracked from 24/7 emergency locksmith | 2023/05/26 23:48 | DELGreat Architect & Artist -
-
Locksmith Ukrainian Village IL
Tracked from Locksmith Ukrainian Village IL | 2023/05/27 02:10 | DELGreat Architect & Artist -
-
transporte marítimo península canarias
Tracked from transporte marítimo península canarias | 2023/05/28 19:01 | DELGreat Architect & Artist -
-
autorizacion despacho aduanero
Tracked from autorizacion despacho aduanero | 2023/05/28 19:02 | DELGreat Architect & Artist -
-
despacho aduanero
Tracked from despacho aduanero | 2023/05/28 19:18 | DELGreat Architect & Artist -
-
agente aduanas
Tracked from agente aduanas | 2023/05/28 21:52 | DELGreat Architect & Artist -
-
Anxiety Hypnotherapist Brisbane
Tracked from Anxiety Hypnotherapist Brisbane | 2023/05/29 19:19 | DELGreat Architect & Artist -
-
Hypnotherapist Brisbane
Tracked from Hypnotherapist Brisbane | 2023/05/30 18:08 | DELGreat Architect & Artist -
-
Hypnotherapy Brisbane
Tracked from Hypnotherapy Brisbane | 2023/05/30 18:36 | DELGreat Architect & Artist -
-
Anxiety Hypnotherapist Brisbane
Tracked from Anxiety Hypnotherapist Brisbane | 2023/05/30 21:38 | DELGreat Architect & Artist -
-
Mudra yoga
Tracked from Mudra yoga | 2023/05/31 19:44 | DELGreat Architect & Artist -
-
she shacks
Tracked from she shacks | 2023/06/04 19:31 | DELGreat Architect & Artist -
-
she shacks
Tracked from she shacks | 2023/06/04 19:38 | DELGreat Architect & Artist -
-
shared hosting
Tracked from shared hosting | 2023/06/07 10:12 | DELGreat Architect & Artist -
-
link alternatif dvttoto
Tracked from link alternatif dvttoto | 2023/06/07 10:26 | DELGreat Architect & Artist -
-
wordpress hosting
Tracked from wordpress hosting | 2023/06/07 12:53 | DELGreat Architect & Artist -
-
discount dvd warehouse
Tracked from discount dvd warehouse | 2023/06/08 08:59 | DELGreat Architect & Artist -
-
ubud ebike cycling tour
Tracked from ubud ebike cycling tour | 2023/06/08 11:08 | DELGreat Architect & Artist -
01. source file basics :: 2021/05/28 16:59
개발자를 위한
Java Programming Style Guide (ref. Google style guide)
1. Source file basics
- 파일 명
- 소스 파일 명은 대소문자를 구분하여 정확하게 하나만 있는 최상위 클래스와 .java 확장자로 이루어져 있습니다.
- 파일 인코딩 : UTF-8
- 소스 파일은 UTF-8로 인코딩 되어야 합니다.
- 특수 문자
- 공백 문자 (White space characters)
- 라인 종결자 문자열(sequence)을 제외하면, ASCII 가로 공백 문자(0x20)는 소스 파일의 어디서나 사용할 수 있는 유일한 공백 문자입니다.
- 문자열(string)과 문자 리터럴(character literals)에 있는 모든 다른 공백 문자들은 예외(escape)입니다.
- 탭(Tab) 문자는 들여쓰기(indentation)에 사용하면 안 됩니다.
- 특수 확장열 (Special escape sequences)
- 특수 확장열(special escape sequences)을 가진 모든 문자의 경우, 8진수(ex. \012)나 유니코드(\u000a) 특수문자 대신 해당 확장문자 (\b, \t, \n, \f, \r, \”, \’, \\)를 사용합니다.
- Non-ASCII 문자 (non-ASCII characters)
- 나머지 non-ASCII 문자의 경우, 실제 유니코드 문자(ex.∞)나 동등한 유니코드 특수문자(ex. \u221e)가 사용됩니다. 유니코드 특수문자가 문자열이나 주석 외부에서 사용되는 것은 정말 권장하지 않지만, 코드를 쉽게 읽고 이해할 수 있도록 만들기 위한 방법이라면 선택할 수 있습니다.
Tip : 유니코드 특수문자의 경우, 때때로 실제 유니코드를 사용하는 것이 주석을 설명하는데 매우 유용할 수 있습니다.
- Example
Example | Discussion |
String unitAbbrev = "μs"; | Best : 주석없이 완벽하게 명확함. |
String unitAbbrev = "\u03bcs"; // "μs" | Allowed : 하지만 이렇게 작성할 이유가 없음. |
String unitAbbrev = "\u03bcs"; // Greek letter mu, "s" | Allowed : 하지만 어색하고 실수하기 쉬움. |
String unitAbbrev = "\u03bcs"; | Poor : 독자는 이것이 무엇인지 전혀 모름. |
return '\ufeff' + content; // byte order mark | Good: 인쇄할 수 없는 문자에는 특수문자를 사용하고, 필요한 경우 주석 추가. |
용비
-
Reagrupación familiar en Suiza y permiso de trabajo
Tracked from Reagrupación familiar en Suiza y permiso de trabajo | 2023/05/24 14:42 | DELGreat Architect & Artist -
Visual Studio Code에서 Getter/Setter Method 만들기 :: 2019/03/15 14:50
Java Class member 변수에 대한 Getter Setter Method 생성하는 기능이 Eclipse나 IntelliJ에서는 IDE Menu로 존재합니다.





-
marjoire martin profile
Tracked from marjoire martin profile | 2023/04/14 04:07 | DELGreat Architect & Artist -