Every component of a URL explained in under 2 minutes:
First, what is a URL?
URLs represent a resource’s location on the internet (webpage, image, file, etc). When you enter a URL, your browser travels a computer network to retrieve the resource at that location.
Components of a URL (in order) ↓
🔸 𝗣𝗿𝗼𝘁𝗼𝗰𝗼𝗹/𝘀𝗰𝗵𝗲𝗺𝗲: this represents the method used to fetch the resource. E.g. HTTP, HTTPS, or FTP.
🔸 𝗦𝘂𝗯𝗱𝗼𝗺𝗮𝗶𝗻: it comes before the domain and is optional. It’s used to organize different sections of the website.
SOLID principles are key in object-oriented programming.
But what does each principle actually mean, and why are they significant? 🧵
SOLID represents five principles of object-oriented programming.
Whether or not you use OOP, knowing these principles gives you a lens into the foundations of clean code which can be applied to many areas of programming.
S — Single Responsibility Principle
O — Open/Closed Principle
L — Liskov Substitution Principle
I — Interface Segregation Principle
D — Dependency Inversion Principle