์ „์ฒด ๊ธ€

๐Ÿ‘ฉ‍๐Ÿ’ป java, mysql, android, php, javascript๋ฅผ ๋‹ค๋ฃน๋‹ˆ๋‹ค
์›ํ•˜๋Š” ๊ตฌํ˜„๊ธฐ๋Šฅ 1. ๋ชจ๋‹ฌ์ฐฝ์„ ์—ด๊ณ , ์‚ฌ์šฉ์ž๊ฐ€ ์ž…๋ ฅ๋ž€์„ ์ž‘์„ฑํ•œ๋‹ค 2. ๋ชจ๋‹ฌ์ฐฝ์˜ ์ž‘์„ฑ ์•„์ด์ฝ˜์„ ํด๋ฆญํ•˜๋ฉด ์‚ฌ์šฉ์ž ์ž…๋ ฅ๋ฐ์ดํ„ฐ๊ฐ€ ์ƒˆ๋กœ์šด ๋ฉ”๋ชจ๋กœ ํ™”๋ฉด์— ์—…๋กœ๋“œ ๋œ๋‹ค 2๋ฒˆ์—์„œ 2์ผ ๋™์•ˆ์„ ๊ณ ๋ฏผํ–ˆ๋‹ค. ๋‹ค์Œ์€ ๋‚ด๊ฐ€ ์‹œ๋„ํ•œ ๋ฐฉ๋ฒ•๊ณผ ๊ฒฐ๊ณผ๋“ค์ด๋‹ค. 1. ์ƒํƒœ๋ฅผ ๋‹ค๋ฅธ ์ปดํฌ๋„ŒํŠธ์—์„œ ๊ฐ€์ ธ์˜ค๋ ค๊ณ  useSelector ์‚ฌ์šฉ (ํ™”๋ฉด์ด ๋ Œ๋”๋ง๋ ๋•Œ ์ดˆ๊ธฐ๊ฐ’๋งŒ ๊ฐ€์ ธ์˜ค๊ณ , ์—…๋ฐ์ดํŠธ๊ฐ€ ๋˜์ง€์•Š์•˜๋‹ค) => ์ด์œ ๋Š” TodoItem ์ปดํฌ๋„ŒํŠธ ๋‚ด์—์„œ ์–ด๋–ค ๋™์ž‘์„ ํ•˜๊ณ , ์ƒํƒœ๋ฅผ ๋ณ€๊ฒฝํ•ด์ค˜์•ผ ํ•˜๋Š” ๊ฒฝ์šฐ์— useSelector๋กœ ์žก์•„์„œ ์“ฐ๋Š”๊ฒŒ ๋งž๋‹ค. => ๊ทธ๋Ÿฐ๋ฐ, useSelector๋Š” ์ƒํƒœ๋ณ€ํ™”๋ฅผ ์‹œํ‚ค๋Š” ํ›…์ด ์•„๋‹ˆ๊ธฐ ๋•Œ๋ฌธ์— ์ด ๋ฐฉ๋ฒ•๋„ ์•„๋‹ˆ๋‹ค 2. Redux์˜ reducer๋กœ ์ƒํƒœ๋ณ€ํ™”๋„ ์‹œ์ผœ๋ณด์•„๋„ ๋งด๋Œ์•˜๋‹ค => ์ƒํƒœ๋ณ€ํ™”์˜ ์˜์—ญ์ด ๋ชจ๋‹ฌ๋กœ ์ œํ•œ๋˜๋Š” ๋Š๋‚Œ์ž…๋‹ˆ๋‹ค 3. ๋ถ€..
ยท React
์ฝ”๋“œ๋ฅผ ์น˜๊ณ  ํ™”๋ฉด์„ ๋ Œ๋”๋ง ํ•˜๋‹ˆ ์ด๋Ÿฐ ์˜ค๋ฅ˜๊ฐ€ ๋–ด๋‹ค. ๊ฒ๋จน์ง€ ๋ง๊ณ , ์ฒซ๋ฒˆ์งธ ์˜ค๋ฅ˜๋ถ€ํ„ฐ ํ•ด๊ฒฐํ•ด๋‚˜๊ฐ€๋ณด๊ฒ ๋‹ค.... react.development.js:209 Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy..
์ตœ๊ทผ๋“ค์–ด ํ”„๋กœ์ ํŠธ๋ฅผ ํ•˜๋‹ค๋ณด๋ฉด ์ž์ž˜ํ•œ ์˜ค๋ฅ˜๊ฐ€ ๋งŽ์ด ๋‚œ๋‹ค. ์ž์ž˜ํ•˜๋‹ค๊ณ  ๋ฌด์‹œํ•˜๋ฉด ์•ˆ๋˜๋Š”๊ฒŒ, ์ฝ”๋“œ ํ•œ์ค„๋งŒ ์ž˜ ๋ชป์จ๋„ ๋ Œ๋”๋ง์ด ์•ˆ๋˜์„œ ํ™”๋ฉด์ด ํฐ๋ฐ”ํƒ•์ด ๋œ๋‹ค. ๋‚ด๊ฐ€ ์™œ ์ด๋ ‡๊ฒŒ ์˜ค๋ฅ˜๊ฐ€ ๋งŽ์ด ๋‚ ๊นŒ? ์ƒ๊ฐํ•ด๋ณด๋‹ˆ ๋‚˜๋Š” ์ฐธ ๋‚˜์œ ์Šต๊ด€์„ ๊ฐ€์ง€๊ณ  ์žˆ์—ˆ๋‹ค. ๊ทธ๋ž˜์„œ, ๋‚˜์œ ์Šต๊ด€์„ ๊ณ ์น˜๊ธฐ ์œ„ํ•œ ๊ฐ•๋ ฅํ•œ ํ•ด๊ฒฐ๋ฐฉ๋ฒ•์ด ํ•„์š”ํ–ˆ๋‹ค. ๋‚œ ์˜ค๋Š˜๋ถ€ํ„ฐ ํ”„๋กœ์ ํŠธ๋ฅผ ํ•˜๋ฉด์„œ ์˜ค๋ฅ˜๋ฅผ ๋งˆ์ฃผ์น˜๋ฉด, ๊ทธ ์˜ค๋ฅ˜์˜ ์›์ธ์„ ํŒŒ์•…ํ•˜๊ณ , ํ•ด๊ฒฐํ•˜๋Š” ๊ทธ ๊ณผ์ •์„ ๋ชจ๋‘ ๋ธ”๋กœ๊ทธ์— ์ ๊ธฐ๋กœ ํ–ˆ๋‹ค. ์–ด๋–ค ์˜ค๋ฅ˜๋Š” 1์‹œ๊ฐ„, ์–ด๋–ค ์˜ค๋ฅ˜๋Š” 2์ผ์ด๋‚˜ ๊ฑธ๋ ค ํ•ด๊ฒฐํ•˜๊ธฐ๋„ ํ•˜์ง€๋งŒ, ๊ฒฐ๋ก ์ ์œผ๋กœ๋Š” ๋ฌธ์ œ์›์ธ์ด ๋ฌด์—‡์ด์—ˆ๊ณ , ์–ด๋–ป๊ฒŒ ํ•ด๊ฒฐํ–ˆ๋Š”์ง€๊ฐ€ ์ค‘์š”ํ•˜๋‹ค๊ณ  ์ƒ๊ฐํ•œ๋‹ค. ๋ฌธ์ œ๋ฅผ ์ฐจ๊ทผ์ฐจ๊ทผ ํ•ด๊ฒฐํ•ด๋‚˜๊ฐ„๋‹ค๋ฉด, ์•ž์œผ๋กœ ๋งˆ์ฃผํ•  ๋ฌธ์ œ์˜ ๊ฒฝ์šฐ์—๋Š” ๊ฑธ๋ฆฌ๋Š” ์‹œ๊ฐ„์ด ์ค„์–ด๋“ค ๊ฒƒ์ด๋‹ค. 1. ์˜์–ด๋กœ ๋œ ์—๋Ÿฌ์ฝ”๋“œ๋ฅผ ์ฝ๊ณ , ์ง๊ด€์ ์œผ๋กœ ํ•ด์„ํ•œ๋‹ค...
ยท Figma
์˜ˆ์ „๋ถ€ํ„ฐ ํด๋ก ์ฝ”๋”ฉ๋ณด๋‹ค ๋‚ด๊ฐ€ ๋””์ž์ธ๋ถ€ํ„ฐ ์† ๋Œ„ ๊ทธ๋Ÿฐ ์ž‘์—…๋ฌผ์„ ๋งŒ๋“ค๊ณ  ์‹ถ์—ˆ๋‹ค... ๊ทธ๋ž˜์„œ ์‹œ์ž‘ํ•˜๊ฒŒ ๋œ ์ธ์ƒ๊ด€๋ฆฌ ์›น! ์ธ์ƒ๊ด€๋ฆฌ ์›น์€ ์ธ์ƒ์„ ๋ฐธ๋Ÿฐ์Šค ์žˆ๊ฒŒ ๊ด€๋ฆฌํ•ด๋ณด๋ฉด ์–ด๋–จ๊นŒ? ์—์„œ ์‹œ์ž‘๋˜์—ˆ๋‹ค. ๊ฑด๊ฐ•, ๋ˆ, ์ธ๊ฐ„๊ด€๊ณ„, ์ž์•„์‹คํ˜„(์ทจ๋ฏธ) ์ด 4๊ฐ€์ง€ ํ•ญ๋ชฉ์— ๋Œ€ํ•ด์„œ ๋ชฉํ‘œ๋ฅผ ์„ธ์šฐ๊ณ , ์ง„ํ–‰์ƒํ™ฉ์— ๋งž๊ฒŒ ๋ชฉํ‘œ๊ธฐ๋ก์„ ์กฐ์ ˆํ•  ์ˆ˜ ์žˆ๋„๋ก ๋งŒ๋“ค์—ˆ๋‹ค. ๋ชฉํ‘œ๋ผ๊ณ  ํ•ด์„œ ๋ญ”๊ฐ€ ๊ฑฐ์ฐฝํ•˜๊ฒŒ ๋Š๊ปด์งˆ ์ˆ˜๋„ ์žˆ์œผ๋‚˜, todolist์˜ ๋ฐœ์ „์ ์ธ ๋ฒ„์ „์ด๋ผ๊ณ  ์ƒ๊ฐํ•˜๋ฉด ์ดํ•ดํ•˜๊ธฐ ์‰ฝ๋‹ค ํ”ผ๊ทธ๋งˆ๋ฅผ ๋งŒ๋“ค๋ฉด์„œ, ๊ทธ๋ž˜๋„ ๋‚˜๋ฆ„ ๊ดœ์ฐฎ์€ ๋””์ž์ธ์— ๋Œ€ํ•ด ๊ณ ๋ฏผํ•ด๋ณด๊ฒŒ ๋˜์—ˆ๊ณ , ํ”ผ๊ทธ๋งˆ๋ฅผ ๋งŒ๋“ค๋ฉด์„œ ์ „์ฒด์ ์ธ ๊ตฌ์กฐ๋‚˜ ์ปดํฌ๋„ŒํŠธ ํŒŒ์•…์ด ๋” ์‰ฌ์›Œ์ ธ์„œ ์ข‹์•˜๋‹ค (๋ฌผ๋ก  ํ”ผ๊ทธ๋งˆ๋ฅผ ๋งŒ๋“œ๋Š” ๊ณผ์ •์€ ํž˜๋“ค์ง€๋งŒ...) ์ด๋ ‡๊ฒŒ ๋ฉ”๋ชจ๋ฅผ ์„ ํƒํ•˜๋ฉด ํŽธ์ง‘๊ณผ ์‚ญ์ œ๊ฐ€ ๊ฐ€๋Šฅํ•˜๋„๋ก ๋ชจ๋‹ฌ์ฐฝ์„ ๋งŒ๋“ค์—ˆ๋‹ค. ํ‰์†Œ์— ์‚ฌ์šฉํ•˜๋˜ ์บ˜๋ฆฐ๋” ..
ยท Github
Github Action ์ด๋ž€? Github Action ์ด๋ž€ Github๊ฐ€ ๊ณต์‹์ ์œผ๋กœ ์ œ๊ณตํ•˜๋Š” ๋นŒ๋“œ, ํ…Œ์ŠคํŠธ, ๋ฐ ๋ฐฐํฌ ํŒŒ์ดํ”„๋ผ์ธ์„ ์ž๋™ํ™”ํ•  ์ˆ˜์žˆ๋Š” CI/CD ํ”Œ๋žซํผ์ž…๋‹ˆ๋‹ค. ๋ ˆํฌ์ง€ํ† ๋ฆฌ์—์„œ Pull Request๋‚˜ push ๊ฐ™์€ ์ด๋ฒคํŠธ๋ฅผ ํŠธ๋ฆฌ๊ฑฐ๋กœ ๊นƒํ—™ ์ž‘์—… ์›Œํฌํ”Œ๋กœ์šฐ(Work Flow)๋ฅผ ๊ตฌ์„ฑํ•  ์ˆ˜์žˆ์Šต๋‹ˆ๋‹ค ์›Œํฌํ”Œ๋กœ์šฐ๋Š” .yml ๋˜๋Š” .yaml ํŒŒ์ผ์— ์˜ํ•ด ๊ตฌ์„ฑ๋˜๋ฉฐ, ํ…Œ์ŠคํŠธ,๋ฐฐํฌ ๋“ฑ ๊ธฐ๋Šฅ์— ๋”ฐ๋ผ ์—ฌ๋Ÿฌ๊ฐœ์˜ ์›Œํฌ ํ”Œ๋กœ์šฐ๋กœ๋„ ๋งŒ๋“ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค ์ƒ์„ฑ๋œ ์›Œํฌ ํ”Œ๋กœ์šฐ๋Š” .github/workflows ๋””๋ ‰ํ† ๋ฆฌ ์ดํ•˜์— ์œ„์น˜ํ•ฉ๋‹ˆ๋‹ค YAML ์ด๋ž€? Yet Another Markup Language์˜ ์•ฝ์ž๋กœ, ์‚ฌ๋žŒ์ด ์ฝ์„ ์ˆ˜ ์žˆ๋Š” ๋ฐ์ดํ„ฐ ์ง๋ ฌํ™” ์–ธ์–ด๋ฅผ ์˜๋ฏธํ•ฉ๋‹ˆ๋‹ค. ์—ฌ๊ธฐ์„œ YAML์„ YAML ain’t markup langu..
0. ํ•จ์ˆ˜ํƒ€์ž… ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ํ•จ์ˆ˜๊ฐ€ ์žˆ์„ ๋•Œ, ์ด ํ•จ์ˆ˜๋ฅผ ๋‹ค๋ฅธ ์‚ฌ๋žŒ์—๊ฒŒ ์„ค๋ช…ํ•˜๋Š” ๊ฐ€์žฅ ์ข‹์€ ๋ฐฉ๋ฒ•์€ ์ด ํ•จ์ˆ˜๊ฐ€ ์–ด๋–ค ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ ๋ฐ›๊ณ  ์–ด๋–ค ๊ฐ’์„ ๋ฐ˜ํ™˜ ํ•˜๋Š”์ง€ ์ด์•ผ๊ธฐ ํ•˜๋Š” ๊ฒƒ ์ž…๋‹ˆ๋‹ค. ๊ทธ๋Ÿผ ํƒ€์ž…์Šคํฌ๋ฆฝํŠธ์—์„œ๋Š” ์–ด๋–จ๊นŒ์š”? ์–ด๋–ค ํƒ€์ž…์˜ ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ ๋ฐ›๊ณ , ์–ด๋–ค ํƒ€์ž…์˜ ๊ฐ’์„ ๋ฐ˜ํ™˜ํ•˜๋Š”์ง€ ์ด์•ผ๊ธฐ ํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค. /** * ํ•จ์ˆ˜์˜ ํƒ€์ž… ์ •์˜ํ•˜๊ธฐ */ //ํ•จ์ˆ˜๋ฅผ ์„ค๋ช…ํ•˜๋Š” ๊ฐ€์žฅ ์ข‹์€ ๋ฐฉ๋ฒ• // ์–ด๋–ค ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ ๋ฐ›๊ณ , ์–ด๋–ค ๊ฒฐ๊ณผ๊ฐ’์„ ๋ฐ˜ํ™˜ํ•˜๋Š” ์ง€ ์ด์•ผ๊ธฐ // ์–ด๋–ค [ํƒ€์ž…์˜] ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ ๋ฐ›๊ณ , ์–ด๋–ค [ํƒ€์ž…์˜] ๊ฒฐ๊ณผ๊ฐ’์„ ๋ฐ˜ํ™˜ํ•˜๋Š” ์ง€ ์ด์•ผ๊ธฐ function func(a:number, b:number){ return a+b; //function func(a: number, b: number): number //return ๋ฌธ์„ ๋ณด๊ณ  ํ•จ์ˆ˜ ํƒ€..
1. ํƒ€์ž…์€ ์ง‘ํ•ฉ์ด๋‹ค ํƒ€์ž…์Šคํฌ๋ฆฝํŠธ์˜ 'ํƒ€์ž…'์€ ์‚ฌ์‹ค ์—ฌ๋Ÿฌ๊ฐœ์˜ ๊ฐ’์„ ํฌํ•จํ•˜๋Š” '์ง‘ํ•ฉ'์ž…๋‹ˆ๋‹ค. ๊ทธ๋ฆฌ๊ณ  ์ด๋Ÿฌํ•œ ํƒ€์ž…(์ง‘ํ•ฉ)๋“ค์€ ์ˆ˜์ง๊ด€๊ณ„๋ฅผ ๊ฐ€์ง€๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค let num1:number =10; let num2: 10 = 10; num1 = num2; ํŠน๋ณ„ํžˆ ์„œ๋ธŒ ํƒ€์ž…์˜ ๊ฐ’์„ ์Šˆํผ ํƒ€์ž…์˜ ๊ฐ’์œผ๋กœ ์ทจ๊ธ‰ํ•˜๋Š” ๊ฒƒ์€ ์—… ์บ์ŠคํŒ… ์ด๋ผ๊ณ  ๋ถ€๋ฅด๊ณ  ๋ฐ˜๋Œ€๋Š” ๋‹ค์šด์บ์ŠคํŒ…์ด๋ผ๊ณ  ๋ถ€๋ฆ…๋‹ˆ๋‹ค. ๋”ฐ๋ผ์„œ ์‰ฝ๊ฒŒ ์ •๋ฆฌํ•˜๋ฉด ์—…์บ์ŠคํŒ…์€ ๋ชจ๋“  ์ƒํ™ฉ์— ๊ฐ€๋Šฅํ•˜์ง€๋งŒ ๋‹ค์šด ์บ์ŠคํŒ…์€ ๋Œ€๋ถ€๋ถ„์˜ ์ƒํ™ฉ์— ๋ถˆ๊ฐ€๋Šฅํ•˜๋‹ค๊ณ  ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. 2. ํƒ€์ž…๊ณ„์ธต๋„์™€ ํ•จ๊ป˜ ๊ธฐ๋ณธํƒ€์ž… ์‚ดํŽด๋ณด๊ธฐ /** * unknown ํƒ€์ž… => ๋ชจ๋“  ํƒ€์ž… ์ค‘ ๊ฐ€์žฅ ์Šˆํผํƒ€์ž…(์ „์ฒด์ง‘ํ•ฉ ๊ฐœ๋…) */ function unknownExam(){ let a:unknown =1; //์–ธ๋…ธ์šด์— ์บ์ŠคํŒ…๋˜๋Š”๊ฑฐ ๊ฐ€๋Šฅ(์—…..
ํƒ€์ž…๋ณ„์นญ ํƒ€์ž… ๋ณ„์นญ์„ ์ด์šฉํ•˜๋ฉด ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๋ณ€์ˆ˜๋ฅผ ์„ ์–ธํ•˜๋“ฏ ํƒ€์ž…์„ ๋ณ„๋„๋กœ ์ •์˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. type ํƒ€์ž…_์ด๋ฆ„ = ํƒ€์ž… ํ˜•ํƒœ๋กœ ํƒ€์ž…์„ ์ •์˜ํ•ฉ๋‹ˆ๋‹ค. //ํƒ€์ž…๋ณ„์นญ type User = { id: number; name: string; nickname: string; birth: string; }; // ๊ฐ™์€ ์Šค์ฝ”ํ”„ ๋‚ด์—์„œ๋Š” ์ค‘๋ณต์ •์˜ X function func(){ type User = { // ์ด ์Šค์ฝ”ํ”„ ๋‚ด์—์„œ๋Š” User๋ฅผ ์ด๋Ÿฐ์‹์œผ๋กœ ์ •์˜, ๋ฐ–์—์„œ๋Š” ์ €๋Ÿฐ์‹์œผ๋กœ ์ •์˜ } } let user: User ={ id: 1, name: "์ •์ง€์‘", nickname:"Becky", birth: "1999.06.30", } let user2: User ={ id:2, name:"์ด๋™์›…", nickname: "์ด๋™๊ณฐ..
becky(์ง€์€)
Know yourself, follow your passion