yatsuhashi
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # 【第1週】流麗なJavaScript輪読会 (2022\-02\-21\~2022\-02\-25) [![hackmd-github-sync-badge](https://hackmd.io/thecAj5WSqOqTedQSLsOYA/badge)](https://hackmd.io/thecAj5WSqOqTedQSLsOYA) ###### tags: `流麗なJS` [**流麗なJS 輪読会ノートまとめ**](https://hackmd.io/4rF1R6DgQger1ldnC4xbZQ) [公式の課題コードSANDBOX](https://eloquentjavascript.net/code/) ## 目次 [TOC] ## 2022\-02\-21 ### 司会 - @yatsuhashi [タイマー](https://timer.onl.jp/) ### ドライバー - なし ### スタート地点 - はじめに ### 疑問点・気づき #### なぜ言語が重要なのか(p18) まで - @eatplaynap - 先週まで読んでいた現場Railsで「規約に則って書くのがよい」という考えに染まっていたけど、この本だと「ベストプラクティスの安全地帯に留まらずに実践の中で自ら学ぶべき」と書かれてて、get hands dirtyに演習問題に取り組めそうでちょっとワクワクする - 「機械に近い」とは…? - どこだろう? - Close to the Machine だからそのままっぽいな... - なんかプログレっぽいですねぇ - @haruguchi - kasaiさんの好きな著者がアーシュラ・K・ルグインということがわかった - わりと難解なのでおすすめではないです。 - 「プログラミングの技術とは複雑さをコントロールする技術です」というのがなんとなく、おおー!って思った。 - 途中に出てきたやつで、原始的なコンピュータだから11かどうか判断するのではなく11引いて0かどうかを判断するとあったけど、11を判断することはできなくても11を引くことはできるというのが不思議だった。 - 原始的なコンピュータは加算器だから加算しかできないのかも。減算は加算と桁あふれで実現される。でもゼロかどうかはわかるんだな。 - @kasai441 - 機械語からJavaScriptまで4回くらい同じ意味のコードが出てきて、どんどん人間が読みやすくなるのが面白い - 後の方を見たらゲームとかをつくってておもしろそう - @yatsuhashi - ちょっと前までは機械語でやってたと思うとプログラミングの発展速度は速い - @cafedomancer - 冒頭の引用の内容がナゾ (他の章も同様) - ずっと分からないので分からなくても気にしないでください - @daisuke-kikukawa - 引用が多くてさすが外国の本という感じでとても面白かった(言い回しが難しくてほとんど理解できていない) - ### 振り返り(よかった点・次回に向けての改善点等) - @yatsuhashi - 皆さんと一緒に流麗になりたいです - @fugakkbn - JavaScriptを流麗にかけるようになれたらいいなあ。 - @ajitama6 - はじめにから読んでくときのワクワク感は毎回好きです。 - Javascriptを使いこなせるように頑張ります〜 - @eatplaynap - 新しい本の輪読会はフレッシュでいいですね!チェリー本輪読会から残ってるメンバーが自分とYatzだけになっちゃって感慨深い! - @haruguchi - この本は簡単なのか難しいのかまだわかってないけど、ついていけるように頑張っていきたい! - @daisuke-kikukawa - JavaScriptと早く仲良くなりたい! ## 2022\-02\-22 ### 司会 - @yatsuhashi [タイマー](https://timer.onl.jp/) ### ドライバー - なし ### スタート地点 - JavaScriptとは(p.19) ### 疑問点・気づき #### Chapter1 数値まで(p.27) - @kasai441 - 00001101(2)は13(10) - ひとつの値が64ビットメモリを確保している、という考え方でいいのかな? - Yatuhasiさんのパズドラの例が面白かった - @haruguchi - コードを試すサイト?みたいなのを用意してくれていて手厚いなと思った。 - ビットは0か1の2進数で表されている - JSでは数値は64ビットで管理 - 10進数は1がいくつ10がいくつ100がいくつ1000が、、、となるけど - 2進数は1がいくつ2がいくつ4(2^2)がいくつ8(2^3)がいくつと重みづけされている - @yatsuhashi - 再帰はパッと見で理解できないのが面倒臭い - @daisuke-kiku - 再帰の考え方を使うとメソッドを使わずに階乗のような難しいことも実現できる!ただ、パット見何やってるのか理解するのが難しい。。 - 2進数や16進数は何度やっても忘れてしまう。。 - @eatplaynap - 2進数のこと勉強したそのときは理解できるのに、毎回ウ〜分からんってなるのでちゃんとまとめて理解しよう - 揮発性のデータストレージ: 電源切ったらなくなるもの。ワーキングメモリなど - 不揮発性のデータストレージ: 電源切ってもなくならない。ハードディスクなど ### 振り返り(よかった点・次回に向けての改善点等) - @yatsuhashi - やっと本編入った - @haruguchi-yuma - 最近基本情報のテキストを読んだのですが、今日はそういう話が続いていった。 - sorena - ゲームの数値管理の話が面白かった。32ビットなので〜でカンスト - @daisuke-kiku - パズドラをやってみたくなった。。 - - @eatplaynap - みそさんが仰ってたとおり、海外のプログラミング入門書はCSの基礎知識を身につけることを求められてる感じがある - むずかしいよお🥺 - :pien: - @kasai441 - ↑ 上に公式のコードサンドボックス?のリンクを貼りました。 - Githubでみんなでプルリク作っていくやり方をやってみたい気もします ## 2022\-02\-23 ### 司会 - @eatplaynap [タイマー](https://timer.onl.jp/) ### ドライバー - undefined ### スタート地点 - 算術(p27)から ### 疑問点・気づき #### Boolean値 比較(p.31真ん中)まで - @fugakkbn - 表記揺れとか変な訳に気をつけながら読まないといけない本だということがわかった。 - ある意味勉強になるのかも?🤔 - @eatplaynap - 剰余演算子はmodulo - モジュロぅ!! - バッククオートはbacktick - 表記ゆれから原文を見るので英語の勉強になる - 後方引用符 - `Infinity`はJS Primerで読んだ記憶がないけど無限大を表す特殊な数値 - @haruguchi - Infinityが無限大を表すということで`→∞`に置き換えたら数学と同じ動きだと理解できた。(極限) - 表記揺れは自分で読んだ時はあんまり気にならなかったけど、もう意識せずにはいられない体になってしまった。 - 自分自身と等しくないのはNaNだけ - @yatsuhashi - 表記揺れ警察👮‍♀️ - rubyと違ってダブルクォートで囲んだ時とシングルクォートで囲んだ時で違いがない - @kasai441 - データ型は言語によって全然違うので興味深いです。 - 0/0をやってもエラーが出ず、NaNを返す - ""のエスケープの仕方はrubyと全く同じ(console.logを使うこと) - 文字列の比較で、文字コードを比較するのもrubyとjsは同じっぽい。 - @cafedomancer - 1人で読んでいたときは表記揺れにぜんぜん気付かなかった - 意味がわかればいいと思ってるのであまり気にしてないのかも - `NaN` って JavaScript 以外で見たことないなあ - @misosoup160 - 英語で見てるとこう言う単語なんだなという気づきがあるけどすぐわすれそう - 表記揺れ残念だよなー…もう少しだけ校正がんばってほしかった… ### 振り返り(よかった点・次回に向けての改善点等) - @fugakkbn - 今日ちゃんと本をかいました👏 - :tada: - @ajitama6 - 電子版で買ったけど今のところ大丈夫そう・・・? - 表記ゆれ警察のおかげで気づきが増えた(?) :cop: - 毎日開催に今日気づいたので明日からちゃんときます。 - @misosoup160 - 今日は輪読会のお知らせが目覚ましになってくれて起きれて良かったです - 明日日本語版がとどくはずだ… - @haruguchi - 翻訳はアレだけど、翻訳してもらっていることには感謝したい。 - :sorehaaru: - @eatplaynap - 表記ゆれがつらい - 今までの本と別の意味で輪読会で読んで意味わからないところが解消できるのでいいかも - @cafedomancer - 寝る前に毎日ちょっとずつ読んでいます - 発破解体爆発解散 bot 仕上げなきゃ ## 2022\-02\-24 ### 司会 - @yatsuhashi [タイマー](https://timer.onl.jp/) ### ドライバー - ### スタート地点 - boolean値 論理演算子(p31真ん中)から ### 疑問点・気づき #### 式とステートメント (p38上部)まで - @eatplaynap - 暗黙的な型変換はVue.jsでメモアプリを作っているときにずっと悩まされた思い出 - ↓もハマった ```js null >= 0 // => true undefined >= 0 // => false ``` - @kasai - `==`と`===`の違いがいまいちわからなかったけど、とりあえず`===`を使うということで... - `??`を初めて知った(nullとundefinedだけ疑とする) - @haruguchi - `"5" * 2 //=> 10` - `"five" * 2 //=> NaN` - ショートサーキットはRubyと同じtrueかfalseが確定したら評価を止める 戻り値は確定した時点の値 - `==`は型が違っていても暗黙的な型変換を行なってから等値かどうか評価する - `===`は型が違っていたらfalseがかえる - @yatsuahshi - `===`を使う方が無難(`==`は暗黙的な型変換が入る) ### 振り返り(よかった点・次回に向けての改善点等) - @ajitama6 - 自動型変換に悩まされそうな予感。。 - この章は特に式中の翻訳まで突っ込みどころがあって見比べながら読む重要性の再認識 - そして〜..Javascriptを10cc投与し〜..(なんだこれは...?) - @yatsuhashi - 赤ペン先生になった気分 - JavaScript10cc投与してくれ! - @haruguchi - WhyのRubyガイド何言ってるかわかんなかったの自分だけじゃなくてよかった - 昨日うめもとさんも何言ってるか全くわからん本って言ってました ww - @eatplaynap - 自分が当たってるとき以外はみそさんスタイルで英語の方を読むことにした(コードまで誤訳されてるなんてひどい:sob:) ## 2022\-02\-25 ### 司会 - @fugakkbn [タイマー](https://timer.onl.jp/) ### ドライバー - undefined ### スタート地点 - バインディング(p38)から ### 疑問点・気づき #### whileとdoのループ(p46)まで - @kasai441 - variableをbindingというの、初めて聞きました。 - isNaNは便利そう。 - @cafedomancer - const は定数じゃない (ひどい名前だ) - いわゆる定数はたぶん `const MY_CONST = ...` なんだよな - 使い方の問題なのかな。定数を勝手に書き換え不能な変数として使っている? - NaN かどうかを考慮してプログラムを書かないといけないの大変そう... - why's poignant guide to ruby の話が上に見える - `===` を使うのじゃ!!! - @yatsuhashi - バインディングは値を含むものではなく、値を参照するもの - @eatplaynap - この本での「バインディング」は「変数」と読み替えてもいい? - よさそう - 関数呼び出しを表す英語としてinvoke call applyが紹介されててapply以外は見たことある - do whileについてのビャーネ・ストロヴストルップのことば - > In my experience, the do-statement is a source of errors and confusion. … I prefer the condition “up front where I can see it.” Consequently, I tend to avoid do-statements. *Boswell, Dustin; Foucher, Trevor. The Art of Readable Code (p.104). O'Reilly Media. Kindle 版.* ```c= int theNumber; while (!(theNumber = prompt('...'))); ``` - @fugakkbn - constは再代入できない変数であって定数ではない。 - バインディングは「変数に値を代入する行為」と捉えて良さそう。 - Number型を扱うときは、NaNかどうかを考慮する必要がありそう。 ### 振り返り(よかった点・次回に向けての改善点等) - @ajitama6 - 触手の表現がいまいち掴みかねる。 - 参照?ということ? - そうです! 変数から値に矢印が伸びていると思ってもらえると。矢印が触手。 - なるほど! 変数側が値を掴みに行ってる、というイメージを書いているのか。理解できましたー。 - @eatplaynap - 今日は英語の方を見ながら読み上げを聞いているので誤表記で具合が悪くならなくて済んだのでHappy - @kasai441 - 説明のクセが強い - バインディング - 触手 🐙🦑 - ➡●➡ - @fugakkbn - 文意を汲むのにけっこう力を使うので、その分ちゃんと内容を読める気がする。 - 英語版を見(てもらい)ながらだと「?」と思うところも補完できるのでありがたい。

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully