An Alternate Fetch Syntax?

  Рет қаралды 1,821

Steve Griffith - Prof3ssorSt3v3

Steve Griffith - Prof3ssorSt3v3

Күн бұрын

Пікірлер: 22
@neilneil4419
@neilneil4419 3 жыл бұрын
This is another way of promise by fetch through resolve and reject, Really learn it deeply again, Thank you Dear Teacher Mr. Steve
@CodingNuggets
@CodingNuggets 3 жыл бұрын
Love seeing the different ways that code can be written to accomplish the same thing. I've never written my fetch calls the normal way. I've got my own syntax liking and only change if the codebase is already using a different syntax across the entire code base. I like your thinking on this. Thanks Steve. See you soon!
@CodingNuggets
@CodingNuggets 3 жыл бұрын
Nope, don't give a ... because you all continue to post this on so many different videos in the comments that everyone can see through your crap. Just saying.
@rmnkot
@rmnkot 3 жыл бұрын
You made me rethink fetching paradigm I used previously. Thanks a lot!!
@RahulGupta-qo7fi
@RahulGupta-qo7fi 3 жыл бұрын
Accidentally got your channel and loved it. I needed in depth knowledge and it is all provided on your videos .
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 жыл бұрын
I hope a lot of others accidentally discover my channel too! :)
@RahulGupta-qo7fi
@RahulGupta-qo7fi 3 жыл бұрын
Nowadays, Due to a lot tech channels ,it is become hard to know which channels r good. I hope u get more subscribers ASAP, actually you deserve a lot .....
@joaovaz3473
@joaovaz3473 3 жыл бұрын
Wow, didn't know that! Really useful. Thanks a bunch for another great video
@antoniosalzano5253
@antoniosalzano5253 3 жыл бұрын
i didn't understand the difference between .catch(err => ...) and the {}, err => ...
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 жыл бұрын
The catch( ) handles any error that happens at any point in the chain. Adding the (err)=>{ } inside a then will capture it so it doesn't get sent to the catch( ). Let's us decide what to do depending on the stage and type of failure.
@costagmc1
@costagmc1 2 жыл бұрын
Great explanation ..
@Timoteo1996
@Timoteo1996 3 жыл бұрын
As a new developer, I’ve always kind of thought that .then was considered somewhat obsolete compared to async await. Obviously I’m wrong but how would I know when to use .then vs async await? Is there a rule of thumb?
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 жыл бұрын
Then( ) will always work dependably. Async - await is something that can be helpful at times but you never have to use it. If you have a series of things to do then using a chain of then( ) methods makes the most sense. If you are working with a single promise or a single result then you can choose to use await if you want. Then is not obsolete it is a core part of how promises work. I think async await gained a lot of popularity because it let people who weren't yet comfortable with how promises work make their code look like it did before promises and seem to run synchronously.
@Timoteo1996
@Timoteo1996 3 жыл бұрын
@@SteveGriffith-Prof3ssorSt3v3 thank you!
@pujandhy
@pujandhy 2 жыл бұрын
Subscribed and liked. 😀
@saadowain3511
@saadowain3511 3 жыл бұрын
Please add it to ajax list.. still watching them
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 жыл бұрын
It's there.
@MichaelSalo
@MichaelSalo 3 жыл бұрын
I guess I don't see the advantage here. The double then callbacks are a little less clear, and a little more mistake prone, than straightforward then and catch blocks.
@saadowain3511
@saadowain3511 3 жыл бұрын
Thanks. A lot
@Youssef-lv6wp
@Youssef-lv6wp 3 жыл бұрын
❤💙
@herrbasan
@herrbasan 3 жыл бұрын
consooooooooole!
@香烤麻糬球
@香烤麻糬球 2 жыл бұрын
You did the art of complicate a simple concept.
Converting Callback Functions to Promises
12:35
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 7 М.
Ten Steps to Mastering the Fetch API
2:19:52
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 51 М.
🎈🎈🎈😲 #tiktok #shorts
0:28
Byungari 병아리언니
Рет қаралды 4,5 МЛН
GIANT Gummy Worm #shorts
0:42
Mr DegrEE
Рет қаралды 152 МЛН
БОЙКАЛАР| bayGUYS | 27 шығарылым
28:49
bayGUYS
Рет қаралды 1,1 МЛН
Хаги Ваги говорит разными голосами
0:22
Фани Хани
Рет қаралды 2,2 МЛН
"Clean" Code, Horrible Performance
22:41
Molly Rocket
Рет қаралды 945 М.
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 578 М.
Arenas, strings and Scuffed Templates in C
12:28
VoxelRifts
Рет қаралды 103 М.
Important differences between textContent and innerText
11:44
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 2,6 М.
The Absolute Best Intro to Monads For Software Engineers
15:12
Studying With Alex
Рет қаралды 681 М.
Coding a Web Server in 25 Lines - Computerphile
17:49
Computerphile
Рет қаралды 360 М.
The Rust Survival Guide
12:34
Let's Get Rusty
Рет қаралды 178 М.
HashMaps & Dictionaries, Explained Simply
22:44
Nic Barker
Рет қаралды 14 М.
Chrome Dev Tools Console Super Powers
16:44
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 9 М.
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 343 М.
🎈🎈🎈😲 #tiktok #shorts
0:28
Byungari 병아리언니
Рет қаралды 4,5 МЛН