Tech with Nader
Tech with Nader
  • Видео 152
  • Просмотров 768 466
DELETE Requests - Rest APIs In Depth
Let's learn about how the DELETE HTTP method works in the context of a REST API.
We start with an overview of what the DELETE request method is and how it relates to our API.
We then look at some visuals for how to think about the general flow of a DELETE request followed by some code that we write in Typescript and Deno to work through a practical example to delete a user from our file.
We wrap up the video by thinking about some considerations about DELETE requests when it comes to putting our API in to production and working on a project.
Chapters:
00:00 Introduction
01:33 DELETE Request Overview
03:47 DELETE Request Visual
05:20 DELETE Request Example
07:00 DELETE Request Code Example
29:55 DEL...
Просмотров: 476

Видео

Exercises: PUT & PATCH Requests - Rest APIs In Depth
Просмотров 2513 месяца назад
Let's go through some exercises to get some practice with PUT and PATCH Requests for Web APIs together, using Deno. We start with a warmup to look at the PUT and PATCH Request method types and log out the Request body. In the first exercise we look at a PUT request and how we can replace an existing resource on our server using its ID. Then, we look at the same exercise but with the addition of...
PUT & PATCH Requests - Rest APIs In Depth
Просмотров 1833 месяца назад
Let's learn about how the PUT and PATCH HTTP methods work in the context of a REST API. We start with an overview of what a PUT and PATCH requests are and how they related to our API. We then compare and contrast PUT and PATCH requests with visual examples as well as in code using Deno. The main differentiator is that PUT requests replace a whole object, whereas PATCH requests allow us to do di...
Exercises: POST Requests - Rest APIs In Depth
Просмотров 3343 месяца назад
Let's go through some exercises to get some practice with POST Requests for Web APIs together, using Deno. We start with a warmup to look at Request method types and send back an appropriate Response. In the first exercise we look at the main POST flow of creating a new resource using a JSON body and then adding it to our file on the backend in Deno. Then, in exercise 2 we take what we learned ...
POST Requests - Rest APIs In Depth
Просмотров 2493 месяца назад
Let's learn about how the POST HTTP method works in the context of a REST API. We start with an overview of what a POST request is and how it related to our API. Then we get in to how we would use a POST request to create a new resource using our API in Deno. We go through parsing out different body types as well as how we'll eventually want to deal with data validation issues such as missing o...
Exercises: GET Requests - Rest APIs In Depth
Просмотров 4483 месяца назад
Let's go through some exercises to get some practice with GET Requests for Web APIs together, using Deno. We start with a warmup to look at Request method types. Then, we look at how we can make a route to get all values of a specific resource, in this case movies. Then, in exercise 2 we look at how we can get a specific movie by an ID. We follow this up with looking at search/query parameters ...
GET Requests - Rest APIs In Depth
Просмотров 9596 месяцев назад
Let's learn about how the GET HTTP method works in the context of a REST API. We start with an overview of what a GET request is and how it related to our API. Then we get in to how we would get all of a specific resource through a route that we then build together in Deno. Following this, we look at how we'd get a single resource as well as the code for this in Deno as well. We then add how we...
Server Side Data Storage - Rest APIs In Depth
Просмотров 6027 месяцев назад
Let's take a look at the various types of data storage options available to us on the server. We take a look at in memory storage as well as text file storage using JSON in both theory as well as code using Deno. Then, we discuss tradeoffs amongst these and other data storage tools and concepts like relational and object databases, key-value stores and others. We will be using in-memory and jso...
Exercises: Server Side Routing - Rest APIs In Depth
Просмотров 6418 месяцев назад
Let's go through some exercises to get practice with Server Side Routing in Deno together, using web standard methods. We start with a warmup using simple if/else statements and the URL constructor to route incoming request pathnames. Then we move to using the URLPattern API to route incoming requests. In the second main exercise, we add some complexity to create even more dynamic routing patte...
Server Side Routing - Rest APIs In Depth
Просмотров 5648 месяцев назад
Let's learn about some methods used to do server-side routing on the server in Deno together. We start with an overview of what server side routing is and why we'll need it in order to build our web server and REST API. Then, we go through the most common ways we'll encounter server-side routing. Starting with the simplest approach, we look at how we'd use conditional statements like if/else st...
Exercises: Simple Web Server - Rest APIs In Depth
Просмотров 6408 месяцев назад
Let's go through some exercises to get practice setting up a web server in Deno together. We start with a simple 'hello world' server to get things warmed up. Then, we look at how we can dynamically respond with the request's method and url as well as add some logging to our server. For the second exercise we look at how we can send and format JSON responses. This is something we'll be doing a ...
Simple Web Server - Rest APIs In Depth
Просмотров 9748 месяцев назад
Let's start building our very first web server in Deno together! We start with an overview of what we're trying to build right before diving in to the code where we use the Deno.serve API to create our first server. We test out our server in Chrome and Insomnia and look at the HTTP Headers, as well as the Request and Response Objects in detail. To wrap thing up, we look at the different MIME Ty...
HTTP Headers & Methods - Rest APIs In Depth
Просмотров 1,4 тыс.8 месяцев назад
Let's take a look at HTTP Headers together and look at some practical examples in Insomnia and Deno. We start with an overview of what HTTP Headers are as well as some visuals and examples using both Chrome and Insomnia to inspect them. Then, we look at the different HTTP Methods such as GET, POST, PUT/PATCH, DELETE as well as the less known ones such as HEAD and OPTIONS. We then look at the HT...
Network Protocols - Rest APIs In Depth
Просмотров 1,2 тыс.8 месяцев назад
Let's learn about the main network protocols we will be seeing and using as we start working with REST APIs. We start by looking at the OSI model and its 7 layers and how things are laid out for a nice mental model of how to think about protocols and the network stack. Then, we take a look at HTTP and HTTPS and the different versions. We compare HTTP 1.1 to HTTP2 and see that HTTPS is HTTP over...
DNS, IP Addresses & Ports - Rest APIs In Depth
Просмотров 1,2 тыс.8 месяцев назад
Let's learn how DNS, IP Addresses and Ports work in the context of networking so we can better prepare for working with REST APIs. We start by looking at the URL structure and how it allows us to request information from a particular resource on a network in a structured way. Then, we look at the domain name system which translates domain names to ip addresses for the computer. We then use thes...
Deno Environment Setup - Rest APIs In Depth
Просмотров 1,2 тыс.8 месяцев назад
Deno Environment Setup - Rest APIs In Depth
Introduction to REST APIs - Rest APIs In Depth
Просмотров 2,7 тыс.8 месяцев назад
Introduction to REST APIs - Rest APIs In Depth
Project: React Router - React In Depth
Просмотров 1,7 тыс.8 месяцев назад
Project: React Router - React In Depth
Exercises: Custom Hooks - React In Depth
Просмотров 9398 месяцев назад
Exercises: Custom Hooks - React In Depth
Custom Hooks - React In Depth
Просмотров 8518 месяцев назад
Custom Hooks - React In Depth
Exercises: Data Fetching - React In Depth
Просмотров 9878 месяцев назад
Exercises: Data Fetching - React In Depth
Data Fetching - React In Depth
Просмотров 8868 месяцев назад
Data Fetching - React In Depth
Exercises: Conditional Rendering - React In Depth
Просмотров 4658 месяцев назад
Exercises: Conditional Rendering - React In Depth
Conditional Rendering - React In Depth
Просмотров 6038 месяцев назад
Conditional Rendering - React In Depth
Exercises: useContext Hook - React In Depth
Просмотров 7348 месяцев назад
Exercises: useContext Hook - React In Depth
useContext Hook - React In Depth
Просмотров 1,1 тыс.9 месяцев назад
useContext Hook - React In Depth
Mock System Design Interview - Junior Level
Просмотров 1,6 тыс.9 месяцев назад
Mock System Design Interview - Junior Level
Exercises: useReducer Hook - React In Depth
Просмотров 1,3 тыс.9 месяцев назад
Exercises: useReducer Hook - React In Depth
useReducer Hook - React In Depth
Просмотров 1,2 тыс.9 месяцев назад
useReducer Hook - React In Depth
Exercises: useRef Hook - React In Depth
Просмотров 9949 месяцев назад
Exercises: useRef Hook - React In Depth

