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: 웹사이트 구축을 위한 서버 사이드 자바스크립트
226
한 권으로 끝내는 Node & Express
| 라우트가 불가사의해서는 안 됩니다 |
이 원칙은 의도적으로 모호하게 정했습니다. 크고 복잡한 웹사이트에는
10
쪽짜리 웹사이트보
다 더 복잡한 정리 스키마가 필요하기 때문입니다. 선택의 폭은 넓지만, 그 한쪽 끝은 단순히
웹사이트의 모든 라우트를 파일 하나에 넣는 겁니다. 수정이 필요할 때 어느 파일을 찾아야 하
는지 바로 알 수 있다는 장점은 있습니다. 큰 사이트에서는 이렇게 할 수 없으니 라우트를 기능
에 따라 나눠야 합니다. 하지만 이렇게 하더라도 어느 라우트를 어느 파일에서 찾아야 하는지
는 명확해야 합니다. 뭔가 수정해야 할 때, 그 라우트를 어디에서 처리하는지 찾는 데만 한 시
간이 걸리는 경험은 하고 싶지 않을 겁니다. 필자는 직장에서
ASP
.
NET
기반
MVC
프로젝트
를 하나 진행 중인데, 이런 관점에서 볼 때 악몽을 겪고 있습니다. 라우트를 처리하는 곳이 최
소한
10
개 이상인 데다가, 논리적이지도 않고 일관적이지도 않습니다. 게다가 종종 모순되기
까지 합니다. 필자는 대단히 큰 웹사이트에 상당히 친숙한데도, 이 프로젝트에서는 특정
URL
을 어디서 처리하는지 찾기만 하는 데에도 상당히 시간이 오래 걸립니다.
| 라우트 정리 규칙을 확장할 수 있어야 합니다 |
지금 라우트가
20
~
30
개 정도라면 파일 하나에 전부 정의해도 괜찮을 겁니다. 하지만
3
년 안
200
개로 늘어난다면? 일어날 수 있는 일입니다. 어떤 방법을 택하든, 늘어날 라우트를 처리
할 공간을 확보할 수 있어
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