서처럼 읽을 수 있다. 이상적인 경우, 프로그래밍에 대해 잘 알지 못하는 해당 분야의 전문가가
DSL
을 사용해서 코드를 작성하는 것이 불가능한 경우에도 코드를 읽고, 이해하고, 검증할 수
있다.
이 분야는 광범위하기 때문에
DSL
과 스칼라의
DSL
지원에 대해 간단하게 다룰 수밖에 없다.
더 깊게 다룬 것을 원한다면 부록
A
의
DSL
관련 참고 문헌을 살펴보라.
잘 만들어진
DSL
은 몇 가지 이점을 제공한다.
캡슐화
DSL
은 자세한 구현을 감추고, 해당 분야와 관계있는 추상적인 부분만 노출시킨다.
생산성
DSL
은 캡슐화로 구현이 감춰져 있기 때문에 애플리케이션의 여러 특징을 작성하고 변경하
는 데 드는 노력을 최적화할 수 있다.
의사소통
DSL
은 개발자가 해당 분야를 이해하고, 해당 분야의 전문가가 구현이 요구 사항을 만족하
는지 검증하는 데 도움을 준다.
스칼라 도메인 특화 언어
CHAPTER
20
658
4
부
고급 주제 및 실전 응용
하지만
DSL
에는 몇 가지 단점도 있다.
DSL
은 만들기 어렵다
DSL
을 작성하는 것은 ‘멋지다’. 하지만 그를 위한 노력을 ...
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.
O’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
I 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
I’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
I'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.