Комментарии

  • @vivek_akheniya
    @vivek_akheniya 10 часов назад

    can I directly return `Hello ${name}` in utils.js

  • @alexgalal4939
    @alexgalal4939 15 часов назад

    Javascript is really confusing for those starting to learn programming! I have been using freecodecamp and your videos have helped me solve a lot of challenges with a better understanding. keep posting new videos and exercises we need you!!

  • @tiktokspicyfyp9195
    @tiktokspicyfyp9195 День назад

    unrelated but can you drop eyelash routine :)

  • @nobody20022
    @nobody20022 2 дня назад

    I have used this in ex-3 for finding max value console.log(houseForSale.get('offers').reduce((a,b) => Math.max(a,b),0))

  • @AleksandarStankovic-jr2sz
    @AleksandarStankovic-jr2sz 2 дня назад

    👍👌👏

  • @akram5960
    @akram5960 2 дня назад

    3rd exercise took me 3hrs to figure out!! OfCourse took a lot of breaks in between. Thanks Nader, you are an awesome teacher.

  • @logicweaver7152
    @logicweaver7152 3 дня назад

    Need clarification on when exactly rerendering is triggered? Is it immediately triggered on encountering setState function? From what I see, it doesn't seem to be the case?

  • @nobody20022
    @nobody20022 3 дня назад

    for exercise 3 i did this const backpack = new Map() backpack.set(1, {name:'Sword', value:300}) backpack.set(2, {name:'Banana',value: 5}) backpack.set(3, {name:'Gold nugget' ,value: 10000}) backpack.set(4, {name:'Pants', value:100}) let totalItem =parseInt(0) for (const [maps,value] of backpack) { console.log(`${[value.name]}: ${value.value}`); totalItem += +[value.value] } console.log(totalItem); correct me if I am wrong

  • @nobody20022
    @nobody20022 3 дня назад

    for exercise 3: we can also write like this const points = [3,4,1,0,1,5,6]; for (const point of points) { switch (true) { case point <= 2: console.log('Good try'); break; case point <= 5 : console.log('Very well done'); break; default: console.log('Shooting for the moon'); break; } } correct me if I am wrong

  • @logicweaver7152
    @logicweaver7152 4 дня назад

    Important question: why're you doing: return <> {peopleCards} </>, instead of just: return peopleCards?

  • @nguyenvankhanhduy3958
    @nguyenvankhanhduy3958 6 дней назад

    Don't quit man. You are providing many great tutorials that helped beginners at least get familiar with the concepts.

  • @akram5960
    @akram5960 6 дней назад

    super useful stuff!!!

  • @sujeetraut154
    @sujeetraut154 7 дней назад

    I have used npm commands many time before but wasn't really clear about the internals of this. Thanks to your clear and detailed explanation , I now have a much deeper understanding.

  • @Erin-vz6ow
    @Erin-vz6ow 7 дней назад

    Hey, Nader! Been trying to join the discord server for a while now but haven’t been managing to :( It keeps coming up with invite invalid. Anyways, thank you so much for your videos, Nader! They help so much, highly appreciate your efforts thank you thank you thank you! Literally can’t thank you enough!

    • @TechWithNader
      @TechWithNader 7 дней назад

      Hey Erin! You’re very welcome! Weird about the Discord, are you using this link: discord.com/invite/K4nkugP7Gd ?

    • @Erin-vz6ow
      @Erin-vz6ow 7 дней назад

      @@TechWithNader Yup, was using that exact same one, don’t worry though i just tried it again and it worked!!! 🥳 Thanks again, Nader!

  • @CappyVLNT
    @CappyVLNT 8 дней назад

    random question maybe I skipped pass this, but for exercise 2, isn't it better to use \w+ instead of * ? Knowing an email always needs atleast ONE or MORE chars before & after the @?

  • @logicweaver7152
    @logicweaver7152 8 дней назад

    Brilliant playlist! How soon will you be uploading content on web components?

  • @0lynnja
    @0lynnja 8 дней назад

    ขอขอบคุณ

    • @TechWithNader
      @TechWithNader 8 дней назад

      Thank you! Hope you’re enjoying the series! 😄

  • @Vhc706
    @Vhc706 9 дней назад

    I love your teaching style! I have a question though. Why did you choose to teach back-end with Deno instead of Node? Isn't Node more more widely used and better for job seekers?

  • @benyair2406
    @benyair2406 12 дней назад

    Hi. Thanks for the great help! Here is my solution. let i = 0; while (i < 100) { i += 10; if (i === 50) { console.log(`Half way there`); continue; } if (i % 2 === 0) { console.log(`Checkpoint! ${i}`); continue; } if (i === 100) { console.log(`You made it!`); } } console.log(`All done!`); ONCE AGAIN, THANK YOU :)

  • @sujeetraut154
    @sujeetraut154 12 дней назад

    const backpack = new Map(); backpack.set(1, { name: "Sword", value: 300 }); backpack.set(2, { name: "Banna", value: 5 }); backpack.set(3, { name: "Gold Nugget", value: 10000 }); backpack.set(4, { name: "Pants", value: 100 }); let totalValue = 0; for (const item of backpack) { console.log(`${item[1].name} : $${item[1].value}`); totalValue += item[1].value; } console.log(`Total : $${totalValue}`);

  • @sequoiakanies2202
    @sequoiakanies2202 13 дней назад

    Good video and great job. Super impressive for only having coded for a couple years

  • @SocalSurfandCode
    @SocalSurfandCode 13 дней назад

    My solution! import { useState, useRef, useEffect } from "react"; function GuessNum() { const randomNum = Math.floor(Math.random() * 10); const hiddenNum = useRef(randomNum); const domRef = useRef(null); const [results, setResults] = useState(''); function checkNum() { if (Number(domRef.current.value) === hiddenNum.current) { setResults("You win, you guessed the correct number!"); console.log(results); } else { setResults("You did not guess the correct number!"); console.log(results) } } return ( <> <h1>Guess a number between 1 and 10</h1> <p>{results}</p> <input ref={domRef} type="number" /> <button onClick={checkNum}>Guess!</button> </> ) } export default GuessNum;

  • @najibzuse4532
    @najibzuse4532 15 дней назад

    It took me 2 days to finish the the game and another 2 days to stretched it out. The code look little bite of a mess but it works good thank you so much you give me so much confidence after I lost hop of my self . thank you again Nader 🐵

  • @ahmedyasser571
    @ahmedyasser571 15 дней назад

    is this the last video ?

  • @kppmtmusic6607
    @kppmtmusic6607 18 дней назад

    Hi Nader! I just wanted to say thank you so much for everything you do and the effort you put into these videos, I am so sad that you don't get the recognition you very much deserve. These videos are God's sent for us trying to get into programming. I'm a teen who's currently getting into tech to maybe one day know enough to leverage what I know in order to help my single mom with finances, and these videos were the only ones that made me learn consistently and efficiently. I never ever write comments but I just thought that you deserved to know how appreciated you are and how much people you help. Again, thanks a lot, Nader. Lots of love from the Philippines! 💖

    • @TechWithNader
      @TechWithNader 18 дней назад

      Wow, thanks for the kind words! Very much appreciated 🙏🏽 This is exactly why I make these videos and I’m glad they are helping! Don’t hesitate to reach out if you have questions and feel free to join the Discord to talk to others like you in the community as well as myself. Keep it up! 🚀

  • @silvioukoth1699
    @silvioukoth1699 18 дней назад

    As always, you are a great teacher! Thank you so much!

  • @Alam2k23
    @Alam2k23 19 дней назад

    Completed Watching, nice explanation.

  • @silvioukoth1699
    @silvioukoth1699 19 дней назад

    Great communicator!

  • @Alam2k23
    @Alam2k23 19 дней назад

    Amazing Explanation thanks Nader.

  • @Alam2k23
    @Alam2k23 20 дней назад

    Completed watching Introduction to React.

  • @keerthanarajamani-bv2mg
    @keerthanarajamani-bv2mg 21 день назад

    Want for each exercise

  • @keerthanarajamani-bv2mg
    @keerthanarajamani-bv2mg 21 день назад

    Woww perfect exercises for beginner 🔥🔥🔥 want more exercise sessions please

  • @silvioukoth1699
    @silvioukoth1699 21 день назад

    Much more love and I really like the way you delivered the lessons! Kudos Nader! You are making web development very easy to learn.

  • @akosileabdulquadri5852
    @akosileabdulquadri5852 22 дня назад

    Thank you, very easy explanation. I used Array.reduce for the summation. Promise.all([promise1, promise2]).then((values) => { return values.reduce(reduceFunction); }); function reduceFunction(prev, curr) { console.log(prev + curr); }

  • @LucianoClassicalGuitar
    @LucianoClassicalGuitar 23 дня назад

    Make more please

  • @khalilmahmoodiyan975
    @khalilmahmoodiyan975 24 дня назад

    Cool

    • @khalilmahmoodiyan975
      @khalilmahmoodiyan975 24 дня назад

      as I follow the Exercises so DEEP . I noticed that in "Ex 1" if the last index has a value that start with a the dash doesn't go away. 13 : 25

  • @khalilmahmoodiyan975
    @khalilmahmoodiyan975 25 дней назад

    As always Cool 💛💛💛💛💚💚

  • @khalilmahmoodiyan975
    @khalilmahmoodiyan975 26 дней назад

    So Cool. Amazing

  • @0lynnja
    @0lynnja 26 дней назад

    ขอขอบคุณ

    • @TechWithNader
      @TechWithNader 26 дней назад

      Thanks! Hope you’re enjoying the series 😄

  • @khalilmahmoodiyan975
    @khalilmahmoodiyan975 26 дней назад

    Amazing : UR Explanations are really pleasant and complete.💛💛💚💚💚💚

  • @najibzuse4532
    @najibzuse4532 26 дней назад

    please answer me why create constructor when you can pass the parameter directly . something like that class EnemyFcatory { generatFlayingEnemy(name) { class fly { fly(){console.log(`${name} can fly`);} } return new fly } } it gave the same result

  • @again7741
    @again7741 28 дней назад

    great explanation

  • @wjm915x
    @wjm915x 28 дней назад

    Really well done. Thank you!

  • @markusdowney5457
    @markusdowney5457 29 дней назад

    why does he care so much about "edge cases" its a very simple problem that you just do? right?

  • @thedanielababi
    @thedanielababi Месяц назад

    Hey Nader! very informative and clear video, thanks! I only have one question - you only talked about "const" variables. Do "var" and "let" acts the same?

  • @MoneyMaker-pu1rj
    @MoneyMaker-pu1rj Месяц назад

    watching your playlist. Better than Udemy BS courses.

  • @surij8376
    @surij8376 Месяц назад

    Very good tutorial. Thank you!

  • @akram5960
    @akram5960 Месяц назад

    1) Incase of filter - we have to explicitly return true or false in required cases. 2) we are not manipulating the elements of an array (as in case of array.map), we are trying to get rid off certain elements of an array.

  • @thedanielababi
    @thedanielababi Месяц назад

    Great video and excercises ! Thanks !!!

  • @xerxes1321
    @xerxes1321 Месяц назад

    could someone explain this code: const row = [10, 20, 30, 40, 50]; const newArr = []; const matrix = row.map( x => { newArr.push(x); return newArr; // return [x]; }); console.log("row", row); console.log("matrix", matrix); output: row [ 10, 20, 30, 40, 50 ] matrix [ [ 10, 20, 30, 40, 50 ], [ 10, 20, 30, 40, 50 ], [ 10, 20, 30, 40, 50 ], [ 10, 20, 30, 40, 50 ], [ 10, 20, 30, 40, 50 ] ] hey this is what i have understood: first element of row is pushed into newArr at first iteration & newArr becomes [10] second element of row is pushed into newArr at second iteration & newArr becomes [10,20] third element of row is pushed into newArr at third iteration & newArr becomes [10,20,30] .... this will be done for every element of row. finally the newArr becomes [10,20,30,40,50]. As we are returning newArr at every iteration , the map will return the finally updated newArr [10,20,30,40,50] for every iteration. So the map will complete each and every iteration to update the result and return the updated result accordingly.