์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- ๋ธ๋ก๊ทธ ์๋น์ค ์ต์ ํ
- package management
- ์ ๋๋ ์ดํฐ์ async/await
- ์ปค๋ฆฌ์ด
- ํ๋ก ํธ์๋ ์ฑ๋ฅ ์ต์ ํ ๊ฐ์ด๋
- ์ฌ๋ฆผํฝ ํต๊ณ ์๋น์ค ์ต์ ํ
- ์๋ฐ์คํฌ๋ฆฝํธ ๋ฅ๋ค์ด๋ธ
- ์๋ฐ์คํฌ๋ฆฝํธ ํจํด
- peerdependencies
- ์ด๋ฒคํธ
- unique identifiers
- ๋ฅ๋ค์ด๋ธ
- ์ค์ฝํ
- ํ๋ก๊ทธ๋๋จธ์ค
- middleware pattern
- pr review
- ๋ชจ๋ ์๋ฐ์คํฌ๋ฆฝํธ Deep Dive
- mixin pattern
- version management
- js pattern
- ์ ์ฝ๋ ๋ฐ์์ค๊ธฐ
- const
- ์งํ๊ธฐ๋ก
- ํ์ต๋ด์ฉ์ ๋ฆฌ
- ๋ธ๋ผ์ฐ์ ์ ๋ ๋๋ง ๊ณผ์
- Babel๊ณผ Webpack
- DOM
- ์๋ฐ์คํฌ๋ฆฝํธ
- ์ด๋ฏธ์ง ๊ฐค๋ฌ๋ฆฌ ์ต์ ํ
- js pattern
- Today
- Total
๋ชฉ๋กjs pattern (6)
Dev Blog

With the observer pattern,we can subscribe certain objects, the observers, to another object, called the observable. Whenever an event occurs, the observable notifies all its observers! observers: an array of observers that will get notified whenever a specific event occursAn observable object usually contains 3 important parts: subscribe(): a method in order to add observers to the observers li..
The module pattern allows you to split up your code into smaller, reusable pieces.modules allow you to keep certain values within your file private. Declarations within a module are scoped (encapsulated) to that module , by default.// export exampleexport function add(x, y) { return x + y;}export function multiply(x) { return x * 2;}export function subtract(x, y) { return x - y;}export functi..
An object used to Add reusable functionality to another object or class, without using inheritance.Simply, adding functionalities to the target prototype!We can add the dogFunctionality mixin to the Dog prototype with the Object.assign method. We can add animalFunctionality to the dogFunctionality prototype, using Object.assign. In this case, the target object is dogFunctionality.class Dog { co..

์ค์ ๋ก ์์ฒญ๊ณผ ์๋ต ์ฌ์ด์ ์์นํ๋ ๋ฏธ๋ค์จ์ด ๊ธฐ๋ฅ ์ฒด์ธ์ผ๋ก,ํ๋ ์ด์์ ๋ฏธ๋ค์จ์ด ํจ์๋ฅผ ํตํด ์์ฒญ ๊ฐ์ฒด๋ถํฐ ์๋ต๊น์ง ์ถ์ ํ๊ณ ์์ ํ ์ ์์ต๋๋ค. const app = require("express")(); const html = require("./data"); app.use( "/", (req, res, next) => { req.headers["test-header"] = 1234; next(); }, (req, res, next) => { console.log(`Request has test header: ${!!req.headers["test-header"]}`); next(); } ); app.get("/", (req, re..

Flyweight ํจํด์ ๋น์ทํ ๊ฐ์ฒด๋ฅผ ๋๋์ผ๋ก ์์ฑํ ๋ ๋ฉ๋ชจ๋ฆฌ๋ฅผ ๋ณด์กดํ๋ ๋ฐ ์ ์ฉํ ๋ฐฉ๋ฒ์ ๋๋ค. class Book { constructor(title, author, isbn) { this.title = title; this.author = author; this.isbn = isbn; }}const books = new Map(); // ์ค๋ณต๋ ์ฑ ์ ์ ์ธ๋จconst bookList = []; // ์ค๋ณต๋ ์ฑ ํฌํจ - ์ฆ, ๋ณต์ฌ๋ณธ์ด ์์.const addBook = (title, author, isbn, availability, sales) => { const book = { ...createBook(title, author, isbn), sales, avail..

The term “Factory Pattern” in JavaScript (and in software design in general) comes from the concept of a “factory” in real life, where a factory isa place where objects (products) are created.In the context of software design, the Factory Pattern is a creational design pattern that provides an interface for creating objects without specifying the exact class of object that will be created. ์ฆ, ne..