![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/ytmkr/btrpzKY9eES/rKc8VoM3yDdCrtbOS0Xqr0/img.jpg)
item.1: 생성자 대신 정적 팩터리 메서드를 고려하라 전통: public 생성자 별도: 정적 팩터리 메서드 (static factory method) public static Boolean valueOf(boolean b) { return b ? Boolean.TRUE : Boolean.FALSE; } 장점 이름을 가질 수 있다. 호출될 때마다 인스턴스를 새로 생성하지 않아도 된다. 인스턴스를 통제하면 클래스를 singleton) 인스턴스화 불가 반환 타입의 하위 타입 객체를 반환할 수 있는 능력이 있다. 엄청난 유연성 입력 매개변수에 따라 매번 다른 클래스의 객체를 반환 정적 팩터리 메서드를 작성하는 시점에는 반환할 객체의 클래스가 존재하지 않아도 된다. 단점 상속을 하려면 public 이나 pro..
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/0n7KL/btrpus5PaTV/xSl7jgXL341X8rKNEN2Ym0/img.jpg)
역자 서문 & 이 책에 대해 선후배 동료 개발자들에게 느낀 아쉬움 3가지 개발 프로세스에 대한 관심 부족 미흡한 툴 활용력 마지막으로 단위 테스트의 중요성에 대한 인식 부족 인터페이스가 직관적이지 않다, (사용법을 오해하기 쉽다.) 이책의 목표는 필요한 기본 지식 그 이상을 제공 하는데 있음 목 방식 & in-container 방식 JUnit 서드파티 확장 툴 최신JUnit으로의 이동과 선호하는 IDE로의 통합 1장 소프트웨어 개발의 역사에서 이토록 많은 사람이 이렇게 짧은 코드로부터 이토록 큰 도움을 받은 적이 없었다. - 마틴 파울러 개발자 인수 테스트(acceptance test) 코딩하고, 컴파일하고, 실행하고 프로그램 실행은 자연스럽게 테스트를 동반함 간단한 패턴: 데이터를 넣고, 확인하고, 수..
https://unix.stackexchange.com/questions/325705/why-is-pattern-command-true-useful/325727 Why is pattern "command || true" useful? I am currently exploring Debian packages, and I have been reading some code samples. And on every line in, for example, the postinst script is a pattern. some command || true another command || tr... unix.stackexchange.com
public static String getClassName() { return getClassName(2); } public static String getClassName(int depth) { Exception e = new Exception(); e.fillInStackTrace(); return e.getStackTrace()[depth].getClassName(); } public static String getMethodName() { return getMethodName(2); } public static String getMethodName(int depth) { Exception e = new Exception(); e.fillInStackTrace(); return e.getStack..
ln -s /home/seunggabi/tmp /tmp
https://jeong-pro.tistory.com/186 @Scheduled 사용법, 스케줄러 커스터마이징을 통한 제어(+스케줄러에 등록한 작업 중지하는 방법, @Scheduled 사용법 주기적인 작업이 있을 때 @Scheduled 애노테이션을 사용하면 쉽게 적용할 수 있다. ex) linux의 crontab 1. @EnableScheduling Annotation을 적어서 스케줄링을 사용한다는 것을 알린다. @Enab.. jeong-pro.tistory.com
https://d2.naver.com/helloworld/106824 https://supawer0728.github.io/2018/03/11/hazelcast/ Hazelcast 공유 In-Memory Data GridIn-Memory Data Grid(IMDG)에 관해서http://d2.naver.com/helloworld/106824 요약 분산 저장(scale out) 메모리를 사용한다 보통 객체를 저장한다(serialize) Lock, Transaction, Sharding을 지원한다 supawer0728.github.io https://pkgonan.github.io/2018/10/hazelcast-hibernate-second-level-cache Local Cache 와 Invalidatio..
https://velog.io/@hotdari90/Async-Sync-Blocking-Non-Blocking Async & Sync, Blocking & Non-Blocking RxJS 스트림에 대해서 공부하기전에 동기와 비동기, 블록과 논블록에 대해서 알아두고 가야했다. Acync & Sync 호출되는 함수의 작업 완료 여부를 신경쓰느냐 마느냐가 관점이다. Blocking & Non-Blocing velog.io https://baek-kim-dev.site/38 [카카오 면접] Blocking I/O, Syncronous Non-Blocking I/O, Asyncronous Non-Blocking I/O 카카오 면접을 준비하면서, 공부했던 내용을 정리해놓고 다시 기억하기 위한 포스팅 다른 관심사 Bl..
https://bcho.tistory.com/1247 Circuit breaker 패턴을 이용한 장애에 강한 MSA 서비스 구현하기 #1 - Circuit breaker와 넷플릭스 Hystrix Circuit breaker 패턴을 이용한 장애에 강한 MSA 서비스 구현하기 #1 Circuit breaker와 넷플릭스 Hystrix 조대협 (http://bcho.tistory.com) MSA에서 서비스간 장애 전파 마이크로 서비스 아키텍쳐 패턴은 시스템.. bcho.tistory.com https://github.com/Netflix/Hystrix GitHub - Netflix/Hystrix: Hystrix is a latency and fault tolerance library designed to is..
List intList = Arrays.asList(2, 3, 6, 4, 23, 10); Integer maxValue = intList.stream() .max(Comparator.comparing(x -> x)) .orElse(0); Integer minValue = intList.stream() .min(Comparator.comparing(x -> x)) .orElse(0); https://blog.advenoh.pe.kr/java/%EC%9E%90%EB%B0%948-%EC%8A%A4%ED%8A%B8%EB%A6%BC-%EC%82%AC%EC%9A%A9%ED%95%B4%EC%84%9C-max%EA%B0%92-%EC%B6%94%EC%B6%9C%ED%95%98%EA%B8%B0/ 자바8 스트림 사용해서 m..
import java.lang.ref.SoftReference; import java.lang.ref.WeakReference; import java.util.LinkedList; import java.util.List; public class Main { private static class BigData { private int[] array = new int[2500]; //10000byte, 10K } private static class ReferenceTest { private List weakRefs = new LinkedList(); private List softRefs = new LinkedList(); private List strongRefs = new LinkedList(); pu..
https://somjang.tistory.com/entry/MAC-%EB%A7%A5%EB%B6%81-%ED%84%B0%EB%AF%B8%EB%84%90%EC%97%90%EC%84%9C-wget-%EC%84%A4%EC%B9%98%ED%95%98%EC%97%AC-%EC%82%AC%EC%9A%A9%ED%95%98%EB%8A%94-%EB%B0%A9%EB%B2%95-feat-HomeBrew [MAC] 맥북 터미널에서 wget 설치하여 사용하는 방법! ( feat. HomeBrew) Ubuntu에서 wget을 활용하여 파일 다운로드를 잘 받고 있다가 맥북의 터미널에서 wget을 활용하여 파일 다운로드를 받으려고 하니 -bash: wget: command not found 위와 같이 wget 명령어가 없다는 내용만 ..
- Thread-safe - Null - Enumeration - 보조 해시 사용 여부 - 지속 개선 https://shlee0882.tistory.com/44 fail-fast 방식 개념 Iterator를 학습하는 도중 Enumeration과 Iterator를 비교하는 글을 보게 되어 정리하게 되었다. 1. Enumeration이란? Enumeration은 객체들의 집합(Vector)에서 각각의 객체들을 한순간에 하나씩 처리할 수 있는. shlee0882.tistory.com https://devlog-wjdrbs96.tistory.com/m/253 [Java] HashMap vs Hashtable 차이는 무엇일까? Hashtable 이란? Hashtable 클래스는 컬렉션 프레임웍이 만들어지기 이전부..
curl -O https://archive.apache.org/dist/spark/spark-3.2.0/spark-3.2.0-bin-hadoop3.2.tgz tar -xf spark-3.2.0-bin-hadoop3.2.tgz https://archive.apache.org/dist/spark/spark-3.2.0/ Index of /dist/spark/spark-3.2.0 archive.apache.org ./bin/spark-shell WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.apache.spark.unsafe.Platform (file:/Users/seungg..
import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; public class Solution { static Map map = new HashMap(); public int[] solution(String[] info, String[] query) { int[] answer = new int[query.length]; for (int i = 0; i < info.length; i++) { String[] arr = info[i].split(" "); dfs(arr.length - 1, "", 0, arr); } for (Strin..
https://www.linkedin.com/pulse/read-write-operations-hbase-prateek-kumar/ Read and Write Operations in HBase HBase is the open source implementation of Google’s Big Table, with slight modifications. HBase was created in 2007 and was initially a part of contributions to Hadoop which later became a top level Apache project. www.linkedin.com https://mrsence.tistory.com/36 HBase 소개 # HBase ---------..
import java.util.PriorityQueue; public class Solution { public int solution(int[] scoville, int K) { PriorityQueue queue = new PriorityQueue(); for (int i : scoville) { queue.add(i); } int answer = 0; while (true) { if (queue.peek() >= K) { return answer; } if (queue.size() < 2) { break; } int a = queue.poll(); int b = queue.poll(); queue.add(a + b * 2); answer++; } return -1; } } https://coding..
private boolean check(String s, int left, int right) { while (left = right) { return true; } return false; } https://leetcode.com/problems/valid-palindrome-ii/submissions/ Valid Palindrome II - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com
Arrays.stream(arr) .boxed() .max(Comparator.comparing(i -> i)) .orElse(0); https://blog.advenoh.pe.kr/java/%EC%9E%90%EB%B0%948-%EC%8A%A4%ED%8A%B8%EB%A6%BC-%EC%82%AC%EC%9A%A9%ED%95%B4%EC%84%9C-max%EA%B0%92-%EC%B6%94%EC%B6%9C%ED%95%98%EA%B8%B0/ 자바8 스트림 사용해서 max, min 값 찾기 1. 들어가며 자바8의 스트림 API를 사용해서 List나 배열에서 max, min 값을 찾는 방법에 대해서 알아보자. 2. 스트림을 사용하여 max 값 찾기 2.1 숫자 List에서 Max 값 찾기 : 숫자 List에서 max…..
https://jaemunbro.medium.com/apache-spark-partition-pruning%EA%B3%BC-predicate-pushdown-bd3948dcb1b6 [Apache Spark] Partition Pruning과 Predicate Pushdown Spark에서 read성능을 올려주는 주요한 기능들인 Partition Pruning과 Predicate Pushdown에 대해서 간단히 정리해보자. jaemunbro.medium.com
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/Ndc5k/btrodART2tC/lJ3kGlAjLgKiqI3hVc2PQ1/img.png)
### Row Oriented 하나의 Row 데이터를 추가/삭제할때 하나의 페이지만 사용하기에 좋다. 하나의 Row의 대부분의 컬럼을 읽어야 하거나 변경하는 경우 하나의 Read/Write로 가능하다. 모든 Row를 읽는 경우 불필요한 Column값을 다 읽어야 한다. Page의 사용하지 않는 공간까지 읽어야 한다. ### Column Oriented 다수의 컬럼을 조회하는 상황이라면 쓸모가 없어보인다. 오히려 결과를 합치는 작업 비용이 더 커져서 느릴 경우가 발생할 거 같다. Row형으로 저장하는 대신 Column으로 저장하는 방식이다. 모든 Column들은 개별적으로 다뤄지며 Column별로 연속적으로 저장된다. Column별로 데이터가 저장되기때문에 압축에도 높은 효율을 얻을 수 있다. https:..
http://beginnershadoop.com/2019/09/27/spark-jobs-stages-tasks/ Spark Jobs, Stages, Tasks Every distributed computation is divided in small parts called jobs, stages and tasks. It’s useful to know them especially during monitoring because it helps to detect bottlenecks. Job -… beginnershadoop.com job: action stage: each shuffle map & result type task https://eyeballs.tistory.com/206 [Spark] 기술 질문..
- Total
- Today
- Yesterday
- 테슬라 리퍼럴 코드 혜택
- 할인
- 메디파크 내과 전문의 의학박사 김영수
- 김달
- 테슬라 크레딧 사용
- 어떻게 능력을 보여줄 것인가?
- 테슬라 리퍼럴 코드
- 테슬라 레퍼럴 적용 확인
- 테슬라 추천
- Bot
- 레퍼럴
- 모델 Y 레퍼럴
- follower
- Kluge
- 개리마커스
- 연애학개론
- 팔로워 수 세기
- 테슬라 레퍼럴 코드 확인
- wlw
- 테슬라 리퍼럴 코드 생성
- 테슬라 레퍼럴
- 책그림
- 테슬라
- 모델y
- 클루지
- COUNT
- 유투브
- 인스타그램
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |