HISTORY🔥

    [Test] Hamcrest를 위한 Junit의 assertThat이 Deprecated된 건에 대해

    Replace JUnit assertThat with Hamcrest | jSparrow DocumentationReplace JUnit assertThat with Hamcrest Description The JUnit Assert.assertThat (opens new window) method is deprecated. Its sole purpose is to forward the call to the MatcherAssert.assertThat (opens new window) method defined in Hamcrest 1.3. Therefore, itjsparrow.github.io Hamcrest를 다시 사용해보려고 하던 중assertThat이 Deprecated 되었다는 것을 알게 되었..

    data object!

    얼마전 부터 sealed 내부에서 object를 사용하게 된다면data object 사용을 권장하고 있는 점을 알게 되었습니다. data object가 무엇인지 조사하고 학습한 내용을 정리한 글입니다. 😊 Object declarations and expressions | Kotlin kotlinlang.org 1. data object에서 제공해주는 기능!- toString() : data object의 이름을 반환합니다.- equals() / hashCode() 를 이용해 동등성 검사를 할 수 있습니다.단! custom equals() 또는 hashCode() 메서드를 구현할 수는 없습니다. 또한 equals() 메서드는 동일한 data object에서는 동일한 값을 반환하는 것이 보장됩니다.fun..

    [Compose Internal] changed 예시 코드 분석

    Compose Internal을 읽어보면서 궁금했던 점에 자료를 찾아보면서이해한 내용을 정리한 글입니다. ☺️ 혹시 잘못된 점이 있다면 댓글 부탁드립니다!! 🙇🏻‍♀️ @Composablefun Header ( text: String, $composer: Composer, $changed: Int) { var $dirty = $changed if ($changed and 0b0110 === 0) { $dirty = $dirty or if ($composer.changed(text)) 0b0010 else 0b0100 } if ($dirty and 0b1011 xor 0b1010 !== 0 || !$composer.skipping) { f(text) ..