๐Ÿ“š Study

Prototype ํŒจํ„ด๐Ÿ’ก ํด๋ž˜์Šค์—์„œ ์ธ์Šคํ„ด์Šค๋ฅผ ์ƒ์„ฑํ•˜๋Š” ๋Œ€์‹  ์ธ์Šคํ„ด์Šค๋กœ๋ถ€ํ„ฐ ๋‹ค๋ฅธ ์ธ์Šคํ„ด์Šค๋ฅผ ์ƒ์„ฑ์ข…๋ฅ˜๊ฐ€ ๋„ˆ๋ฌด ๋งŽ์•„ ํด๋ž˜์Šค๋กœ ์ •๋ฆฌํ•  ์ˆ˜ ์—†๋Š” ๊ฒฝ์šฐ์ทจ๊ธ‰ํ•  ์˜ค๋ธŒ์ ํŠธ์˜ ์ข…๋ฅ˜๊ฐ€ ๋งŽ์•„์„œ ์†Œ์Šค ํŒŒ์ผ์„ ๋งŽ์ด ์ž‘์„ฑํ•ด์•ผ ํ•˜๋Š” ๊ฒฝ์šฐํด๋ž˜์Šค๋กœ๋ถ€ํ„ฐ ์ธ์Šคํ„ด์Šค ์ƒ์„ฑ์ด ์–ด๋ ค์šด ๊ฒฝ์šฐ๋ณต์žกํ•œ ๊ณผ์ •์„ ๊ฑฐ์ณ ๋งŒ๋“ค์–ด์ง€๋Š” ๊ฒƒ์œผ๋กœ ํด๋ž˜์Šค๋กœ๋ถ€ํ„ฐ ๋งŒ๋“ค๊ธฐ๊ฐ€ ๋งค์šฐ ์–ด๋ ค์šด ๊ฒฝ์šฐ์‚ฌ์šฉ์ž ์กฐ์ž‘์œผ๋กœ ๋งŒ๋“ค์–ด์ง„ ์ธ์Šคํ„ด์Šค์™€ ๊ฐ™์€ ๊ฒƒ์„ ๋‹ค์‹œ ๋งŒ๋“ค๊ณ  ์‹ถ์€ ๊ฒฝ์šฐโœ… ํ˜„์žฌ ๋งŒ๋“  ์ธ์Šคํ„ด์Šค๋ฅผ ์ผ๋‹จ ์ €์žฅํ•ด๋‘๊ณ  ๋งŒ๋“ค๊ณ  ์‹ถ์„ ๋•Œ ์ด๋ฅผ ๋ณต์‚ฌํ•˜์—ฌ ์ƒ์„ฑํ”„๋ ˆ์ž„์›Œํฌ์™€ ์ƒ์„ฑํ•˜๋Š” ์ธ์Šคํ„ด์Šค๋ฅผ ๋ถ„๋ฆฌํ•˜๊ณ  ์‹ถ์€ ๊ฒฝ์šฐ์ธ์Šคํ„ด์Šค๋ฅผ ์ƒ์„ฑํ•˜๋Š” ํ”„๋ ˆ์ž„์›Œํฌ๋ฅผ ํŠน์ • ํด๋ž˜์Šค์— ์˜์กดํ•˜์ง€ ์•Š๊ฒŒ ํ•˜๊ณ  ์‹ถ์€ ๊ฒฝ์šฐโœ… ๋ฏธ๋ฆฌ ์›ํ˜•์ด ๋  ์ธ์Šคํ„ด์Šค๋ฅผ ๋“ฑ๋กํ•ด๋‘๊ณ , ๋“ฑ๋ก๋œ ์ธ์Šคํ„ด์Šค๋ฅผ ๋ณต์‚ฌํ•˜์—ฌ ์ƒ์„ฑ Prototype(์›ํ˜•)์ธ์Šคํ„ด์Šค๋ฅผ ๋ณต์‚ฌํ•˜์—ฌ ..
`CoroutineContext` : ์ฝ”๋ฃจํ‹ด์„ ์‹คํ–‰ํ•˜๋Š” ์‹คํ–‰ ํ™˜๊ฒฝ์„ ์„ค์ •ํ•˜๊ณ  ๊ด€๋ฆฌํ•˜๋Š” ์ธํ„ฐํŽ˜์ด์ŠคCoroutine Context ๊ตฌ์„ฑ ์š”์†Œ`CoroutineName` : ์ฝ”๋ฃจํ‹ด ์ด๋ฆ„ ์„ค์ •`CoroutineDispatcher` : ์ฝ”๋ฃจํ‹ด์„ ์Šค๋ ˆ๋“œ์— ํ• ๋‹นํ•ด ์‹คํ–‰`Job`: ์ฝ”๋ฃจํ‹ด์˜ ์ถ”์ƒ์ฒด๋กœ ์ฝ”๋ฃจํ‹ด์„ ์กฐ์ž‘`CoroutineExceptionHandler` : ์ฝ”๋ฃจํ‹ด์—์„œ ๋ฐœ์ƒํ•œ ์˜ˆ์™ธ ์ฒ˜๋ฆฌ Coroutine Context ๊ตฌ์„ฑCoroutine Context ๊ตฌ์„ฑํ‚ค - ๊ฐ’ ์Œ์œผ๋กœ ๊ตฌ์„ฑ ์š”์†Œ๋ฅผ ๊ด€๋ฆฌ`CoroutineContext` ๊ฐ์ฒด ๊ฐ„์˜ ๋”ํ•˜๊ธฐ ์—ฐ์‚ฐ์ž(+)๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๊ฐ์ฒด๋ฅผ ๊ตฌ์„ฑval coroutineContext: CoroutineContext = newSingleThreadContext("MyThread") + ..
Things You Should Never Do As A Software EngineerHere are some of the things that software developers should avoid when coding to improve their work performance and mental health.favtutor.comBeing Perfectionist๋ชจ๋“  ๊ฒƒ์€ ์™„๋ฒฝํ•˜์ง€ ์•Š๋‹ค. ๊ทธ๋ž˜์„œ ๋‚˜๋Š” “์™„๋ฒฝํ•œ ์ฝ”๋“œ”๋„ ์กด์žฌํ•˜์ง€ ์•Š๋Š”๋‹ค๊ณ  ํ™•์‹ ํ•œ๋‹ค.์†Œํ”„ํŠธ์›จ์–ด ๊ฐœ๋ฐœ์€ ๋ฐ˜๋ณต์ ์ธ ํ”„๋กœ์„ธ์Šค์ด๋‹ค. ์ฝ”๋“œ๋ฅผ ์งœ๊ณ , ํ…Œ์ŠคํŠธํ•˜๊ณ , ํ”ผ๋“œ๋ฐฑ์„ ๋ฐ›๊ณ , ๋ฆฌํŒฉํ† ๋ง ํ•˜๊ณ , ์ด๋ฅผ ๋ฐ˜๋ณตํ•œ๋‹ค. ์˜ค๋Š˜ ์ž˜ ๋™์ž‘ํ•˜๋˜ ๊ฒƒ์ด ๋‚ด์ผ ๋™์ž‘ํ•˜์ง€ ์•Š์„ ์ˆ˜ ์žˆ๋‹ค. ๋”ฐ๋ผ์„œ ์†Œํ”„ํŠธ์›จ์–ด๋Š” ์œ ์—ฐํ•˜๊ณ  ๋ณ€๊ฒฝํ•˜๊ธฐ ์šฉ์ดํ•ด์•ผํ•œ๋‹ค. (์ด๊ฒƒ์ด soft-ware ๋ผ๊ณ ..
Clever code is probably the worst code you could writeAnd clear, readable code is probably the hardest code to writeread.engineerscodex.comdef mininumTotal(self, t): return reduce(lambda a,b:[f+min(d,e)for d,e,f in zip(a,a[1:],b)], t[::-1])[0]์œ„ ์ฝ”๋“œ๋Š” ํ”ํžˆ “์ฝ”๋“œ ๊ณจํ”„”๋ผ๊ณ  ๋ถˆ๋ฆฐ๋‹ค. ์ทจ๋ฏธ๋กœ๋Š” ์ข‹์„ ์ˆ˜ ์žˆ์ง€๋งŒ “์ข‹์€ ์ฝ”๋“œ”์™€๋Š” ๊ฑฐ๋ฆฌ๊ฐ€ ๋ฉ€๋‹ค.๋ชจ๋‘๋“ค ์ด๊ฒƒ์ด ์ข‹์€ ์ฝ”๋“œ๊ฐ€ ์•„๋‹ˆ๋ผ๋Š” ๊ฒƒ์€ ์•Œ๊ณ ์žˆ๋‹ค. ์‹ค์ œ ์—…๊ณ„์—์„œ๋Š” ๊ฐ€์žฅ ๋‚˜์œ ์ฝ”๋“œ ์ค‘์— ํ•˜๋‚˜๋ผ๊ณ  ํ•  ์ˆ˜ ์žˆ๋‹ค.๋ฐ˜๋Œ€๋กœ ์ƒ๊ฐํ•ด๋ณด๋ฉด ๊ฐ€์žฅ ๋ช…ํ™•ํ•œ ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•˜๋Š” ๊ฒƒ์ด ์‹ค์ œ๋กœ ๊ฐ€์žฅ ์–ด๋ ค..
์ ์ด
'๐Ÿ“š Study' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๊ธ€ ๋ชฉ๋ก