...this card by skimming over the linked resource. Discussion Growing Rails applications in practice Read the following chapters from our book Growing Rails Applications in Practice: On following fashions
...about the sandboxing cycle is quite on point on this topic. After the chuckle, read these resources: Pendulum swings by Mark Seemann The Pendulum Swing of Development and Technology Trends...
Code quality can be measured in four levels: (Working code) Reliable code (minimum) Readable code (ok for short-lived code) Changeable code (standard level) The code quality of a project...
However, you should not stop here. Any piece of code is usually read may times, so please make it readable: 2. Readable code Your code is here to...
...have just merged the branch \"$merged_branch_name\" into \"$branch_name\". " # Ask the question read -p "> Do you want to push \"$branch_name\" + delete the \"$merged_branch_name\" branch? (y/N...
...script like this: # This class will be specced # To simplify this, it should not read input class YourScript # Methods offering functionality end unless Rails.env.test? script = YourScript.new # All interactivity (i.e. reading...
expect { subject.print_summary }.to output(/success/).to_stdout end end Further reading Maintaining custom application tasks in Rails
...which map to one context, e. g. mail components, in order to provide better readability of your tests or to even make clear a tests fail reason due to some...
...user with the mail address user@somedomain.com. For Console Debugging If you might want to read out the result of at least one failing expectation for different expected values without interrupting...
Rubymonk training Read the following Rubymonk articles: Ruby Primer: Ascent (archived copy) Metaprogramming Ruby (archived copy) Metaprogramming Ruby: Ascent (archived copy) For each chapter in each article:
...very powerful tool. Most notably, it allows you to represent data in a very readable manner. For example, Rails offers a compact DSL to define new routes. A big drawback...
...make custom transcoding/conversion logic working. Unless you adapt your processor, this will now fail. Read the following paragraph on why and how to fix it. The workfile_path breaking custom...
...probably why CarrierWave 3.x introduces the new behavior, below. Still, FFMPEG will then read the video file, extract the first frame image and save it to the thumbnail.jpg file...
...for different versions of Rails and the behavior is subtly different. Make sure you read and understand the API before using these...
...if you want it to look like a link. This is good for screen readers, which can differentiate between buttons and links Buttons are in the tab order of a...
...will not want to use these styles and instead apply your own styles) Note Read the card Accessibility: Making non-standard elements interactive for more details of this approach. It...
...objects can have getter and setter functions that are called when a property is read from or written to. For example, if you'd like an object that has a...
...some crazy things to allow easier definition of getters/setters in class definitions. Performance considerations Read and write accesses have the same performance characteristics of regular function calls, so it's...
...remove it from the cluster and add it again. Upstream documentation Make sure to read and understand the detailed instructions for etcd runtime reconfiguration. Re-adding a faulty node
...feature. If you can't think of one, discuss it with your mentor. Also read through the card How to not repeat yourself in Cucumber scenarios. Cucumber Factory
...a very useful gem to create test data in cucumber: cucumber_factory. Read through the README. Integrate it into your MovieDB and replace your custom model creation steps with Cucumber...
...label] attribute: This way, when a visually impaired user focuses the field, the screen reader will speak the label text ("Search contacts"). Info Without an [aria-label] attribute screen readers...
...to generate beautiful commit messages according to your stories in Linear: geordi commit Geordi reads from a .geordi.yml file inside your repo and connects to Linear to list started and...
...object.singleton_class.include(SomeModule)? How does include and extend work together with inheritance? You may also read more about the Ruby Object Model, if all of this is quite confusing to you...
...out how ActiveSupport::Concern works. Understand the documentation for our Modularity gem Forwarding arguments Read and understand the card "Changes to positional and keyword args in Ruby 3.0" Monkey patching...
...accessibility is to add the aria-required attribute in this case. This allows screen readers to announce fields as required before the form is submitted. Define a SimpleForm component:
...to consume it. Clients can use client libraries to access your API and can read up on the JSON:API spec to get a basic understanding on how to use...
...Since this is a bit slow, especially when using multiple processes with parallel_test, read this card. jQuery If you still require jQuery, add it to your webpacker project by...
Read (or re-read) the following chapters from our book Growing Rails Applications in Practice (it’s in our library): New rules for Rails Beautiful controllers Relearning ActiveRecord
A few things before you move on Add a reminder to your calendar: Read 5 repeating cards every morning Add a reminder to your calendar: Repeat the learnings of...
...the last 10 curriculum cards every other monday Read the article "Parting advice from an older Software Engineer". Try to memorize the key takeaways of 1-5 on the list...
...in your core User model. Prefer to use a form model like User::RegistrationForm. Read our book Growing Rails Applications in Practice for details. Here is a test for the...
...general suggestions. Before you start, talk to someone who has done it before, and read the following hints: Understand the old system Before any technical considerations, you need to understand...
...same object in memory, instead of loading another copy of the same record. Please read this great section about bi-directional associations from the Rails API for details.
...Installed at (1.4.1): /home/arne/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0 (1.3.5, default): /home/arne/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0 Interactive Ruby command-line tool for REPL (Read Eval Print Loop). Type gem help info to see a list of available switches.
...Dependency.new("reline", Gem::Requirement.new([">= 0.3.0"]), :runtime)] s.description = "Interactive Ruby command-line tool for REPL (Read Eval Print Loop)." s.email = ["keiju@ruby-lang.org"] s.executables = ["irb"] s.files = ["exe/irb"] s.homepage = "https://github.com/ruby/irb" s.licenses = ["Ruby...