Is there a static type system for JavaScript that /doesn't/ require you to name function parameters?
Hypothetical example:
type Filter<A, B>(:A) => (:B): boolean
Seems if you want to make very generic function types, you either have to choose to make more specific types with appropriate names, use incredibly generic parameter names, or have a parameter naming scheme and reassign to better names at the beginning of the block.
#Programming #JavaScript #JS #TypeScript #FunctionalProgramming #FP
functional programming is just legos for comp sci folx send toot
@tom This post inspired me to make this, fuck I should be doing political cartoons
https://slime.global/media/lzLX6Uzx9mvLSuNAhLU
ive been initiated into the wonderful world of machine learning memes https://cybre.space/media/RfaBFa173cX4Vob1TSA
I came across my old iPod Classic 5.5G I got back in high school and now I'm having Technology Feels.
boost if you occasionally meow or awoo
Hey, since I see people making incredibly convoluted variadic compose functions ALL THE TIME in JavaScript, here's my take on it that's easy on the eyes:
const compose = (...fs) => (x) =>
[...fs].reduceRight((acc, f) => f(acc), x)
It only passes one argument through the composition, but it could easily be an array or object.
Enjoy!
I use Tableau Public at work for working with small #data, but this is going to grow to bigger datasets and questions in the future. Is there a comparable #opensource program for #Linux in terms of ability and ease of use? (And yes, I'm aware that Tableau Server is coming to Linux)
Do you make music? Commission your next album cover with me! Do you know a musician whose music would go well with my art? Let them know!
>need to keep ginger warm so it ferments faster
>fire up folding@home
>crank it to โfullโ
>put ginger on computer
am I doing this right?
My mom texted me that the fairy wrasse had food stuck in their mouth and couldn't eat, so she trapped them, pulled them out of the tank, and performed fish "surgery" to remove it. Now they're hiding in the rocks, but my parents think the procedure was successful??? My mom is delightfully weird sometimes.
I love how almost everywhere you look, a "small phone" is anything between 4.5" and 5". Where's the 3" to 4" smartphones at?
Anxiety, Stress from work Show more
Anxiety, Stress from work Show more
a fluffy boi
Happy New Year, East Coast US Mastodoners! ๐๐๐ May your 2018 be bright!