- What is a React component, and how does it differ from a traditional JavaScript function or class?
- How would you describe the role of props in React? Why might they be crucial for component reusability?
- How do state and props differ in a React component? Can you think of scenarios where you'd use one over the other?
- If components are meant to be reusable, how can props help in achieving this goal? Can you think of real-world analogies or examples?
- In a typical React application, components are often nested within other components. How do props facilitate data flow in such hierarchies? What challenges might arise from this?
- React documentation emphasizes that props should be "immutable". What does this mean, and why might it be an important principle in React development?
The objective of this discussion is to expose you to some of the popular frameworks that are built on top of JavaScript or React. The goal is not for you to know how to use these, but simply understand what their intended usage is in case you want to use it at some point in time.
For each of these, I want you to answer the following questions for the class:
- Why does this exist? Why did people spend hundreds of hours of their time to build this?
- For what types of projects would you use this for?
- Gatsby
- Storybook
- What is the difference between SQL and MySQL?
- What do you mean by DBMS? What are its different types?
- What are the types of joins in SQL? Give an example for each one.
- What is a Primary key?
- What are the different operators available in SQL?
- What is the need for group functions in SQL?
- What is a Relationship and what are they?
- What is the difference between SQL and NoSQL?
- What is referencing and what is embedding in MongoDB?
- Why should we embed more than referencing when we can in MongoDB?
- When should we prefer referencing over nesting in MongoDB?
- What are ORMs? Why we use them? Give an example of an SQL request with and without using ORM.
- What is the difference between a table and a collection?
- What are the differences and connections between Mongoose schemas and models? How do they work together in an Express.js application?
- How does Mongoose handle data validation? Discuss the benefits of using Mongoose for data validation as opposed to doing it manually in your Express.js routes.
- What are virtuals in Mongoose? Discuss how and why you might use them in a project. Give examples of scenarios where virtuals can be particularly useful.
- What is population in Mongoose? How does it differ from simply storing object IDs in your documents? Discuss scenarios where population is beneficial and when it might be better to avoid it.
- How does Mongoose handle asynchronous operations? Discuss the role of promises and async/await in managing database interactions in an Express.js application.
-
Can you explain the steps that take place when a user signs in to a website?
-
Where are each of session/cookie and JWT data stored?
-
Which technology is stateful and which is stateless and what is the different between both?
-
What are the advantages and disadvantages of each of them in your opinion?
- What is a CSRF attack? How does it use HTTP requests? And why do we call it the one-click attack?
- What is an XSS attack? And what is the connection between it and cookies/sessions? And what are the two main categories of XSS?
- What is SQL injection? and what is the attacker’s intention from it?
- Consider the below SQL command, where is the vulnerability? think about some ways an attacker can misuse it:
const { username, password } = req.body
let strQry = `SELECT Count(*) FROM Users WHERE username=${username} AND password=${password}`;- What does End-to-End encryption means? Share an example of an well-known app using E2EE, how is that app using it?
Please type your answers in the comment section below
- What are the differences between manual and automated tests?
- What are the differences between functional and non-functional tests?
- Explain the main idea of the following test types:
- Unit tests
- Integration tests
- End-to-end tests
- What are some use cases of cloud computing?
- Mention some of the advantages of cloud computing.
- What are the most popular cloud providers?
- What are cloud functions? mention at least 2 use cases.
- What are CI and CD? and how are they helpful
- What is serverless architecture?
- What is Kubernetes?