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

์ „์ฒด ๊ธ€

(73)
Data Structures & Algorithms with Javascript : Sets [์ด์ „ ๊ธ€]2024.07.23 - [๐Ÿค– data structures & algorithms] - Data Structures & Algorithms with Javascript : Hashing Data Structures & Algorithms with Javascript : Hashing[์ด์ „ ๊ธ€] 2024.07.22 - [๐Ÿค– data structures & algorithms] - Data Structures & Algorithms with Javascript : DictionariesHashing์€ ๋ฐ์ดํ„ฐ ์ถ”๊ฐ€์™€ ๋ฐ˜ํ™˜์„ ๋น ๋ฅด๊ฒŒ ํ•˜๊ธฐ ์œ„ํ•œ ๋ฐ์ดํ„ฐ ์ €์žฅ ๊ธฐ์ˆ ์ด๋‹ค.Hash table์ด๋ผ๋Š” ๋ฐ์ดํ„ฐ ๊ตฌ์กฐpyotato-dev.tistory.comset์€ ์ค‘๋ณต๋˜๋Š” ์›์†Œ(member)๊ฐ€ ์—†๊ณ  ์›์†Œ ๊ฐ„์— ์ˆœ์„œ..
Data Structures & Algorithms with Javascript : Hashing [์ด์ „ ๊ธ€] 2024.07.22 - [๐Ÿค– data structures & algorithms] - Data Structures & Algorithms with Javascript : DictionariesHashing์€ ๋ฐ์ดํ„ฐ ์ถ”๊ฐ€์™€ ๋ฐ˜ํ™˜์„ ๋น ๋ฅด๊ฒŒ ํ•˜๊ธฐ ์œ„ํ•œ ๋ฐ์ดํ„ฐ ์ €์žฅ ๊ธฐ์ˆ ์ด๋‹ค.Hash table์ด๋ผ๋Š” ๋ฐ์ดํ„ฐ ๊ตฌ์กฐ๋ฅผ ์‚ฌ์šฉํ•˜๋Š”๋ฐ, hash table์€ ๋ฐ์ดํ„ฐ ์ถ”๊ฐ€, ์‚ญ์ œ, ๋ฐ˜ํ™˜์€ ๋ฐฐ๋ฌด ๋น ๋ฅด์ง€๋งŒ ์ตœ์†Œ๋‚˜ ์ตœ๋Œ€ ๊ฐ’์„ ๊ตฌํ•˜๋Š” ๊ฒƒ๊ณผ ๊ฐ™์€ ๊ฒ€์ƒ‰์€ ๋น„ํšจ์œจ์ ์ด๋‹ค.๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ์˜ค๋Š˜์€ Hash table์ด ๋ฌด์—‡์ธ์ง€, ํด๋ž˜์Šค ๊ตฌํ˜„๋ฒ•, collision๊ณผ ๊ทธ ํ•ด๊ฒฐ๋ฒ•์— ๋Œ€ํ•ด ์‚ดํŽด๋ณด์ž.Hashing ์ด๋ž€Hash table ์ž๋ฃŒ ๊ตฌ์กฐ๋Š” array๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ๋งŒ๋“ค์–ด์ง„๋‹ค. ์ด array๋Š” 0๋ถ€ํ„ฐ ์ •ํ•ด์ง„ ํฌ๊ธฐ์˜ ์—˜๋ฆฌ๋จผํŠธ๋กœ ๊ตฌ์„ฑ๋œ๋‹ค...
Warning: React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined... React์—์„œ ์ปดํฌ๋„ŒํŠธ๋ฅผ ์ž‘์„ฑํ•  ๋•Œ ์ข…์ข… ๋‹ค์Œ๊ณผ ๊ฐ™์€ compound component๋ฅผ ๋งŒ๋“ค์–ด ๋ชจ๋“ˆํ™”๋ฅผ ์‹œํ‚ค๊ณ  ์žฌํ™œ์šฉ์„ฑ์„ ๋†’์ผ ์ˆ˜ ์žˆ๋‹ค."use client";import { MyButton } from "@tripie/design-system";import { useAppTheme } from "@tripie/hooks";const ThemeButton = () => { const { setControl } = useAppTheme(); return ( setControl("os_default")}>os default );};const ToggleButton = () => { const { mode, toggle } = useAppTheme(); return ( to ..
Data Structures & Algorithms with Javascript : Dictionaries [์ด์ „๊ธ€] 2024.07.21 - [๐Ÿค– data structures & algorithms] - Data Structures & Algorithms with Javascript : Linked Lists๐Ÿ‘ซ Dictionary ๋ฐ์ดํ„ฐ ๊ตฌ์กฐ๋Š” ํ‚ค-๊ฐ’ ์œผ๋กœ ์ด๋ฃจ์–ด์ง„ ๋ฐ์ดํ„ฐ ๊ตฌ์กฐ๋‹ค.โ˜Ž ์ „ํ™”๋ฒˆํ˜ธ๋ถ€์—์„œ ์ด๋ฆ„์„ ์ฐพ์œผ๋ฉด ํ•ด๋‹น ๋ฒˆํ˜ธ๋ฅผ ๋ฐ”๋กœ ์ฐพ์„ ์ˆ˜ ์žˆ๊ธฐ ๋•Œ๋ฌธ์— ๊ฒ€์ƒ‰ ์‹œ์— ์•„์ฃผ ํŽธํ•˜๊ฒŒ ๊ฐ’์„ ์ฐพ์„ ์ˆ˜ ์žˆ๋‹ค.๐Ÿ‘ท ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ Object ํด๋ž˜์Šค๋Š” dictionary ์ฒ˜๋Ÿผ ๋™์ž‘ํ•˜๋„๋ก ๋””์ž์ธ ๋˜์—ˆ๋‹ค๊ณ  ํ•œ๋‹ค.๐Ÿ“š ์˜ค๋Š˜์€ Object ํด๋ž˜์Šค๋ฅผ ํ™œ์šฉํ•ด์„œ Dictionary ํด๋ž˜์Šค๋ฅผ ๋งŒ๋“ค์–ด๋ณด๊ณ , dictionary ์‚ฌ์šฉ์˜ ํŠน์ง•๊ณผ ์žฅ์ ๋“ค์„ ์‚ดํŽด๋ณด์ž!๐Ÿ“™ Dictionary ํด๋ž˜์ŠคDictionary ํด๋ž˜์Šค์˜ ๊ธฐ๋ฐ˜์€ Object ํด๋ž˜์Šค๊ฐ€..
Data Structures & Algorithms with Javascript : Linked Lists [์ด์ „๊ธ€]2024.07.21 - [๐Ÿค– data structures & algorithms] - Data Structures & Algorithms with Javascript : Linked Lists2024.07.18 - [๐Ÿค– data structures & algorithms] - Data Structures & Algorithms with Javascript : Lists๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ์ด์ „ 3์žฅ์—์„œ  array๋ฅผ ์ €์žฅ ๋ฉ”์ปค๋‹ˆ์ฆ˜์œผ๋กœ ํ™œ์šฉํ•˜๋Š” list์— ๋Œ€ํ•ด ์‚ดํŽด๋ดค๋‹ค.๐Ÿ“– ์ด๋ฒˆ์—๋Š” ๋‹ค๋ฅธ ์ข…๋ฅ˜์˜ list์ธ "linked-list"์— ๋Œ€ํ•ด ์‚ดํŽด๋ณด์ž.โœ๏ธ ์–ด๋–ค ์ ์—์„œ list๋ณด๋‹ค ํšจ์œจ์ ์œผ๋กœ ์“ฐ์ผ ์ˆ˜ ์žˆ์„์ง€ linked list๋ž€ ๋ฌด์—‡์ด๊ณ , class์œผ๋กœ ๊ตฌํ˜„, ๊ทธ๋ฆฌ๊ณ  ์ข…๋ฅ˜์— ๋Œ€ํ•ด์„œ ๋‹ค๋ค„๋ณด์ž.โ˜น๏ธ Arra..
[Sass] ์ฃผ์„(Comments) ์‹œ์ž‘ํ•˜๊ธฐ์— ์•ž์„œโœ๏ธ ํ•ด๋‹น ๊ธ€์€ .scss ๋ฅผ ๊ธฐ์ค€์œผ๋กœ ์ž‘์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค!.scss์™€ .sass ํ™•์žฅ์ž์— ๋”ฐ๋ผ ์ฃผ์„์ด ๋™์ž‘ํ•˜๋Š” ๋ฐฉ์‹์—๋Š” ์ฐจ์ด๊ฐ€ ์žˆ์ง€๋งŒ ๊ณตํ†ต์ ์œผ๋กœ /**/๋กœ ์ž‘์„ฑ๋˜๋Š” ์ฃผ์„์€ css๋กœ ์ปดํŒŒ์ผ๋œ๋‹ค๋Š” ์ , // ๋กœ ์ž‘์„ฑ๋œ ์ฃผ์„์€ ์ปดํŒŒ์ผ ๋˜์ง€ ์•Š๋Š”๋‹ค๋Š” ์ ์€ ๋™์ผํ•ฉ๋‹ˆ๋‹ค!๋””์ž์ธ ์‹œ์Šคํ…œ์„ ๋งŒ๋“ค๋ฉด์„œ scss ์‚ฌ์šฉ๋„ ์ตํžˆ๋Š” ์ค‘์ด๋‹ค.์—ฌ๋Ÿฌ ์ž๋ฃŒ๋“ค์„ ์ฐธ๊ณ ํ•˜๋˜ ๋„์ค‘ ์ฃผ์„ ์Šคํƒ€์ผ์ด ์กฐ๊ธˆ์”ฉ ๋‹ฌ๋ž๋‹ค.์–ด๋–ค ๊ฒฝ์šฐ์—๋Š” ์–ด๋–ค ๊ฑธ ์“ฐ๋Š” ์ง€ ๊ถ๊ธˆํ•ด์„œ ์ด๋ฒˆ ํฌ์ŠคํŒ…์—์„œ ๋‹ค๋ค„๋ณด๊ธฐ๋กœ ํ–ˆ๋‹ค.Scss์—์„œ์˜ ์ฃผ์„scss์—์„œ ์‚ฌ์šฉํ•˜๋Š” ์ฃผ์„์€ js์—์„œ ๋™์ž‘ํ•˜๋Š” ๋ฐฉ์‹๊ณผ ์œ ์‚ฌํ•˜๋‹ค. // ๋กœ ์‹œ์ž‘ํ•˜๋Š” single-line comment(ํ•œ ์ค„ ์ฃผ์„)๋“ค์€ css์—์„œ๋Š” silent comment๋ผ๊ณ ๋„ ๋ถˆ๋ฆฌ๋Š”๋ฐ, ์–ด๋– ํ•œ css๋„ ๋งŒ๋“ค์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค./**/๋กœ..
[react-hydration-error] Hydration failed because the server rendered didn't match the client [์ด์ „๊ธ€ : ๋””์ž์ธ ์‹œ์Šคํ…œ์ด ๋ญ”์ง€ ์•Œ๊ณ  ์‹ถ๋‹ค๋ฉด ๐Ÿ‘‰ ] 2024.07.11 - [๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป dev] - ๋””์ž์ธ ์‹œ์Šคํ…œ 101 : ๋””์ž์ธ ์‹œ์Šคํ…œ์ด๋ž€?๐Ÿ‘ฉ๐Ÿป‍๐Ÿ”ง scss + next monorepo ๋””์ž์ธ ์‹œ์Šคํ…œ์„ ๋„์ž…ํ•˜๋Š” ์ค‘์ด๋‹ค.๋‹คํฌ๋ชจ๋“œ๋ฅผ ์ถ”๊ฐ€ํ•ด์ฃผ๊ธฐ ์œ„ํ•ด์„œ ์ฝ”๋“œ๋ฅผ ์ถ”๊ฐ€ํ•ด ์คฌ๋Š”๋ฐ ์ƒˆ๋กœ๊ณ ์นจ์„ ํ•  ๋•Œ๋งˆ๋‹ค "Hydration failed because the server rendered didn't match the client"์˜ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค.๋‹ค์Œ์— ๊ฐ™์€ ์‹ค์ˆ˜๋ฅผ ํ•ด๋„ ํ—ค๋งค์ง€ ์•Š๊ณ , ํ˜น์‹œ๋‚˜ ๋‚˜์ฒ˜๋Ÿผ ํ—ค๋งค๊ณ  ๊ณ„์‹  ๋ถ„๋“ค์„ ์œ„ํ•ด ์กฐ๊ธˆ์ด๋‚˜ ๋„์›€์ด ๋ ๊นŒ ๊ธฐ๋ก์„ ๋‚จ๊ฒจ๋‘๊ณ ์ž ํ•œ๋‹ค.์—๋Ÿฌ๋Š” ์™œ ๋ฐœ์ƒํ•œ ๊ฑด์ง€, ๊ทธ๋ฆฌ๊ณ  ์–ด๋–ป๊ฒŒ ํ•ด๊ฒฐํ–ˆ๋Š”์ง€ ์‚ดํŽด๋ณด์ž! ๐Ÿ•ต๏ธ ๋ฌธ์ œ ์›์ธ ์ฐพ๊ธฐ์ด๋Ÿฐ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜๋ฉด next์€ ์•„์ฃผ ์นœ์ ˆํ•˜๊ฒŒ ์›์ธ์ผ ์š”..
Data Structures & Algorithms with Javascript : Queues [์ด์ „ ๊ธ€]2024.07.19 - [๐Ÿค– data structures & algorithms] - Data Structures & Algorithms with Javascript : Stacks Data Structures & Algorithms with Javascript : Stacks2024.07.18 - [๐Ÿค– data structures & algorithms] - Data Structures & Algorithms with Javascript : Lists2024.07.17 - [๐Ÿค– data structures & algorithms] - Data Structures & Algorithms with Javascript : Arrays2024.07.17 - [๐Ÿค– data structures ..