본문 바로가기

카테고리 없음

2020-05-03 16시 개발자 글 모음 | "#6 : AOP (Aspect Ori" 외 4개 이야기

[Java] #2 첫번째 자바 코딩 by 유동환 about JDK,Java

  • 모든 교재에 나오는 Hello World를 그냥 만들 수 있는 것은 아닙니다
  • 1) 자바 언어에서 모든 코드는 (클래스) 안에 있어야 한다
  • 2) 자바 언어에서 모든 코드는 (클래스)의 특정 (메서드 혹은 함수)에 있어야 한다


카카오 다트 게임 by 김정윤 about Dart

  • 1 : idx - 1 ; for ( int i = start_idx ; i <= idx ; i ++ ) { a [ i ] = a [ i ] * 2 ; } } else if ( cur == '#' ) { a [ idx ] = a [ idx ] * - 1 ; } else { int num = cur - '0' ; if ( cur == '1' ) { if ( i < size - 1 && dartResult [ i + 1 ] == '0' ) { num = 10 ; } } idx ++ ; a [ idx ] = num ; if ( num == 10 ) i += 1 ; } } for ( int i = 1 ; i <= 3 ; i ++ ) { answer += a [ i ] ; } return answer ; }
  • char c ) { int result = num ; int a = 0 ; if ( c == 'S' ) a = 1 ; else if ( c == 'D' ) a = 2 ; else a = 3 ; for ( int i = 2 ; i <= a ; i ++ ) { result = result * num ; } return result ; } public int solution ( String dartResult ) { int answer = 0 ; int idx = 0
  • 1 : idx - 1 ; for ( int j = start_idx ; j <= idx ; j ++ ) { a [ j ] = a [ j ] * 2 ; } } else if ( cur == '#' ) { a [ idx ] = a [ idx ] * - 1 ; } else { int num = cur - '0' ; if ( cur == '1' ) { if ( i < size - 1 && dartResult


Spring boot 경우 AWS Elastcbeanstalk에서 http를 https로 자동 redirect 설정하는 방법 by 김민석 about HTTPS,Spring,AWS


    [Unity3D] Programming - 코루틴(Coroutine) 다루기 2(코루틴 중단하기 + 코루틴 매개변수 + yield break) by 오민호 about Unity

    • void Start() { // 코루틴 함수를 직접 호출해서 중단시키려면 IEnumerator를 저장해서 사용 enumerator = TestCoroutine(); StartCoroutine(enumerator); }
    • 보통 때는 바로 위 코드처럼 코루틴 함수를 호출했을 텐데 IEnumerator에 저장해서 실행한 이유는 TestCoroutine 함수에서 받아온 IEnumerator를 StopCoroutine에 넣어주기 위해서 이다
    • 코루틴 이름 문자열로 코루틴을 실행시키면서 매개변수를 받는 StartCoroutine의 오버로드 형식은 string으로 코루틴 함수의 이름을 받고 object 타입으로 매개변수를 받는다


    #6 : AOP (Aspect Oriented Programming) by 맹인영

    • println(prefix + " [" + message + "] " + postfix); } public Object logAOP(ProceedingJoinPoint joinpoint) throws Throwable { String sign = joinpoint
    • Logger">