サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
Wikipedia
www.writesoftwarewell.com
Note the resulting hash in the second example omitted ru as a key as it would be confusing to find which word it refers to, ruby or rust. It also works as an array extension, i.e. it adds an abbrev method to the Array class. This lets you call the abbrev method directly on an array. irb(main):003:0> ["ruby", "rust"].abbrev => {"ruby"=>"ruby", "rub"=>"ruby", "rust"=>"rust", "rus"=>"rust"}Pretty han
Think of the hash as a function whose input is a key, and output is the data or the value stored for that key. A different way to think of a Hash as a chest with drawers that have a unique label (key) on them, and can store files (values). Whenever you need a file (value), just open the drawer with proper label. drawersNow, a drawer can't have duplicate labels, right? How would you know which draw
💡This is the introductory post from my course Rails Companion. Check out the course announcement to learn more.But...why reinvent the wheel? For the past few months, over the weekends and evenings, I've been teaching Ruby and Rails to a few kids in my hometown in India. Part of the reason is to give back, but a big motivation is to show them just how much fun programming can be with Ruby and Rail
The Definitive Guide to Rack for Rails Developers The word Rack actually refers to two things: a protocol and a gem. This article explains pretty much everything you need to know about Rack as a Rails developer. We will start by understanding the problem Rack solves and move to more advanced concepts like middleware and the Rack DSL. P.S. I originally published this post last year, when I was just
Turbo Streams: How They Work and Differ From Turbo Frames No, you don’t need WebSockets to use Turbo Streams. You can simply use them to deliver multiple page updates with a single HTML response. This article teaches the basics of Turbo Streams to build a SPA without writing a single line of JavaScript. No Rails needed, either! In the last article, we learned how a static website can behave like a
You Don't Need Rails to Start Using Hotwire Although Hotwire is closely tied to Ruby on Rails, you might be surprised to know that you don't really need Rails to learn, play, and experiment with Hotwire. In this article, we'll build a simple static site that uses Turbo Drive + Frames to make it responsive and use Streams to make it dynamic. Update: I originally published this post few months ago,
このページを最初にブックマークしてみませんか?
『www.writesoftwarewell.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く