Skip to Content
자바스크립트 + 리액트 디자인 패턴
book

자바스크립트 + 리액트 디자인 패턴

by 애디 오스마니(Addy Osmani), 윤창식
August 2024
Beginner to intermediate
384 pages
7h 38m
Korean
Hanbit Media, Inc.
Content preview from 자바스크립트 + 리액트 디자인 패턴
72
자바스크립트 + 리액트 디자인 패턴
이전 장에서는 디자인 패턴의 세 가지 유형에 대해 살펴보았습니다. 그 중 일부 디자인 패턴
은 웹 개발에 있어서 필수적이기도 하고 자바스크립트의 버전이나 시대에 관련 없이 언제 어
디서나 적용 가능합니다. 이번 장에서는 자바스크립트에서 사용되는 다양한 종류의 고전 및
최신 디자인 패턴을 다룹니다. 먼저 생성 패턴부터 살펴보겠습니다.
패턴 선택하기
개발자는 대개 어느 프로젝트에나 어울리는 최고의 패턴이 있는지 궁금해합니다. 하지만
최고의 패턴이 무엇인지에 대한 정답은 없습니다. 각 코드와 애플리케이션마다 요구하는
부분이 다를 수 있기 때문입니다. 대신 패턴이 실질적인 구현에 도움이 되는지를 고려해야
합니다.
예를 들어 어떤 프로젝트는 관찰자 패턴의 디커플링(애플리케이션의 부분별 의존성을 줄
이는 것)이 적합할 수 있습니다. 그러나 어떤 프로젝트는 소규모라 디커플링이 중요하지
않을 수도 있습니다.
즉, 디자인 패턴에 대해 정확히 알고 사용할 때를 잘 파악하게 된다면 애플리케이션 아키
텍처에 올바른 디자인 패턴을 적용하기 수월해진다는 뜻입니다.
7.1
생성 패턴
생성 패턴은 객체를 생성하는 방법을 다룹니다. 이제부터 알아볼 생성 패턴은 다음과 같습
니다.
■ 생성자 패턴
■ 모듈 패턴
■ 노출 모듈 패턴
■ 싱글톤 패턴
■ 프로토타입 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

실전 시계열 분석: 통계와 머신러닝을 활용한 예측 기법

실전 시계열 분석: 통계와 머신러닝을 활용한 예측 기법

박찬성, 에일린 닐슨
클라우드 엔지니어를 위한 97가지 조언

클라우드 엔지니어를 위한 97가지 조언

Emily Freeman, Nathen Harvey, 정기훈(Jung Ki Hun)

Publisher Resources

ISBN: 9791169212571