Skip to Content
한 권으로 끝내는 Node & Express: 웹사이트 구축을 위한 서버 사이드 자바스크립트
book

한 권으로 끝내는 Node & Express: 웹사이트 구축을 위한 서버 사이드 자바스크립트

by 한성용, 이선 브라운
April 2016
Beginner to intermediate
389 pages
9h 8m
Korean
Hanbit Media, Inc.
Content preview from 한 권으로 끝내는 Node & Express: 웹사이트 구축을 위한 서버 사이드 자바스크립트
268
한 권으로 끝내는 Node & Express
델의 변형이지만, 뷰 모델 하나에 모델 여러 개가 결합될 수도 있고, 여러 모델의 부분합이나
단일 모델의 일부가 될 수도 있습니다. 언뜻 보기에는 불필요하게 복잡해 보일 수도 있지만 필
자는 여기서 대단히 가치 있는 개념을 발견했습니다. 그건 바로 모델을 ‘보호’한다는 겁니다. 순
수한
MVC
에서는 모델을 변형하거나, 뷰에만 필요한 것을 추가해 모델을 더럽히고 싶어질 때
가 있고, 심지어 그런 일이 필요하기까지 합니다. 뷰 모델에는 ‘외부’가 있습니다. 표현에만 필
요한 뷰가 있어야 한다면 뷰 모델에서 하면 됩니다.
어떤 패턴이든 마찬가지지만,
MVC
를 따를 때도 얼마나 충실히 지킬지 결정해야 합니다. 원칙
에 너무 충실하면 최신 기술을 ‘올바른’ 방식으로 구현하기 위해 영웅적인 노력이 필요할 겁니
다. 반면 너무 방만하면 유지보수 문제가 생기고 기술적인 부채를 지게 됩니다. 필자는 충실한
쪽을 선호하는 편입니다. 다행히
MVC
와 뷰 모델은 자연스럽게 따라야 하는 부분이 있고, 이
패턴으로 적응하기 어려운 상황은 극히 드뭅니다.
17.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

한 권으로 끝내는 Node & Express(2판): 모던 웹을 위한 서버 사이드 자바스크립트의 모든 것

한 권으로 끝내는 Node & Express(2판): 모던 웹을 위한 서버 사이드 자바스크립트의 모든 것

한선용, 이선 브라운

Publisher Resources

ISBN: 9788968482229