์ „์ฒด ๊ธ€

์ฝ”๋”ฉํ…Œ์ŠคํŠธ ์ค€๋น„ ๋ธ”๋กœ๊ทธ: https://velog.io/@chaerlo127
๐Ÿ’› ํ…Œ์ŠคํŠธ ์ฝ”๋“œ ์ž‘์„ฑ ์ˆœ์„œ 1. ์‰ฌ์šด ๊ฒฝ์šฐ์—์„œ ์–ด๋ ค์šด ๊ฒฝ์šฐ๋กœ ์ง„ํ–‰ 2. ์˜ˆ์™ธ์ ์ธ ๊ฒฝ์šฐ์—์„œ ์ •์ƒ์ ์œผ๋กœ ์ง„ํ–‰ ๊ทธ๋ ‡๋‹ค๋ฉด ์–ด๋ ค์šด ๊ฒฝ์šฐ๋กœ ์ž‘์„ฑํ•˜๋ฉด ์•ˆ๋˜๋Š” ์ด์œ ๋Š” ๋ญ˜๊นŒ? ๐ŸŒฑ ์ดˆ๋ฐ˜์— ๋ณต์žกํ•œ ํ…Œ์ŠคํŠธ๋ถ€ํ„ฐ ์‹œ์ž‘ํ•˜๋ฉด ์•ˆ๋˜๋Š” ์ด์œ  ์ดˆ๋ฐ˜์— ๋ณต์žกํ•˜๊ฒŒ ์‹œ์ž‘ํ•˜๋ฉด ํ•œ ๋ฒˆ์— ๊ตฌํ˜„ํ•ด์•ผ ํ•˜๋Š” ์ฝ”๋“œ๊ฐ€ ๋งŽ์•„์ง„๋‹ค. if ๋ฌธ์ด ๋Š˜์–ด๋‚  ์ˆ˜๋„ ์žˆ๊ณ  ํ•œ๋ฒˆ์— ๋งŽ์€ ์ฝ”๋“œ๋ฅผ ๋งŒ๋“ค๋‹ค๋ณด๋ฉด ๋‚˜๋„ ๋ชจ๋ฅด๊ฒŒ ๋ฒ„๊ทธ๋ฅผ ๋งŒ๋“ค๊ณ  ๋‚˜์ค‘์— ๋ฒ„๊ทธ๋ฅผ ์žก๊ธฐ ์œ„ํ•ด ๋งŽ์€ ์‹œ๊ฐ„์„ ํ—ˆ๋น„ํ•˜๊ฒŒ ๋œ๋‹ค. ๐ŸŒฑ ๊ตฌํ˜„ํ•˜๊ธฐ ์‰ฌ์šด ํ…Œ์ŠคํŠธ๋ถ€ํ„ฐ ์‹œ์ž‘ํ•˜๊ธฐ ๋ณดํ†ต ์ˆ˜๋ถ„ ๋‚ด์— ๊ตฌํ˜„์„ ์™„๋ฃŒํ•˜๊ณ  ํ†ต๊ณผํ•  ์ˆ˜ ์žˆ๋Š” ํ…Œ์ŠคํŠธ ๊ตฌํ˜„์„ ์„ ํƒํ•ด์•ผ ํ•œ๋‹ค. Chapter 2์—์„œ ํ–ˆ๋˜ ์•”ํ˜ธ ๊ฐ•๋„ ์ธก์ • ์˜ˆ์—์„œ๋Š” ๋‹ค์Œ ์ค‘ ํ•˜๋‚˜๊ฐ€ ์‰ฌ์šธ ๊ฒƒ์ด๋‹ค. 1. ๋ชจ๋“  ์กฐ๊ฑด์—์„œ ์ถฉ์กฑํ•˜๋Š” ๊ฒฝ์šฐ 2. ๋ชจ๋“  ์กฐ๊ฑด์—์„œ ์ถฉ์กฑํ•˜์ง€ ์•Š๋Š” ๊ฒฝ์šฐ 1๋ฒˆ์˜ ๊ฒฝ์šฐ ๋ชจ๋“  ์กฐ๊ฑด์„ ..
์†Œ์†๋œ GDSC MJU์—์„œ TDD ์Šคํ„ฐ๋””๋ฅผ ์‹œ์ž‘ํ•˜์—ฌ, ๋‹ค์Œ ์ฑ…์„ ์ •๋ฆฌํ•˜๋Š” ๋ธ”๋กœ๊ทธ ํฌ์ŠคํŒ…์„ ์ง„ํ–‰ํ•˜๊ณ ์ž ํ•œ๋‹ค. ํ…Œ์ŠคํŠธ ์ฃผ๋„ ๊ฐœ๋ฐœ ์‹œ์ž‘ํ•˜๊ธฐ - YES24 TDD(Test-Driven Development)๋Š” ํ…Œ์ŠคํŠธ๋ถ€ํ„ฐ ์‹œ์ž‘ํ•œ๋‹ค. ๊ตฌํ˜„์„ ๋จผ์ € ํ•˜๊ณ  ๋‚˜์ค‘์— ํ…Œ์ŠคํŠธํ•˜๋Š” ๊ฒƒ์ด ์•„๋‹ˆ๋ผ ๋จผ์ € ํ…Œ์ŠคํŠธ๋ฅผ ํ•˜๊ณ  ๊ทธ๋‹ค์Œ์— ๊ตฌํ˜„ํ•œ๋‹ค. ๊ตฌํ˜„ ์ฝ”๋“œ๊ฐ€ ์—†๋Š”๋ฐ ์–ด๋–ป๊ฒŒ ํ…Œ์ŠคํŠธํ•  ์ˆ˜ ์žˆ์„๊นŒ? ์—ฌ๊ธฐ www.yes24.com ๐Ÿ€ TDD Chapter 1: TDD ๊ฐœ๋ฐœ ์ค€๋น„ ๊ฐ„๋‹จํ•˜๊ธฐ ๋•Œ๋ฌธ์— build.gradle ์„ค์ •๋งŒ ์ž‘์„ฑํ•˜๊ณ  ๋„˜์–ด๊ฐ„๋‹ค. dependencies { implementation 'org.springframework.boot:spring-boot-starter' testImplementation 'org.springframework..
1002๋ฒˆ: ํ„ฐ๋ › ๊ฐ ํ…Œ์ŠคํŠธ ์ผ€์ด์Šค๋งˆ๋‹ค ๋ฅ˜์žฌ๋ช…์ด ์žˆ์„ ์ˆ˜ ์žˆ๋Š” ์œ„์น˜์˜ ์ˆ˜๋ฅผ ์ถœ๋ ฅํ•œ๋‹ค. ๋งŒ์•ฝ ๋ฅ˜์žฌ๋ช…์ด ์žˆ์„ ์ˆ˜ ์žˆ๋Š” ์œ„์น˜์˜ ๊ฐœ์ˆ˜๊ฐ€ ๋ฌดํ•œ๋Œ€์ผ ๊ฒฝ์šฐ์—๋Š” -1์„ ์ถœ๋ ฅํ•œ๋‹ค. www.acmicpc.net ๋ฌธ์ œ๋ฅผ ํ’€๋ฉด์„œ ๊ฐ€์žฅ ๋ฐœ์ƒํ–ˆ๋˜ ์—๋Ÿฌ๋ฅผ ํ•ด๊ฒฐํ•œ ์›์ธ์€ ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค. ์ ‘์ ์ด 2๊ฐœ์ธ ๊ฒƒ์„ ํ™•์ธํ•˜๋Š” ์ฝ”๋“œ ๋ฐ”๋กœ ์œ„์— ์ž‘์„ฑํ•˜๋‹ค๋ณด๋‹ˆ ์ ‘์ ์ด ๋ฌดํ•œ๋Œ€์ž„์—๋„ ๋ถˆ๊ตฌํ•˜๊ณ  ์ ‘์ ์ด 1๊ฐœ, 2๊ฐœ๋กœ ํŒŒ์•…๋˜๋Š” ๊ฒƒ์„ ํ™•์ธํ•˜์˜€๋‹ค. ๋”ฐ๋ผ์„œ ์ ‘์ ์ด ๋ฌดํ•œ๋Œ€์˜ ๊ฒฝ์šฐ, ๊ฐ€์žฅ ์ฒ˜์Œ ํ™•์ธํ•ด์•ผํ•˜๋Š” ๋ถ€๋ถ„์œผ๋กœ ์กฐ๊ฑด๋ฌธ ๋งจ ์•ž ๋ถ€๋ถ„์— ์ž‘์„ฑํ•ด์ค˜์•ผ ํ•œ๋‹ค. import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokeni..
Proxy Server ์—ฐ๊ฒฐ์€ ๋ณธ domain ํ˜น์€ ip์— ํ•˜์ง€ ์•Š๊ณ  Sub Domain์— ์—ฐ๊ฒฐํ•˜๊ณ  ์‹ถ๋‹ค๋ฉด ๋‹ค์Œ ์œ„์น˜์— Proxy Server Code๋ฅผ ์ž‘์„ฑํ•ด๋‘๋ฉด ๋œ๋‹ค. prod subDomain์— ์—ฐ๊ฒฐํ•ด ๋‘˜ ๊ฒƒ์ด๊ธฐ ๋•Œ๋ฌธ์— ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ž‘์„ฑํ•œ๋‹ค. server { root /var/www/html/prod; index index.php index.html index.htm index.nginx-debian.html; server_name prod.๋„๋ฉ”์ธ์ด๋ฆ„.shop; location / { proxy_pass http://localhost:9000; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_..
RoomDB๋ฅผ ์ƒ์„ฑํ•˜์—ฌ ๊ณผ์ œ๋ฅผ ์ง„ํ–‰ํ•˜๋˜ ์ค‘์— Room cannot verify the data integrity ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค. attirbute์˜ type์„ ๋ณ€ํ™˜ํ•˜์—ฌ ๋‹ค์‹œ ์‹คํ–‰์‹œ์ผฐ๋Š”๋ฐ, RoomDB์— ์ด๋ฏธ ์ƒ์„ฑ ๋˜์–ด ์žˆ๋Š” attirbute์™€ ์ถฉ๋Œ์ด ๋ฐœ์ƒํ•˜์—ฌ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•œ ๊ฒƒ์ด๋‹ค. ๋”ฐ๋ผ์„œ ์ƒˆ๋กœ DB๋ฅผ ์ƒ์„ฑํ•˜์—ฌ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜์˜€๋‹ค. RoomDB๋ฅผ ์ดˆ๊ธฐํ™”ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์ฐพ์•„์•ผ ํ•  ๊ฒƒ ๊ฐ™๋‹ค. @Synchronized fun getInstance(context: Context) : AppDatabase ? { if(appDatabase == null){ synchronized(AppDatabase::class.java){ appDatabase = Room.databaseBuilder( context.applicat..
import java.util.Scanner; public class Main { static int a; static int[] array; static boolean[] check; public static void main(String[] args) { Scanner scanner = new Scanner(System.in); a = scanner.nextInt(); scanner.close(); array = new int[a]; check = new boolean[a]; dsf(0); } private static void dsf(int count) { if(count == a) { for(int i = 0; i
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; public class Main { // attribute static String[] array; static boolean[] check; static ArrayList ans; public static void main(String[] args) { try { BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); int a = Integer.parseInt(bf.readLine()); // ๋ถ€๋“ฑํ˜ธ ๊ฐœ์ˆ˜ arr..
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; // ์ˆœ์—ด์ด ๋‚˜์˜ฌ ์ˆ˜ ์žˆ๋Š” ๋ชจ๋“  ๊ฒฝ์šฐ์˜ ์ˆ˜๋ฅผ ๊ตฌํ•˜๊ณ  ๊ทธ ํ›„์— ์ ˆ๋Œ€ ๊ฐ’์œผ๋กœ ๋”ํ•ด์ค€๋‹ค. public class Main { static int[] array; static int[] array2; static boolean[] check; static int max; static int index; public static void main(String[] args) { try { BufferedReader br = new BufferedReader(new InputStreamRead..
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while(true) { boolean answer = true; String a = scanner.next(); if(a.equals("0")) break; for(int i = 0; i< a.length()/2; i++) { if(a.charAt(i)!=a.charAt(a.length()-i-1)) { answer = false; } } if(answer) System.out.println("yes"); else System.out.println("no"); } scanne..
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Stack; import java.util.StringTokenizer; public class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Stack stack = new Stack(); StringBuilder sb = new StringBuilder(); try { int N = Integer.parseInt(br.readLine())..
chaerlo127
๐Ÿ€ chaeng_ni.develog