LEARNING JAVASCRIPT - Trang 17

Preface

Even though this is my second book on technologies in the JavaScript ecosystem, I

still find myself somewhat surprised at my role as a JavaScript expert and evangelist.

Like so many programmers, I held a strong prejudice against JavaScript up until

about 2012. To do such an about-face still feels a little disorienting.
My prejudice was for the usual reasons: I considered JavaScript a “toy” language

(without really learning it properly, and therefore not knowing of what I spoke) that

was practiced by dangerous, sloppy, untrained amateur programmers. There is a little

truth in both of these reasons. ES6 was developed quickly, and even its inventor Bren‐

dan Eich admits there are things that he didn’t get right the first time around—and by

the time he realized it, too many people were relying on the problematic behavior for

him to effectively change it (show me the language that doesn’t suffer from this prob‐

lem, however). As for the second reason, JavaScript did make programming suddenly

accessible. Not only did everyone have a browser, but with only a little effort, they

could see the JavaScript that enabled the websites that were rapidly proliferating on

the Web. People learned by trial and error, by reading each other’s code and—in so

many cases—emulating poorly written code with insufficient understanding.
I’m glad I have learned enough about JavaScript to recognize that—far from being a

toy language—it is based on extremely solid foundations, and is powerful, flexible,

and expressive. I’m also glad I have come to embrace the accessibility that JavaScript

brings. I certainly hold no animosity toward amateurs: everyone has to start some‐

where, programming is a profitable skill, and a career in programming has many

advantages.
To the new programmer, the amateur, I say this: there is no shame in being an ama‐

teur. There is some shame in staying an amateur (if you make programming your

profession, certainly). If you want to practice programming, practice it. Learn every‐

thing you can, from every source you can. Keep an open mind and—perhaps most

importantly—question everything. Question every expert. Question every experi‐

enced programmer. Constantly ask “Why?”

xv

Liên Kết Chia Sẽ

** Đây là liên kết chia sẻ bới cộng đồng người dùng, chúng tôi không chịu trách nhiệm gì về nội dung của các thông tin này. Nếu có liên kết nào không phù hợp xin hãy báo cho admin.