기존의 어플리케이션은 상대적으로 투명하지 않고 단일 장애 지점(Single Point of Failure)을 가지고 있으며 네트워크 검열을 방지할 수 없는 것이 중앙 집중화된 애플리케이션의 문제 중 일부다. 이러한 우려로 인해 탈 중앙화 애플리케이션으로…
📚@RunWith 이란?
JUnit framework 가 기본 runner 가 아닌 사용자가 지정한 runner로 돌리도록 해주는 것. A Runner class is responsible to run JUnit…
클래스와 인스턴스 선언에 타입 매개변수(type parameter)가 쓰이면, 이를 제네릭 클래스(generic class) 혹은 제네릭 인터페이스(generic interface)라 한다. 제네릭 클래스와 제네릭 인터페이스를 통틀어 제네릭 타입(generic type)라고 한다.
전통적으로 도구나 프레임워크가 특별히 다뤄야 할 프로그램 요소에는 구분되는 명명 패턴을 적용해왔다. (ex. 테스트 메서드의 이름은 무조건 test로 시작해야 했다.)
이 방법의 단점
📚 writeObject, readObject란?기본적인 자바 직렬화 또는 역직렬화 과정에서 별도의 처리가 필요할 때는 writeObject와 readObject 메서드를 클래스 내부에 선언해주면 된다. 물론 해당 클래스는 Serializable 인터페이스를 구현한 직렬화 대상 클래스여야 한다. 직렬화 과정에서는 writeObject가 역직렬화 과정에서는 readObject 메서드가 자동으로 호출된다.
writeObject
readObject
Serializable
JPA를 공부하다보면 ‘JPA는 패러다임 불일치를 해결한다’는 말을 항상 듣게된다. 그동안 ‘아~ 패러다임을 해결하는구나’ 로만 이해하고 넘어갔었는데 오늘 김영한님 JPA 강의 보고 깔끔하게 정리해주셔서…
인터페이스는 자신을 구현한 클래스의 인스턴스를 참조할 수 있는 타입 역할을 한다. 클래스가 어떤 인터페이스를 구현한다는 것은 자신의 인스턴스로 무엇을 할 수 있는지를 클라이언트에 얘기해주는 것이다. 인터페이스는 오직 이 용도로만 사용해야 한다.
상수 인터페이스란 메서드 없이, 상수를 뜻하는 static final 필드로만 가득 찬 인터페이스를 말한다. 밑의 예는 인터페이스를 잘못 사용한 예다.
아래 출처 블로그에서 내가 필요하다고 생각하는 부분만 추려서 번역해보았다.
swarm mode는 여러 개의 도커 엔진에 같은 컨테이너를 분산해서 할당하기 때문에 각 도커 데몬의 네트워크가 하나로 묶인, 이른바 네트워크 풀이 필요합니다. 이뿐만 아니라 서비스를 외부로…
이더리움은 DApp을 배포할 수 있는 탈중앙화 플랫폼이다. 스마트 컨트랙트(어떠한 다운타임, 검열, 사기 행위, 제3자 간섭 없이 프로그래밍된 대로 정확히 실행되는 프로그램)는 솔리디티 프로그래밍 언어를 이용해 작성된다. (솔리디티 말고도 LLL, Serpent 등 여러가지 언어로 작성될 수 있다) 이더리움은 이더라고 불리는 내부 화폐를 가지고 있다. 스마트 컨트랙트를 배포하거나 함수를…