Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[20210604] 개발 환경, (Java) 객체 정렬, ZenHub #139

Open
JuHyun419 opened this issue Jun 4, 2021 · 0 comments
Open

[20210604] 개발 환경, (Java) 객체 정렬, ZenHub #139

JuHyun419 opened this issue Jun 4, 2021 · 0 comments

Comments

@JuHyun419
Copy link
Owner

JuHyun419 commented Jun 4, 2021

개발환경

  • local, dev, stage, qa, prod ...

객체 정렬(Comparable, Comparator)

  • 객체의 정렬 구현
    // Arrays.sort
    public static <T> void sort(T[] a, Comparator<? super T> c) {
        if (c == null) {
            sort(a);
        } else {
            if (LegacyMergeSort.userRequested)
                legacyMergeSort(a, c);
            else
                TimSort.sort(a, 0, a.length, c, null, 0, 0);
        }
    }

  • A에 따라 정렬 -> B에 따라 정렬 -> C에 따라 정렬할 때..?
        Arrays.sort(albums, (i1, i2) -> {
            if (i2.sum == i1.sum) {
                if (i2.plays == i1.plays) {
                    return Integer.compare(i1.index, i2.index);
                }
                return Integer.compare(i2.plays, i1.plays);
            }
            return Integer.compare(i2.sum, i1.sum);
        });

젠허브(ZenHub)

  • 깃허브의 프로젝트 처럼 칸반 형식으로 프로젝트 관리(스크럼)

image



간단 회고

퇴사하고 공부한지 첫 평일이 벌써 지나갔다.
이번주는 워밍업 느낌으로 적응하기위해 복습 위주로 진행을 했는데, 어느정도 만족한다.
주말까지 복습 & 정리를 마무리하고 다음주부터는 이것저것 하고 싶었던 공부들 맘껏 하면 된다! 😊 run~!
@JuHyun419 JuHyun419 changed the title [20210604] 개발 환경 [20210604] 개발 환경, (Java) 객체 정렬 Jun 4, 2021
@JuHyun419 JuHyun419 changed the title [20210604] 개발 환경, (Java) 객체 정렬 [20210604] 개발 환경, (Java) 객체 정렬, ZenHub Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant