반응형 분류 전체보기149 [Android] Kotlin Android Extensions deprecated 시간이 좀 지난 일이지만 개발 방식을 조금 바꾸게 되어 정리해본다. 안드로이드 4.1 버전에서 새로운 프로젝트 생성 시 기본 플러그인으로 제공하던 apply plugin: 'kotlin-android-extensions'이 제거되고, 기본 'com.android.application'과 'kotlin-android'만 남게 되었음 그렇다면 왜 deprecated되었을까? 내부적인 캐시를 통해 재사용성을 높인 것임 RecyclerView의 ViewHolder에서는 이 재사용성이 지켜지지 않음 디컴파일을 해보지 않으면 알 수 없기 때문에 상당히 많은 개발자가 놓치고 그대로 활용 class SampleViewHolder(itemView: View) : RecyclerView... 2021. 3. 30. [Kotlin] 코틀린 시작하기 모든 내용은 Do it! 코틀린 프로그래밍을 바탕으로 정리한 것입니다. 코틀린(Kotlin)의 탄생 배경 코틀린은 JetBrains에서 개발한 언어 Kotlin/JVM JVM(Java Virtual Machine) 자바 애플리케이션이나 안드로이드 어플리케이션을 만들 수 있음 Kotlin/JS JS(JavaScript) 데이터베이스부터 서버, 클라이언트까지 다루는 풀스택 웹 개발이 가능 Kotlin/Native LLVM 컴파일러를 통해 애플 iOS, 맥 iOS, 안드로이드, 윈도우, 리눅스, 웹 전용 환경의 코드를 만들 수 있음 안드로이드와 iOS에서 모두 구동하는 어플리케이션을 만들 수 있음 임베디드, IoT 등을 타깃으로 한 어플리케이션을 만들 수 있음 코틀린의 장점 자료형 오류를 미리 잡을 수 있는 .. 2021. 3. 30. [MySQL] Weather Observation Station 3 ▶ SQL > Basic Select > Weather Observation Station 3 Problem Query a list of CITY names from STATION for cities that have an even ID number. Print the results in any order, but exclude duplicates from the answer. → 중복X The STATION table is described as follows: My Answer SELECT DISTINCT CITY FROM STATION WHERE ID % 2 = 0 NOTE DISTINCT : unique한 컬럼이나 튜플을 조회하는 경우 사용 정렬하지 않고 결과를 가져옴 GROUP BY에 비해 성능.. 2021. 3. 30. [MySQL] Weather Observation Station 1 ▶ SQL > Basic Select > Weather Observation Station 1 Problem Query a list of CITY and STATE from the STATION table. The STATION table is described as follows: My Answer SELECT CITY, STATE FROM STATION 2021. 3. 30. [MySQL] Japanese Cities' Names SQL > Basic Select > Japanese Cities' Names Problem Query the names of all the Japanese cities in the CITY table. The COUNTRYCODE for Japan is JPN. The CITY table is described as follows: My Answer SELECT NAME FROM CITY WHERE COUNTRYCODE = 'JPN' 2021. 3. 29. [MySQL] Japanese Cities Attributes SQL > Basic Select > Japanese Cities Attributes Problem Query all attributes of every Japanese city in the CITY table. The COUNTRYCODE for Japan is JPN. The CITY table is described as follows: My Answer SELECT * FROM CITY WHERE COUNTRYCODE = 'JPN' 2021. 3. 29. 이전 1 ··· 21 22 23 24 25 다음 반응형