...is intended to give you an introduction to this emerging aspect of web development. Read this introductory performance study on Pinterest by Smashing Magazine. Frame Budget Most screens have a...

...box.offsetHeight); // Forces the browser to re-render *now* } Verdict: Make sure you always first read, then write style-relevant values. How to debug: Chrome shows warning icons in the event...

makandra dev

...not very future-proof: It breaks the ESM spec that demands imported modules to be read-only. It only works in some versions of Webpack (tested on Webpacker 5.4 with...

...when dependencies need approval (it is also the output of the failing licenses spec): Read on to learn what to do about the output. All decisions are written to doc/dependency_decisions.yml...

...to detect it manually. Check if current versions sport a license. Check package.json, composer.json, README. Once you know the license, tell LicenseFinder with bundle exec license_finder licenses add $DEPENDENCY...

...you think that wrapping transfer_money in a transaction would help, you should re-read this article from the top. What you should do instead is to wrap critical code...

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

makandra Curriculum

Basic validations Read the Rails Guide on ActiveRecord Validations. You should have an overview which kinds of validations are built into Rails. Also read Testing ActiveRecord validations with RSpec.

...all your validations in MovieDB. Use Shoulda matchers where you think they improve the readability your code. Working with error messages Understand how to use the #errors method to inspect...

...only available from Rails 8. There are cases where it might be fine to read directly, like: # Okay User.find(params[:id]) This still relies on params[:id] existing, so your...

...url_for(params.to_unsafe_h)` We have an extra card on this topic. Further reading It's also worth to read Rails: Using require and permit for attributes when configuring...

By default, Rails views escape HTML in any strings you insert. If you want to insert HTML verbatim, you need...

...only hides visually, not technically: the element is still focusable and visible to screen readers. So, how can we fade an element while maintaining accessibility? Enter visibility. It also hides...

...visibility, the hidden element is truly hidden and neither focusable nor visible to screen readers. Alternatives If you're starting your transition from JavaScript, you can give the element the...

If required, add more feature files in the same manner. From these, the reader should understand everything to know about the new feature you're building.

...examples you can think of:

it ' ' it ' ' it '...' end From these, the reader should understand everything to know about that method. When you're done listing examples, start...

DevOps Curriculum

...use on the backend. Goals After finishing this lesson you should be able to read and write simple Ruby programs. Gain an understanding of the following concepts: Working with basic...

...some tutorial to get you started with learning Ruby. You don't need to read them all. Pick some that work for you. codeacademy.com: Interactive tutorial Introduction to Programming with...

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

...Namespaces begrenzt werden können. Anhang A --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: pod-reader rules: - apiGroups: ["", "apps"] resources: ["pods...

...deployments", "statefulsets"] verbs: ["get", "watch", "list"] Anhang B --- apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: read-pods namespace: sample subjects: - kind: ServiceAccount name: read-pods namespace: sample roleRef: kind: ClusterRole...

makandra Operations

...database, how many commits and rollbacks there are. You can see the how many reads hit the cache (blks_hit) and how many had to be served FROM disk (blks...

SELECT schemaname,relname,last_autovacuum,last_autoanalyze,autovacuum_count,autoanalyze_count FROM pg_stat_all_tables; Shows the number and last point in time when autovacuum and autoanalyze happened...

ruby-doc.org

...change that index node. In some cases it might also be convenient to just read/write the lock file first and update the other file afterwards or vice versa, such that...

The method You can define the following method to lock a file from read and write access by methods like File.open and File.read. def exclusively_locked_access begin

...In the row below the dev tool tabs, there's a throttling dropdown which reads "Online" by default. Inside the dropdown, you will find a few presets and an option...

...the row right below the dev tool tabs you will find an option which reads "No throttling" by default. Pick one of the presets available there. Most processes that aren...

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

When requests arrive at the application servers simultaneously, weird things can happen. Sometimes, this can also happen if a user...

makandra Curriculum

...use on the backend. Goals After finishing this lesson you should be able to read and write simple Ruby programs. Gain an understanding of the following concepts: Working with basic...

...some tutorial to get you started with learning Ruby. You don't need to read them all. Pick some that work for you. codeacademy.com: Interactive tutorial Introduction to Programming with...

...to all (especially larger teams), we think it is a helpful starting point. First, read the Gatekeeping for developers guide, then ask your developers to read it and follow it...

makandra Curriculum

The lifecycle of an issue How to write an issue Issue format Read the card Project management best practices: Issues. Gatekeeping Get familiar with our Gatekeeping process.

Commit squashing (and the resulting traceability through git blame) Our Merge request checklist Read the card Before you make a merge request: Checklist for common mistakes Include the checklist...

...cards are our internal best practices and tips for our daily work. They are read worldwide by developers looking for help and tips on web development with Ruby on Rails...

...the expansion of the knowledge base. How does makandra cards work? Many of our readers stumble across our cards when they have a problem and are researching the topic in...

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: