Skip to content

Commit 3faf734

Browse files
committed
Add object interface illustration
1 parent 99b0992 commit 3faf734

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

Diff for: 06_object.txt

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ _interface_ through which the object is to be used. The idea is that
3535
the _interface_ is relatively simple, and all the complex things going
3636
on _inside_ of the object can be ignored when working with it.
3737

38+
image::img/object.jpg[alt="A simple interface can hide a lot of complexity"]
39+
3840
As an example, you can imagine an object that provides an interface to
3941
an area on your screen. It provides a way to draw shapes or text onto
4042
this area, but hides all the details of how these shapes are converted

Diff for: html/index.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ <h1>Eloquent JavaScript<div style="font-size: 70%">second edition</div></h2>
2222

2323
<p>Illustrations by various artists: Sea of bits (chapter 1) and
2424
weresquirrel (chapter 4) by Margarita Martínez and José Menor.
25-
Mysterious computer (introduction) by Philip Tyrer. Octopuses (chapter
26-
2 and 4) by Jim Tierney. Regular expression diagrams in chapter 9
25+
Mysterious computer (introduction) by Philip Tyrer. Octopuses
26+
(chapter 2 and 4) by Jim Tierney. Object with on/off switch (chapter
27+
6) by Dyle MacGregor. Regular expression diagrams in chapter 9
2728
generated with <a href="http://regexper.com">regexper.com</a> by
2829
Jeff Avallone.</p>
2930

Diff for: img/object.jpg

169 KB
Loading

Diff for: img/object_full.jpg

750 KB
Loading

0 commit comments

Comments
 (0)