Clojure tutorial - Create a rate limiting function!

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


Next weeks video will end off this whole session :)

----

00:00 intro
00:30 Create function
00:42 Naming anonymous Functions
03:00 Adding state
04:00 Adding configuration
06:12 implementing syntax
Рекомендации по теме
Комментарии
Автор

Love the stopping to explain everything no matter how simple. Really helps with knowing how you are building these things and thinking about the logic. Thank you so much for doing this.

choffee
Автор

I really liked Peter's detailed explanation. He doesn't half talk fast though. What was good to see was his refactoring thought processes.

staringout
Автор

Does anybody know what's the emacs command / package that's being used here for code folding of clojure sexps?

kisp
Автор

I don’t understand his using underscore at the end of variables. What does that signify

ohmyvgatron
Автор

Amazing content! Where can I get more of Peter? Does he have a YouTube channel of his own?

Marco
Автор

Isn't a limit function just a memoize with a timeout ?

winstonsmith
Автор

I wonder if two *compare-and-set!* calls can be used to throttle function. Outer *compare-and-set!* allows you to run when, lets say, 4 minor bits of current time are 0 and the inner *compare-and-set!* makes sure that you can run only once within the window - both gets reset simultaneously. What a stinky code that would be..

eugenej.
Автор

Why use a "comment" form when manually testing out a function? I usually just call the function at the top level

vikingthedude