Skip to Content
ハンズオンJavaScript
book

ハンズオンJavaScript

by あんどうやすし
November 2020
Intermediate to advanced
740 pages
9h 12m
Japanese
O'Reilly Japan, Inc.
Content preview from ハンズオンJavaScript

1章学び始めるまえに

プログラミングの学習は長い旅に似ています。ルートも目的地も分からないまま始めては、コーラを飲めばゲップが出るほど確実に遭難してしまうでしょう。この章ではまず初めにJavaScriptについての概要を説明したあとで、小さなプログラムの説明を通してJavaScriptの機能を一通り紹介します。この紹介は導入であると同時にこれから学ぶことの全体像を掴むための地図のようなものです。どこかに向かう前に地図を丸暗記する必要がないように、本章もすべてを理解しようとする必要はありません。全体を俯瞰し、以降の章ではどういった順序でどういうことを学ぶことになるのかを把握するように努めてください。各項目の詳細は以降の章で説明することになります。

1.1 プログラムについて

これからJavaScriptを使用してプログラミングを学んでいきます。もしかするとプログラミングを非常に難解なものだと思い、不安に感じている人がいるかもしれません。あまり心配しないでください。実は多くの人はプログラミング的な作業を日常的に行っています。

たとえば子供にお願いして知り合いに荷物を届けてもらうために目的地までの経路をメモに書いて伝える必要があるとしましょう。こんな感じでしょうか。

「玄関を出て真っ直ぐに進み、4つ目の交差点を右に曲がる。そのまま直進して左手に郵便ポストが見えたら左に曲がり、突き当りの建物が目的地。」

このメモを見れば目的地がどのような建物かまったく知らなくても、荷物を届けることができるはずです。

ここで子供をコンピュータ、メモをプログラムと考えれば、行っていることはプログラミングそのものです。子供は目的地を知りませんが、正しくメモが書かれていればお願いした場所に到着できます。プログラムを与えられたコンピュータも同様です。コンピュータはこちらの意図にはいっさい頓着しませんが、愚直にプログラムに書かれてあることを実行して得られる結果を返してくれます。正しくプログラムが書かれていれば意図した結果が得られるでしょう。指示が間違っていれば正しく実行して間違った結果が得られます。 ...

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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’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
QuotationMarkI 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
QuotationMarkI’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
QuotationMarkI'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.
Mark W.
Embedded Software Engineer

You might also like

アルゴリズムクイックリファレンス 第2版

アルゴリズムクイックリファレンス 第2版

George T. Heineman, Gary Pollice, Stanley Selkow, 黒川 利明, 黒川 洋
Python機械学習クックブック

Python機械学習クックブック

Chris Albon, 中田 秀基
オブザーバビリティ・エンジニアリング

オブザーバビリティ・エンジニアリング

Charity Majors, Liz Fong-Jones, George Miranda, 大谷 和紀, 山口 能迪
プログラミングRust 第2版

プログラミングRust 第2版

Jim Blandy, Jason Orendorff, Leonora F. S. Tindall, 中田 秀基

Publisher Resources

ISBN: 9784873119229Other