• Complain

it-ebooks - Eloquent JavaScript 2e

Here you can read online it-ebooks - Eloquent JavaScript 2e full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2016, publisher: iBooker it-ebooks, genre: Romance novel. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

it-ebooks Eloquent JavaScript 2e
  • Book:
    Eloquent JavaScript 2e
  • Author:
  • Publisher:
    iBooker it-ebooks
  • Genre:
  • Year:
    2016
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

Eloquent JavaScript 2e: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Eloquent JavaScript 2e" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

it-ebooks: author's other books


Who wrote Eloquent JavaScript 2e? Find out the surname, the name of the author of the book and a list of all author's works by series.

Eloquent JavaScript 2e — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Eloquent JavaScript 2e" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Eloquent JavaScript

Written by Marijn Haverbeke.

Licensed under a Creative Commons attribution-noncommercial license. All code in this book may also be considered licensed under an MIT license.

Illustrations by various artists: Cover by Wasif Hyder. Computer (introduction) and unicycle people (Chapter 21) by Max Xiantu. Sea of bits (Chapter 1) and weresquirrel (Chapter 4) by Margarita Martnez and Jos Menor. Octopuses (Chapter 2 and 4) by Jim Tierney. Object with on/off switch (Chapter 6) by Dyle MacGregor. Regular expression diagrams in Chapter 9 generated with regexper.com by Jeff Avallone. Game concept for Chapter 15 by Thomas Palef. Pixel art in Chapter 16 by Antonio Perdomo Pastor.

The second edition of Eloquent JavaScript was made possible by 454 financial backers.

A paper version of Eloquent JavaScript, including a bonus chapter, is being brought out by No Starch Press. They also sell a more polished EPUB version that includes the bonus chapter.

Introduction

This is a book about getting computers to do what you want them todo. Computers are about as common as screwdrivers today, but they contain alot more hidden complexity and thus are harder to operate andunderstand. To many, they remain alien, slightly threatening things.

Weve found two effective ways ofbridging the communication gap between us - photo 1

Weve found two effective ways ofbridging the communication gap between us, squishy biologicalorganisms with a talent for social and spatial reasoning, andcomputers, unfeeling manipulators of meaningless data. The first is toappeal to our sense of the physical world and build interfaces thatmimic that world and allow us to manipulate shapes on a screen withour fingers. This works very well for casual machine interaction.

But we have not yet found a good way to usethe point-and-click approach to communicate things to the computerthat the designer of the interface did not anticipate. For open-endedinterfaces, such as instructing the computer to perform arbitrarytasks, weve had more luck with an approach that makes use of ourtalent for language: teaching the machine a language.

Human languages allow words andphrases to be combined in many ways, which allows us to saymany different things. Computer languages, though typically lessgrammatically flexible, follow a similar principle.

Casual computinghas become much more widespread in the past 20 years, andlanguage-based interfaces, which once were the default way in whichpeople interacted with computers, have largely been replaced withgraphical interfaces. But they are still there, if you know where tolook. One such language, JavaScript, is built into almost everyweb browser and is thus available on just about every consumerdevice.

This book intends to make you familiarenough with this language to be able to make a computer do what youwant.

On programming

I do not enlighten those who are not eager to learn,nor arouse those who are not anxious to give an explanationthemselves. If I have presented one corner of the square and theycannot come back to me with the other three, I should not go over thepoints again.

Confucius

Besides explaining JavaScript, I alsowill introduce the basic principles of programming. Programming, itturns out, is hard. The fundamental rules are typically simple andclear. But programs built on top of these rules tend to become complexenough to introduce their own rules and complexity. Youre buildingyour own maze, in a way, and you might just get lost in it.

There will be times when reading this book feels terriblyfrustrating. If you are new to programming, there will be a lot of newmaterial to digest. Much of this material will then be combined inways that require you to make additional connections.

It is up to you to make the necessary effort. When you are strugglingto follow the book, do not jump to any conclusions about your owncapabilities. You are fineyou just need to keep at it. Take a break,reread some material, and always make sure you read and understandthe example programs and exercises. Learning is hard work, buteverything you learn is yours and will make subsequent learningeasier.

The computer programmer is a creator ofuniverses for which he [sic] alone is responsible. Universes of virtuallyunlimited complexity can be created in the form of computer programs.

Joseph Weizenbaum, Computer Power and Human Reason

A program is many things. It is apiece of text typed by a programmer, it is the directing force thatmakes the computer do what it does, it is data in the computersmemory, yet it controls the actions performed on this same memory.Analogies that try to compare programs to objects we are familiar withtend to fall short. A superficially fitting one is that of amachinelots of separate parts tend to be involved, and to make thewhole thing tick, we have to consider the ways in which these partsinterconnect and contribute to the operation of the whole.

A computer is a machine built to act as a host for theseimmaterial machines. Computers themselves can do only stupidlystraightforward things. The reason they are so useful is that they dothese things at an incredibly high speed. A program can ingeniouslycombine an enormous number of these simple actions in order to do verycomplicated things.

To some of us, writing computer programs is afascinating game. A program is a building of thought. It is costlessto build, it is weightless, and it grows easily under our typinghands.

But without care, a programs size and complexity will grow out ofcontrol, confusing even the person who created it. Keeping programsunder control is the main problem of programming. When a programworks, it is beautiful. The art of programming is the skill ofcontrolling complexity. The great program is subduedmade simple inits complexity.

Many programmers believethat this complexity is best managed by using only a small set ofwell-understood techniques in their programs. They have composedstrict rules (best practices) prescribing the form programs shouldhave, and the more zealous among them will consider those who gooutside of this safe little zone to be bad programmers.

What hostility to the richness ofprogrammingto try to reduce it to something straightforward andpredictable, to place a taboo on all the weird and beautiful programs!The landscape of programming techniques is enormous, fascinating inits diversity, and still largely unexplored. It is certainly dangerousgoing, luring the inexperienced programmer into all kinds ofconfusion, but that only means you should proceed with caution andkeep your wits about you. As you learn there will always be newchallenges and new territory to explore. Programmers who refuse tokeep exploring will stagnate, forget their joy, and get bored withtheir craft.

Why language matters

In thebeginning, at the birth of computing, there were no programminglanguages. Programs looked something like this:

00110001 00000000 0000000000110001 00000001 0000000100110011 00000001 0000001001010001 00001011 0000001000100010 00000010 0000100001000011 00000001 0000000001000001 00000001 0000000100010000 00000010 0000000001100010 00000000 00000000

That is aprogram to add the numbers from 1 to 10 together and print out theresult: 1 + 2 + ... + 10 = 55. It could run on a simple,hypothetical machine. To program early computers, it was necessary toset large arrays of switches in the right position or punch holes instrips of cardboard and feed them to the computer. You can probably imaginehow tedious and error-prone this procedure was. Even writing simpleprograms required much cleverness and discipline. Complex ones werenearly inconceivable.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Eloquent JavaScript 2e»

Look at similar books to Eloquent JavaScript 2e. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Eloquent JavaScript 2e»

Discussion, reviews of the book Eloquent JavaScript 2e and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.