GithubHelp home page GithubHelp logo

til's People

Contributors

chang12 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

beamrock

til's Issues

hadoop-aws, aws-java-sdk upgrade

새로운 scala 프로젝트를 만들면서, hadoop-aws 2.8.4, aws-java-sdk 1.10.6 를 사용하려고 했었다.
그런데 뭔가 잘 안되서 결국 hadoop-aws 2.7.3, aws-java-sdk 1.7.4 로 회귀했었다.
aws-java-sdk 1.10.6 은 jar 가 2KB 인걸보니... jar 에 코드가 다 있는게 아닌듯.

글감

kotlin

  • companion object 라는 개념은 scala 에서도 들어봤었는데... 어떤 기원이 있을까?
  • higher-order function 쓸때 virtual call 때문에 runtime overhead 가 생긴다?
  • inline fun 는 언제 쓰면 좋은거지?

spark

spring, hibernate

  • hibernate_sequence 에 @Entity 달린 class 개수만큼 record 를 insert 하는 이유가?
  • findById 하고 다시 findById 하면 같은 instance 를 return 한다. SimpleJpaRepository#findById 에서 CrudMethodMetadata 타입의 metadata != null 이라서 그런것 같고, EntityManager 에 비밀이 숨겨져있는 것 같다.
  • FK + Unique constraint 로 참조하고 싶을때, 양쪽에 @OneToOne 을 걸고 한쪽에 mappedBy 를 명시해서 owner side <-> inverse side 로 구현할 수도 있다. 하지만 이 경우 내가 생각하기에 DB 에 컬럼이 반대쪽에 생기는것 같은데... (참조하는쪽에 컬럼이 생겨야 하지 않을까 생각함) 참조하는쪽에 @ManyToOne 으로 필드를 선언하고, @Column 에 argument 로 unique 를 선언하면 어떨까? 그런데 owner side 에서 필드로 inverse side 를 접근할 수 있게 코드를 만들어줄 수 있을지 모르겠다.

글감들

Java

  • atomic 시리즈 : cas(compare and swap) operation 관련하여
  • guice (binding 기법별 간단정리)
  • netty : 밑단이므로 지금 당장은 x
  • Generated annotation과 AbstractProcessor 상속받아 코드 generate 하는 processor 만들기

ETC

  • Thrift : set / get pattern을 간소화시켜준다.
  • ansible, provisioning : Bake 과정에 대한 이해가 필요하다. (spinnaker 맥락)

kotlin

  • safe call operator (?) + let
  • elvis operator (?:)
  • throw 와 return 도 kotlin 에서는 expression 이다. 함수에서 val parent = node.getParent() ?: return null 처럼 쓸 수 있다.
  • NPE 를 원한다면 !! operator
  • safe cast (as?)
  • nullable type 으로 collection 을 만들고, filterNotNull 를 활용할 수 있다.
  • extension properties
  • companion object
  • higher-order function 을 쓸때 virtual call 때문에 runtime overhead 가 생긴다는데...
  • inline fun - 언제 쓰는건지 감이 안온다.

기술 블로그

회사 기술 블로그의 포스트들을 읽으면서, 포스트에서 소개된 링크들까지 살펴보고 이해한다. 예를 들어 카카오 기술 블로그의 "대규모 분산 스토리지(Kage)의 발전과정" 포스트를 읽으면서 포스트에서 링크를 걸어둔 Google File System 논문과, Facebook 의 photo storage 논문까지 읽는 것이다. 블로그에서 오래된 포스트보다 읽기 시작하면, 회사의 기술이 발전해나가는 모양새도 느낄 수 있지 않을까 싶다.

기술 블로그 목록

토이 프로젝트

만들고 싶은 아이디어들을 끄적이는 곳. 그러면서도 방향성이 뚜렷한 토이 프로젝트를 지향한다. 단순히 필요에 의해 만드는것보다도, 새로운 기술 스택에 대한 이해를 쌓을 수 있는 경험의 기회로 만드는 것이다.

spring

  • JUnit test class 에 @SpringBootTest@RunWith(SpringRunner::class) 을 달아야 repository 구현체를 정상적으로 얻을 수 있다.
  • data class 에 @Id@GeneratedValue 달때 getter 에 달아야하는 이유가 무엇일까? 기본적으로는 constructor parameter 에 다는거라서 ElementType enum 이 PARAMETER 로 되려나...
  • mysql database 는 default 로 @GenerationTypeTABLE 로 선택되는 것 같은데... hibernate_sequence 에 record 를 @Entity 달린 class 개수만큼 insert 하는게 의아하다.
  • @OneToMany - 특히 mappedBy field 의 doc 문장이 이해안된다.
  • FetchType
  • @ManyToOne
  • @JoinColumn

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.