serhii retweeted
🚀 Just prepared the ultimate cheat sheet for the AWS Certified DevOps Engineer - Professional exam! 📚
Covers:
- Crucial Concepts
- How to use in Real World
- 20 Hands-on Labs
You can get it for 100% 𝐅𝐑𝐄𝐄!
1. Like & Reply “AWS“
2. Retweet
3. Follow me (so that I can DM)
serhii retweeted
Download 698-page PDF >> Everything You Always Wanted To Know About Mathematics*
(*But didn’t even know to ask)
A Guided Journey Into the World of Abstract Mathematics and the Writing of Proofs
math.cmu.edu/~jmackey/151_12…
serhii retweeted
URL, URI, URN - What are the differences?
The diagram below shows a comparison of URL, URI, and URN.
🔹 URI
URI stands for Uniform Resource Identifier. It identifies a logical or physical resource on the web. URL and URN are subtypes of URI. URL locates a resource, while URN names a resource.
A URI is composed of the following parts:
scheme:[//authority]path[?query][#fragment]
🔹 URL
URL stands for Uniform Resource Locator, the key concept of HTTP. It is the address of a unique resource on the web. It can be used with other protocols like FTP and JDBC.
🔹 URN
URN stands for Uniform Resource Name. It uses the urn scheme. URNs cannot be used to locate a resource. A simple example given in the diagram is composed of a namespace and a namespace-specific string.
If you would like to learn more detail on the subject, I would recommend W3C’s clarification.
–
Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/42Ex9oZ
serhii retweeted
Automatically set the rails timezone and display the time accordingly to the browser configuration. 😎
serhii retweeted
I curated a list of SaaS Starter Kits (including supported languages/pricing). Any other recommendations that can make the list better?
serhii retweeted
❄️ GitHub repo names are unique, but only within your account.
You can have "msft/blog" but also "swanson/blog" but you can't have two "swanson/blog" repos.
How do you model this in Rails? Use validation scopes + multi-column database index
![# You want Repos to have unique names within an # account but not globally. How can you do this # with Rails validations? # class Repo < ApplicationRecord belongs_to :account validates :name, uniqueness: { scope: :account_id } end # Enforce this at the database-level with a multi-column # index # class CreateRepos < ActiveRecord::Migration[6.0] def change create_table :repos do |t| ... end add_index :repos, [:name, :account_id], unique: true end end](https://pbs.twimg.com/media/FpgHy9dWAAsWTEy.jpg?name=small&format=webp)
ALT # You want Repos to have unique names within an # account but not globally. How can you do this # with Rails validations? # class Repo < ApplicationRecord belongs_to :account validates :name, uniqueness: { scope: :account_id } end # Enforce this at the database-level with a multi-column # index # class CreateRepos < ActiveRecord::Migration[6.0] def change create_table :repos do |t| ... end add_index :repos, [:name, :account_id], unique: true end end
serhii retweeted
💡Rails tip: Prefer flash.delete when resetting flashes as setting a flash to nil will still pass the flash object.
serhii retweeted
TIL, there are `new-password` and `current-password` autocomplete values that you can use for better password managers support
serhii retweeted
Replying to @bartlecki
Yeah, there are a lot of subtle differences in "feature flags" (see: martinfowler.com/articles/fe…)
This would be for "permission toggles" -- permanent, released features that are gated
serhii retweeted
My favorite tool for making mockups that not enough people use—Excalidraw
How I think it fits in the middle between fat market sketches and wireframes in Figma
serhii retweeted
TDD does not take extra time. Writing tests _first_ is not overhead because they force you to think through the problem and partition it properly. You’d have to do that thinking anyway.
Testing after the fact IS overhead because you did all that thinking already.
serhii retweeted
Top ruby data-manipulating categories.
I like to breakdown my ruby methods into categories.
Here's a cheatsheet I created. I find super helpful when solving Algorithms
#ruby #rails #devs #RubyOnRails
serhii retweeted
An implementation example of counting included records. Or you can use counter cache :)
#rubyonrails #ruby #rails
serhii retweeted
A few things that I remind myself of often:
- if you can’t control your emotions, everyone controls you
- if you want someone to be in a good mood, go there first
- we judge ourselves by our intentions, others by their behavior
serhii retweeted
Tailwind Tip #5 ✨
You can use ":invalid" pseudo class to create a pure css @tailwindcss form validation without javascript.
View code 👇
play.tailwindcss.com/F6G5Xxx…
(5/30) follow for 25 more tips 😊































