$30 off During Our Annual Pro Sale. View Details »

Lesson 1: プログラミングとは

Lesson 1: プログラミングとは

友達と仲良くプログラミングを学ぼう企画 その1

これから行うプログラミングとはどういう行為なのか、作ったプログラムを動かすコンピュータはそもそもどういうものなのか、という基礎的なことをやった。

前回: https://speakerdeck.com/oldbigbuddha/lesson-0-retusunwoshi-meruqian-ni

CC BY 4.0 -「プログラミングとは」 by OldBigBuddha 2019.

Big Buddha

March 30, 2019
Tweet

More Decks by Big Buddha

Other Decks in Technology

Transcript

  1. 「プログラミング」とは
    Lesson 1

    View Slide

  2. プログラミングをしよう!

    View Slide

  3. の前に

    View Slide

  4. まずは土台を知ろう

    View Slide

  5. Q.
    PC or パソコン
    って何の略?

    View Slide

  6. A.
    Personal Computer

    View Slide

  7. Q.
    What is Computer?
    What is ”Personal”?

    View Slide

  8. Computer

    View Slide

  9. Computer
    “電気を動力として計算処理を自動
    で行う計算機、即ち電子式汎用計算
    機のことである。電子計算機とも呼
    ばれる。”
    From コンピュータ - Wikipedia -
    https://ja.wikipedia.org/wiki/%E3%82%B3%E3%83%B3%E3%83%94%E3%83%A5%E3%83%BC%
    E3%82%BF

    View Slide

  10. Computer の特徴

    View Slide

  11. Computer の特徴
    - 電気がないと動かない
    - 全ては 0 と 1(デジタル)
    - Computer が理解できる
    命令は少ない
    - 曖昧さの余地がない

    View Slide

  12. Computer の
    五大機能

    View Slide

  13. 五大機能
    1. 制御装置
    2. 演算装置
    3. 記憶装置
    4. 入力装置
    5. 出力装置

    View Slide

  14. 五大機能
    1. 制御装置
    2. 演算装置
    3. 記憶装置 -----
    4. 入力装置 -----
    5. 出力装置 -----
    CPU
    (Central Processing Unit)
    HDD/SSD
    SIMM/DOMM
    マウス・キーボード
    モニタ・プリンタ・スピーカー

    View Slide

  15. 特に注目したいもの

    View Slide

  16. 演算装置

    記憶装置

    View Slide

  17. CPU

    記憶装置

    View Slide

  18. 記憶装置
    - 主記憶装置
    よく Memory や RAM と呼ぶ
    役割的にはテーブル
    電源を切ると保存されているデータが消える
    速い・小さい・高い
    - 補助記憶装置
    HDD とか SSD とか
    役割的には本棚
    電源を切っても情報は保持される
    遅い・でかい・安い

    View Slide

  19. 記憶装置
    - 主記憶装置
    よく Memory や RAM と呼ぶ
    役割的にはテーブル
    電源を切ると保存されているデータが消える
    速い・小さい・高い
    - 補助記憶装置
    HDD とか SSD とか
    役割的には本棚
    電源を切っても情報は保持される
    遅い・でかい・安い

    View Slide

  20. CPU

    記憶装置

    View Slide

  21. CPU

    RAM

    View Slide

  22. とりあえず
    覚えといて

    View Slide

  23. ようやく本題

    View Slide

  24. 「プログラム」とは?

    View Slide

  25. Programme(US: Program)
    1. A set of related measures or activities with a particular long-term aim.
    a. A planned series of future events or performances.
    2. A series of coded software instructions to control the operation of a computer
    or other machine.
    3. A presentation or item on television or radio, especially one broadcast
    regularly between stated times.
    a. dated A radio or television channel.
    4. A sheet or booklet giving details of items or performers at an event or
    performance.
    From programme | Definition of programme in English by Oxford Dictionaries -
    https://en.oxforddictionaries.com/definition/programme

    View Slide

  26. Programme(US: Program)
    1. A set of related measures or activities with a particular long-term aim.
    a. A planned series of future events or performances.
    2. A series of coded software instructions to control the operation of a
    computer or other machine.
    3. A presentation or item on television or radio, especially one broadcast
    regularly between stated times.
    a. dated A radio or television channel.
    4. A sheet or booklet giving details of items or performers at an event or
    performance.
    From programme | Definition of programme in English by Oxford Dictionaries -
    https://en.oxforddictionaries.com/definition/programme

    View Slide

  27. Programme(US: Program)
    1. A set of related measures or activities with a particular long-term aim.
    a. A planned series of future events or performances.
    2. A series of coded software instructions to control the operation of a
    computer or other machine.
    3. A presentation or item on television or radio, especially one broadcast
    regularly between stated times.
    a. dated A radio or television channel.
    4. A sheet or booklet giving details of items or performers at an event or
    performance.
    From programme | Definition of programme in English by Oxford Dictionaries -
    https://en.oxforddictionaries.com/definition/programme
    何か集まり

    View Slide

  28. Programme(US: Program)
    A series of coded software instructions to control the operation of
    a computer or other machine.
    訳)
    コンピュータやその他の機械の動作を制御する
    一連のコード化されたソフトウェアの命令群
    From programme | Definition of programme in English by Oxford Dictionaries -
    https://en.oxforddictionaries.com/definition/programme

    View Slide

  29. Programme(US: Program)
    A series of coded software instructions to control the operation of
    a computer or other machine.
    訳)
    コンピュータやその他の機械の動作を制御する
    一連のコード化されたソフトウェアの命令群
    From programme | Definition of programme in English by Oxford Dictionaries -
    https://en.oxforddictionaries.com/definition/programme

    View Slide

  30. 「プログラム」

    一連の命令群

    View Slide

  31. 「プログラム」

    一連の命令群
    マシンの動作を制御する

    View Slide

  32. 「プログラミング」は?

    View Slide

  33. プログラム(一連の命令)

    作る!

    View Slide

  34. なんとなく見えてきた!

    View Slide

  35. なんとなく見えてきた
    かな?

    View Slide

  36. あとは数をこなすのみ

    View Slide

  37. 実際にソースコード
    を書いてみる

    View Slide

  38. 実際にコードを書いてみる

    View Slide