...are three examples how you can avoid polluting the global namespace. You can also read the Rubocop docs on LeakyConstantDeclaration about this topic. When would I need this?

w3c.github.io

...This can be useful for debugging. The following example visits a web page and reads the a headline's text contents. Create a session. You will get a JSON response...

...d '{"using":"tagName","value":"h1"}' {"sessionId":"...","status":0,"value":{"ELEMENT":"element-object-id-here"}} Read the element's text content by using the element's identifier received above:

...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...

...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...

...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...

makandra Operations

...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

...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...

makandra dev

...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...

...of scope chaining. end end Explanation Note a couple of things: Every controller action reads or changes a single model. Even if an update involves multiple models,

...Standard implementation (with caching) We can improve the performance of our controllers by having reading actions (#show, #index) set ETag and Last-Modified response headers using #fresh_when

makandra dev

...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...

makandra Curriculum

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

makandra Curriculum

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...

...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...

...tier (in Bootstrap e.g. "xs" or "md") without duplicating breakpoints to JavaScript: you can read the current breakpoint tier(s) in JavaScript...

...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...

jakearchibald.com

...reason why callbacks are not executed in the order that they are queued. Please read this article! This is an extract of the example in the article which demonstrates the...