본문 바로가기 메뉴 바로가기

Programming makes everything

프로필사진
  • Git Blog
  • GitHub
  • LinkedIn
  • Facebook
  • Instagram
  • Email

Programming makes everything

검색하기 폼
  • All Categories
    • Architecture
      • Front-End
      • Back-End
      • Design Pattern
    • Computer Language
      • Scala
      • Kotlin
      • Python
      • Java
    • Data Engineering
      • Spark
      • HQL
      • Airflow
    • Development Tools
      • IntelliJ
      • GitHub
  • 방명록

[Java library] How to Use FastText4J Library

Save fastest model bin file to AWS S3 Import FastText4J library to Spring java project dependency "com.github.linkfluence:fastText4j:0.2.1" compile('com.github.linkfluence:fastText4j') get fasttext model bin file from S3(Use AWS aws-java-sdk-s3 library) load FastText class with model bin InputStream modelBinary; FastText fastText = FastText.loadModel(modelBinary); call predict function t..

Architecture/Back-End 2020. 5. 8. 21:55
[Kotlin] How to use Null safely

One of the most common errors in many programming languages, including Java, is that accessing a member without a reference value results in a null reference exception. In Java, this is equivalent to NullPointerException or NPE. Tony Hoare who applied NPE first time said. "I call it my billion-dollar mistake." Kotlin is basically developed to not allow nulls when defining variables, and even if ..

Computer Language/Kotlin 2019. 8. 26. 10:51
[Kotlin] Null 을 안전하게 사용하는 방법

Java를 포함한 많은 프로그래밍 언어에서 가장 대표적인 오류중 하나는 참조값이 없는 멤버에 액세스하면 널 참조 예외가 발생한다는 것입니다. Java에서 이것은 NullPointerException 또는 NPE와 동일합니다. 이 Null을 처음 도입한 Tony Hoare 가 다음과 같이 말했다고 합니다. 'I call it my billion-dollar mistake.' 코틀린에서는 기본적으로 변수를 정의할때 Null을 허용하지 않도록 개발되었고, null을 허용하더라도 컴파일할때 null 참조할 가능성을 다 체크해주어 안전하게 프로그램을 짤 수 있는 장점이 있습니다.(제 개인적으로 코틀린의 가장 큰 장점입니다.) Null을 허용하지 않는 변수 vs Null을 허용하는 변수 fun tes..

Computer Language/Kotlin 2019. 8. 7. 22:43
이전 1 다음
이전 다음
TAG
  • Java
  • Ultimate Edition
  • idea
  • Kotlin 1.3
  • NullPointerException
  • spring boot
  • kotlin
  • Gradle
  • NPE
  • IntelliJ
more
Recent Post
Follow
  • Blog
  • Github
  • LinkedIn

Blog is powered by Tistory / Designed by Tistory / Management Page

티스토리툴바