Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Ruby(Rails) から Go言語に移行 苦労していること
Search
Garbage
May 08, 2024
270
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Ruby(Rails) から Go言語に移行 苦労していること
Garbage
May 08, 2024
More Decks by Garbage
See All by Garbage
20230820自社開発企業に入社した僕の現実(リアル)
kazunorihamada
0
28
2024054 30代・管理職男性 服、何を着るか問題
kazunorihamada
0
20
Featured
See All Featured
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
550
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
Abbi's Birthday
coloredviolet
4
10k
30 Presentation Tips
portentint
PRO
1
430
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.2k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
930
Optimising Largest Contentful Paint
csswizardry
37
4k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
400
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.6k
Transcript
Ruby(Rails) から Go言語に移行 苦労していること 株式会社ブルーイッシュ 浜田 和宜
本スライドのターゲット • エンジニア暦が浅めでRuby, PHP → Goへのキャッチアップ中の人
目次 • 自己紹介 • 苦労していること • まとめ
自己紹介 浜田 和宜(はまだ かずのり)- Garbage 株式会社ブルーイッシュ X:@first_gavenger Github:@Hamadust
苦労していること - ポインタとアドレスの概念 • 参照渡し • 関数内で引数の値を変更すると、 呼び出し元の変数も変更
Rubyだったらこんな感じに書けるが... • Rubyの場合だと、変数xを上書き するような形が多い
苦労していること - アーキテクチャな部分 • こちらはRailsのディレクトリ構成 ◦ MVCアーキテクチャ • appディレクトリ内の ◦
model ◦ controller ◦ view • これらを見れば大体何をどのようにしている のか大体わかる
クリーンアーキテクチャで作ったTODOアプリのAPI
クリーンアーキテクチャで作ったTODOアプリのAPI
言語の移行 = 異国の地に移住するみたいな感じ • 考え方が違う • Goには継承という概念がない のでMVCだと同じようなコード をたくさん書くことになりそう
まとめ • Go言語は全てを自分で作っていくという楽しさはあるが、改めて、Rubyの書きやすさと Railsが優れたフレームワークだったことを実感した。 • Goはバグを減らせて、速度も早い(体感するようなものはまだ作っていないが) • やっていき💪
メンバー募集中! では一緒に働く仲間を募集しています! 各職種募集中です!
ご清聴ありがとうございました ※ 弊社オフィスです!