본문 바로가기

개발이야기

Web-Safe Base64-Encoding Base 64 Encoding with URL and Filename Safe Alphabet ( web-safe Base64 ) RFC 4648 secion 5. 5. Base 64 Encoding with URL and Filename Safe Alphabet The Base 64 encoding with an URL and filename safe alphabet has been used in [12]. An alternative alphabet has been suggested that would use "~" as the 63rd character. Since the "~" character has special meaning in some file system environments, the .. 더보기
Idempotency (멱등성) 한국의 일반적인 경우는 동일한 결제 요청이 두번 들어오면 이중 결제가 발생 하거나 혹은 기 결제 건으로 실패 응답을 주는 경우가 많은데요. 알리페이나 구글 같은 외국 회사들은 유일한 requestId 값을 이용해서 이미 처리된 건의 재요청은 이전과 동일한 응답을 주도록 하고 있네요. https://developers.google.com/standard-payments/ Introduction | Standard Payments API | Google Developers This service describes the Google Standard Payments API. developers.google.com Idempotency All method calls within this API must have.. 더보기
구글 io 요약 Google I/O 2019 event summarized https://youtu.be/p5hgDLc618M 더보기
assertThat 이 편해 assertEquals 가 편해 ? 최근에 신입 개발자분 인터뷰를 중에 ... assertEquals를 assertThat 으로 바꿔야 한다 라는 얘기를 들은적 있다. 그분의 주장은 .. " assertThat이 더 직관적이어서 가독성이 뛰어나고 사용하기도 편하다." 였는데 나는 assertEquals(Expected, Actual) 가 100배는 더 편한데.. -_-;; (물론 이런 이유 때문에 그 지원자를 떨어 뜨리진 않았다. ) assertThat( A, is(B)); 은 is 까지 포함 해서 import를 두번 해야 한다. 그리고 ,,, Junit5 에도 assertThat 은 포함되지 못했다. 즉, assertThat을 쓰기 위해 import 2회에 3th-party 라이브러리 까지 추가해야 하는데.. 굳이 이렇게 까지 해서 as.. 더보기
hibernate.dialect auto dectection 3.2 부터 hibernate.dialect 설정을 따로 할 필요가 없었네요. ;; http://docs.jboss.org/hibernate/orm/5.3/userguide/html_single/Hibernate_User_Guide.html#portability-dialectresolver 22.3. Dialect resolution Originally, Hibernate would always require that users specify which dialect to use. In the case of users looking to simultaneously target multiple databases with their build that was problematic. Generally, thi.. 더보기
JoinColumn에 index를 걸어야 할까? 컴퍼니와 브랜치 .. 전형적인 일대다 관계다. Branch.companyId 가 FK로 사용되고 있지만 ... 성능이나 혹은 다른 이유로 FK 제약을 생략한다면 FK 대신 index를 걸어 줘야 할까? 물론 company.getBranches()와 같이 OneToMany relationship을 가진다면 당연히 index를 걸어줘야 한다. 그런데 만약 Branch.getCompany()와 같이 ManyToOne 단방향 관계만 가진다면 .. index가 필요할까? 조인 쿼리 없이 Lazy petch만 사용한다면 branch가 이미 companyId를 알고 있고 company 테이블에서 PK로 조회 하기 때문에 굳이 index 가 없어도 된다. 그런데 조인 쿼리를 사용하는 경우엔 상황에 따라서 풀스캔 타는 .. 더보기
철수 사용법 ( Charles Web Debugging Proxy ) 철수 사용법 ( Charles Web Debugging Proxy ) 이것도 2017년에 만든거라 지금이랑 조금 다를수 있겠지만 .. 더보기
junit5 Jupiter 사용하기 junit5 Jupiter 사용하기 2017년에 팀 세미나를 위해 만든건데.. 공유 해봅니다. 더보기