You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
はじめに こんにちは。KitchHikeエンジニアの小川です。 Webアプリケーション開発において、コードベースが大きくなってくると、よく問題になるものの一つが表示ロジックの重複ではないでしょうか。知らず知らずのうちにビューに同じようなロジックが増えて、コードの見通しが悪くなってくるのです。 KitchHikeのコードにもその兆候が見られはじめたので、対策として ViewModel パターンを取り入れています。このパターンを適用することで、表示ロジックを集約し、コードのメンテナンス性を向上させることができました。 ViewModel は、そんなに凝ったことをしているわけではないのですが、コードをすっきりさせる上ではかなり強力なパターンです。 今回はこの ViewModel について、実際の使い方を含めご紹介したいと思います。 ViewModelとは? 一言でいえばビューに関連するロジックを
Asserts that the provided options can be used to generate the provided path. This is the inverse of assert_recognizes. The extras parameter is used to tell the request the names and values of additional request parameters that would be in a query string. The message parameter allows you to specify a custom error message for assertion failures. The defaults parameter is unused. # Asserts that the d
2018-02-28 Software performance optimization is simple: find a way to do less. Ruby has a reputation for being slow and, while that impression is a decade out of date, one of the leading offenders has been the garbage collector. This leads to the question: can we speed up Ruby by creating less garbage? Absolutely! A String Primer Ruby has an unfortunate default semantic that all Strings are mutabl
Dismiss Join GitHub today GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together. Sign up GitHub is where the world builds software Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Update Jul/2016: Microsoft has just released the Windows 10 Anniversary Edition and it comes with the very good “Bash on Ubuntu on Windows”. You can use this instead. This post is now obsolete and you should read my latest The Year of Linux on the Desktop: It’s Usable! Update 04/27/09: I made some updates that you can read about here So you’re willing to start on Ruby on Rails. You’re not from nei
Update 2013: This screencast is obviously obsolete (this is Rails 2 and Rails is already at version 4). It’s maintained here for historical reasons. Page down for brazilian portuguese article Update 12/12: For those of you that think I was too fast in the video, I just posted a Tutorial with most of the content you can see in the screencast plus a few bonuses. I’ve split it into Part 1 and Part 2.
もう新年を迎えて2ヶ月が経ちますね。 多くの人は新年の目標を立てますが、皆さんは何かしら立てましたでしょうか? 英語を毎日勉強するという目標を立てましたが、既に挫折してしまったエンジニアの村上(pipopotamasu (pipopotamasu) · GitHub)です。 本日はその懺悔も込めてVue.jsとRailsの話をお送りします。 この記事を書く背景 以前ブログで書いた通り、現在Webpackerへの移行を機にフロントエンド周りの改善を進めています。 tech.medpeer.co.jp その中でVue.jsとRailsをいい感じに組み合わせるにはどうしたら良いかについて悩むことがあったので、本記事にて共有させていただきます。 悩んだ内容としては以下になります。 1. Ajax通信時にCSRFトークンをどう設定すればいいか? 2. 単一ファイルコンポーネントで書くHTMLをもっと
Learning Ruby was the magic moment when the beauty of programming revealed itself to me. I’ve been chasing and ridi… https://t.co/X0ReIFn1yG
Creator of Ruby on Rails, Founder & CTO at Basecamp (formerly 37signals), NYT Best-selling author of REWORK and REMOTE, and Le Mans class-winning racing driver. On Writing Software WellI’ve begun a new YouTube series called On Writing Software Well where I explore the real Basecamp codebase in search of interesting programming topics. It’s less “here’s how to do it” and more “here’s what I was thi
こんにちは。エンジニアのrisacanです。去年末から年始にかけて、SmartHRの開発チーム内でRailsのOJTをしていただきました。 その内容を紹介します! 😊 Rails OJT 今回のRails OJTは12月に入社したエンジニア2名を対象に実施されました。 まるまる15日間、他の業務はせずOJTのみを行いました。2人ともソフトウェア開発の経験はありますがRailsは未経験で、Rails Tutorialを1周やり終えた状態からのスタートでした。 お題 今回のOJTは、1人1つずつ、お題に沿ったアプリを一から作るような内容となっています。 以下のような内容です。 # 研修の内容 以下の要件を満たす「経費精算アプリ」を作ってください - 事業所アカウントを新規登録してログインできること - 事業所アカウントには複数のユーザが紐づくこと - ユーザには管理者権限と従業員権限があるこ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く