Forwarded from Programming Quiz Channel
What is a primary key's main purpose in a relational table?
Anonymous Quiz
6%
Speed up joins only
83%
Uniquely identify each row
2%
Store the largest value
9%
Enforce a specific data type
The Microtask Queue
Promises don't execute immediately after they resolve. They wait their turn.
The Microtask Queue is a queue that stores callbacks from resolved Promises before they're executed.
Consider:
The output is:
Even though the Promise resolves immediately, its callback is placed into the Microtask Queue.
JavaScript finishes the current execution first. Only then does it process queued microtasks.
This is the reason why Promise callbacks always run after synchronous code, even when no network request is involved.
Promises don't execute immediately after they resolve. They wait their turn.
The Microtask Queue is a queue that stores callbacks from resolved Promises before they're executed.
Consider:
console.log("A");
Promise.resolve().then(() => console.log("B"));
console.log("C");The output is:
A
C
B
Even though the Promise resolves immediately, its callback is placed into the Microtask Queue.
JavaScript finishes the current execution first. Only then does it process queued microtasks.
This is the reason why Promise callbacks always run after synchronous code, even when no network request is involved.
β€3
π API Design Roadmap
β
β£ π Foundations
β β£ π What is an API?
β β£ π HTTP & HTTPS Fundamentals
β β£ π Request & Response Lifecycle
β β£ π JSON & Data Formats
β β π API Design Principles
β
β£ π REST API Design
β β£ π REST Architecture
β β£ π Resources & Endpoints
β β£ π HTTP Methods (GET, POST, PUT, DELETE, PATCH)
β β£ π Status Codes
β β π REST Best Practices
β
β£ π API Documentation
β β£ π OpenAPI Specification
β β£ π Swagger UI
β β£ π API Reference Documentation
β β£ π Examples & SDKs
β β π Versioned Documentation
β
β£ π Authentication & Authorization
β β£ π API Keys
β β£ π JWT Authentication
β β£ π OAuth 2.0 & OpenID Connect
β β£ π Role-Based Access Control (RBAC)
β β π Token Management
β
β£ π API Security
β β£ π HTTPS & TLS
β β£ π CORS Configuration
β β£ π CSRF & XSS Protection
β β£ π Rate Limiting & Throttling
β β π Input Validation & Sanitization
β
β£ π Advanced API Architectures
β β£ π GraphQL
β β£ π gRPC
β β£ π WebSockets
β β£ π Server-Sent Events (SSE)
β β π Event-Driven APIs
β
β£ π API Performance
β β£ π Pagination
β β£ π Filtering & Sorting
β β£ π Caching Strategies
β β£ π Compression
β β π Performance Optimization
β
β£ π API Reliability
β β£ π Error Handling
β β£ π Retry Strategies
β β£ π Idempotency
β β£ π Circuit Breaker Pattern
β β π Health Checks
β
β£ π API Testing
β β£ π Unit Testing
β β£ π Integration Testing
β β£ π Postman & Insomnia
β β£ π Load Testing
β β π Contract Testing
β
β£ π API Deployment
β β£ π API Gateways
β β£ π Reverse Proxies
β β£ π Docker & Containers
β β£ π CI/CD Pipelines
β β π Cloud Deployment
β
β£ π Monitoring & Observability
β β£ π Logging
β β£ π Metrics Collection
β β£ π Distributed Tracing
β β£ π Prometheus & Grafana
β β π API Analytics
β
β£ π AI-Powered APIs
β β£ π OpenAI API Integration
β β£ π Function Calling
β β£ π Streaming Responses
β β£ π AI Agent APIs
β β π Cost & Token Optimization
β
β£ π Real-World Projects
β β£ π Authentication API
β β£ π E-commerce REST API
β β£ π Payment Gateway API
β β£ π AI Chat API
β β π Microservices API Platform
β
β£ π Practice & Growth
β β£ π Build Public APIs
β β£ π Contribute to API Projects
β β£ π Write API Documentation
β β£ π API Design Reviews
β β π Interview Preparation
β
β π Career & Monetization
β£ π Backend Engineer Roles
β£ π API Platform Engineer
β£ π SaaS Development
β£ π API Consulting & Freelancing
β π Continuous Learning
π Follow this consistently for 2β4 months and you'll be able to design, build, secure, and scale production-ready APIs with confidence.
β
β£ π Foundations
β β£ π What is an API?
β β£ π HTTP & HTTPS Fundamentals
β β£ π Request & Response Lifecycle
β β£ π JSON & Data Formats
β β π API Design Principles
β
β£ π REST API Design
β β£ π REST Architecture
β β£ π Resources & Endpoints
β β£ π HTTP Methods (GET, POST, PUT, DELETE, PATCH)
β β£ π Status Codes
β β π REST Best Practices
β
β£ π API Documentation
β β£ π OpenAPI Specification
β β£ π Swagger UI
β β£ π API Reference Documentation
β β£ π Examples & SDKs
β β π Versioned Documentation
β
β£ π Authentication & Authorization
β β£ π API Keys
β β£ π JWT Authentication
β β£ π OAuth 2.0 & OpenID Connect
β β£ π Role-Based Access Control (RBAC)
β β π Token Management
β
β£ π API Security
β β£ π HTTPS & TLS
β β£ π CORS Configuration
β β£ π CSRF & XSS Protection
β β£ π Rate Limiting & Throttling
β β π Input Validation & Sanitization
β
β£ π Advanced API Architectures
β β£ π GraphQL
β β£ π gRPC
β β£ π WebSockets
β β£ π Server-Sent Events (SSE)
β β π Event-Driven APIs
β
β£ π API Performance
β β£ π Pagination
β β£ π Filtering & Sorting
β β£ π Caching Strategies
β β£ π Compression
β β π Performance Optimization
β
β£ π API Reliability
β β£ π Error Handling
β β£ π Retry Strategies
β β£ π Idempotency
β β£ π Circuit Breaker Pattern
β β π Health Checks
β
β£ π API Testing
β β£ π Unit Testing
β β£ π Integration Testing
β β£ π Postman & Insomnia
β β£ π Load Testing
β β π Contract Testing
β
β£ π API Deployment
β β£ π API Gateways
β β£ π Reverse Proxies
β β£ π Docker & Containers
β β£ π CI/CD Pipelines
β β π Cloud Deployment
β
β£ π Monitoring & Observability
β β£ π Logging
β β£ π Metrics Collection
β β£ π Distributed Tracing
β β£ π Prometheus & Grafana
β β π API Analytics
β
β£ π AI-Powered APIs
β β£ π OpenAI API Integration
β β£ π Function Calling
β β£ π Streaming Responses
β β£ π AI Agent APIs
β β π Cost & Token Optimization
β
β£ π Real-World Projects
β β£ π Authentication API
β β£ π E-commerce REST API
β β£ π Payment Gateway API
β β£ π AI Chat API
β β π Microservices API Platform
β
β£ π Practice & Growth
β β£ π Build Public APIs
β β£ π Contribute to API Projects
β β£ π Write API Documentation
β β£ π API Design Reviews
β β π Interview Preparation
β
β π Career & Monetization
β£ π Backend Engineer Roles
β£ π API Platform Engineer
β£ π SaaS Development
β£ π API Consulting & Freelancing
β π Continuous Learning
π Follow this consistently for 2β4 months and you'll be able to design, build, secure, and scale production-ready APIs with confidence.
β€7
Forwarded from Programming Quiz Channel
In JavaScript, what is a Promise primarily used for?
Anonymous Quiz
2%
Styling components
85%
Handling asynchronous operations
12%
Declaring constants
0%
Looping over arrays
What Actually Is HTTPS?
TLS is responsible for encrypting the communication.
HTTP still handles things like:
π― Methods (
π― Headers
π― Cookies
π― Status codes
Before any HTTP data is exchanged, the browser and server perform a TLS handshake.
During this process they:
- Verify the server's identity using its certificate.
- Agree on an encryption algorithm.
- Generate shared encryption keys.
Only after that does the browser send the first HTTP request.
Without TLS, every request and response could be read or modified while travelling across the network.
π HTTPS isn't a different protocol. It's HTTP inside an encrypted tunnel.
HTTPS is HTTP running over TLS (Transport Layer Security).
TLS is responsible for encrypting the communication.
HTTP still handles things like:
π― Methods (
GET, POST)π― Headers
π― Cookies
π― Status codes
Before any HTTP data is exchanged, the browser and server perform a TLS handshake.
During this process they:
- Verify the server's identity using its certificate.
- Agree on an encryption algorithm.
- Generate shared encryption keys.
Only after that does the browser send the first HTTP request.
Without TLS, every request and response could be read or modified while travelling across the network.
π HTTPS isn't a different protocol. It's HTTP inside an encrypted tunnel.
β€3
Forwarded from Cool GitHub repositories
reactjs-interview-questions
List of top 500 ReactJS Interview Questions & Answers.
Creator: sudheerj
Stars βοΈ: 44,796
Forked by: 10,384
Github Repo:
https://github.com/sudheerj/reactjs-interview-questions
#ReactJS #Interview
βββββββββββ
π More cool repos β @github_repositories_bds
Part of @bigdataspecialist community
List of top 500 ReactJS Interview Questions & Answers.
Creator: sudheerj
Stars βοΈ: 44,796
Forked by: 10,384
Github Repo:
https://github.com/sudheerj/reactjs-interview-questions
#ReactJS #Interview
βββββββββββ
π More cool repos β @github_repositories_bds
Part of @bigdataspecialist community
GitHub
GitHub - sudheerj/reactjs-interview-questions: List of top 500 ReactJS Interview Questions & Answers....Coding exercise questionsβ¦
List of top 500 ReactJS Interview Questions & Answers....Coding exercise questions are coming soon!! - sudheerj/reactjs-interview-questions
β€2
Forwarded from Programming Quiz Channel
What is the main purpose of CORS (Cross-Origin Resource Sharing) headers?
Anonymous Quiz
5%
To compress HTTP responses
79%
To let a server explicitly permit cross-origin browser requests
16%
To encrypt traffic between client and server
0%
To cache static assets
π¨βπ» 7 Websites Every CSE Student Should Bookmark
If you're a CSE student, these websites can help you learn, practice, build projects and prepare for placements
1. Roadmap.sh πΊ
β’ Developer roadmaps for different tech fields
β’ Great for knowing what to learn next
π https://roadmap.sh/
2. LeetCode π§©
β’ Practice DSA and coding problems
β’ Useful for technical interview preparation
π https://leetcode.com/
3. GitHub π
β’ Host your projects and contribute to open source
β’ Build a strong developer profile
π https://github.com/
4. DevDocs π
β’ Documentation for hundreds of programming tools
β’ Quickly find technical references in one place
π https://devdocs.io/
5. SQLBolt π
β’ Learn SQL through interactive exercises
β’ Great for beginners learning databases
π https://sqlbolt.com/
6. Regex101 π
β’ Build, test and debug regular expressions
β’ Includes explanations and useful debugging tools
π https://regex101.com/
7. Excalidraw βοΈ
β’ Create diagrams, flowcharts and system designs
β’ Simple, free and easy to use
π https://excalidraw.com/
πΎ Save this list. You'll definitely need some of these.
@web_dev_bds
If you're a CSE student, these websites can help you learn, practice, build projects and prepare for placements
1. Roadmap.sh πΊ
β’ Developer roadmaps for different tech fields
β’ Great for knowing what to learn next
π https://roadmap.sh/
2. LeetCode π§©
β’ Practice DSA and coding problems
β’ Useful for technical interview preparation
π https://leetcode.com/
3. GitHub π
β’ Host your projects and contribute to open source
β’ Build a strong developer profile
π https://github.com/
4. DevDocs π
β’ Documentation for hundreds of programming tools
β’ Quickly find technical references in one place
π https://devdocs.io/
5. SQLBolt π
β’ Learn SQL through interactive exercises
β’ Great for beginners learning databases
π https://sqlbolt.com/
6. Regex101 π
β’ Build, test and debug regular expressions
β’ Includes explanations and useful debugging tools
π https://regex101.com/
7. Excalidraw βοΈ
β’ Create diagrams, flowcharts and system designs
β’ Simple, free and easy to use
π https://excalidraw.com/
πΎ Save this list. You'll definitely need some of these.
@web_dev_bds
β€2