Jun Makita
    • 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
    • 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
    • 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 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
  • 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
    # Hamamatsu.rb #170 ## 自己紹介 - 司会担当の方。普段はC++。4月から部署変わってC言語 - ECサイトの更新とかを行っている方。普段はjs、PHP、VBA、Pythonなど - 普段は組み込みC++の方。Pythonとかjsも使う - 議事録の方。C#、jsで開発。AIに助けてもらいながら頑張っている ## 前回ふりかえり - 参加人数が多かった - Hamamatsu.jsに出るぞ - プロポーザル楽しそう ## 今回のネタ ### Ruby - fozen_string_literalの話を前回やった - 3.4から警告。いずれは仕様を変えるかもしれない...ので警告を出すということ - falseにしておくと今まで通りの警告出ない動作 - frozenしておいた方がパフォーマンスが多少上がる - +@の仕様は変わったが、-@の仕様は変わっていない、とのこと - 凍結されて"いない"文字列で-@を使うと、凍結"された"文字列の複製を返す - なるべく一度セットした変数を変更しない(immutable)ようにしていくのがトレンドかもしれない - 脳に収まるコードの書き方 - ツールをうまく使おう - 変なコードを書いたらコンパイル通らないようにするのも手の一つ - コンパイルエラーになるとわかりやすい - Rubyだとrubocopとかで警告を出す方法もある - Rubyだと定数も書き換えられてしまう…ある意味Rubyらしくないのかも - 動かして警告が出てわかる、というのはテストプログラムが100%作成されていること前提 - Rubyは割かしテストコード前提 - 事前にコンパイルしてチェックするコードも好き❤️ - 型チェックの厳しさで言うとRustがいちばん強いかも - 適切な型を示せることが重要 - Rubyは簡単に型が作れる - 事前型チェックができるのはだいぶ楽 - C++からjsをやると楽に感じるかも - Rubyはわりかし早く開発できる。だから動的チェックの方が適してるのかも - Ruby 3.0系はTypeprof、Steepとか型チェック機能が使える - IDE上で型チェックができます - 「夢を実現できるRubyのまち・松江」で「MATSUE Tech-Product Award 2025」を初開催! - https://prtimes.jp/main/html/rd/p/000000015.000151904.html - Rubyだけではないのかもしれない? - AIとRuby - https://x.com/siteyuu/status/1901988859547951564 - https://x.com/siteyuu/status/1901997442767483150 - https://www.seangoedecke.com/ai-and-ruby/ - Rubyだとトークン数が節約出来ていいかも - スモウルビー甲子園2024 - https://smalruby-koshien.netlab.jp/ - いったん止まっていたのが再開されたとのこと。めでたい - SmartHR最大のRailsアプリケーションでYJITを有効化しました - https://tech.smarthr.jp/entry/2025/03/28/123020 - レスポンスタイム減少! - RubyのRactorとは一体何なのか(翻訳) - https://techracho.bpsinc.jp/hachi8833/2025_04_01/149342 - We will see Ruby 4.0 this year.(Mind the date) - Yukihiro Matz (@yukihiro_matz) on X - https://x.com/yukihiro_matz/status/1907068717147775206 - hasumikin と youchan 、シニアな Rubyist 二人がアンドパッドを選んだ理由 - https://www.wantedly.com/companies/andpad/post_articles/965611 - RubyKaigi前に登壇者の話が増えたりする - hasumikin と youchan に聞く RubyKaigi 2025 の Speaker になるまでの道のり - https://www.wantedly.com/companies/andpad/post_articles/965623 - プロポーザル年中考えてるのはすごいわね - 週刊Railsウォッチ: bin/ciが追加、HashWithIndifferentAccessへの変換がスキップ可能にほか(20250409) - https://techracho.bpsinc.jp/hachi8833/2025_04_09/149756 - 「RubyKaigi 2025事前勉強会 ── 初参加でもつながり鯛!」を開催しました - https://tech.smarthr.jp/entry/2025/04/07/110322 - RubyKaigiスケジュールアプリのPostgreSQLからSQLiteへの移行 - https://tech.smarthr.jp/entry/2025/04/09/130706 ### その他 - PythonのGILと3.13の実験的な新機能「free threading」を知る - https://gihyo.jp/article/2025/03/monthly-python-2503 - オプションでGIL(実際1スレッドで動くもの)を無効化できる ## 次回以降のネタ - Rubyの型チェック ### ここ1年のコードレビュー - 資料 - https://github.com/hamamatsu-rb/hamamatsu-rb.github.com/wiki/LT/codereview.pdf - 資料ソースのMarkDown - https://hackmd.io/@UUwp7Z9-R52wh9oJn8eJ5Q/rJpryyp21e/edit ## LT ### RubyKaigi 2025 LT発表の相談 - https://x.com/risgk/status/1908003923459522648 - > Your proposal for RubyKaigi 2025 LT has been accepted #rubykaigi ビックリしました。発表、頑張ります!(音を鳴らします!) - Making a MIDI controller device with PicoRuby/R2P2 (Ryo Ishigaki) - https://rubykaigi.org/2025/presentations/lt/ - まだRubyKaigi 2025のLTサイトは未公開?扱いらしい。 - R2P2で誰でも簡単にできるぞ~かと思ったがそうでもなかったかもしれん - そこそこ厳しい採択基準だったかもしれんけど通ったぜ - 20:07~20:17くらい - 割とたくさん削らないといかんかな - やっぱり音が出るとインパクトがある。 - HW周りで差別化できてるからコードの紹介は短くしてもいいかも。 - Ruby界隈でDJが盛り上がっている?... - USB-MIDIキーボード作ってる人もいる? ## KPT - http://firekpt.jacoyutorius.com/board/?id=-ONPMCCzGFP05GIq74lI&title=Hamamatsu.rb%20%23170 ## 告知 - 次回 #171、5/14(水)19:30 - 21:00 オンライン開催 - 4/16(水)- 18(金)RubyKaigi 2025 @ 愛媛県民文化会館 - https://rubykaigi.org/2025/ - 5/31(土)OSC2025 Nagoya - https://event.ospn.jp/osc2025-nagoya/ - JAWS-UG浜松+Hamamatsu.js 勉強会202504 4/19(土) - https://jawsug-hamamatsu.connpass.com/event/348230 - 7/5(土)Hamamatsu Micro Maker Faire 2025 @ 浜松科学館 - https://x.com/make_jp/status/1900365633641927064 - 6/7(土) Android Bazaar and Conference 2025 Spring in ICT - https://japan-android-group.connpass.com/event/292227/

    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