...queue for work triggered by the application, cronjobs for work that runs on a schedule. You can explain what Active Job is: a Rails abstraction with a uniform interface over...
...any queue implementation — and why you still need to know the underlying tool for anything non-standard. You can set up a queue in a Rails app that has none...
...better than the idiom. You can explain why memoizing an instance method is usually safe while memoizing a class method is dangerous in a long-running process. You can explain...
...why || is a poor way to set defaults. Resources Read what's new to you, skim what's familiar, skip what you already master. Stop when you can meet the...
...ActiveRecord model. Form models hold the validations and logic of a single screen, like a sign-up form, without overloading your core models. Important Work on this lesson in advisor...
Learning goals You can explain why logic that belongs to one screen — its validations, callbacks, virtual attributes — should not live on the core model, and what goes wrong when...
...about half of our curriculum deck! 🎉 We've covered the basics of your future stack and are about to dive deeper in some more advanced topics. One shift worth knowing...
...about now: in a few cards the agent starts writing your code, and your job becomes directing and reviewing it. That is a bigger change than it sounds, and it...
...including layouts, partials, forms and blocks. You can choose between Haml's two attribute syntaxes: parentheses for static values, hashes when attributes are composed from variables. You know how Haml...
...when inline elements render with unwanted gaps. Resources Read what's new to you, skim what's familiar, skip what you already master. Stop when you can meet the learning...
...life as web developers we are constantly faced with technical problems that can be solved with a variety of (sometimes vastly different) technologies. Choosing the right tool for the tasks...
...is crucial for our mid- and long term success. Important Work on this lesson in builder mode. Our technology radar card documents what we're currently investigating either to replace...
Self-explanatory code is the goal, but every application still needs documentation. This lesson covers what belongs in a README and when a comment is worth writing. Important
...this lesson in builder mode. Goals While the Software Design Basics card tried to make a point about writing self explanatory code, it's still essential for every application to...
...offers an 8 month paid trainee program 🇩🇪 for junior developers that are looking to start a professional career in web development. This curriculum contains goals, resources and code exercises for...
...answers questions and later writes code under your direction. It is also your first stop when something is unclear — it can explain anything on a card, tailored to what you...
Rails ships with two separate build pipelines: Sprockets ("asset pipeline") and Webpacker. Webpacker has many more moving parts, but allows us to use ES6 modules and npm packages (through Yarn...
...does for JavaScript roughly what Bundler does for Ruby. Read the first couple of sections of its official documentation. You should learn how to: Install and update packages Remove packages...
...application you often need to move data between the client (HTML, Javascript) and the server (Ruby, Rails). Step 1: Moving HTML snippets Add a find-as-you-type search to...
...should be able to use it like this: var query = // ... search(query).then(function(html) { $('.search-results').html(html) }) Please make sure that you don't duplicate view code. Both...
...of this lesson is to understand what middlewares in Rack are good for. Rack Start with these articles: Rails on Rack Introduction to Rack Middleware Short Screencast to a sample...
...to e.g. a before_filter in ApplicationController? Rails middleware Now look at the middleware stack of a freshly installed Rails application. For each middleware in the stack:
...request headers, response headers and payloads. What is HTTP/2? Digging deeper Use curl to save a copy of http://www.sueddeutsche.de/. Use curl to save the CSS stylesheet of sueddeutsche.de...
What is SSL / TLS? Why do we need it? How do SSL certificates work? What is a "certificate authority"? What's the significance of the "Common Name" entry...
Best results in other decks
What is netfilter's Connection Tracking system? The connection tracking system often referenced as nf_conntrack is part of the Netfilter framework. It allows the Linux kernel to keep track...
...of all logical network connections and sessions. In combination with iptables this feature is used to achieve a stateful firewall. Why to care about nf_conntrack? All connections are stored...
The sandbox in Claude Code by default can access files anywhere in your home directory. This is not ideal, since we usually don't want it to read from our...
.../Documents directory. This card shows how to restrict its configuration. A reasonable default Put this in your ~/.claude/settings.json: { "sandbox": { "enabled": true, "autoAllowBashIfSandboxed": true, "allowUnsandboxedCommands": false, "excludedCommands": [ "git *", "glab *" ], "network": { "allowAllUnixSockets...