๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๋นˆ ๊ตฌ๋ฉ ์ฑ„์šฐ๊ธฐ

(341)
[SonarQube] Android Project์— SonarSanner ์‹คํ–‰ํ•˜๊ธฐ SonarQube๋ฅผ ์„ค์น˜ํ–ˆ๊ณ , ์ด์ œ ์ •๋ง ์ •์ ๋ถ„์„์„ ์œ„ํ•ด ์ค€๋น„ํ•œ๋‹ค. docs.sonarqube.org/latest/setup/get-started-2-minutes/ Try Out SonarQube | SonarQube Docs From the zip file Download the SonarQube Community Edition zip file. As a non-root user, unzip it, let's say in C:\sonarqube or /opt/sonarqube. As a non-root user, start the SonarQube Server: # On Windows, execute: C:\sonarqube\bin\windows-x86-64\StartSona docs.sonarqub..
[Programming] ๋žŒ๋‹ค์‹ ๋žŒ๋‹คํ•จ์ˆ˜ ๋žŒ๋‹ค์‹ = ๋žŒ๋‹ค ํ•จ์ˆ˜ ๊ฐ’์„ ๋ฐ˜ํ™˜ํ•˜๋Š” ์ฝ”๋“œ ๋ธ”๋Ÿญ. ์ต๋ช… ํ•จ์ˆ˜(Anonymous function)๋ผ๊ณ  ๋ถ€๋ฅด๊ธฐ๋„ ํ•œ๋‹ค. ์žฅ์  ์ฝ”๋“œ๊ฐ€ ๊ฐ„๊ฒฐํ•ด์ง„๋‹ค. ๊ฐ€๋…์„ฑ์ด ํ–ฅ์ƒ๋œ๋‹ค. ๋ฉ€๋ฆฌ์“ฐ๋ ˆ๋“œ๋ฅผ ํ™œ์šฉํ•ด ๋ณ‘๋ ฌ์ฒ˜๋ฆฌ๊ฐ€ ๊ฐ€๋Šฅํ•˜๋‹ค. ๋‹จ์  ๋‚จ์šฉ์‹œ ๊ฐ€๋…์„ฑ์ด ๋–จ์–ด์ง„๋‹ค. ๋””๋ฒ„๊น…์ด ๊นŒ๋‹ค๋กญ๋‹ค.
[Programming] Closure ์‰ฝ๊ฒŒ ์ด์•ผ๊ธฐํ•ด์„œ ๋ณ€์ˆ˜๋กœ ์ €์žฅ๋  ์ˆ˜ ์žˆ๋Š” ํ•จ์ˆ˜. ํ•จ์ˆ˜ ๋ฐ”๊นฅ์— ์ •์˜๋œ ๋ณ€์ˆ˜๋“ค์— ์ ‘๊ทผํ•  ์ˆ˜ ์žˆ๋‹ค.
[Kotlin Coroutines] @ExperimentalCoroutinesApi kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-experimental-coroutines-api/ ExperimentalCoroutinesApi - kotlinx-coroutines-core ExperimentalCoroutinesApi annotation class ExperimentalCoroutinesApi (source) Marks declarations that are still experimental in coroutines API, which means that the design of the corresponding declarations has open issues which may (or m..
[Design Pattern]Producer-Consumer Pattern ์ƒ์‚ฐ์ž-์†Œ๋น„์ž ํŒจํ„ด ๋ฐ์ดํ„ฐ๋ฅผ ์ƒ์‚ฐํ•˜๋Š” ์ฃผ์ฒด(producer, ์ƒ์‚ฐ์ž), ๋ฐ์ดํ„ฐ๋ฅผ ์ฒ˜๋ฆฌํ•˜๋Š” ์ฃผ์ฒด(consumer, ์†Œ๋น„์ž), ๋ฐ์ดํ„ฐ ๋ชฉ๋ก(Channel, buffer ๋“ฑ ๋‹ค์–‘ํ•˜๊ฒŒ ๋ถ€๋ฅด๋”๋ผ)์œผ๋กœ ๋ถ„๋ฆฌ. ๋ฐ์ดํ„ฐ ์ƒ์„ฑ, ์ฒ˜๋ฆฌ ๋ถ€๋ถ„์— ์ค‘๊ฐ„ ์—ฐ๊ฒฐ ๊ณ ๋ฆฌ๋ฅผ ๋‘๋Š” ๊ฒƒ. ๋ฐ์ดํ„ฐ์˜ ํ๋ฆ„ ์ƒ์‚ฐ์ž > ๋ฒ„ํผ(๋ฐ์ดํ„ฐ ๋ชฉ๋ก) > ์†Œ๋น„์ž ์ƒ์‚ฐ์ž๊ฐ€ ์•„์ดํ…œ์„ ์ƒ์‚ฐํ•˜๊ณ  ๊ฐ ์•„์ดํ…œ์„ ๋ฒ„ํผ๊ฐ€ ๊ฐ€๋“์ฐฐ ๋•Œ๊นŒ์ง€ ๋„ฃ๋Š”๋‹ค. ๋ฒ„ํผ์— ์—ฌ์œ  ๊ณต๊ฐ„์ด ์ƒ๊ธฐ๋ฉด ์ƒ์‚ฐ์ž๊ฐ€ ๋‹ค์‹œ ์•„์ดํ…œ์„ ์ƒ์‚ฐํ•ด ๋ฒ„ํผ์— ๋„ฃ๋Š”๋‹ค. ์†Œ๋น„์ž๊ฐ€ ์•„์ดํ…œ์„ ๋ฒ„ํผ์—์„œ ๊บผ๋‚ด ์†Œ๋น„ํ•˜๊ณ , ๋ฒ„ํผ์— ์•„์ดํ…œ์ด ์—†์œผ๋ฉด ๋Œ€๊ธฐํ•œ๋‹ค. ๋ฐ์ดํ„ฐ ์ƒ์‚ฐ ์ฃผ์ฒด์™€ ๋ฐ์ดํ„ฐ ์ฒ˜๋ฆฌ ์ฃผ์ฒด๋ฅผ ๋ถ„๋ฆฌํ–ˆ๊ธฐ์— ์ฝ”๋“œ์˜ coupling์„ ์ค„์ธ๋‹ค. ์ƒ์‚ฐ์ž๋Š” ์†Œ๋น„์ž์— ๋Œ€ํ•ด ์‹ ๊ฒฝ ์“ธ ํ•„์š”๊ฐ€ ์—†๋‹ค. ์†Œ๋น„์ž๋„ ์ƒ์‚ฐ์ž์— ์‹ ๊ฒฝ ์“ธ ํ•„์š”๊ฐ€ ์—†๋‹ค. ๋ฉ€ํ‹ฐ์“ฐ๋ ˆ๋“œ ํ™œ์šฉ์‹œ ์‚ฌ์šฉํ•˜๋Š” ํŒจํ„ด..
[Network] 443 80 http ๊ธฐ๋ณธ ํฌํŠธ : 80 https ๊ธฐ๋ณธ ํฌํŠธ : 443 johngrib.github.io/wiki/why-http-80-https-443/ http์˜ ๊ธฐ๋ณธ ํฌํŠธ๊ฐ€ 80, https์˜ ๊ธฐ๋ณธ ํฌํŠธ๊ฐ€ 443์ธ ์ด์œ ๋Š” ๋ฌด์—‡์ผ๊นŒ? 80์€ ์ฒ˜์Œ๋ถ€ํ„ฐ ์ง€์ •, 443์€ ๋‚˜์ค‘์— ์š”์ฒญ์„ ๋ฐ›์•„ ๋นˆ ๊ณต๊ฐ„์œผ๋กœ ์ˆœ์„œ๋Œ€๋กœ ๋ฐฐ์ • johngrib.github.io ์ƒ์„ธํ•˜๊ฒŒ ์†Œ๊ฐœํ•ด ์ฃผ์…จ๋‹ค.
[SonarQube] SonarQube ์„ค์น˜ ๊ทธ๋ฆฌ๊ณ  ์„ค์น˜ ํ™•์ธ ์šฐ๋‹นํƒ•ํƒ• SonarQube ํ™ˆํŽ˜์ด์ง€์—์„œ ๋‹ค์šด๋กœ๋“œ ํ™”๋ฉด์—์„œ Community๋ฅผ ์„ ํƒ. Download for free. ZIP ํŒŒ์ผ๋กœ ๋‹ค์šด๋กœ๋“œ๋œ ๊ฒƒ์„ ํ™•์ธ docs.sonarqube.org/latest/setup/get-started-2-minutes/ Try Out SonarQube | SonarQube Docs From the zip file Download the SonarQube Community Edition zip file. As a non-root user, unzip it, let's say in C:\sonarqube or /opt/sonarqube. As a non-root user, start the SonarQube Server: # On Windows, execute: C:\sonarqube..
[Java] Version ๊ต์ฒด Java 8์—์„œ Java 11๋กœ ๊ต์ฒดํ•ด์•ผ ํ•  ํ•„์š”๊ฐ€ ์ƒ๊ฒผ๋‹ค. ํ˜„์žฌ Java ๋ฒ„์ „ ํ™•์ธ java -version : ์ž๋ฐ” ๋ฒ„์ „ ํ™•์ธ javac -version : ์ž๋ฐ” ์ปดํŒŒ์ผ๋Ÿฌ ๋ฒ„์ „ ํ™•์ธ ๊ธฐ์กด Java 8 jdk๋ฅผ ๋‚จ๊ฒจ์•ผ ํ• ๊นŒ, ๋ง์•„์•ผ ํ• ๊นŒ ๊ณ ๋ฏผ ์ข€ ํ•˜๊ณ . ์ผ๋‹จ ์ง€์šฐ์ง€ ์•Š๊ณ  ๋‚จ๊ธฐ๊ณ  Java 11์„ ๋‹ค์šด๋กœ๋“œ ๋ฐ›๊ธฐ๋กœ ํ–ˆ๋‹ค. Java SE Development Kit 11 ๋‹ค์šด๋กœ๋“œ ์˜ค๋ผํด Java Download ํŽ˜์ด์ง€ ๊ฐ€์„œ ๋‚ด PC Windows OS์— ๋งž๊ฒŒ Java SE Development Kit 11 ์„ ํƒํ•ด ๋‹ค์šด๋กœ๋“œ๋ฐ›์•˜๋‹ค. ๋„ค. ๋™์˜ํ•ฉ๋‹ˆ๋‹ค. ์˜ค๋ผํด ๊ณ„์ • ๋กœ๊ทธ์ธ ๋‹ค์šด๋กœ๋“œ ํ™•์ธ JDK ์„ค์น˜ exe ํŒŒ์ผ ์‹คํ–‰ ๋‹ค์Œ ์„ค์น˜ ์œ„์น˜ ํ™•์ธ ํ›„ ๋‹ค์Œ. ์„ค์น˜ ์™„๋ฃŒ ๊ธฐ๋‹ค๋ฆผ. ์„ค์น˜ ์™„๋ฃŒ ํ›„ Close ๋ฒ„ํŠผ ํด๋ฆญ. ํ™”๋ฉด ์บก์ณ๋ฅผ..