일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- 블록체인
- 그라파나
- 파이썬 동시성
- 스칼라
- 스칼라 동시성
- play 강좌
- 파이썬 데이터분석
- akka 강좌
- 하이퍼레저 패브릭
- Play2 로 웹 개발
- hyperledger fabric
- Actor
- 이더리움
- Hyperledger fabric gossip protocol
- 파이썬 머신러닝
- Golang
- Play2
- 파이썬
- CORDA
- 하이브리드앱
- 엔터프라이즈 블록체인
- Adapter 패턴
- 파이썬 강좌
- 플레이프레임워크
- 스위프트
- 주키퍼
- Akka
- 안드로이드 웹뷰
- play2 강좌
- 스칼라 강좌
- Today
- Total
목록2021/05/15 (4)
HAMA 블로그
컨베이어 공장에서 자동차가 완성 될 때 단계별로 조금씩 완성되어 가는 모습을 볼 수 있다. 이런 비슷한 경우는 소프트웨어 개발에서도 흔하며, 그 결과로 관련 패턴들도 매우 다양하게 있지다. Gof의 Chain of Responsibility패턴은 모든 과정을 거치는게 아니라, 처리 할 수 있으면 처리하고, 못하면 다음 녀석에게 넘기는 "의도"를 말한다. 그리고 이 글의 제목이기도 한 Intercepting Filter의 경우는 (웹개발자 라면 친숙한 HTTP가 호출되어서 최종 컨트롤러 까지 갔다가[inbound], 다시 HTTP리턴을 해주는[outbound] 모습을 상상해 보자) 단계별로 모든 처리를 진행해서 타겟까지 호출되고, 타겟에서 최종 처리된 결과를 역순의 단계로 다시 돌아오는 모형에서 중간 중간..
Dynamic Proxy & Reflection 1 class Tuple3 (val name:String, val age: Int, val rate: Double){ fun size(): Int { return 3 } fun getValue(index: Int): Any?{ return when(index) { 0 -> name 1 -> age 2 -> rate else -> null } } } class RemoteService{ fun action(req: Any?): Tuple3 { //do something return Tuple3("tom", 1, 1.2) } } /// data class Row(val name: String, val age: Int, val rate: Double) inter..
import jdk.nashorn.internal.ir.Block import java.util.concurrent.locks.ReentrantLock import kotlin.concurrent.thread import kotlin.concurrent.withLock class Future { lateinit var result: String var isDone = false val lock = ReentrantLock() val condition = lock.newCondition() fun get() : String { if(isDone) return result // (1) lock.withLock { condition.await() } return result } fun set(result: S..
interface Account { } class EthreumAccount(val gas: Int) : Account{ } class FabricAccount(val org: String) : Account { } class BlockChain(val networks : Map) { fun send(account: Account) { when(account) { is EthreumAccount -> { val gas = account.gas val network = networks.get("eth") println("send to ${network} with gas: ${gas}") } is FabricAccount -> { val org = account.org val network = network..