Skip to content

Instantly share code, notes, and snippets.

View halitbatur's full-sized avatar
🏠
Working from home

Halit Batur halitbatur

🏠
Working from home
View GitHub Profile
@halitbatur
halitbatur / scope.md
Created March 23, 2023 18:45
Scope disscusion

Scopes Discussion

  • What is the scope of variable GLOBAL_DATA in the example below:

Pretend in the console, that we type: console.log(GLOBAL_DATA);

<script>
 let GLOBAL_DATA = { value : 1};
@halitbatur
halitbatur / firstClassFunctions.md
Created March 23, 2023 17:11
first-class functions
  1. What is a first-class function, and how does it differ from other types of functions?
  2. How can first-class functions be used in JavaScript to pass functions as arguments to other functions?
  3. Explain the difference between array.map(), array.reduce(), and array.filter(). In what scenarios would you use each of these array methods?
  4. Write a function that uses array.map() to double every number in an array. How would you modify the function to triple every number instead?
  5. Write a function that uses array.filter() to return only the even numbers in an array. How would you modify the function to return only the odd numbers instead?
  6. Write a function that uses array.reduce() to find the sum of all the numbers in an array. How would you modify the function to find the product of all the numbers instead?
@halitbatur
halitbatur / variables.md
Created March 16, 2023 13:40
Discussion Questions about JS

JS basics discussion

  • What is the difference between const and let? and why don't we use var?

  • What does return and console.log do inside a function and what is the difference between them?

  • What is a paramater in JS function and why is it there?

  • What are truthy and falsy values in JS? give some example on each

@halitbatur
halitbatur / useEffect.md
Created November 24, 2022 15:06
useEffect Discussion
  1. When does a React component re-render?
  2. What does the React.useMemo hook do?
  3. How can you replicate componentWillUnmount using useEffect ?
  4. How can you replicate componentDidUpdate using useEffect ?
@halitbatur
halitbatur / reaactPropsStateAndEvents.md
Last active November 17, 2022 16:02
Discussion about React state, props and Events

Discussion questions about react:

Please discuss with your teams and answer these questions in your own words.

  1. What is the difference between state and props in React?
  2. When should you use state and props in React?
  3. What is the difference between stateful and stateless components in React?
  4. How can you pass props to a component in React?
  5. How does react handle events, can you write an example?
@halitbatur
halitbatur / cloudcomputing.md
Created July 5, 2022 11:00
Discussion about cloud computing

Cloud Computing discussion

  • 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?
@halitbatur
halitbatur / cron.md
Created July 2, 2022 08:00
Redis, Cron and Design pattern discussion

Redis, Websockets and cron Discussion

Write your answers in the comment section below:

  • What is Redis? Mention one use case of Redis.
  • What type of database is Redis and where does it hold its data?
  • What is Websocket and what is it used for?
  • Explain 3 use cases for CRON jobs.
  • What are the 3 types of design patterns in Nodejs?
@halitbatur
halitbatur / TypeScriptDiscussion.md
Created June 28, 2022 11:17
Discussion for Typescript

Typescript discussion

Write your answers in the comment section below:

  1. What are the primitive types in TypeScript?
  2. Explain how the arrays work in TypeScript.
  3. What is any type, and should we use it?
  4. How does enums work and how are they usefull?
  5. What is optional chaining and how does it work?
  6. "Javascript is dynamically typed" what does that mean? and how does Typescript affect that?
@halitbatur
halitbatur / testTypes.md
Last active June 11, 2022 09:21
Test discussion

Test types discussion

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
@halitbatur
halitbatur / jwtAndCookies.md
Created June 2, 2022 09:11
cookies vs jwt for auth

Using session Cookie VS. JWT for Authentications

write your answers in the comments below:

  • 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?