Higher order functions are awesome Javascript patterns for extending function logic #shorts

preview_player
Показать описание

My VSCode Extensions:
- theme: material community high contrast
- fonts: Menlo, Monaco, 'Courier New', monospace
- errors: Error Lens
- extra git help: Git Lens
- tailwind css intellisense
- indent rainbow
- material icon theme
- prettier & eslint
- ES7+ React Snippets
Рекомендации по теме
Комментарии
Автор

The most confusing concept. Still confused.

dannnsss
Автор

- It's still a HoF if it only consumes OR returns (not required to do both)
- You can skip `apply` and just use brackets directly

ChazAllenUK
Автор

Have a drink everytime he says function.

juleswinnfield
Автор

We can also test how long the the timer function took as well timer(timer(fib())).

naturemc
Автор

The word "function" would make no sense now if I was a native English speaker.

matefon
Автор

Can you make a video about es6 functions with .then for asynchronous coding

universe_decoded
Автор

"Higher order function" aka a decorator. Js is funky

ttrss
Автор

which editor are you using? visual studio code?

somebody_
Автор

What if the passed function includes some tasks or jobs? How HOC can be used to measure elapsed time in this case?

johnswanson
Автор

You can also use console.time and console.timeEnd if you just want to log your times.

armandopenatamayo
Автор

For whatever reason, higher order functions in statically typed languages (like C# and Swift) are a lot easier to understand.

JavaScript just makes them confusing because I can't see what types I'm working with 🙃

Landon_Hughes
Автор

What is the advantage to just using window.performance?

milaloup
Автор

It doesn’t have to take in and return a function to be a HOF. Either will suffice. Nice video by the way

chuxmyk
Автор

The problem is that I often confuse this with the currying technic ...

jora
Автор

Wow the other day I was just asking my professor when are we ever going to use the Fibonacci stuff in real life, I guess it’s that important. I jus feel so bad for making a joke about it in class at this point, thanks for the video 🙏🏾

tinongnjong
Автор

And do you have to use apply? How come u cant just call cb with the spread operator

zendude
Автор

Javascript :Constructors ? Nah we use functions aka objects.

thatsalot
Автор

Python decorator did the best for this ……

frankli
Автор

I have a hard time understanding the practical side of this

Confusedcapybara
Автор

That's why I hate JS, doesn't seem to be a logical programming language.

fc.bayern.no