Closures, Currying and Partial Application

  Рет қаралды 5,056

Steve Griffith - Prof3ssorSt3v3

Steve Griffith - Prof3ssorSt3v3

Күн бұрын

Пікірлер: 20
@losrobbosful
@losrobbosful 2 жыл бұрын
Actually the first example on currying that really makes the thing "click". Thank you Steve, as always. You save us from the fog in the JS forrest : )
@bengalballa
@bengalballa 3 жыл бұрын
Great tutorials! Your style of teaching is very effective.
@qzbnyv
@qzbnyv 3 жыл бұрын
Been waiting for this. Thank you as always, Steve.
@DmitriyMalayevProfile
@DmitriyMalayevProfile 3 жыл бұрын
Love the quality, thanks Steve.
@joebloggsnz
@joebloggsnz 3 жыл бұрын
Great example Steve. Thanks.
@Dom-fs8om
@Dom-fs8om 2 жыл бұрын
Awesome tut. You should sell courses and teach. Your teaching style is very effective
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 2 жыл бұрын
I do teach full-time as a professor at my local College. I decided to keep all my content free on KZbin for everyone
@ivan89pln
@ivan89pln 3 жыл бұрын
If i understand correct, we use currying / function composition when we have some actions that repeat and we don't want to declare a new function everytime with multiple parameters, instead of declaring a single composer function which we invoke many times instead? Is the main reason behind currying/composing functions to save memory and don't repeat code?
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 жыл бұрын
It is more to do with striving towards pure functions that each do a single thing without any side effects. Making a series of logical steps with pure functions leads to less error prone code.
@javajoint
@javajoint Жыл бұрын
great example. and for some reason I am hungry!
@ramielwan48
@ramielwan48 2 жыл бұрын
Best teaching
@lenguajesdeprogramacionson5050
@lenguajesdeprogramacionson5050 3 жыл бұрын
Man IDKU, but if for any chance I meet you, I'll invite you the best dinner I can pay. You Rock! TYVM
@SteveRunciman
@SteveRunciman 3 жыл бұрын
nice video. why do you need to sleep if you are awaiting calls to jsonPlaceholder in init?
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 жыл бұрын
don't have to. Just wanted to use a delay to show that the results were being used at some time in the future instead of as soon as they were available.
@fadhilh3931
@fadhilh3931 3 жыл бұрын
React Hooks use this concept, am I right?
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 жыл бұрын
Pretty much every JS framework and library does.
@pokerchannel6991
@pokerchannel6991 3 ай бұрын
very nice.
@jornejongsma
@jornejongsma 3 жыл бұрын
Ok, .mjs was new to me... The benefits of that could have been a topic of its own, like your top level async await.
@ballonura
@ballonura 3 жыл бұрын
nice video.
@Horse-tradeEu
@Horse-tradeEu 3 жыл бұрын
chocolate vanilla curry cupcakes:p Sounds like advanced JS
ES Modules in NodeJS and the Browser
13:15
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 7 М.
Enhance your Coding with JSDoc
19:37
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 10 М.
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
JavaScript Proxies
22:54
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 11 М.
JavaScript Function Currying
11:41
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 16 М.
Converting Callback Functions to Promises
12:35
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 7 М.
Immutability in JavaScript
15:13
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 8 М.
Understanding the Keyword THIS in JavaScript
13:59
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 9 М.
Composition vs Inheritance in JavaScript
12:23
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 11 М.
Deep Dive into Array from method
22:05
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 2,9 М.
Error First Callback Patterns in JS
10:03
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 5 М.
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН