본문 바로가기

Visual Studio

검색하기
Visual Studio
프로필사진 emacser

  • 분류 전체보기 (71)
    • Problem Solving (7)
    • Git (1)
    • Graphics (15)
    • Game Engine (22)
    • Computer Engineering (12)
    • Programming Language (10)
    • Etc (3)
    • Personal Storage (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
Tags
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록2025/06 (1)

Visual Studio

프로그래밍 하면서 자주 할법한 실수 3가지

1. for문에서 continue 대신 return 사용for (int32 i = 0; i 0) { // continue로 처리해야할 로직 return; }} 2. Guard Clause 패턴에서 !나 == false 누락if (IsValid(Object)) /* !IsValid(Object) 혹은 IsValid(Object) == false 이어야 할 로직 */{ return;} 3. Array 등의 컨테이너 타입을 리턴 타입, 파라미터로 사용할 때 & (Refenrece) 누락const TArray GetMyElements() const { return MyElements; }// 리턴 타입에 "&" 누락void ProcessElement(const TArr..

Computer Engineering 2025. 6. 4. 18:03
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바