...JavaScript Basics, the goal of this card is for you to be able to read and write more complex ES6+ code. The JavaScript Object Model Read The JavaScript Object Model...
...no way for a JavaScript class to define its own concept of equality Closures Read "A javascript closures recap" to understand what a "closure" is in JavaScript Understand the reason...
cronjobs (managed with whenever) job queues, usually with Sidekiq Learn about cronjobs Read HowTo: Add Jobs To cron Under Linux or UNIX? Understand how we manage cronjobs with...
...a movie if it hasn't been accepted for 7 days. Learn about Sidekiq Read Sidekiq's Readme Read Sidekiq best practices Read Sidekiq Error Handling Understand how to schedule...
Einführung in die Web Security 🇩🇪 provides essentials for the topic of this card. Read following chapters: (1) Security Principles (3.3) Sessions and Cookies (3.5) Same-Origin-Policy (4.2) Angriffsfläche...
...Federation / Single-Sign on (11) Serverseitige Angriffe (12) Clientseitige Angriffe (13) Clientseitige Schutzmaßnahmen Read through the most known security issues in web application, often known as "OWASP Top...
Watch Solving bizarre authorization requirements with Rails Read the Consul README Read the assignable_values README Understand how Consul and assignable_values can be used to implement arbitrary authorization...
Exercise: Read code In Cards, users can be given deck-specific read/write access. Play around in the cards UI to see that functionality. How does the application decide whether...
Read the following chapters from The Pragmatic Programmer, anniversary edition (in our library): Chapter 1, Topic 3: Software Entropy Chapter 2, Topic 9: The Evils of Duplication
...Topic 10: Orthogonality Chapter 5, Topic 28: Decoupling (and the Law of Demeter) Read the following chapters from Clean Code (in our library): Chapter 1: Clean Code Chapter 2: Meaningful...
Software engineering principles Read about the following software engineering principles and code smells: Single Responsibility Principle Law of Demeter Object Orgy Feature Envy Refresher: Tell Don't Ask
...Find some examples where code could be improved using the principles above. Technical debt Read about "Technical debt". Read this article: Are you experiencing technical drift Read this article: Moving...
...below can also applied in those cases, but they tend to result in less readable code. Let's see how we can get that thing 232 times faster..
let isButtonActive = $button.is('.active') // Native let button = document.querySelector('button') let isButtonActive = button.matches('.active') Read and write attributes // jQuery let name = $element.attr('name') $element.attr('name', 'new-name') // Native
...element.getAttribute('name') element.setAttribute('name', 'new-name')
...but you probably want to work with properties. Read and write properties (!) // jQuery let value = $input.prop('value') $element.prop('value', 'foo@bar.com') // Native let name = input.name...
...a full irb console, even though it somewhat behaves that way. Use the byebug README, byebug's help command (check help help for its usage) and our byebug cheatsheet to...
...do the following in the debugging console: Understand your current position in the program Read local variables Call methods that are reachable from the current scope Switch into a full...
drop_table :locks end end # spec/models/lock_spec.rb describe Lock, '.acquire' do before :each do @reader, @writer = IO.pipe end def fork_with_new_connection config = ActiveRecord::Base.remove_connection fork do
...the same lock' do (1..20).each do |i| fork_with_new_connection do @reader.close ActiveRecord::Base.connection.reconnect! Lock.acquire('lock') do @writer.puts "Started: #{i}" sleep 0.01 @writer.puts "Finished: #{i}" end @writer.close...
...backed by a database or not). If you're not familiar with the pattern, read or re-read "New rules for Rails" from Growing Rails Applications in Practice (in our...
...the following features: CRUD for stands Everything related to viewing and editing weekly reports Read Project management best practices: Issues on how we write user stories. Note that in practice...
Internet of Things Blockchain DevOps Artificial Intelligence or AI or Machine Learning Also read Awesome Cold Showers. Discuss a few of these technology with your mentor. Focus your discussion...
...you can build a habit of consuming it periodically, e.g. a blog feed to read on the train or a podcast you can listen to while shopping or cleaning.
...und komplex sein. Dies gilt vor allem, wenn man eine robuste Replikation für Failover und Read-Replicas haben möchte. Amazon Relational Database Service (RDS) ist ein vollständig verwalteter Dienst, um...
...der Failover funktioniert und die Anwendung sich zu der anderen Instanz verbindet. Wie kann man Read-Replicas in seine Anwendung einbinden? Kann man ein Read-Replica zu einem Primary machen...
...use the expand_path method with either the constant __FILE__ or the method __dir__. Read this card for more information about __FILE__ and __dir__. Example Structure: . ├── bin │ ├── format_changelog ├── CHANGELOG.md...
...desktop and/or phone. A habit of skimming over large bodies of text before intensively reading their most relevant pieces Considered reducing distractions by disabling notifications. Getting things done
...For work it's often sufficient to have a single TODO list. Minimizing distractions Read an article about context switching Read an article about flow Watch Merlin Mann's Inbox...
...that using request.cookies and response.cookies is not recommend by RSpec anymore as can be read in the documentation link above. Model specs Whenever you have to use the same cookie...
...and write solid unit tests. Beware that your class will not be able to read the cookies, since they are only available within the controller and view context. Because of...
Read the Rails Guide about Active Record migrations Understand why we never use models in migrations. Checkout the repository Project Hero and read through some migrations in db/migrate. Find...
...discuss them with your mentor. Tip Find the largest files in the db/migrate folder. Read and understand How to write complex migrations in Rails Discuss with your mentor
...Ruby will fall back on the method definition in the class itself. You can read more about that in Henning's card How Ruby method lookup works or in the...
...class in a much more convenient way than using alias_method_chain. You can read more about this here. As prepended modules should thus overwrite the existing method definition in...
...default property descriptor, use Object.defineProperty(object, key, descriptor). Let's use that to define a read-only property user.name: let user = {} Object.defineProperty(user, 'name', { value: 'Max', writable: false }) user.name // => 'Max...
Attribute Effect get A function that is called when the property is read ("getter") set A function that is called when the property is written ("Setter")
...JS libraries with their dependencies and version history. How to chose a new technology Read the card "Choosing the right gems for your project" and the article "Choose Boring Technology...
...can receive different versions of those secondary packages at the same time. You can read a little bit about it here. Note that: This is possible in ES6, but not...
...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...
...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...
...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
...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...