비교적 잘 나타내기는 하지만, 모순도 있습니다. 먹을 만한 음식을 만들려면, 조리법에서 선택
을
최소화
해야 합니다. 완성된 조리법은 한 단계씩 그대로 따라 하면 될 뿐, 선택의 여지는 없
거나 매우 좁습니다. 물론 가끔 버터 대신 라드를 쓴다거나 입맛에 맞는 양념을 쓰라는 등 선택
의 여지가 있기도 합니다. 하지만 조리법은 대개 순서대로 따라 해야 하는 각 단계를 나열한 형
태입니다.
이번
4
장은 전부
변경
과
선택
에 관한 내용입니다. 반복 작업을 효율적으로 자동화하고 변화하
는 조건에 대응하려면 이 장에서 배우는 내용이 필수적입니다.
프로그래밍 경험이 있다면, 특히
C
++이나 자바,
C
# 등
C
언어에서 파생된 문법을 사용하는 언어
를 배웠다면 제어문에 익숙할 테니 이번 장의 첫 번째 부분은 대충 훑어보거나 건너뛰어도 괜찮습니다. 하지
만 건너뛴다면
1
9
세기 선원들이 즐겨 하던 놀이에 대해서는 알 수 없게 됩니다.
4.1
제어문의 기초
순서도
에 대해 들어 본 일이 있을 겁니다. 순서도는 제어문을 시각적으로 나타내는 방법입니
다. 이 장에서 사용하는 예제에서는
시뮬레이션
을 만듭니다. 더 정확히 말해, 우리는
19
세기
108
러닝 자바스크립트 ...
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.